soarez commented on code in PR #13558: URL: https://github.com/apache/kafka/pull/13558#discussion_r1205587123
########## checkstyle/suppressions.xml: ########## @@ -41,6 +41,8 @@ <suppress checks="NPathComplexity" files="(ClusterTestExtensions|KafkaApisBuilder).java"/> <suppress checks="MethodLength" files="(KafkaClusterTestKit).java"/> + <suppress checks="ImportControl" + files="(ZkBrokerRegistrationTest|DelegatingRequest|InstrumentedRequestProcessor|InstrumentedZooKeeperServer|ReceiptEvent|ZkBrokerRegistrationStubs).java"/> Review Comment: Is this intentional? Can't we sort the import statements to satisfy this Checkstyle rule? ########## core/src/main/scala/kafka/zk/KafkaZkClient.scala: ########## @@ -2113,7 +2113,12 @@ class KafkaZkClient private[zk] (zooKeeperClient: ZooKeeperClient, isSecure: Boo } private class CheckedEphemeral(path: String, data: Array[Byte]) extends Logging { + private var attempt = 0 + private val maxAttempt = 5 + private val backoffMs = 1000 Review Comment: Should the backoff value be calculated here then? The session timeout is available in `apply()` where `KafkaZkClient` is created. -- 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