We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 892b7d5 commit a3e2d2aCopy full SHA for a3e2d2a
qa/full-cluster-restart/src/test/java/org/elasticsearch/upgrades/FullClusterRestartIT.java
@@ -430,7 +430,10 @@ public void testShrinkAfterUpgrade() throws IOException {
430
if (runningAgainstOldCluster) {
431
XContentBuilder mappingsAndSettings = jsonBuilder();
432
mappingsAndSettings.startObject();
433
- if (oldClusterVersion.major == 5 && randomBoolean()) {
+ // single type was added in 5.5.0 (see #24317)
434
+ if (oldClusterVersion.onOrAfter(Version.V_5_5_0) &&
435
+ oldClusterVersion.before(Version.V_6_0_0_beta1) &&
436
+ randomBoolean()) {
437
{
438
// test that mapping.single_type is correctly propagated on the shrinked index,
439
// if not, search will fail.
0 commit comments