Test: make test less evil
This commit is contained in:
parent
55986907e8
commit
5ccd44519a
|
@ -320,13 +320,15 @@ public class UpdateSettingsTests extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
assertFalse(mockAppender.sawUpdateSetting);
|
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()
|
client()
|
||||||
.admin()
|
.admin()
|
||||||
.indices()
|
.indices()
|
||||||
.prepareUpdateSettings("test")
|
.prepareUpdateSettings("test")
|
||||||
.setSettings(ImmutableSettings.builder()
|
.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();
|
.get();
|
||||||
|
|
||||||
// Make sure we log the change:
|
// Make sure we log the change:
|
||||||
|
|
Loading…
Reference in New Issue