You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2020/08/30 15:26:44 UTC
[lucene-solr] branch reference_impl_dev updated: @631 Try to avoid
some ugly race here.
This is an automated email from the ASF dual-hosted git repository.
markrmiller pushed a commit to branch reference_impl_dev
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/reference_impl_dev by this push:
new a810387 @631 Try to avoid some ugly race here.
a810387 is described below
commit a8103870ae937859960e617b7fa869c915fb0475
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Sun Aug 30 10:26:20 2020 -0500
@631 Try to avoid some ugly race here.
---
.../java/org/apache/solr/cloud/api/collections/CreateCollectionCmd.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/solr/core/src/java/org/apache/solr/cloud/api/collections/CreateCollectionCmd.java b/solr/core/src/java/org/apache/solr/cloud/api/collections/CreateCollectionCmd.java
index 6c20391..c07cbc8 100644
--- a/solr/core/src/java/org/apache/solr/cloud/api/collections/CreateCollectionCmd.java
+++ b/solr/core/src/java/org/apache/solr/cloud/api/collections/CreateCollectionCmd.java
@@ -194,7 +194,7 @@ public class CreateCollectionCmd implements OverseerCollectionMessageHandler.Cmd
ocmh.zkStateReader.waitForState(collectionName, 10, TimeUnit.SECONDS, (n, c) -> c != null);
// refresh cluster state
- clusterState = ocmh.cloudManager.getClusterStateProvider().getClusterState();
+ clusterState = ocmh.zkStateReader.getClusterState();
List<ReplicaPosition> replicaPositions = null;
// try {