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.1.x] kafka: return lowest offset if requested epoch is lower than local log #9296

Merged

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #9264

kafka: return lowest offset if requested epoch is lower than local log

If reading from tiered storage is disabled, we would previously return
an offset -1 if the epoch queried fell below the start of our local log.

This doesn't match what happens in Kafka, which returns the next
available offset in a higher epoch. This behavior is matched by our
lookup when reading from cloud storage.

This patch updates the Kafka handler to return the start offset of our
local log if the requested term falls below the local log's beginning.

(cherry picked from commit 350c8ec)
@vbotbuildovich vbotbuildovich added this to the v23.1.x-next milestone Mar 7, 2023
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Mar 7, 2023
@andrwng andrwng marked this pull request as ready for review March 8, 2023 01:09
@andrwng andrwng merged commit 52bf084 into redpanda-data:v23.1.x Mar 8, 2023
@vshtokman vshtokman modified the milestones: v23.1.x-next, v23.1.3 Mar 22, 2023
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.

3 participants