|
@@ -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.LuceneTestCase.AwaitsFix;
|
|
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;
|
|
@@ -76,6 +77,7 @@ import static org.hamcrest.Matchers.containsString;
|
|
import static org.hamcrest.Matchers.equalTo;
|
|
import static org.hamcrest.Matchers.equalTo;
|
|
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
|
|
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
|
|
|
|
|
|
|
|
+@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/30416")
|
|
public class ShrinkIndexIT extends ESIntegTestCase {
|
|
public class ShrinkIndexIT extends ESIntegTestCase {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -83,7 +85,6 @@ public class ShrinkIndexIT extends ESIntegTestCase {
|
|
return Arrays.asList(InternalSettingsPlugin.class);
|
|
return Arrays.asList(InternalSettingsPlugin.class);
|
|
}
|
|
}
|
|
|
|
|
|
- @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/30416")
|
|
|
|
public void testCreateShrinkIndexToN() {
|
|
public void testCreateShrinkIndexToN() {
|
|
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);
|