brandboat commented on code in PR #20748:
URL: https://github.com/apache/kafka/pull/20748#discussion_r2481966894
##########
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:
thanks, updated in
[5d15580](https://github.com/apache/kafka/pull/20748/commits/5d15580679eb2dcde4504fa1a6a7accaa8241421)
--
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]