Mute testSplitFromOneToN and testCreateShrinkIndexToN on Windows

Relates #34080
This commit is contained in:
David Roberts 2018-09-26 14:02:14 +01:00
parent ba3ceeaccf
commit 1413ace74f
2 changed files with 8 additions and 0 deletions

View File

@ -23,6 +23,7 @@ import org.apache.lucene.search.Sort;
import org.apache.lucene.search.SortField;
import org.apache.lucene.search.SortedSetSelector;
import org.apache.lucene.search.SortedSetSortField;
import org.apache.lucene.util.Constants;
import org.elasticsearch.Version;
import org.elasticsearch.action.admin.cluster.reroute.ClusterRerouteResponse;
import org.elasticsearch.action.admin.cluster.state.ClusterStateRequest;
@ -83,6 +84,9 @@ public class ShrinkIndexIT extends ESIntegTestCase {
@TestLogging("org.elasticsearch.index.store:DEBUG")
public void testCreateShrinkIndexToN() {
assumeFalse("https://github.com/elastic/elasticsearch/issues/34080", 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]);

View File

@ -24,6 +24,7 @@ import org.apache.lucene.search.SortField;
import org.apache.lucene.search.SortedSetSelector;
import org.apache.lucene.search.SortedSetSortField;
import org.apache.lucene.search.join.ScoreMode;
import org.apache.lucene.util.Constants;
import org.elasticsearch.Version;
import org.elasticsearch.action.admin.cluster.state.ClusterStateRequest;
import org.elasticsearch.action.admin.cluster.state.ClusterStateResponse;
@ -91,6 +92,9 @@ public class SplitIndexIT extends ESIntegTestCase {
}
public void testSplitFromOneToN() {
assumeFalse("https://github.com/elastic/elasticsearch/issues/34080", Constants.WINDOWS);
splitToN(1, 5, 10);
client().admin().indices().prepareDelete("*").get();
int randomSplit = randomIntBetween(2, 6);