attempt to harden test for apache jenkins

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1423945 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2012-12-19 16:53:57 +00:00
parent 232aaa42ed
commit 6f875e270f
1 changed files with 10 additions and 3 deletions

View File

@ -193,7 +193,7 @@ public class SyncSliceTest extends AbstractFullDistribZkTestBase {
//System.out.println("leader:" + leaderJetty.url);
//System.out.println("skip list:" + skipServers);
// we are skipping one nodes
// we are skipping 2 nodes
assertEquals(2, skipServers.size());
// more docs than can peer sync
@ -204,14 +204,21 @@ public class SyncSliceTest extends AbstractFullDistribZkTestBase {
commit();
Thread.sleep(100);
Thread.sleep(1000);
waitForRecoveriesToFinish(false);
// shard should be inconsistent
shardFailMessage = checkShardConsistency("shard1", true, false);
if (shardFailMessage == null) {
// try again
Thread.sleep(3000);
shardFailMessage = checkShardConsistency("shard1", true, false);
}
assertNotNull(
"shard1 shoul have just been set up to be inconsistent - but it's still consistent",
"shard1 should have just been set up to be inconsistent - but it's still consistent",
shardFailMessage);
jetties = new HashSet<CloudJettyRunner>();