[jira] [Commented] (ZOOKEEPER-3218) zk server reopened,the interval for observer connect to the new leader is too long,then session expired
[ https://issues.apache.org/jira/browse/ZOOKEEPER-3218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16745824#comment-16745824 ] Hudson commented on ZOOKEEPER-3218: --- SUCCESS: Integrated in Jenkins build ZooKeeper-trunk #356 (See [https://builds.apache.org/job/ZooKeeper-trunk/356/]) ZOOKEEPER-3218: Add min notification interval property for fast leader (fangmin: rev 0b504dec95b09acb05b40505588f7cda8131fea6) * (edit) zookeeper-docs/src/main/resources/markdown/zookeeperAdmin.md * (edit) zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/FastLeaderElection.java > zk server reopened,the interval for observer connect to the new leader is too > long,then session expired > --- > > Key: ZOOKEEPER-3218 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3218 > Project: ZooKeeper > Issue Type: Bug > Environment: win7 32bits > zookeeper 3.4.6、3.4.13 >Reporter: yangoofy >Priority: Major > Labels: pull-request-available > Fix For: 3.6.0 > > Time Spent: 20m > Remaining Estimate: 0h > > two participants、one observer,zkclient connect to observer。 > Then,close the two participants,the zookeeper server cloesed > Ten seconds later,reopen the two participants,and leader selected > > But the observer can't connect to the new leader immediately。Because in > lookForLeader, the observer use blockingQueue(recvqueue) to offer/poll > notifications,when the recvqueue is empty,poll from recvqueue will be > blocked,and timeout is 200ms,400ms,800ms60s。 > For example,09:59:59 observer poll notification,recvqueue was empty and > timeout was 60s;10:00:00 two participants reopened and reselected;10:00:59 > observer polled notification,connected to the new leader > But the maxSessionTimeout default to 40s。The session expired > - > Please improve it:observer should connect to the new leader as soon as > possible -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (ZOOKEEPER-3218) zk server reopened,the interval for observer connect to the new leader is too long,then session expired
[ https://issues.apache.org/jira/browse/ZOOKEEPER-3218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16745788#comment-16745788 ] Hudson commented on ZOOKEEPER-3218: --- SUCCESS: Integrated in Jenkins build Zookeeper-trunk-single-thread #194 (See [https://builds.apache.org/job/Zookeeper-trunk-single-thread/194/]) ZOOKEEPER-3218: Add min notification interval property for fast leader (fangmin: rev 0b504dec95b09acb05b40505588f7cda8131fea6) * (edit) zookeeper-docs/src/main/resources/markdown/zookeeperAdmin.md * (edit) zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/FastLeaderElection.java > zk server reopened,the interval for observer connect to the new leader is too > long,then session expired > --- > > Key: ZOOKEEPER-3218 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3218 > Project: ZooKeeper > Issue Type: Bug > Environment: win7 32bits > zookeeper 3.4.6、3.4.13 >Reporter: yangoofy >Priority: Major > Labels: pull-request-available > Fix For: 3.6.0 > > Time Spent: 20m > Remaining Estimate: 0h > > two participants、one observer,zkclient connect to observer。 > Then,close the two participants,the zookeeper server cloesed > Ten seconds later,reopen the two participants,and leader selected > > But the observer can't connect to the new leader immediately。Because in > lookForLeader, the observer use blockingQueue(recvqueue) to offer/poll > notifications,when the recvqueue is empty,poll from recvqueue will be > blocked,and timeout is 200ms,400ms,800ms60s。 > For example,09:59:59 observer poll notification,recvqueue was empty and > timeout was 60s;10:00:00 two participants reopened and reselected;10:00:59 > observer polled notification,connected to the new leader > But the maxSessionTimeout default to 40s。The session expired > - > Please improve it:observer should connect to the new leader as soon as > possible -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (ZOOKEEPER-3218) zk server reopened,the interval for observer connect to the new leader is too long,then session expired
[ https://issues.apache.org/jira/browse/ZOOKEEPER-3218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16729186#comment-16729186 ] Brian Nixon commented on ZOOKEEPER-3218: We had similar issues which we addressed by making the polling interval configurable. Attaching our patch to this issue (it adds "zookeeper.fastleader.minNotificationInterval"). > zk server reopened,the interval for observer connect to the new leader is too > long,then session expired > --- > > Key: ZOOKEEPER-3218 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3218 > Project: ZooKeeper > Issue Type: Bug > Environment: win7 32bits > zookeeper 3.4.6、3.4.13 >Reporter: yangoofy >Priority: Major > > two participants、one observer,zkclient connect to observer。 > Then,close the two participants,the zookeeper server cloesed > Ten seconds later,reopen the two participants,and leader selected > > But the observer can't connect to the new leader immediately。Because in > lookForLeader, the observer use blockingQueue(recvqueue) to offer/poll > notifications,when the recvqueue is empty,poll from recvqueue will be > blocked,and timeout is 200ms,400ms,800ms60s。 > For example,09:59:59 observer poll notification,recvqueue was empty and > timeout was 60s;10:00:00 two participants reopened and reselected;10:00:59 > observer polled notification,connected to the new leader > But the maxSessionTimeout default to 40s。The session expired > - > Please improve it:observer should connect to the new leader as soon as > possible -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (ZOOKEEPER-3218) zk server reopened,the interval for observer connect to the new leader is too long,then session expired
[ https://issues.apache.org/jira/browse/ZOOKEEPER-3218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16728423#comment-16728423 ] maoling commented on ZOOKEEPER-3218: [~q_zero] except increasing the *maxSessionTimeout*, Do you hava any good idea? > zk server reopened,the interval for observer connect to the new leader is too > long,then session expired > --- > > Key: ZOOKEEPER-3218 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3218 > Project: ZooKeeper > Issue Type: Bug > Environment: win7 32bits > zookeeper 3.4.6、3.4.13 >Reporter: yangoofy >Priority: Major > > two participants、one observer,zkclient connect to observer。 > Then,close the two participants,the zookeeper server cloesed > Ten seconds later,reopen the two participants,and leader selected > > But the observer can't connect to the new leader immediately。Because in > lookForLeader, the observer use blockingQueue(recvqueue) to offer/poll > notifications,when the recvqueue is empty,poll from recvqueue will be > blocked,and timeout is 200ms,400ms,800ms60s。 > For example,09:59:59 observer poll notification,recvqueue was empty and > timeout was 60s;10:00:00 two participants reopened and reselected;10:00:59 > observer polled notification,connected to the new leader > But the maxSessionTimeout default to 40s。The session expired > - > Please improve it:observer should connect to the new leader as soon as > possible -- This message was sent by Atlassian JIRA (v7.6.3#76005)