mirror of https://github.com/apache/lucene.git
Fix TestPullReplica.testKillLeader
Somewhere along the way, this was broken and since the test is being excluded, nobody noticed
This commit is contained in:
parent
bcd90f1561
commit
6e81def01c
|
@ -472,7 +472,7 @@ public class TestPullReplica extends SolrCloudTestCase {
|
||||||
if (removeReplica) {
|
if (removeReplica) {
|
||||||
CollectionAdminRequest.addReplicaToShard(collectionName, "shard1", Replica.Type.NRT).process(cluster.getSolrClient());
|
CollectionAdminRequest.addReplicaToShard(collectionName, "shard1", Replica.Type.NRT).process(cluster.getSolrClient());
|
||||||
} else {
|
} else {
|
||||||
leaderJetty.stop();
|
leaderJetty.start();
|
||||||
}
|
}
|
||||||
waitForState("Expected collection to be 1x2", collectionName, clusterShape(1, 2));
|
waitForState("Expected collection to be 1x2", collectionName, clusterShape(1, 2));
|
||||||
unIgnoreException("No registered leader was found"); // Should have a leader from now on
|
unIgnoreException("No registered leader was found"); // Should have a leader from now on
|
||||||
|
|
Loading…
Reference in New Issue