[TEST] Reduce likelyness of sync on every operation

This commit is contained in:
Simon Willnauer 2015-05-12 09:32:12 +02:00
parent 7c2a8dfb9e
commit 236f6ccad7
1 changed files with 1 additions and 1 deletions

View File

@ -441,7 +441,7 @@ public final class InternalTestCluster extends TestCluster {
if (random.nextBoolean()) {
builder.put(Translog.INDEX_TRANSLOG_FS_TYPE, RandomPicks.randomFrom(random, TranslogFile.Type.values()));
if (random.nextBoolean()) {
if (rarely(random)) {
builder.put(Translog.INDEX_TRANSLOG_SYNC_INTERVAL, 0); // 0 has special meaning to sync each op
} else {
builder.put(Translog.INDEX_TRANSLOG_SYNC_INTERVAL, RandomInts.randomIntBetween(random, 100, 5000));