SOLR-5255: Remove unnecessary call to fetch and watch live nodes in ZkStateReader cluster watcher

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1529433 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2013-10-05 11:08:26 +00:00
parent f387bbcf61
commit 2b1bea8279
2 changed files with 3 additions and 5 deletions

View File

@ -103,6 +103,9 @@ Bug Fixes
* SOLR-5301: DELETEALIAS command prints CREATEALIAS in logs (janhoy)
* SOLR-5255: Remove unnecessary call to fetch and watch live nodes in ZkStateReader
cluster watcher. (Jessica Cheng via shalin)
Security
----------------------

View File

@ -218,11 +218,6 @@ public class ZkStateReader {
Stat stat = new Stat();
byte[] data = zkClient.getData(CLUSTER_STATE, thisWatch, stat ,
true);
List<String> liveNodes = zkClient.getChildren(
LIVE_NODES_ZKNODE, this, true);
Set<String> liveNodesSet = new HashSet<String>();
liveNodesSet.addAll(liveNodes);
Set<String> ln = ZkStateReader.this.clusterState.getLiveNodes();
ClusterState clusterState = ClusterState.load(stat.getVersion(), data, ln);
// update volatile