ashishkumar50 commented on code in PR #6985:
URL: https://github.com/apache/ozone/pull/6985#discussion_r1692587286
##########
hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/ratis/conf/RatisClientConfig.java:
##########
@@ -203,6 +203,21 @@ public void setExponentialPolicyMaxSleep(Duration
duration) {
exponentialPolicyMaxSleep = duration;
}
+ @Config(key = "client.exponential.backoff.max.retries",
+ defaultValue = "2147483647",
Review Comment:
`String.valueOf` doesn't return constant but `defaultValue` requires a
constant String.
Other way we can change like `"" + Integer.MAX_VALUE` but this has overhead
of `StringBuilder.`
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]