mirror of https://github.com/apache/lucene.git
SOLR-10160: HdfsTlogReplayBufferedWhileIndexingTest needs to be hardened.
This commit is contained in:
parent
80978d0574
commit
4804a06e2b
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue