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] c/log_eviction_stm: do not request snapshot if already progressed #16178

Conversation

mmaslankaprv
Copy link
Member

@mmaslankaprv mmaslankaprv commented Jan 19, 2024

Backport of PR #15945

Fixes: #15985

It is perfectly possible that the install snapshot request will reach
the follower right before the `log_eviction_stm` asks for the snapshot
creation. In this case an `stm_manager` would do the check and throw an
exception informing that the snapshot can not be taken. In order to
handle the situation gracefully added a check in log eviction stm to
skip taking snapshot if start offset already progressed.

Fixes: redpanda-data#14220

Signed-off-by: Michal Maslanka <michal@redpanda.com>
(cherry picked from commit 4433851)
@piyushredpanda piyushredpanda added this to the v23.3.3 milestone Jan 19, 2024
@piyushredpanda piyushredpanda merged commit deb4f95 into redpanda-data:v23.3.x Jan 19, 2024
16 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[v23.3.x] c/log_eviction_stm: do not request snapshot if already progressed
2 participants