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:10 UTC

[lucene-solr] 04/13: @723 Remove semi hack, should not be needed now that we don't miss registering a queued listener.

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 072951f4637da009d45b290240fed5e0d38e30d4
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Thu Sep 3 12:10:09 2020 -0500

    @723 Remove semi hack, should not be needed now that we don't miss registering a queued listener.
---
 .../src/java/org/apache/solr/client/solrj/impl/Http2SolrClient.java   | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

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 32b95bd..ade6175 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
@@ -904,9 +904,7 @@ 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());