SOLR-8722: Don't force a full ZkStateReader refresh on every Overseer operation

(cherry picked from commit 93133f5)
This commit is contained in:
Shalin Shekhar Mangar 2016-03-03 18:20:04 +05:30
parent d346af3994
commit e4712bb028
2 changed files with 4 additions and 2 deletions

View File

@ -28,6 +28,8 @@ Bug Fixes
Optimizations
----------------------
* SOLR-8722: Don't force a full ZkStateReader refresh on every Overseer operation.
(Scott Blum via shalin)
Other Changes
----------------------

View File

@ -208,8 +208,6 @@ public class OverseerCollectionMessageHandler implements OverseerMessageHandler
NamedList results = new NamedList();
try {
// force update the cluster state
zkStateReader.updateClusterState();
CollectionParams.CollectionAction action = CollectionParams.CollectionAction.get(operation);
if (action == null) {
throw new SolrException(ErrorCode.BAD_REQUEST, "Unknown operation:" + operation);
@ -2120,6 +2118,8 @@ public class OverseerCollectionMessageHandler implements OverseerMessageHandler
sendShardRequest(node, params, shardHandler, asyncId, requestMap);
processResponses(results, shardHandler, true, "ADDREPLICA failed to create replica", asyncId, requestMap);
waitForCoreNodeName(collection, node, coreName);
}
private void processResponses(NamedList results, ShardHandler shardHandler, boolean abortOnError, String msgOnError,