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/10/13 21:37:47 UTC
[lucene-solr] branch reference_impl_dev updated: @991 Don't wait
very long - should not take long to update the state and can hit a bad race
rarely that eats the timeout.
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 b677f32 @991 Don't wait very long - should not take long to update the state and can hit a bad race rarely that eats the timeout.
b677f32 is described below
commit b677f32268ea4c1cfc366ee2dbe4aa437eecab29
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Tue Oct 13 16:36:04 2020 -0500
@991 Don't wait very long - should not take long to update the state and can hit a bad race rarely that eats the timeout.
---
.../java/org/apache/solr/cloud/api/collections/DeleteCollectionCmd.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/solr/core/src/java/org/apache/solr/cloud/api/collections/DeleteCollectionCmd.java b/solr/core/src/java/org/apache/solr/cloud/api/collections/DeleteCollectionCmd.java
index 695bafe..9f2c057 100644
--- a/solr/core/src/java/org/apache/solr/cloud/api/collections/DeleteCollectionCmd.java
+++ b/solr/core/src/java/org/apache/solr/cloud/api/collections/DeleteCollectionCmd.java
@@ -151,7 +151,7 @@ public class DeleteCollectionCmd implements OverseerCollectionMessageHandler.Cmd
// wait for a while until we don't see the collection
if (zkStateReader.getClusterState().getCollectionOrNull(collection) != null) {
- zkStateReader.waitForState(collection, 15, TimeUnit.SECONDS, (collectionState) -> collectionState == null);
+ zkStateReader.waitForState(collection, 5, TimeUnit.SECONDS, (collectionState) -> collectionState == null);
}
} catch (Exception e) {
log.error("Exception while removing collection", e);