-
Notifications
You must be signed in to change notification settings - Fork 552
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
k/replicated_partition: fixed fetch offset validation for follower fetching #16146
k/replicated_partition: fixed fetch offset validation for follower fetching #16146
Conversation
ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/43880#018d1c17-5a86-446b-83d7-36c209f8567a ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/43883#018d1cdd-3efb-43e4-b018-e6b09b8dc300 ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/43883#018d1cdd-3ef6-4b7f-8cc2-7efd5ce2d17a ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/43883#018d1ce3-1613-4c99-880d-04333e4ef970 |
Which all branches should this backport to @mmaslankaprv ? |
3c69a7b
to
e4e3e57
Compare
…tching When consumer is requesting a fetch from the broker being a follower for given replica the fetch offset validation logic changes comparing to the validation on a leader. The out of range error should only be returned if an offset is not available locally and it is not known to be committed. That was not the case with the current code. The current code returned out of range error every time the offset was not committed on leader. This lead to many not necessary errors returned and resulted in consumer offsets being reset. Signed-off-by: Michal Maslanka <michal@redpanda.com>
e4e3e57
to
fb48e0a
Compare
/backport v23.3.x |
/backport v23.2.x |
When consumer is requesting a fetch from the broker being a follower for given replica the fetch offset validation logic changes comparing to the validation on a leader. The out of range error should only be returned if an offset is not available locally and it is not known to be committed. That was not the case with the current code. The current code returned out of range error every time the offset was not committed on leader. This lead to many not necessary errors returned and resulted in consumer offsets being reset.
Backports Required
Release Notes
Bug Fixes