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] archival: clamp uploads to committed offset #18393

Merged

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #18285

nvartolomei and others added 3 commits May 10, 2024 12:38
The archival/tiered storage correctness assumption builds on the
(wrong) assumption that LSO is monotonic. Tiered storage doesn't have a
concept of suffix truncation so if that would happen it would lead
violations of correctness properties and diverging logs/undefined
behavior.

However, we have discovered that property does not hold if there are no
in-progress transaction and acks=0/1 or write caching is in use because
LSO falls back to "last visible index"[^1] which can get truncated.

Ref redpanda-data#18244

[^1]: https://github.com/redpanda-data/redpanda/blob/88ac775f9f7954330732024abfa6e9ed5c9c11fd/src/v/cluster/rm_stm.cc#L1322

(cherry picked from commit ff358cc)
This communicates better the type of offset. No functional
changes/cosmetic only.

(cherry picked from commit 2647d9f)
Outrageously verbose but for a good reason.

(cherry picked from commit 15ac281)
@vbotbuildovich vbotbuildovich added this to the v23.3.x-next milestone May 10, 2024
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label May 10, 2024
@nvartolomei nvartolomei merged commit 2a4f9f5 into redpanda-data:v23.3.x May 13, 2024
17 checks passed
@piyushredpanda piyushredpanda modified the milestones: v23.3.x-next, v23.3.16 May 19, 2024
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