[TEST] use the correct translog setting

This commit is contained in:
Shay Banon 2015-05-11 10:24:19 +02:00
parent 5dc8b99365
commit 9bd5df1e31
1 changed files with 3 additions and 1 deletions

View File

@ -20,6 +20,7 @@
package org.elasticsearch.index.store;
import com.carrotsearch.ant.tasks.junit4.dependencies.com.google.common.collect.Lists;
import com.carrotsearch.randomizedtesting.annotations.Repeat;
import com.carrotsearch.randomizedtesting.generators.RandomPicks;
import org.elasticsearch.action.admin.cluster.node.stats.NodesStatsResponse;
@ -33,6 +34,7 @@ import org.elasticsearch.common.io.PathUtils;
import org.elasticsearch.common.settings.ImmutableSettings;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.index.shard.IndexShard;
import org.elasticsearch.index.translog.Translog;
import org.elasticsearch.monitor.fs.FsStats;
import org.elasticsearch.test.ElasticsearchIntegrationTest;
import org.elasticsearch.test.engine.MockEngineSupport;
@ -80,7 +82,7 @@ public class CorruptedTranslogTests extends ElasticsearchIntegrationTest {
.put("index.refresh_interval", "-1")
.put(MockEngineSupport.FLUSH_ON_CLOSE_RATIO, 0.0d) // never flush - always recover from translog
.put(IndexShard.INDEX_FLUSH_ON_CLOSE, false) // never flush - always recover from translog
.put("index.gateway.local.sync", "1s") // fsync the translog every second
.put(Translog.INDEX_TRANSLOG_SYNC_INTERVAL, "1s") // fsync the translog every second
));
ensureYellow();