[TEST] make sure number of shard is low in network corruption tests

This commit is contained in:
Simon Willnauer 2014-11-29 17:16:33 +01:00
parent 2d0309f0d4
commit ef8802d878
1 changed files with 1 additions and 0 deletions

View File

@ -325,6 +325,7 @@ public class CorruptedFileTest extends ElasticsearchIntegrationTest {
assertAcked(prepareCreate("test").setSettings(ImmutableSettings.builder()
.put(IndexMetaData.SETTING_NUMBER_OF_REPLICAS, "0")
.put(IndexMetaData.SETTING_NUMBER_OF_SHARDS, between(1, 4)) // don't go crazy here it must recovery fast
.put(InternalEngine.INDEX_FAIL_ON_CORRUPTION, true)
// This does corrupt files on the replica, so we can't check:
.put(MockFSDirectoryService.CHECK_INDEX_ON_CLOSE, false)