mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-01 16:39:11 +00:00
Test: mute testOldIndexes
Ensure greens times out often. See https://github.com/elastic/elasticsearch/issues/10434
This commit is contained in:
parent
9c209e46be
commit
59d6bd8881
@ -58,13 +58,7 @@ import java.nio.file.DirectoryStream;
|
|||||||
import java.nio.file.Files;
|
import java.nio.file.Files;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import java.nio.file.Paths;
|
import java.nio.file.Paths;
|
||||||
import java.util.ArrayList;
|
import java.util.*;
|
||||||
import java.util.Collections;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Locale;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.SortedSet;
|
|
||||||
import java.util.TreeSet;
|
|
||||||
|
|
||||||
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
||||||
import static org.hamcrest.CoreMatchers.equalTo;
|
import static org.hamcrest.CoreMatchers.equalTo;
|
||||||
@ -168,9 +162,15 @@ public class OldIndexBackwardsCompatibilityTests extends ElasticsearchIntegratio
|
|||||||
for (java.lang.reflect.Field field : Version.class.getDeclaredFields()) {
|
for (java.lang.reflect.Field field : Version.class.getDeclaredFields()) {
|
||||||
if (Modifier.isStatic(field.getModifiers()) && field.getType() == Version.class) {
|
if (Modifier.isStatic(field.getModifiers()) && field.getType() == Version.class) {
|
||||||
Version v = (Version) field.get(Version.class);
|
Version v = (Version) field.get(Version.class);
|
||||||
if (v.snapshot()) continue; // snapshots are unreleased, so there is no backcompat yet
|
if (v.snapshot()) {
|
||||||
if (v.onOrBefore(Version.V_0_20_6)) continue; // we can only test back one major lucene version
|
continue; // snapshots are unreleased, so there is no backcompat yet
|
||||||
if (v.equals(Version.CURRENT)) continue; // the current version is always compatible with itself
|
}
|
||||||
|
if (v.onOrBefore(Version.V_0_20_6)) {
|
||||||
|
continue; // we can only test back one major lucene version
|
||||||
|
}
|
||||||
|
if (v.equals(Version.CURRENT)) {
|
||||||
|
continue; // the current version is always compatible with itself
|
||||||
|
}
|
||||||
|
|
||||||
expectedVersions.add("index-" + v.toString() + ".zip");
|
expectedVersions.add("index-" + v.toString() + ".zip");
|
||||||
}
|
}
|
||||||
@ -190,6 +190,7 @@ public class OldIndexBackwardsCompatibilityTests extends ElasticsearchIntegratio
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@LuceneTestCase.AwaitsFix(bugUrl = "times out often , see : https://github.com/elastic/elasticsearch/issues/10434")
|
||||||
public void testOldIndexes() throws Exception {
|
public void testOldIndexes() throws Exception {
|
||||||
setupCluster();
|
setupCluster();
|
||||||
|
|
||||||
@ -209,10 +210,7 @@ public class OldIndexBackwardsCompatibilityTests extends ElasticsearchIntegratio
|
|||||||
assertBasicSearchWorks(indexName);
|
assertBasicSearchWorks(indexName);
|
||||||
assertBasicAggregationWorks(indexName);
|
assertBasicAggregationWorks(indexName);
|
||||||
assertRealtimeGetWorks(indexName);
|
assertRealtimeGetWorks(indexName);
|
||||||
if (version.equals(Version.V_0_90_13) == false) {
|
|
||||||
// norelease: 0.90.13 can take too long to create replicas, see https://github.com/elastic/elasticsearch/issues/10434
|
|
||||||
assertNewReplicasWork(indexName);
|
assertNewReplicasWork(indexName);
|
||||||
}
|
|
||||||
assertUpgradeWorks(indexName, isLatestLuceneVersion(version));
|
assertUpgradeWorks(indexName, isLatestLuceneVersion(version));
|
||||||
assertDeleteByQueryWorked(indexName, version);
|
assertDeleteByQueryWorked(indexName, version);
|
||||||
unloadIndex(indexName);
|
unloadIndex(indexName);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user