SOLR-10160: HdfsTlogReplayBufferedWhileIndexingTest needs to be hardened.

This commit is contained in:
markrmiller 2017-02-19 14:34:57 -05:00
parent 80978d0574
commit 4804a06e2b
2 changed files with 8 additions and 2 deletions

View File

@ -283,7 +283,13 @@ public class TestInjection {
boolean enabled = pair.first();
int chanceIn100 = pair.second();
if (enabled && rand.nextInt(100) >= (100 - chanceIn100)) {
long rndTime = rand.nextInt(1000);
long rndTime;
if (rand.nextInt(10) > 2) {
rndTime = rand.nextInt(300);
} else {
rndTime = rand.nextInt(1000);
}
log.info("inject random update delay of {}ms", rndTime);
try {
Thread.sleep(rndTime);

View File

@ -96,7 +96,7 @@ public class TlogReplayBufferedWhileIndexingTest extends AbstractFullDistribZkTe
Thread.sleep(45000);
waitForThingsToLevelOut(440);
waitForThingsToLevelOut(600); // we can insert random update delays, so this can take a while, especially when beasting this test
Thread.sleep(2000);