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/30 07:39:04 UTC

[lucene-solr] 16/16: @466 Wait in finish not just on 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

commit 6ce7d9df6af5a2a195e38705dc090e000004e32c
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Thu Jul 30 02:38:23 2020 -0500

    @466 Wait in finish not just on close.
---
 solr/core/src/java/org/apache/solr/update/SolrCmdDistributor.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/solr/core/src/java/org/apache/solr/update/SolrCmdDistributor.java b/solr/core/src/java/org/apache/solr/update/SolrCmdDistributor.java
index 39dc1fe..d000bfc 100644
--- a/solr/core/src/java/org/apache/solr/update/SolrCmdDistributor.java
+++ b/solr/core/src/java/org/apache/solr/update/SolrCmdDistributor.java
@@ -83,6 +83,7 @@ public class SolrCmdDistributor implements Closeable {
 
   public void finish() {
     assert !finished : "lifecycle sanity check";
+    solrClient.waitForOutstandingRequests();
     finished = true;
   }