gabriellefu commented on code in PR #24115:
URL: https://github.com/apache/kafka/pull/24115#discussion_r4633139174
##########
clients/src/main/java/org/apache/kafka/clients/admin/internals/AdminMetadataManager.java:
##########
@@ -84,6 +87,11 @@ public class AdminMetadataManager {
*/
private long lastMetadataFetchAttemptMs = 0;
+ /**
+ * The number of successive metadata responses that did not change the
cluster nodes.
+ */
+ private final AtomicLong equivalentResponseCount = new AtomicLong(0);
Review Comment:
A plain long was the first version, but spotbugs flagged it with
AT_NONATOMIC_64BIT_PRIMITIVE (the writes in update and updateFailed) and
AT_NONATOMIC_OPERATIONS_ON_SHARED_VARIABLE (the increment). That's why I
changed it to AtomicLong
--
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]