[TEST] Reduce likelyness of sync on every operation
This commit is contained in:
parent
7c2a8dfb9e
commit
236f6ccad7
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue