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:
Sami Siren 2012-02-27 16:00:27 +00:00
parent 2f1622a1f6
commit 0f502b78c2
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}