Skip to content

Commit 1ad5d31

Browse files
happysubingmarouli
andauthored
Improve ILM rollover comment clarity
Co-authored-by: Mary Gouseti <[email protected]>
1 parent 18bcd3d commit 1ad5d31

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

x-pack/plugin/ilm/qa/multi-cluster/src/test/java/org/elasticsearch/xpack/ilm/CCRIndexLifecycleIT.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -600,9 +600,8 @@ public void testTsdbLeaderIndexRolloverAndSyncAfterWaitUntilEndTime() throws Exc
600600
try (RestClient leaderClient = buildLeaderClient()) {
601601
String now = DateFormatter.forPattern(FormatNames.STRICT_DATE_OPTIONAL_TIME.getName()).format(Instant.now());
602602

603-
// Wait for ILM rollover instead of manual rollover to ensure 'index.lifecycle.indexing_complete' is set
604-
// Manual rollover removed as it doesn't properly set lifecycle completion flag
605-
// Let ILM naturally trigger rollover when document is indexed
603+
// Index a document on the leader index, this should trigger an ILM rollover.
604+
// This will ensure that 'index.lifecycle.indexing_complete' is set.
606605
index(leaderClient, dataStream, "", "@timestamp", now, "volume", 11.0, "metricset", randomAlphaOfLength(5));
607606

608607
String backingIndexName = getDataStreamBackingIndexNames(leaderClient, "tsdb-index-cpu").get(0);

0 commit comments

Comments
 (0)