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

[v22.3.x] admin: map replicated_entry_truncated error to 503 http error code #10695

Merged

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #8494
Fixes #10694,

When leader changed while request is replicating, entry can be truncated
This is known raft situation when we get new leader while previous
is trying to replicate log
It should be classificated same as leadership_transfer_in_progress
We should map this error to 503 http error code

(cherry picked from commit a6d4a7b)
@vbotbuildovich vbotbuildovich added this to the v22.3.x-next milestone May 11, 2023
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label May 11, 2023
@ztlpn ztlpn marked this pull request as ready for review May 11, 2023 13:33
@ztlpn ztlpn merged commit f2c6e81 into redpanda-data:v22.3.x May 11, 2023
8 checks passed
@piyushredpanda piyushredpanda modified the milestones: v22.3.x-next, v22.3.19 May 12, 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.

None yet

4 participants