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/29 10:22:33 UTC

[lucene-solr] branch master 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 master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/master by this push:
     new 1cfbd3e  SOLR-13072: Make sure the new overseer leader is present.
1cfbd3e is described below

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