i3wangyi commented on a change in pull request #662: Mitigate controller
leadership switch latency - improve leader -> standby
URL: https://github.com/apache/helix/pull/662#discussion_r373747873
##########
File path:
helix-core/src/main/java/org/apache/helix/manager/zk/ZKHelixManager.java
##########
@@ -780,13 +780,10 @@ public void disconnect() {
// TODO reset user defined handlers only
// TODO Fix the issue that when connection disconnected, reset handlers
will be blocked. -- JJ
- // This is because reset logic contains ZK operations.
- resetHandlers(true);
-
- if (_leaderElectionHandler != null) {
- _leaderElectionHandler.reset(true);
+ // remove every subscribed listener
+ if (_zkclient != null) {
+ _zkclient.unsubscribeAll();
Review comment:
Good point! I will add the test (expire the session and compare the
callhandlers before and after)
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]