From 2064ba33f2e9e3f49cccb6427499248d68b42582 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Thu, 19 Feb 2015 14:51:55 +0100 Subject: [PATCH] [TEST] Never flush in the test where we rely on recovering from translog --- .../org/elasticsearch/index/store/CorruptedTranslogTests.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/java/org/elasticsearch/index/store/CorruptedTranslogTests.java b/src/test/java/org/elasticsearch/index/store/CorruptedTranslogTests.java index ca57afc6af4..7e4cb8f30c6 100644 --- a/src/test/java/org/elasticsearch/index/store/CorruptedTranslogTests.java +++ b/src/test/java/org/elasticsearch/index/store/CorruptedTranslogTests.java @@ -31,6 +31,7 @@ import org.elasticsearch.cluster.routing.ShardIterator; import org.elasticsearch.cluster.routing.ShardRouting; import org.elasticsearch.common.settings.ImmutableSettings; import org.elasticsearch.common.settings.Settings; +import org.elasticsearch.index.shard.IndexShard; import org.elasticsearch.monitor.fs.FsStats; import org.elasticsearch.test.ElasticsearchIntegrationTest; import org.elasticsearch.test.engine.MockInternalEngine; @@ -79,6 +80,7 @@ public class CorruptedTranslogTests extends ElasticsearchIntegrationTest { .put("index.number_of_replicas", 0) .put("index.refresh_interval", "-1") .put(MockInternalEngine.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 )); ensureYellow();