-
Notifications
You must be signed in to change notification settings - Fork 592
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 querying end offset of an empty log #17789
Conversation
When querying offset translator we are relying on the property of the end offset or high watermark being exclusive. Changed the behavior of log end offset to increment offset in Raft offset space and then translate to achieve correct behavior when log is ended with a batch subjected to offset translation. Fixes: redpanda-data#16612 Signed-off-by: Michał Maślanka <michal@redpanda.com>
ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/47654#018ecd5b-eadf-4b3b-82fb-97f9661f360f ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/47654#018ecd4b-a60e-4643-a0c6-bdc822ad6049 |
/backport v23.3.x |
/backport v23.2.x |
Failed to create a backport PR to v23.3.x branch. I tried:
|
Failed to create a backport PR to v23.2.x branch. I tried:
|
Hey :) Is it possible to backport this fix to 23.1. line or it's completely unsupported at this point? |
When querying offset translator we are relying on the property of the end offset or high watermark being exclusive. Changed the behavior of log end offset to increment offset in Raft offset space and then translate to achieve correct behavior when log is ended with a batch subjected to offset translation.
Fixes: #16612
Credits for @ztlpn for pointing me in the right direction.
Backports Required
Release Notes
Bug Fixes