chickenchickenlove commented on code in PR #24250:
URL: https://github.com/apache/kafka/pull/24250#discussion_r4737655385
##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsMembershipManager.java:
##########
@@ -1162,23 +1231,32 @@ private void maybeReconcile() {
"current assignment.");
return;
}
- if (reconciliationInProgress) {
+
+ if (isReconciliationInProgress()) {
log.trace("Ignoring reconciliation attempt. Another reconciliation
is already in progress. Assignment {}" +
" will be handled in the next reconciliation loop.",
targetAssignment);
return;
}
+ if (isPartialAssignmentReconciled() && (metadata.updateVersion() ==
lastReconciledMetadataVersion)) {
Review Comment:
@lucasbru
Thank you for the comments!
I've updated the implementation based on your review!
The implementation is now much simpler than before, and I think its overall
structure is now very similar to that of `AbstractMembershipManager`.
--
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]