-
Notifications
You must be signed in to change notification settings - Fork 599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kafka/group: don't replicate empty batch on offset commit #22824
Conversation
4b66565
to
e751117
Compare
Redpanda generally does not permit empty batches to make their way to the log. This is problematic in case of an empty offset commit requests. Kafka returns immediately for empty requests[1], so this tweaks the return store_offsets() method to do the same. I considered putting this higher up in the Kafka layer, but there didn't seem to be a specialized handler for offsets commits where such an early return would be natural. [1] https://github.com/apache/kafka/blob/98cdf9717049e87ba34bb5161276577fcb8bd1c4/core/src/main/scala/kafka/server/KafkaApis.scala#L504-L505
e751117
to
c0b2fc7
Compare
ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/52736#01913966-1d29-4c89-9e76-093595b135f7 ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/52736#0191397e-b067-4047-a61b-199f086505a4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
/backport v24.2.x |
/backport v24.1.x |
/backport v23.3.x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
Redpanda generally does not permit empty batches to make their way to
the log. This is problematic in case of an empty offset commit requests.
Kafka returns immediately for empty requests[1], so this tweaks the
return store_offsets() method to do the same. I considered putting this
higher up in the Kafka layer, but there didn't seem to be a specialized
handler for offsets commits where such an early return would be natural.
[1] https://github.com/apache/kafka/blob/98cdf9717049e87ba34bb5161276577fcb8bd1c4/core/src/main/scala/kafka/server/KafkaApis.scala#L504-L505
Backports Required
Release Notes
Bug Fixes