You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a partition is revoked from an Alpakka Kafka consumer, it continues to emit data which was buffered before. This can be up to max.poll.records messages that got fetched just before the revoke was issued.
Instead, the stage should drop messages from its buffer when it doesn't have the partition assigned anymore.
Fixing this could reduce the number of re-delivered messages at rebalances significantly.
Details
After receiving messages the KafkaConsumerActor.processResult passes them to the stages that requested messages for that topic/partition. The stage does not reconsider messages in its buffer when the Kafka broker rebalances a consumer group, and will continue to issue messages that belong to partitions it no longer "owns" to the stream.
The text was updated successfully, but these errors were encountered:
Short description
When a partition is revoked from an Alpakka Kafka consumer, it continues to emit data which was buffered before. This can be up to
max.poll.records
messages that got fetched just before the revoke was issued.Instead, the stage should drop messages from its buffer when it doesn't have the partition assigned anymore.
Fixing this could reduce the number of re-delivered messages at rebalances significantly.
Details
After receiving messages the
KafkaConsumerActor.processResult
passes them to the stages that requested messages for that topic/partition. The stage does not reconsider messages in its buffer when the Kafka broker rebalances a consumer group, and will continue to issue messages that belong to partitions it no longer "owns" to the stream.The text was updated successfully, but these errors were encountered: