chickenchickenlove commented on code in PR #24250:
URL: https://github.com/apache/kafka/pull/24250#discussion_r4667042749


##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsMembershipManager.java:
##########
@@ -1203,39 +1281,37 @@ private void maybeReconcile() {
 
         SortedSet<TopicPartition> ownedTopicPartitionsFromSubscriptionState = 
new TreeSet<>(TOPIC_PARTITION_COMPARATOR);
         
ownedTopicPartitionsFromSubscriptionState.addAll(subscriptionState.assignedPartitions());
-        SortedSet<TopicPartition> ownedTopicPartitionsFromAssignedTasks =
-            topicPartitionsForActiveTasks(currentAssignment.activeTasks);
-        if 
(!ownedTopicPartitionsFromAssignedTasks.equals(ownedTopicPartitionsFromSubscriptionState))
 {
+
+        if 
(!previouslyAssignedAssignment.assignedPartitions.equals(ownedTopicPartitionsFromSubscriptionState))
 {

Review Comment:
   I agree that a partition mismatch can leave reconciliation stuck. 
   We’re already tracking this under KAFKA-21256 and addressing it separately 
in #23773.



-- 
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]

Reply via email to