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/03 18:37:42 UTC

[lucene-solr] branch reference_impl_dev updated: @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_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 e16e407  @727 You still need this - if someone calls and no outstanding.
e16e407 is described below

commit e16e4070e778fd814ad749d438a2b629b667bea9
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());