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

c/log_eviction_stm: do not take the snapshot if start offset progressed #15731

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

mmaslankaprv
Copy link
Member

@mmaslankaprv mmaslankaprv commented Dec 18, 2023

Taking a snapshot is an asynchronous process which may interleave with Raft protocol receiving an install snapshot request. This way Raft start offset may already progress beyond what was requested by log_eviction_stm. This is correct but log_eviction_stm should skip writing a snapshot as it would fail either way.

Fixes: #15705

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v23.3.x
  • v23.2.x
  • v23.1.x

Release Notes

  • none

graphcareful
graphcareful previously approved these changes Dec 18, 2023
Taking a snapshot is an asynchronous process which may interleave with
Raft protocol receiving an install snapshot request. This way Raft start
offset may already progress beyond what was requested by
`log_eviction_stm`. This is correct but `log_eviction_stm` should skip
writing a snapshot as it would fail either way.

Fixes: redpanda-data#15705

Signed-off-by: Michal Maslanka <michal@redpanda.com>
@vbotbuildovich
Copy link
Collaborator

@mmaslankaprv mmaslankaprv merged commit 44e119f into redpanda-data:dev Dec 19, 2023
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants