From c8d2c7d851d13e1ac0697c66ce4050ff8567d770 Mon Sep 17 00:00:00 2001 From: Luca Cavanna Date: Thu, 19 Dec 2024 14:23:13 +0100 Subject: [PATCH] Fix NodeJoinExecutorTests#testSuccess (#119064) This is related to #119013, we can lower the minimum compatible version to read only compatible version to make the test succeed at all times. Closes #119052 --- muted-tests.yml | 3 --- .../cluster/coordination/NodeJoinExecutorTests.java | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/muted-tests.yml b/muted-tests.yml index 5b9997fbcd89f..6d2b71995e5aa 100644 --- a/muted-tests.yml +++ b/muted-tests.yml @@ -298,9 +298,6 @@ tests: issue: https://github.com/elastic/elasticsearch/issues/116777 - class: org.elasticsearch.xpack.security.authc.ldap.ActiveDirectoryRunAsIT issue: https://github.com/elastic/elasticsearch/issues/115727 -- class: org.elasticsearch.cluster.coordination.NodeJoinExecutorTests - method: testSuccess - issue: https://github.com/elastic/elasticsearch/issues/119052 # Examples: # diff --git a/server/src/test/java/org/elasticsearch/cluster/coordination/NodeJoinExecutorTests.java b/server/src/test/java/org/elasticsearch/cluster/coordination/NodeJoinExecutorTests.java index 492a142492e18..34add82e66557 100644 --- a/server/src/test/java/org/elasticsearch/cluster/coordination/NodeJoinExecutorTests.java +++ b/server/src/test/java/org/elasticsearch/cluster/coordination/NodeJoinExecutorTests.java @@ -467,7 +467,7 @@ public void testSuccess() { .build(); metaBuilder.put(indexMetadata, false); Metadata metadata = metaBuilder.build(); - NodeJoinExecutor.ensureIndexCompatibility(IndexVersions.MINIMUM_COMPATIBLE, IndexVersion.current(), metadata); + NodeJoinExecutor.ensureIndexCompatibility(IndexVersions.MINIMUM_READONLY_COMPATIBLE, IndexVersion.current(), metadata); } public static Settings.Builder randomCompatibleVersionSettings() {