-
Notifications
You must be signed in to change notification settings - Fork 484
how to close zk connection from a listener? #90
Copy link
Copy link
Open
Description


As shown in the above figure, I tried to close the connection in the listener function when it is in a Disconnected state. However, calling the close() method throws an InterruptedException. The code that throws the exception is as follows.

When an exception is thrown, the function returns directly, preventing it from reaching the subsequent close method and causing it to fail to close. Additionally, it is not possible to catch this exception externally because the zkClient internally has a thread that catches the exception.
so, how can I do to close it in the listener function?
please, help me. thanks
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels