Skip to content
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

[v23.3.x] k/replicated_partition: fixed fetch offset validation for follower fetching #16169

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #16146

…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>
(cherry picked from commit fb48e0a)
@vbotbuildovich vbotbuildovich added this to the v23.3.x-next milestone Jan 19, 2024
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Jan 19, 2024
@piyushredpanda piyushredpanda modified the milestones: v23.3.x-next, v23.3.3 Jan 19, 2024
@piyushredpanda piyushredpanda marked this pull request as ready for review January 19, 2024 13:38
@piyushredpanda piyushredpanda merged commit 1ee757e into redpanda-data:v23.3.x Jan 19, 2024
16 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants