You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by da...@apache.org on 2018/01/23 08:29:26 UTC
lucene-solr:jira/solr-11702: SOLR-11702: Update the test
Repository: lucene-solr
Updated Branches:
refs/heads/jira/solr-11702 bea9f6501 -> e8c17c140
SOLR-11702: Update the test
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/e8c17c14
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/e8c17c14
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/e8c17c14
Branch: refs/heads/jira/solr-11702
Commit: e8c17c140bd6539d5c2a54cea1d272a4881bbb08
Parents: bea9f65
Author: Cao Manh Dat <da...@apache.org>
Authored: Tue Jan 23 15:29:15 2018 +0700
Committer: Cao Manh Dat <da...@apache.org>
Committed: Tue Jan 23 15:29:15 2018 +0700
----------------------------------------------------------------------
.../src/test/org/apache/solr/cloud/HttpPartitionTest.java | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/e8c17c14/solr/core/src/test/org/apache/solr/cloud/HttpPartitionTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/cloud/HttpPartitionTest.java b/solr/core/src/test/org/apache/solr/cloud/HttpPartitionTest.java
index 8837ed4..52bcc6e 100644
--- a/solr/core/src/test/org/apache/solr/cloud/HttpPartitionTest.java
+++ b/solr/core/src/test/org/apache/solr/cloud/HttpPartitionTest.java
@@ -249,10 +249,9 @@ public class HttpPartitionTest extends AbstractFullDistribZkTestBase {
System.clearProperty("solr.cloud.wait-for-updates-with-stale-state-pause");
JettySolrRunner notLeaderJetty = getJettyOnPort(getReplicaPort(notLeaders.get(0)));
- notLeaderJetty.stop();
- //DOWNNODE will bring replica into DOWN state
- waitForState(testCollectionName, notLeaders.get(0).getName(), DOWN, 10000);
- notLeaderJetty.start();
+ ChaosMonkey.stop(notLeaderJetty);
+
+ ChaosMonkey.start(notLeaderJetty);
ensureAllReplicasAreActive(testCollectionName, "shard1", 1, 2, 100);
assertDocsExistInAllReplicas(notLeaders, testCollectionName, 1, 2);
} finally {