chickenchickenlove commented on code in PR #24250:
URL: https://github.com/apache/kafka/pull/24250#discussion_r4737634833
##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsMembershipManager.java:
##########
@@ -92,20 +95,27 @@ private static class LocalAssignment {
public final Map<String, SortedSet<Integer>> warmupTasks;
public final boolean isGroupReady;
+ // Null for assignments received from brokers that do not provide
partition information.
Review Comment:
Yes, you are right. addressed it.
##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsMembershipManager.java:
##########
@@ -1122,7 +1174,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-21526
Review Comment:
Done!
--
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]