From 09222dbb39b31be02f49a849d0567223f2d9aff5 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Mon, 6 Oct 2025 11:19:41 -0700 Subject: [PATCH 1/2] Explicitly cleanup test index with shared data path This commit adds explicit cleanup of a test index using a shared data path. Otherwise the rest test infra tries to clean it up, which checks the data_path setting, and emits a warning which fails the test. closes https://github.com/elastic/elasticsearch/issues/132223 --- muted-tests.yml | 3 --- .../resources/rest-api-spec/test/mdp/10_basic.yml | 7 +++++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/muted-tests.yml b/muted-tests.yml index 6e7df82f43b16..c25e6e882fad6 100644 --- a/muted-tests.yml +++ b/muted-tests.yml @@ -363,9 +363,6 @@ tests: - class: org.elasticsearch.xpack.restart.FullClusterRestartIT method: testWatcherWithApiKey {cluster=UPGRADED} issue: https://github.com/elastic/elasticsearch/issues/131964 -- class: org.elasticsearch.test.rest.yaml.MDPYamlTestSuiteIT - method: test {yaml=mdp/10_basic/Index using shared data path} - issue: https://github.com/elastic/elasticsearch/issues/132223 - class: org.elasticsearch.xpack.sql.qa.mixed_node.SqlCompatIT method: testNullsOrderWithMissingOrderSupportQueryingNewNode issue: https://github.com/elastic/elasticsearch/issues/132249 diff --git a/qa/multi-data-path/src/yamlRestTest/resources/rest-api-spec/test/mdp/10_basic.yml b/qa/multi-data-path/src/yamlRestTest/resources/rest-api-spec/test/mdp/10_basic.yml index 27d0af64a8017..ceee47bbd896e 100644 --- a/qa/multi-data-path/src/yamlRestTest/resources/rest-api-spec/test/mdp/10_basic.yml +++ b/qa/multi-data-path/src/yamlRestTest/resources/rest-api-spec/test/mdp/10_basic.yml @@ -29,3 +29,10 @@ op_type: index - match: { result: updated } + + # every time the data_path setting is accessed this warning is generated, so we must cleanup explicitly to ignore it + - do: + warnings: + - "[index.data_path] setting was deprecated in Elasticsearch and will be removed in a future release. See the deprecation documentation for the next major version." + indices.delete: + index: test_index From c057df36c628630e4bbe503e986e672dffe99911 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Fri, 17 Oct 2025 13:50:24 -0700 Subject: [PATCH 2/2] try no warning --- .../yamlRestTest/resources/rest-api-spec/test/mdp/10_basic.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/qa/multi-data-path/src/yamlRestTest/resources/rest-api-spec/test/mdp/10_basic.yml b/qa/multi-data-path/src/yamlRestTest/resources/rest-api-spec/test/mdp/10_basic.yml index ceee47bbd896e..2222e81af3ed8 100644 --- a/qa/multi-data-path/src/yamlRestTest/resources/rest-api-spec/test/mdp/10_basic.yml +++ b/qa/multi-data-path/src/yamlRestTest/resources/rest-api-spec/test/mdp/10_basic.yml @@ -30,9 +30,6 @@ - match: { result: updated } - # every time the data_path setting is accessed this warning is generated, so we must cleanup explicitly to ignore it - do: - warnings: - - "[index.data_path] setting was deprecated in Elasticsearch and will be removed in a future release. See the deprecation documentation for the next major version." indices.delete: index: test_index