mirror of https://github.com/apache/lucene.git
retry reading on connection loss
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1294193 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2f1622a1f6
commit
0f502b78c2
|
@ -171,7 +171,7 @@ public class Overseer implements NodeStateChangeListener, ShardLeaderListener {
|
|||
|
||||
private boolean amILeader() {
|
||||
try {
|
||||
ZkNodeProps props = ZkNodeProps.load(zkClient.getData("/overseer_elect/leader", null, null, false));
|
||||
ZkNodeProps props = ZkNodeProps.load(zkClient.getData("/overseer_elect/leader", null, null, true));
|
||||
if(myId.equals(props.get("id"))) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue