Mute testSplitFromOneToN and testCreateShrinkIndexToN on Windows
Relates #34080
This commit is contained in:
parent
ba3ceeaccf
commit
1413ace74f
|
@ -23,6 +23,7 @@ import org.apache.lucene.search.Sort;
|
||||||
import org.apache.lucene.search.SortField;
|
import org.apache.lucene.search.SortField;
|
||||||
import org.apache.lucene.search.SortedSetSelector;
|
import org.apache.lucene.search.SortedSetSelector;
|
||||||
import org.apache.lucene.search.SortedSetSortField;
|
import org.apache.lucene.search.SortedSetSortField;
|
||||||
|
import org.apache.lucene.util.Constants;
|
||||||
import org.elasticsearch.Version;
|
import org.elasticsearch.Version;
|
||||||
import org.elasticsearch.action.admin.cluster.reroute.ClusterRerouteResponse;
|
import org.elasticsearch.action.admin.cluster.reroute.ClusterRerouteResponse;
|
||||||
import org.elasticsearch.action.admin.cluster.state.ClusterStateRequest;
|
import org.elasticsearch.action.admin.cluster.state.ClusterStateRequest;
|
||||||
|
@ -83,6 +84,9 @@ public class ShrinkIndexIT extends ESIntegTestCase {
|
||||||
|
|
||||||
@TestLogging("org.elasticsearch.index.store:DEBUG")
|
@TestLogging("org.elasticsearch.index.store:DEBUG")
|
||||||
public void testCreateShrinkIndexToN() {
|
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[][] possibleShardSplits = new int[][] {{8,4,2}, {9, 3, 1}, {4, 2, 1}, {15,5,1}};
|
||||||
int[] shardSplits = randomFrom(possibleShardSplits);
|
int[] shardSplits = randomFrom(possibleShardSplits);
|
||||||
assertEquals(shardSplits[0], (shardSplits[0] / shardSplits[1]) * shardSplits[1]);
|
assertEquals(shardSplits[0], (shardSplits[0] / shardSplits[1]) * shardSplits[1]);
|
||||||
|
|
|
@ -24,6 +24,7 @@ import org.apache.lucene.search.SortField;
|
||||||
import org.apache.lucene.search.SortedSetSelector;
|
import org.apache.lucene.search.SortedSetSelector;
|
||||||
import org.apache.lucene.search.SortedSetSortField;
|
import org.apache.lucene.search.SortedSetSortField;
|
||||||
import org.apache.lucene.search.join.ScoreMode;
|
import org.apache.lucene.search.join.ScoreMode;
|
||||||
|
import org.apache.lucene.util.Constants;
|
||||||
import org.elasticsearch.Version;
|
import org.elasticsearch.Version;
|
||||||
import org.elasticsearch.action.admin.cluster.state.ClusterStateRequest;
|
import org.elasticsearch.action.admin.cluster.state.ClusterStateRequest;
|
||||||
import org.elasticsearch.action.admin.cluster.state.ClusterStateResponse;
|
import org.elasticsearch.action.admin.cluster.state.ClusterStateResponse;
|
||||||
|
@ -91,6 +92,9 @@ public class SplitIndexIT extends ESIntegTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testSplitFromOneToN() {
|
public void testSplitFromOneToN() {
|
||||||
|
|
||||||
|
assumeFalse("https://github.com/elastic/elasticsearch/issues/34080", Constants.WINDOWS);
|
||||||
|
|
||||||
splitToN(1, 5, 10);
|
splitToN(1, 5, 10);
|
||||||
client().admin().indices().prepareDelete("*").get();
|
client().admin().indices().prepareDelete("*").get();
|
||||||
int randomSplit = randomIntBetween(2, 6);
|
int randomSplit = randomIntBetween(2, 6);
|
||||||
|
|
Loading…
Reference in New Issue