Skip to content

[v25.3.x] coordinated compaction improvements#29520

Open
bashtanov wants to merge 2 commits intoredpanda-data:v25.3.xfrom
bashtanov:manual-backport-29486-v25.3.x-503
Open

[v25.3.x] coordinated compaction improvements#29520
bashtanov wants to merge 2 commits intoredpanda-data:v25.3.xfrom
bashtanov:manual-backport-29486-v25.3.x-503

Conversation

@bashtanov
Copy link
Contributor

Backport of PR #29486

An update to group offsets may be lost due to leadership transfers. We
would previously tolerate it: partitions are typically written into and
compacted, so coordination offsets often move and a new update will get
through. Change it so that such updates are never lost:
- Store current leadership term.
- In each term leader to distribute group offsets to followers
regardless whether they changed.
- When replica offsets are updated with group updates do not recalculate
group updates. This is to avoid pointless updates.

(cherry picked from commit 386a488)
Make resilient to leader transfers which may happen under load:
- increase timeouts;
- check for current leader;
- retry on errc::not_leader;
- allow for configuration batches offsets.

Also add a test for no lost updates after a leadership transfer.

(cherry picked from commit e6fc8df)
@bashtanov bashtanov added this to the v25.3.x-next milestone Feb 4, 2026
@bashtanov bashtanov added the kind/backport PRs targeting a stable branch label Feb 4, 2026
@bashtanov bashtanov marked this pull request as ready for review February 4, 2026 15:05
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.

1 participant