Test: make test less evil

This commit is contained in:
mikemccand 2014-07-23 05:35:52 -04:00
parent 55986907e8
commit 5ccd44519a
1 changed files with 4 additions and 2 deletions

View File

@ -320,13 +320,15 @@ public class UpdateSettingsTests extends ElasticsearchIntegrationTest {
assertFalse(mockAppender.sawUpdateSetting);
// Now make a live change to reduce allowed merge threads:
// Now make a live change to reduce allowed merge threads, and waaay over-throttle merging so they fall behind:
client()
.admin()
.indices()
.prepareUpdateSettings("test")
.setSettings(ImmutableSettings.builder()
.put(ConcurrentMergeSchedulerProvider.MAX_THREAD_COUNT, "1"))
.put(ConcurrentMergeSchedulerProvider.MAX_THREAD_COUNT, "1")
.put(AbstractIndexStore.INDEX_STORE_THROTTLE_MAX_BYTES_PER_SEC, "10kb")
)
.get();
// Make sure we log the change: