wangzhigang1999 commented on PR #7840:
URL: https://github.com/apache/kyuubi/pull/7840#issuecomment-6906871175

   LGTM. Could you update the PR description to reflect the method-level 
synchronization? It still says close() runs outside the lock. I'll merge once 
that's updated.
   cc @ruanwenjun I also tested synchronizing watchNode() on JDK 17 and 25. In 
a controlled ZooKeeper network-blackhole test, shutdown took ~24–29s with that 
extra lock versus ~8–10s without it. I'd keep watchNode() unsynchronized, so 
volatile and the null guard still serve a purpose. Clearing serviceNode before 
closing lets late callbacks skip rearming, while the local node retains the 
reference for closing.


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

Reply via email to