[TEST] Enable DEBUG logging on testCreateShrinkIndexToN

This commit is contained in:
Yannick Welsch 2018-09-20 18:16:20 +02:00
parent b9e2b5cfec
commit db327818dd
1 changed files with 2 additions and 1 deletions

View File

@ -62,6 +62,7 @@ import org.elasticsearch.index.shard.IndexShard;
import org.elasticsearch.indices.IndicesService;
import org.elasticsearch.test.ESIntegTestCase;
import org.elasticsearch.test.VersionUtils;
import org.elasticsearch.test.junit.annotations.TestLogging;
import java.util.Arrays;
import java.util.List;
@ -81,8 +82,8 @@ public class ShrinkIndexIT extends ESIntegTestCase {
return false;
}
@TestLogging("org.elasticsearch.index.store:DEBUG")
public void testCreateShrinkIndexToN() {
assumeFalse("Broken on windows - https://github.com/elastic/elasticsearch/issues/33857", Constants.WINDOWS);
int[][] possibleShardSplits = new int[][] {{8,4,2}, {9, 3, 1}, {4, 2, 1}, {15,5,1}};
int[] shardSplits = randomFrom(possibleShardSplits);
assertEquals(shardSplits[0], (shardSplits[0] / shardSplits[1]) * shardSplits[1]);