Skip to content

Commit 560464e

Browse files
authored
Don't check TSDB end time in YAML test (elastic#130761)
The end time of a TSDB data stream is updated by `UpdateTimeSeriesRangeService` every 5 minutes. This means that every once in a while the test fails if UpdateTimeSeriesRangeService happens to have run during the test. This PR gets rid of this check. It's a bit odd that this failure hasn't shown up before (i.e. outside of the multi-project test suite), but I suspect it's related to the race condition we're seeing here - the MP test suite is likely a bit slower, making it slightly more likely to occur, perhaps. Resolves elastic#124575
1 parent 75fe33d commit 560464e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

modules/data-streams/src/yamlRestTest/resources/rest-api-spec/test/data_stream/150_tsdb.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ created the data stream:
108108
- match: { data_streams.0.hidden: false }
109109
- match: { data_streams.0.system: false }
110110
- match: { data_streams.0.time_series.temporal_ranges.0.start: 2021-04-28T00:00:00.000Z }
111-
- match: { data_streams.0.time_series.temporal_ranges.0.end: 2021-04-29T00:00:00.000Z }
111+
# We can't match on time_series.temporal_ranges.0.end in this test because UpdateTimeSeriesRangeService updates it every 5 minutes, so every
112+
# once in a while it is not what we expect it to be. See #124575.
112113
- set: { data_streams.0.indices.0.index_name: backing_index }
113114

114115
- do:

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,6 @@ tests:
212212
- class: org.elasticsearch.multiproject.test.CoreWithMultipleProjectsClientYamlTestSuiteIT
213213
method: test {yaml=data_stream/190_failure_store_redirection/Redirect ingest failure in data stream to failure store}
214214
issue: https://github.com/elastic/elasticsearch/issues/124518
215-
- class: org.elasticsearch.multiproject.test.CoreWithMultipleProjectsClientYamlTestSuiteIT
216-
method: test {yaml=data_stream/150_tsdb/created the data stream}
217-
issue: https://github.com/elastic/elasticsearch/issues/124575
218215
- class: org.elasticsearch.xpack.restart.MLModelDeploymentFullClusterRestartIT
219216
method: testDeploymentSurvivesRestart {cluster=OLD}
220217
issue: https://github.com/elastic/elasticsearch/issues/124160

0 commit comments

Comments
 (0)