pprovenzano commented on code in PR #14083: URL: https://github.com/apache/kafka/pull/14083#discussion_r1295289182
########## core/src/main/scala/kafka/server/DelegationTokenManager.scala: ########## @@ -186,57 +134,28 @@ class DelegationTokenManager(val config: KafkaConfig, val tokenMaxLifetime: Long = config.delegationTokenMaxLifeMs val defaultTokenRenewTime: Long = config.delegationTokenExpiryTimeMs val tokenRemoverScanInterval: Long = config.delegationTokenExpiryCheckIntervalMs - private val lock = new Object() - private var tokenChangeListener: ZkNodeChangeNotificationListener = _ def startup(): Unit = { if (config.tokenAuthEnabled) { - zkClient.createDelegationTokenPaths() loadCache() - tokenChangeListener = new ZkNodeChangeNotificationListener(zkClient, DelegationTokenChangeNotificationZNode.path, DelegationTokenChangeNotificationSequenceZNode.SequenceNumberPrefix, TokenChangedNotificationHandler) - tokenChangeListener.init() } } def shutdown(): Unit = { if (config.tokenAuthEnabled) { Review Comment: Done -- 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