d8tltanc commented on a change in pull request #8683:
URL: https://github.com/apache/kafka/pull/8683#discussion_r443794598
##########
File path:
clients/src/main/java/org/apache/kafka/clients/CommonClientConfigs.java
##########
@@ -103,6 +103,12 @@
Utils.join(SecurityProtocol.names(), ", ") + ".";
public static final String DEFAULT_SECURITY_PROTOCOL = "PLAINTEXT";
+ public static final String SOCKET_CONNECTION_SETUP_TIMEOUT_MS_CONFIG =
"socket.connection.setup.timeout.ms";
+ public static final String SOCKET_CONNECTION_SETUP_TIMEOUT_MS_DOC = "The
amount of time the client will wait for the initial socket connection to be
established. If the connection is not built before the timeout elapses the
network client will close the socket channel.";
+
+ public static final String SOCKET_CONNECTION_SETUP_TIMEOUT_MAX_MS_CONFIG =
"socket.connection.setup.timeout.max.ms";
+ public static final String SOCKET_CONNECTION_SETUP_TIMEOUT_MAX_MS_DOC =
"The maximum amount of time the client will wait for the initial socket
connection to be established. The connection setup timeout will increase
exponentially for each consecutive connection failure up to this maximum. To
avoid connection storms, a randomization factor of 0.2 will be applied to the
backoff resulting in a random range between 20% below and 20% above the
computed value.";
Review comment:
Yes. Refactored.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]