mirror of https://github.com/apache/lucene.git
SOLR-8722: Don't force a full ZkStateReader refresh on every Overseer operation
This commit is contained in:
parent
d87d8da17d
commit
93133f54fd
|
@ -31,6 +31,8 @@ Bug Fixes
|
|||
|
||||
Optimizations
|
||||
----------------------
|
||||
* SOLR-8722: Don't force a full ZkStateReader refresh on every Overseer operation.
|
||||
(Scott Blum via shalin)
|
||||
|
||||
Other Changes
|
||||
----------------------
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue