Skip to content

Commit

Permalink
Added logging to ILMDownsampleDisruptionIT.
Browse files Browse the repository at this point in the history
Relates to elastic#98764
  • Loading branch information
martijnvg committed Aug 23, 2023
1 parent 93cc31a commit 4ee50c2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 4ee50c2

Please sign in to comment.