chickenchickenlove commented on code in PR #24250:
URL: https://github.com/apache/kafka/pull/24250#discussion_r4614320258
##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsMembershipManager.java:
##########
@@ -1108,7 +1221,24 @@ private void processAssignmentReceived(Map<String,
SortedSet<Integer>> activeTas
}
private boolean targetAssignmentReconciled() {
- return currentAssignment.equals(targetAssignment);
+ // A new member epoch may assign the same tasks after a
partition-count change.
+ // With client-side metadata resolution, stale but known counts can
produce
+ // incomplete input partitions while all tasks are considered resolved.
+ // This check may therefore report completion before the client
observes
+ // the updated counts; a later metadata update alone does not reopen
reconciliation.
+ //
+ // This limitation is accepted when broker-provided assignment
metadata is
+ // unavailable. Local metadata alone cannot establish which partition
counts
+ // the coordinator used for the assignment.
+ // TODO: KAFKA-21256
Review Comment:
My bad, not KAFKA-21256, KAFKA-21526.
Addressed it!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]