You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Fangmin Lv (JIRA)" <ji...@apache.org> on 2019/05/21 21:44:00 UTC
[jira] [Resolved] (ZOOKEEPER-3394) Delay observer reconnect when
all learner masters have been tried
[ https://issues.apache.org/jira/browse/ZOOKEEPER-3394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fangmin Lv resolved ZOOKEEPER-3394.
-----------------------------------
Resolution: Fixed
Fix Version/s: 3.6.0
Issue resolved by pull request 948
[https://github.com/apache/zookeeper/pull/948]
> Delay observer reconnect when all learner masters have been tried
> -----------------------------------------------------------------
>
> Key: ZOOKEEPER-3394
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3394
> Project: ZooKeeper
> Issue Type: Improvement
> Components: quorum
> Affects Versions: 3.6.0
> Reporter: Brian Nixon
> Priority: Minor
> Labels: pull-request-available
> Fix For: 3.6.0
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> Observers will disconnect when the voting peers perform a leader election and reconnect after. The delay zookeeper.observer.reconnectDelayMs was added to insulate the voting peers from the observers returning. With a large number of peers and the observerMaster feature active, this delay is mostly detrimental as it means that the observer is more likely to get hung up on connecting to a bad (down/corrupt) peer and it would be better off switching to a new one quickly.
> To retain the protective virtue of the delay, it makes sense to add a delay that after all observer master's in the list have been tried before iterating through the list again. In the case where observer master's are not active, this degenerates to a delay between connection attempts on the leader.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)