chevaris commented on issue #1253: URL: https://github.com/apache/curator/issues/1253#issuecomment-2714853196
I took a thread dump to check where the thread is stack when CuratorFrameworkImpl.close() -> EnsembleTracker.close() -> Watchers removal... is invoked in this specific case (ZK server down). Basically the close() is blocked waiting that watches removal is done in foreground, BUT this can NOT happen because the ZK server is down. In 5.7.1 this was really much faster, so I assume this was maybe done in background or in a different manner. I have seen that there has been some relevant changes in WatcherRemoval classes. Could you help me to debug this problem? "main" #1 prio=5 os_prio=0 cpu=703,45ms elapsed=11,04s tid=0x00007f1144019dd0 nid=0x229807 waiting on condition [0x00007f1149dfb000] java.lang.Thread.State: TIMED_WAITING (parking) at jdk.internal.misc.Unsafe.park(java.base@17.0.14/Native Method) - parking to wait for <0x00000005b4258b38> (a java.util.concurrent.CountDownLatch$Sync) at java.util.concurrent.locks.LockSupport.parkNanos(java.base@17.0.14/LockSupport.java:252) at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(java.base@17.0.14/AbstractQueuedSynchronizer.java:717) at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(java.base@17.0.14/AbstractQueuedSynchronizer.java:1074) at java.util.concurrent.CountDownLatch.await(java.base@17.0.14/CountDownLatch.java:276) at org.apache.curator.CuratorZookeeperClient.internalBlockUntilConnectedOrTimedOut(CuratorZookeeperClient.java:417) at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:80) at org.apache.curator.framework.imps.RemoveWatchesBuilderImpl.pathInForeground(RemoveWatchesBuilderImpl.java:232) at org.apache.curator.framework.imps.RemoveWatchesBuilderImpl.internalRemoval(RemoveWatchesBuilderImpl.java:86) at org.apache.curator.framework.imps.WatcherRemovalManager.removeWatchers(WatcherRemovalManager.java:59) at org.apache.curator.framework.imps.WatcherRemovalFacade.removeWatchers(WatcherRemovalFacade.java:54) at org.apache.curator.framework.imps.EnsembleTracker.close(EnsembleTracker.java:101) at org.apache.curator.framework.imps.CuratorFrameworkImpl.close(CuratorFrameworkImpl.java:382) at com.cheva.grantor.CuratorCloseSlow.tesCuratorCloseSlow(CuratorCloseSlow.java:28) -- 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: commits-unsubscr...@curator.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org