From 4ee50c28baaa72dc36e024bf32be841bba205223 Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Wed, 23 Aug 2023 15:59:45 +0700 Subject: [PATCH] Added logging to ILMDownsampleDisruptionIT. Relates to #98764 --- .../xpack/downsample/ILMDownsampleDisruptionIT.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x-pack/plugin/downsample/src/internalClusterTest/java/org/elasticsearch/xpack/downsample/ILMDownsampleDisruptionIT.java b/x-pack/plugin/downsample/src/internalClusterTest/java/org/elasticsearch/xpack/downsample/ILMDownsampleDisruptionIT.java index 441f46b8f04fe..d4e0cb7c8e5b9 100644 --- a/x-pack/plugin/downsample/src/internalClusterTest/java/org/elasticsearch/xpack/downsample/ILMDownsampleDisruptionIT.java +++ b/x-pack/plugin/downsample/src/internalClusterTest/java/org/elasticsearch/xpack/downsample/ILMDownsampleDisruptionIT.java @@ -59,6 +59,7 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; +import static org.elasticsearch.core.Strings.format; import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked; import static org.elasticsearch.xcontent.XContentFactory.jsonBuilder; import static org.elasticsearch.xpack.core.rollup.ConfigTestHelpers.randomInterval; @@ -213,6 +214,7 @@ private void startDownsampleTaskViaIlm( try { client().admin().indices().updateSettings(request).actionGet(TimeValue.timeValueSeconds(10)); } catch (Exception e) { + logger.warn(() -> format("encountered failure while updating [%s] index's ilm policy", sourceIndex), e); throw new AssertionError(e); } }, 1, TimeUnit.MINUTES);