Skip to content

Commit 7df99e0

Browse files
Fix LogsdbTestSuiteIT unexpected warning (#114481) (#114576)
Just expect the warning when adding the template. (cherry picked from commit a2f3278) # Conflicts: # muted-tests.yml
1 parent edd6326 commit 7df99e0

File tree

2 files changed

+42
-12
lines changed

2 files changed

+42
-12
lines changed

muted-tests.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -298,18 +298,20 @@ tests:
298298
- class: org.elasticsearch.xpack.inference.InferenceRestIT
299299
method: test {p0=inference/40_semantic_text_query/Query a field that uses the default ELSER 2 endpoint}
300300
issue: https://github.com/elastic/elasticsearch/issues/114376
301-
- class: org.elasticsearch.kibana.KibanaThreadPoolIT
302-
method: testBlockedThreadPoolsRejectUserRequests
303-
issue: https://github.com/elastic/elasticsearch/issues/113939
304-
- class: org.elasticsearch.ingest.geoip.DatabaseNodeServiceIT
305-
method: testGzippedDatabase
306-
issue: https://github.com/elastic/elasticsearch/issues/113752
307-
- class: org.elasticsearch.xpack.rank.rrf.RRFRankClientYamlTestSuiteIT
308-
method: test {yaml=rrf/700_rrf_retriever_search_api_compatibility/rrf retriever with top-level collapse}
309-
issue: https://github.com/elastic/elasticsearch/issues/114331
310-
- class: org.elasticsearch.threadpool.SimpleThreadPoolIT
311-
method: testThreadPoolMetrics
312-
issue: https://github.com/elastic/elasticsearch/issues/108320
301+
- class: org.elasticsearch.search.retriever.RankDocsRetrieverBuilderTests
302+
method: testRewrite
303+
issue: https://github.com/elastic/elasticsearch/issues/114467
304+
- class: org.elasticsearch.packaging.test.DockerTests
305+
method: test022InstallPluginsFromLocalArchive
306+
issue: https://github.com/elastic/elasticsearch/issues/111063
307+
- class: org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT
308+
method: test {yaml=reference/esql/esql-across-clusters/line_196}
309+
issue: https://github.com/elastic/elasticsearch/issues/114488
310+
- class: org.elasticsearch.gradle.internal.PublishPluginFuncTest
311+
issue: https://github.com/elastic/elasticsearch/issues/114492
312+
- class: org.elasticsearch.xpack.inference.DefaultElserIT
313+
method: testInferCreatesDefaultElser
314+
issue: https://github.com/elastic/elasticsearch/issues/114503
313315
- class: org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT
314316
method: test {p0=indices.split/40_routing_partition_size/nested}
315317
issue: https://github.com/elastic/elasticsearch/issues/113842
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
create logsdb data stream with host.name as keyword:
3+
- requires:
4+
test_runner_features: [ "allowed_warnings" ]
35
- requires:
46
cluster_features: [ "mapper.keyword_normalizer_synthetic_source" ]
57
reason: support for normalizer on keyword fields
@@ -23,6 +25,8 @@ create logsdb data stream with host.name as keyword:
2325
index_patterns: ["logsdb"]
2426
data_stream: {}
2527
composed_of: ["logsdb-mappings"]
28+
allowed_warnings:
29+
- "index template [logsdb-index-template] has index patterns [logsdb] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logsdb-index-template] will take precedence during new index creation"
2630

2731
- do:
2832
indices.create_data_stream:
@@ -32,6 +36,8 @@ create logsdb data stream with host.name as keyword:
3236

3337
---
3438
create logsdb data stream with host.name as keyword and timestamp as date:
39+
- requires:
40+
test_runner_features: [ "allowed_warnings" ]
3541
- requires:
3642
cluster_features: [ "mapper.keyword_normalizer_synthetic_source" ]
3743
reason: support for normalizer on keyword fields
@@ -57,6 +63,8 @@ create logsdb data stream with host.name as keyword and timestamp as date:
5763
index_patterns: ["logsdb"]
5864
data_stream: {}
5965
composed_of: ["logsdb-mappings"]
66+
allowed_warnings:
67+
- "index template [logsdb-index-template] has index patterns [logsdb] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logsdb-index-template] will take precedence during new index creation"
6068

6169
- do:
6270
indices.create_data_stream:
@@ -66,6 +74,8 @@ create logsdb data stream with host.name as keyword and timestamp as date:
6674

6775
---
6876
create logsdb data stream with host as keyword:
77+
- requires:
78+
test_runner_features: [ "allowed_warnings" ]
6979
- requires:
7080
cluster_features: [ "mapper.keyword_normalizer_synthetic_source" ]
7181
reason: support for normalizer on keyword fields
@@ -89,6 +99,8 @@ create logsdb data stream with host as keyword:
8999
index_patterns: ["logsdb"]
90100
data_stream: {}
91101
composed_of: ["logsdb-mappings"]
102+
allowed_warnings:
103+
- "index template [logsdb-index-template] has index patterns [logsdb] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logsdb-index-template] will take precedence during new index creation"
92104

93105
- do:
94106
catch: bad_request
@@ -100,6 +112,8 @@ create logsdb data stream with host as keyword:
100112

101113
---
102114
create logsdb data stream with host as text and multi fields:
115+
- requires:
116+
test_runner_features: [ "allowed_warnings" ]
103117
- requires:
104118
cluster_features: [ "mapper.keyword_normalizer_synthetic_source" ]
105119
reason: support for normalizer on keyword fields
@@ -130,6 +144,8 @@ create logsdb data stream with host as text and multi fields:
130144
index_patterns: ["logsdb"]
131145
data_stream: {}
132146
composed_of: ["logsdb-mappings"]
147+
allowed_warnings:
148+
- "index template [logsdb-index-template] has index patterns [logsdb] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logsdb-index-template] will take precedence during new index creation"
133149

134150
- do:
135151
catch: bad_request
@@ -141,6 +157,8 @@ create logsdb data stream with host as text and multi fields:
141157

142158
---
143159
create logsdb data stream with host as text:
160+
- requires:
161+
test_runner_features: [ "allowed_warnings" ]
144162
- requires:
145163
cluster_features: ["mapper.keyword_normalizer_synthetic_source"]
146164
reason: "Support for normalizer on keyword fields"
@@ -167,6 +185,8 @@ create logsdb data stream with host as text:
167185
index_patterns: ["logsdb"]
168186
data_stream: {}
169187
composed_of: ["logsdb-mappings"]
188+
allowed_warnings:
189+
- "index template [logsdb-index-template] has index patterns [logsdb] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logsdb-index-template] will take precedence during new index creation"
170190

171191
- do:
172192
catch: bad_request
@@ -178,6 +198,8 @@ create logsdb data stream with host as text:
178198

179199
---
180200
create logsdb data stream with host as text and name as double:
201+
- requires:
202+
test_runner_features: [ "allowed_warnings" ]
181203
- requires:
182204
cluster_features: ["mapper.keyword_normalizer_synthetic_source"]
183205
reason: "Support for normalizer on keyword fields"
@@ -207,6 +229,8 @@ create logsdb data stream with host as text and name as double:
207229
index_patterns: ["logsdb"]
208230
data_stream: {}
209231
composed_of: ["logsdb-mappings"]
232+
allowed_warnings:
233+
- "index template [logsdb-index-template] has index patterns [logsdb] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logsdb-index-template] will take precedence during new index creation"
210234

211235
- do:
212236
catch: bad_request
@@ -218,6 +242,8 @@ create logsdb data stream with host as text and name as double:
218242

219243
---
220244
create logsdb data stream with timestamp object mapping:
245+
- requires:
246+
test_runner_features: [ "allowed_warnings" ]
221247
- requires:
222248
cluster_features: ["mapper.keyword_normalizer_synthetic_source"]
223249
reason: "Support for normalizer on keyword fields"
@@ -249,6 +275,8 @@ create logsdb data stream with timestamp object mapping:
249275
index_patterns: ["logsdb"]
250276
data_stream: {}
251277
composed_of: ["logsdb-mappings"]
278+
allowed_warnings:
279+
- "index template [logsdb-index-template] has index patterns [logsdb] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logsdb-index-template] will take precedence during new index creation"
252280

253281
- match: { error.type: "illegal_argument_exception" }
254282
- match: { error.reason: "composable template [logsdb-index-template] template after composition with component templates [logsdb-mappings] is invalid" }

0 commit comments

Comments
 (0)