ivanyu commented on code in PR #13277:
URL: https://github.com/apache/kafka/pull/13277#discussion_r1616295494


##########
clients/src/main/java/org/apache/kafka/clients/CommonClientConfigs.java:
##########
@@ -219,6 +219,19 @@ public class CommonClientConfigs {
     public static final String DEFAULT_API_TIMEOUT_MS_DOC = "Specifies the 
timeout (in milliseconds) for client APIs. " +
             "This configuration is used as the default timeout for all client 
operations that do not specify a <code>timeout</code> parameter.";
 
+    public static final String METADATA_RECOVERY_STRATEGY_CONFIG = 
"metadata.recovery.strategy";
+    public static final String METADATA_RECOVERY_STRATEGY_DOC = "Controls how 
the client recovers when none of the brokers known to it is available. " +
+            "If set to <code>none</code>, the client fails. If set to 
<code>rebootstrap</code>, " +
+            "the client repeats the bootstrap process using 
<code>bootstrap.servers</code>. " +
+            "Rebootstrapping is useful when a client communicates with brokers 
so infrequently " +
+            "that the set of brokers may change entirely before the client 
refreshes metadata. " +
+            "Opportunities to rebootstrapping depend on connection 
establishing and reconnect timeouts and the broker count. " +
+            "The timeouts may prevent identifying brokers as unavailable 
simultaneously, which is necessary to trigger rebootstrapping. " +

Review Comment:
   This makes sense. Thank you, updated the doc



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

Reply via email to