Skip to content

KAFKA-20736: Improve share session handling on leader change#22766

Draft
AndrewJSchofield wants to merge 1 commit into
apache:trunkfrom
AndrewJSchofield:KAFKA-20736-2
Draft

KAFKA-20736: Improve share session handling on leader change#22766
AndrewJSchofield wants to merge 1 commit into
apache:trunkfrom
AndrewJSchofield:KAFKA-20736-2

Conversation

@AndrewJSchofield

@AndrewJSchofield AndrewJSchofield commented Jul 6, 2026

Copy link
Copy Markdown
Member

In some situations, the share consumer does not tidy up share sessions
sufficiently on leadership change. In particular, if a broker loses
leadership of a partition, the share consumer should send a further
ShareFetch/ShareAcknowledge to remove the partition from its share
session. In most cases, this removal happens naturally, but it depends
upon whether the share consumer has other requests to send to that
broker. This PR tidies up the maintenance of share sessions when
leadership changes occur.

@AndrewJSchofield AndrewJSchofield marked this pull request as draft July 6, 2026 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant