wangzhigang1999 commented on code in PR #7840:
URL: https://github.com/apache/kyuubi/pull/7840#discussion_r4545374155
##########
kyuubi-ha/src/main/scala/org/apache/kyuubi/ha/client/zookeeper/ZookeeperDiscoveryClient.scala:
##########
@@ -230,27 +230,33 @@ class ZookeeperDiscoveryClient(conf: KyuubiConf) extends
DiscoveryClient {
external: Boolean = false): Unit = {
val instance = serviceDiscovery.fe.connectionUrl
watcher = new DeRegisterWatcher(instance, serviceDiscovery)
- serviceNode = createPersistentNode(
+ val node = createPersistentNode(
Review Comment:
My initial concern was holding the lock during the network I/O in
node.close(). I tested this yesterday with network delays and connection loss
and didn’t observe any additional shutdown issues, so I’m fine with
synchronizing both methods.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]