Skip to content

Conversation

@chirag-wadhwa5
Copy link
Collaborator

@chirag-wadhwa5 chirag-wadhwa5 commented Nov 3, 2025

This PR is part of
KIP-1226.

It introduces a new field called deliveryCompleteCount in
writeShareGroupState RPC and ShareUpdate and ShareSnapshot. The
share partition now maintains inFlightTerminalCount (introduced
here) and it uses this
exact value to pass to the writeState request for
deliveryCompleteCount.

Reviewers: Andrew Schofield [email protected], Abhinav Dixit
[email protected]

@github-actions github-actions bot added triage PRs from the community core Kafka Broker KIP-932 Queues for Kafka clients labels Nov 3, 2025
@AndrewJSchofield AndrewJSchofield added ci-approved and removed triage PRs from the community labels Nov 3, 2025
@AndrewJSchofield AndrewJSchofield requested review from AndrewJSchofield and apoorvmittal10 and removed request for apoorvmittal10 November 3, 2025 09:03
Copy link
Member

@AndrewJSchofield AndrewJSchofield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the new PR. Looks good to me.

.setStateBatches(List.of(new WriteShareGroupStateRequestData.StateBatch()
.setFirstOffset(0)
.setLastOffset(10)
.setLastOffset(9)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally, we should not be changing this value for the test, rather adjust the deliveryCompleteCount according to the original test. Same for other tests in this PR.

Copy link
Contributor

@adixitconfluent adixitconfluent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes. LGTM.

@AndrewJSchofield AndrewJSchofield merged commit b900f2f into apache:trunk Nov 3, 2025
33 of 35 checks passed
AndrewJSchofield pushed a commit that referenced this pull request Nov 4, 2025
#20820)

This PR is part of

[KIP-1226](https://cwiki.apache.org/confluence/display/KAFKA/KIP-1226%3A+Introducing+Share+Partition+Lag+Persistence+and+Retrieval).

In [KAFKA-19797](#20810), a new
field deliveryCompleteCount was being sent by Share Partition to the
persister. This PR introduces deliveryCompleteCount in
ReadShareGroupStateSummary RPC so that it can later be used to calculate
the share partition lag.

Reviewers: Abhinav Dixit <[email protected]>, Sushant Mahajan
 <[email protected]>, Andrew Schofield <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-approved clients core Kafka Broker KIP-932 Queues for Kafka

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants