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/07/22 17:39:33 UTC
[lucene-solr] branch reference_impl updated: @304 Don't start new
replication if closed after waiting for existing replication to close.
This is an automated email from the ASF dual-hosted git repository.
markrmiller pushed a commit to branch reference_impl
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/reference_impl by this push:
new 2ad8d99 @304 Don't start new replication if closed after waiting for existing replication to close.
2ad8d99 is described below
commit 2ad8d993512cb3fac461a1a351135e66d845dafb
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Wed Jul 22 12:39:20 2020 -0500
@304 Don't start new replication if closed after waiting for existing replication to close.
---
solr/core/src/java/org/apache/solr/cloud/ZkController.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/solr/core/src/java/org/apache/solr/cloud/ZkController.java b/solr/core/src/java/org/apache/solr/cloud/ZkController.java
index c067e39..45a6b75 100644
--- a/solr/core/src/java/org/apache/solr/cloud/ZkController.java
+++ b/solr/core/src/java/org/apache/solr/cloud/ZkController.java
@@ -1664,6 +1664,7 @@ public class ZkController implements Closeable {
} catch (Exception e) {
ParWork.propegateInterrupt("Error closing previous replication attempt", e);
}
+ if (isClosed()) throw new AlreadyClosedException();
replicateFromLeader.startReplication(switchTransactionLog);
}
}