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:28:11 UTC

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


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

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