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

[v24.1.x] archival: clamp uploads to committed offset #18392

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 v24.1.x-next milestone May 10, 2024
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label May 10, 2024
@piyushredpanda
Copy link
Contributor

Known issue #14898

@piyushredpanda piyushredpanda merged commit b64a780 into redpanda-data:v24.1.x May 11, 2024
15 of 18 checks passed
@piyushredpanda piyushredpanda modified the milestones: v24.1.x-next, v24.1.3 May 23, 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.

3 participants