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] Improved handling of truncation with ACKS=1 #16522

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #16475

Signed-off-by: Michal Maslanka <michal@redpanda.com>
(cherry picked from commit ec7b6ed)
If an offset was already visible a follower must not be allowed to
truncate it as it may lead to a situation in which an offset is visible
and not readable.

Visible batches has the same replication guarantees as committed batches
as leader still waits for the majority to acknowledge message at given
offset before making it visible to the readers. This makes it possible
not to truncate offsets which were previously visible.

Signed-off-by: Michal Maslanka <michal@redpanda.com>
(cherry picked from commit 3d9a794)
Added test checking if an offset that is visible on the leader is not
truncated on the followers.

Signed-off-by: Michal Maslanka <michal@redpanda.com>
(cherry picked from commit 8975291)
@vbotbuildovich vbotbuildovich added this to the v23.3.x-next milestone Feb 7, 2024
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Feb 7, 2024
@piyushredpanda piyushredpanda modified the milestones: v23.3.x-next, v23.3.5 Feb 7, 2024
@piyushredpanda piyushredpanda merged commit 69962d3 into redpanda-data:v23.3.x Feb 7, 2024
18 checks passed
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