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 17:10:30 UTC
[lucene-solr] branch reference_impl_dev updated: @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_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 2214178 @723 Remove semi hack, should not be needed now that we don't miss registering a queued listener.
2214178 is described below
commit 22141780568ec1430fb1e2e7f3c91614bbe11c77
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());