mirror of https://github.com/apache/lucene.git
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:
parent
f387bbcf61
commit
2b1bea8279
|
@ -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
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue