Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -453,9 +453,6 @@ tests:
- class: org.elasticsearch.upgrades.IndexSortUpgradeIT
method: testIndexSortForNumericTypes {upgradedNodes=1}
issue: https://github.com/elastic/elasticsearch/issues/138130
- class: org.elasticsearch.xpack.downsample.DataStreamLifecycleDownsampleIT
method: testUpdateDownsampleSamplingMode
issue: https://github.com/elastic/elasticsearch/issues/138135
- class: org.elasticsearch.xpack.inference.integration.CCMServiceIT
method: testCreatesEisChatCompletionEndpoint
issue: https://github.com/elastic/elasticsearch/issues/138206
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import org.elasticsearch.core.TimeValue;
import org.elasticsearch.datastreams.lifecycle.DataStreamLifecycleService;
import org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramInterval;
import org.elasticsearch.test.ClusterServiceUtils;
import org.elasticsearch.test.junit.annotations.TestLogging;

import java.util.HashSet;
Expand Down Expand Up @@ -352,17 +351,15 @@ public void testUpdateDownsampleSamplingMode() throws Exception {
rolloverResponse = safeGet(client().execute(RolloverAction.INSTANCE, new RolloverRequest(dataStreamName, null)));
assertTrue(rolloverResponse.isRolledOver());
String downsampledPrefix = "downsample-10m-";
final var waitForUpdatedDownsamplingRound = ClusterServiceUtils.addMasterTemporaryStateListener(clusterState -> {
awaitClusterState(clusterState -> {
ProjectMetadata projectMetadata = clusterState.metadata().getProject();
final var dataStream = projectMetadata.dataStreams().get(dataStreamName);
if (dataStream == null) {
return false;
}

return dataStream.getIndices().size() > 2
&& dataStream.getIndices().stream().filter(index -> index.getName().startsWith(downsampledPrefix)).count() == 2;
});
safeAwait(waitForUpdatedDownsamplingRound);
assertDownsamplingMethod(initialSamplingMethod, downsampledPrefix + firstBackingIndex);
assertDownsamplingMethod(updatedSamplingMethod, downsampledPrefix + secondBackingIndex);
}
Expand Down