mirror of https://github.com/apache/lucene.git
SOLR-15138: Send an intra-process message after ZkClient#create() call
This commit is contained in:
parent
8f56ae0a4b
commit
83ccf23fa2
|
@ -166,6 +166,7 @@ public class CreateCollectionCmd implements OverseerCollectionMessageHandler.Cmd
|
|||
ocmh.zkStateReader.getZkClient().create(collectionPath, data, CreateMode.PERSISTENT, true);
|
||||
clusterState = clusterState.copyWith(collectionName, command.collection);
|
||||
newColl = command.collection;
|
||||
ocmh.overseer.submit(new RefreshCollectionMessage(collectionName));
|
||||
} else {
|
||||
if (ocmh.getDistributedClusterStateUpdater().isDistributedStateUpdate()) {
|
||||
// The message has been crafted by CollectionsHandler.CollectionOperation.CREATE_OP and defines the QUEUE_OPERATION
|
||||
|
@ -300,6 +301,9 @@ public class CreateCollectionCmd implements OverseerCollectionMessageHandler.Cmd
|
|||
|
||||
coresToCreate.put(coreName, sreq);
|
||||
}
|
||||
if(isPRS) {
|
||||
ocmh.overseer.submit(new RefreshCollectionMessage(collectionName));
|
||||
}
|
||||
|
||||
// PRS collections did their own thing and we didn't create a StateChangeRecorder for them
|
||||
if (!isPRS && ocmh.getDistributedClusterStateUpdater().isDistributedStateUpdate()) {
|
||||
|
|
Loading…
Reference in New Issue