You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Hangleton (via GitHub)" <gi...@apache.org> on 2023/02/03 12:13:32 UTC

[GitHub] [kafka] Hangleton commented on a diff in pull request #11627: KAFKA-13565: add consumer exponential backoff for KIP-580

Hangleton commented on code in PR #11627:
URL: https://github.com/apache/kafka/pull/11627#discussion_r1095735143


##########
clients/src/main/java/org/apache/kafka/common/utils/ExponentialBackoff.java:
##########
@@ -32,7 +32,16 @@
     private final double expMax;
     private final long initialInterval;
     private final double jitter;
+    private long attemptedCount = 0;

Review Comment:
   Is it guaranteed instances of this class are confined to one thread hence no synchronization is needed?



-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org