chia7712 commented on code in PR #20748:
URL: https://github.com/apache/kafka/pull/20748#discussion_r2481887160


##########
clients/src/main/java/org/apache/kafka/common/utils/ExponentialBackoff.java:
##########
@@ -42,6 +42,9 @@ public ExponentialBackoff(long initialInterval, int 
multiplier, long maxInterval
         this.initialInterval = Math.min(maxInterval, initialInterval);
         this.multiplier = multiplier;
         this.maxInterval = maxInterval;
+        if (jitter < 0 || jitter > 1) {
+            throw new IllegalArgumentException("jitter must be between 0 and 
1");

Review Comment:
   Plesae include the `jitter` value in the error message. It will be very 
useful for debugging



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