From 8c3cb6c613de70574c6b90fb5349d98c5c2d0956 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Wed, 18 Feb 2015 14:02:23 +0100 Subject: [PATCH] [TEST] don't cache store stats in tests that ensure stats are correct --- .../org/elasticsearch/indices/settings/UpdateSettingsTests.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/java/org/elasticsearch/indices/settings/UpdateSettingsTests.java b/src/test/java/org/elasticsearch/indices/settings/UpdateSettingsTests.java index 3ffc50e691f..21e4b982fbb 100644 --- a/src/test/java/org/elasticsearch/indices/settings/UpdateSettingsTests.java +++ b/src/test/java/org/elasticsearch/indices/settings/UpdateSettingsTests.java @@ -36,6 +36,7 @@ import org.elasticsearch.index.engine.VersionConflictEngineException; import org.elasticsearch.index.merge.policy.TieredMergePolicyProvider; import org.elasticsearch.index.merge.scheduler.ConcurrentMergeSchedulerProvider; import org.elasticsearch.index.merge.scheduler.MergeSchedulerModule; +import org.elasticsearch.index.store.Store; import org.elasticsearch.index.store.support.AbstractIndexStore; import org.elasticsearch.test.ElasticsearchIntegrationTest; import org.junit.Test; @@ -140,6 +141,7 @@ public class UpdateSettingsTests extends ElasticsearchIntegrationTest { .put(TieredMergePolicyProvider.INDEX_MERGE_POLICY_SEGMENTS_PER_TIER, "2") .put(ConcurrentMergeSchedulerProvider.MAX_THREAD_COUNT, "1") .put(ConcurrentMergeSchedulerProvider.MAX_MERGE_COUNT, "2") + .put(Store.INDEX_STORE_STATS_REFRESH_INTERVAL, 0) // get stats all the time - no caching )); ensureGreen(); long termUpto = 0;