You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ab...@apache.org on 2019/01/28 17:55:57 UTC
[lucene-solr] branch branch_8x updated: SOLR-13072: Make sure the
new overseer leader is present.
This is an automated email from the ASF dual-hosted git repository.
ab pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/branch_8x by this push:
new 5e1b088 SOLR-13072: Make sure the new overseer leader is present.
5e1b088 is described below
commit 5e1b08878f070baae459b110380ff95e77d0d7bc
Author: Andrzej Bialecki <ab...@apache.org>
AuthorDate: Mon Jan 28 17:28:19 2019 +0100
SOLR-13072: Make sure the new overseer leader is present.
---
.../apache/solr/cloud/autoscaling/NodeMarkersRegistrationTest.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/solr/core/src/test/org/apache/solr/cloud/autoscaling/NodeMarkersRegistrationTest.java b/solr/core/src/test/org/apache/solr/cloud/autoscaling/NodeMarkersRegistrationTest.java
index 24781da..342b0e7 100644
--- a/solr/core/src/test/org/apache/solr/cloud/autoscaling/NodeMarkersRegistrationTest.java
+++ b/solr/core/src/test/org/apache/solr/cloud/autoscaling/NodeMarkersRegistrationTest.java
@@ -121,6 +121,11 @@ public class NodeMarkersRegistrationTest extends SolrCloudTestCase {
assertEquals(0, listener.addedNodes.size());
// wait until the new overseer is up
Thread.sleep(5000);
+ String newOverseerLeader;
+ do {
+ overSeerStatus = cluster.getSolrClient().request(CollectionAdminRequest.getOverseerStatus());
+ newOverseerLeader = (String) overSeerStatus.get("leader");
+ } while (newOverseerLeader == null || newOverseerLeader.equals(overseerLeader));
assertEquals(1, listener.lostNodes.size());
assertEquals(overseerLeader, listener.lostNodes.iterator().next());