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/09/04 11:16:14 UTC

[lucene-solr] 08/13: @727 You still need this - if someone calls and no outstanding.

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 6ba3eb88f5d775d948ee584bf06b9ab50ba4ae55
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Thu Sep 3 13:35:22 2020 -0500

    @727 You still need this - if someone calls and no outstanding.
---
 .../src/java/org/apache/solr/client/solrj/impl/Http2SolrClient.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/Http2SolrClient.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/Http2SolrClient.java
index 0c7f803..0f0f536 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/Http2SolrClient.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/Http2SolrClient.java
@@ -895,7 +895,9 @@ public class Http2SolrClient extends SolrClient {
 
     public void waitForComplete() {
       if (log.isDebugEnabled()) log.debug("Before wait for outstanding requests registered: {} arrived: {}", phaser.getRegisteredParties(), phaser.getArrivedParties());
-
+      if (phaser.getUnarrivedParties() <= 1) {
+        return;
+      }
       int arrival = phaser.arriveAndAwaitAdvance();
 
      // phaser.awaitAdvance(phaser.arriveAndDeregister());