lianetm commented on code in PR #19595: URL: https://github.com/apache/kafka/pull/19595#discussion_r2067080515
########## clients/src/main/java/org/apache/kafka/clients/CommonClientConfigs.java: ########## @@ -88,8 +88,9 @@ public class CommonClientConfigs { "If provided, the backoff per host will increase exponentially for each consecutive connection failure, up to this maximum. After calculating the backoff increase, 20% random jitter is added to avoid connection storms."; public static final String RETRIES_CONFIG = "retries"; - public static final String RETRIES_DOC = "Setting a value greater than zero will cause the client to resend any request that fails with a potentially transient error." + - " It is recommended to set the value to either zero or `MAX_VALUE` and use corresponding timeout parameters to control how long a client should retry a request."; + public static final String RETRIES_DOC = "It is recommended to set the value to either `MAX_VALUE` or zero, and use corresponding timeout parameters to control how long a client should retry a request." + Review Comment: Exactly, MAX_VALUE is actually the default. That's why I intentionally flipped the order here (that's was actually part of the confusion, that the "it's recommended..." starting mentioning Zero). -- 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-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org