status
stringclasses 1
value | repo_name
stringclasses 13
values | repo_url
stringclasses 13
values | issue_id
int64 1
104k
| updated_files
stringlengths 11
1.76k
| title
stringlengths 4
369
| body
stringlengths 0
254k
⌀ | issue_url
stringlengths 38
55
| pull_url
stringlengths 38
53
| before_fix_sha
stringlengths 40
40
| after_fix_sha
stringlengths 40
40
| report_datetime
unknown | language
stringclasses 5
values | commit_datetime
unknown |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,599 | ["docs/changelog/85120.yaml", "server/src/main/java/org/elasticsearch/common/geo/GeoUtils.java", "server/src/test/java/org/elasticsearch/index/mapper/GeoPointFieldTypeTests.java", "server/src/test/java/org/elasticsearch/index/search/geo/GeoPointParsingTests.java", "server/src/test/java/org/elasticsearch/index/search/geo/GeoUtilsTests.java", "server/src/test/java/org/elasticsearch/search/geo/GeoPointShapeQueryTests.java", "test/framework/src/main/java/org/elasticsearch/search/geo/GeoPointShapeQueryTestCase.java"] | Support GeoJson on geo_point fields | geo_point field does not support GeoJson which can be a PITA if your data is in such a format. Indexing it as a geo_shape is an option but very wasteful. | https://github.com/elastic/elasticsearch/issues/84599 | https://github.com/elastic/elasticsearch/pull/85120 | 938f74ba1b104eda52384f07b513fc6c9a372500 | 042b96437d05c62c96ef235e92d99149f4a43e97 | "2022-03-03T07:49:48Z" | java | "2022-03-23T15:54:24Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,586 | ["x-pack/qa/third-party/active-directory/src/test/java/org/elasticsearch/xpack/security/authc/ldap/AbstractAdLdapRealmTestCase.java"] | [CI] GroupMappingIT testGroupMapping failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/fmiiv5kmsm2uu/tests/:x-pack:qa:third-party:active-directory:test/org.elasticsearch.xpack.security.authc.ldap.GroupMappingIT/testGroupMapping
**Reproduction line:**
`./gradlew ':x-pack:qa:third-party:active-directory:test' --tests "org.elasticsearch.xpack.security.authc.ldap.GroupMappingIT.testGroupMapping" -Dtests.seed=D51FD3E394A6008D -Dtests.locale=es-GT -Dtests.timezone=Europe/Sarajevo -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.security.authc.ldap.GroupMappingIT&tests.test=testGroupMapping
**Failure excerpt:**
```
org.elasticsearch.ElasticsearchSecurityException: unable to authenticate user [odin] for action [indices:data/write/index]
at __randomizedtesting.SeedInfo.seed([D51FD3E394A6008D:9718CF59E5601BBC]:0)
at org.elasticsearch.xpack.core.security.support.Exceptions.authenticationError(Exceptions.java:20)
at org.elasticsearch.xpack.core.security.authc.DefaultAuthenticationFailureHandler.createAuthenticationError(DefaultAuthenticationFailureHandler.java:186)
at org.elasticsearch.xpack.core.security.authc.DefaultAuthenticationFailureHandler.failedAuthentication(DefaultAuthenticationFailureHandler.java:106)
at org.elasticsearch.xpack.security.authc.AuthenticationService$AuditableTransportRequest.authenticationFailed(AuthenticationService.java:332)
at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.consumeNullUser(RealmsAuthenticator.java:269)
at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.lambda$consumeToken$3(RealmsAuthenticator.java:212)
at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136)
at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31)
at org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:132)
at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.lambda$consumeToken$0(RealmsAuthenticator.java:190)
at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136)
at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.lambda$authenticateWithCache$3(CachingUsernamePasswordRealm.java:221)
at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136)
at org.elasticsearch.xpack.security.authc.ldap.LdapRealm$LdapSessionActionListener.onFailure(LdapRealm.java:308)
at org.elasticsearch.action.support.ContextPreservingActionListener.onFailure(ContextPreservingActionListener.java:38)
at org.elasticsearch.xpack.security.authc.ldap.ActiveDirectorySessionFactory.lambda$getSessionWithoutPool$2(ActiveDirectorySessionFactory.java:163)
at org.elasticsearch.action.ActionListener$1.onFailure(ActionListener.java:144)
at org.elasticsearch.action.ActionRunnable.onFailure(ActionRunnable.java:77)
at org.elasticsearch.xpack.security.authc.ldap.support.LdapUtils$2.onFailure(LdapUtils.java:204)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:28)
at org.elasticsearch.xpack.security.authc.ldap.support.LdapUtils.maybeForkAndRun(LdapUtils.java:102)
at org.elasticsearch.xpack.security.authc.ldap.support.LdapUtils.maybeForkThenBind(LdapUtils.java:212)
at org.elasticsearch.xpack.security.authc.ldap.ActiveDirectorySessionFactory$ADAuthenticator.authenticate(ActiveDirectorySessionFactory.java:320)
at org.elasticsearch.xpack.security.authc.ldap.ActiveDirectorySessionFactory.getSessionWithoutPool(ActiveDirectorySessionFactory.java:161)
at org.elasticsearch.xpack.security.authc.ldap.PoolingSessionFactory.session(PoolingSessionFactory.java:110)
at org.elasticsearch.xpack.security.authc.ldap.LdapRealm.lambda$doAuthenticate$1(LdapRealm.java:147)
at org.elasticsearch.xpack.security.authc.ldap.LdapRealm$CancellableLdapRunnable.doRun(LdapRealm.java:343)
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:776)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84586 | https://github.com/elastic/elasticsearch/pull/84748 | 5e35112d00113b86982dd1f92c568290de5ebcd2 | 1e6b30ee1e387677942ec94b60acf3e8b211c39e | "2022-03-02T21:05:25Z" | java | "2022-03-18T02:58:52Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,556 | ["x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/vectors/60_knn_and_binary_dv_fields_api.yml"] | [CI] XPackRestIT test {p0=vectors/60_knn_and_binary_dv_fields_api/query vector of wrong type errors} failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/vhhxrizrf5zp6/tests/:x-pack:plugin:yamlRestTest/org.elasticsearch.xpack.test.rest.XPackRestIT/test%20%7Bp0=vectors%2F60_knn_and_binary_dv_fields_api%2Fquery%20vector%20of%20wrong%20type%20errors%7D
**Reproduction line:**
`./gradlew ':x-pack:plugin:yamlRestTest' --tests "org.elasticsearch.xpack.test.rest.XPackRestIT.test {p0=vectors/60_knn_and_binary_dv_fields_api/query vector of wrong type errors}" -Dtests.seed=F957A39CD1F80D49 -Dtests.locale=nn-NO -Dtests.timezone=America/Metlakatla -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.test.rest.XPackRestIT&tests.test=test%20%7Bp0%3Dvectors/60_knn_and_binary_dv_fields_api/query%20vector%20of%20wrong%20type%20errors%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [vectors/60_knn_and_binary_dv_fields_api:816]: expected [400] status code but api [search] returned [200 OK] [---
took: 78
timed_out: false
_shards:
total: 2
successful: 1
skipped: 0
failed: 1
failures:
- shard: 0
index: "test-index"
node: "VEUrg51eToWWjs5JaSA9iw"
reason:
type: "script_exception"
reason: "runtime error"
script_stack:
- "org.elasticsearch.xpack.vectors.query.DenseVector.l2Norm(DenseVector.java:80)"
- "(int) field(params.field).get().l2Norm(params.query)\n"
- " ^---- HERE"
script: "(int) field(params.field).get().l2Norm(params.query) ..."
lang: "painless"
position:
offset: 45
start: 0
end: 53
caused_by:
type: "illegal_argument_exception"
reason: "Cannot use vector [one, two, three] with class [java.lang.String]\
\ as query vector"
hits:
total:
value: 0
relation: "eq"
max_score: null
hits: []
]
at __randomizedtesting.SeedInfo.seed([F957A39CD1F80D49:71039C467F0460B1]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:493)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor14.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.AssertionError: expected [400] status code but api [search] returned [200 OK] [---
took: 78
timed_out: false
_shards:
total: 2
successful: 1
skipped: 0
failed: 1
failures:
- shard: 0
index: "test-index"
node: "VEUrg51eToWWjs5JaSA9iw"
reason:
type: "script_exception"
reason: "runtime error"
script_stack:
- "org.elasticsearch.xpack.vectors.query.DenseVector.l2Norm(DenseVector.java:80)"
- "(int) field(params.field).get().l2Norm(params.query)\n"
- " ^---- HERE"
script: "(int) field(params.field).get().l2Norm(params.query) ..."
lang: "painless"
position:
offset: 45
start: 0
end: 53
caused_by:
type: "illegal_argument_exception"
reason: "Cannot use vector [one, two, three] with class [java.lang.String]\
\ as query vector"
hits:
total:
value: 0
relation: "eq"
max_score: null
hits: []
]
at org.junit.Assert.fail(Assert.java:88)
at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:360)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:482)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor14.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84556 | https://github.com/elastic/elasticsearch/pull/84575 | cae3a662dc03cfb247fdb2a0e84a04124dd92056 | eb18574e02de1408d4e8439538b478cdf432fd2e | "2022-03-02T09:29:13Z" | java | "2022-03-02T17:51:54Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,492 | ["x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/vector-tile/10_basic.yml", "x-pack/plugin/vector-tile/src/main/java/org/elasticsearch/xpack/vectortile/rest/RestVectorTileAction.java", "x-pack/plugin/vector-tile/src/main/java/org/elasticsearch/xpack/vectortile/rest/VectorTileRequest.java", "x-pack/plugin/vector-tile/src/test/java/org/elasticsearch/xpack/vectortile/rest/VectorTileRequestTests.java"] | Make vector tile buffer size configurable | Vector tiles buffer is used to include data that is just outside of the tile. This data is used to prevent border effects when rendering the geometries. It is currently [hardcoded to 5 pixels](https://github.com/elastic/elasticsearch/blob/de2781f98696c1e6cfad2b5bf46fe752a5e3edbb/x-pack/plugin/vector-tile/src/main/java/org/elasticsearch/xpack/vectortile/feature/FeatureFactory.java#L63) but it should probably need to be user configurable by adding a new property on the vector tiles API which can change the value.
| https://github.com/elastic/elasticsearch/issues/84492 | https://github.com/elastic/elasticsearch/pull/85450 | c9ed0c0e3d4b0f9954214ba9bcb0efb0a0ee4751 | 9a60aa8b64209740616266c2607b4600d90f3b6b | "2022-03-01T12:22:14Z" | java | "2022-03-29T15:42:45Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,426 | ["rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/snapshot.restore/10_basic.yml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/tsdb/30_snapshot.yml"] | [CI] ClientYamlTestSuiteIT test {yaml=tsdb/30_snapshot/Create a snapshot and then restore it} failing | Related and same root cause as https://github.com/elastic/elasticsearch/issues/83390
```
[2022-02-28T13:42:44,024][INFO ][o.e.t.r.ClientYamlTestSuiteIT] [test] Stash dump on test failure [{
11:44:20 1> "stash" : {
11:44:20 1> "body" : {
11:44:20 1> "snapshot" : {
11:44:20 1> "snapshot" : "test_restore_tsdb",
11:44:20 1> "uuid" : "czlnpu02T1-ON5U_MX-HuA",
11:44:20 1> "repository" : "test_repo",
11:44:20 1> "version_id" : 8020099,
11:44:20 1> "version" : "8.2.0",
11:44:20 1> "indices" : [
11:44:20 1> "test_index",
11:44:20 1> ".tasks"
11:44:20 1> ],
11:44:20 1> "data_streams" : [ ],
11:44:20 1> "include_global_state" : true,
11:44:20 1> "state" : "SUCCESS",
11:44:20 1> "start_time" : "2022-02-28T10:42:43.813Z",
11:44:20 1> "start_time_in_millis" : 1646044963813,
11:44:20 1> "end_time" : "2022-02-28T10:42:43.813Z",
11:44:20 1> "end_time_in_millis" : 1646044963813,
11:44:20 1> "duration_in_millis" : 0,
11:44:20 1> "failures" : [ ],
11:44:20 1> "shards" : {
11:44:20 1> "total" : 3,
11:44:20 1> "failed" : 0,
11:44:20 1> "successful" : 3
11:44:20 1> },
11:44:20 1> "feature_states" : [
11:44:20 1> {
11:44:20 1> "feature_name" : "tasks",
11:44:20 1> "indices" : [
11:44:20 1> ".tasks"
11:44:20 1> ]
```
**Build scan:**
https://gradle-enterprise.elastic.co/s/g37yeaagj2c24/tests/:rest-api-spec:yamlRestTest/org.elasticsearch.test.rest.ClientYamlTestSuiteIT/test%20%7Byaml=tsdb%2F30_snapshot%2FCreate%20a%20snapshot%20and%20then%20restore%20it%7D
**Reproduction line:**
`./gradlew ':rest-api-spec:yamlRestTest' --tests "org.elasticsearch.test.rest.ClientYamlTestSuiteIT.test {yaml=tsdb/30_snapshot/Create a snapshot and then restore it}" -Dtests.seed=FFA631E0AA63595F -Dtests.locale=es-PA -Dtests.timezone=Africa/Djibouti -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.test.rest.ClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dtsdb/30_snapshot/Create%20a%20snapshot%20and%20then%20restore%20it%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [tsdb/30_snapshot:109]:
Expected: <2>
but: was <3>
at __randomizedtesting.SeedInfo.seed([FFA631E0AA63595F:77F20E3A049F34A7]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:493)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.AssertionError:
Expected: <2>
but: was <3>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.test.rest.yaml.section.MatchAssertion.doAssert(MatchAssertion.java:99)
at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:482)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84426 | https://github.com/elastic/elasticsearch/pull/84755 | 52663b060a7f552f1e6625089c8e002b0b138a64 | 01059c4c8a9f4349cd3eefa3942248b045fc0ae1 | "2022-02-28T13:33:09Z" | java | "2022-03-09T08:08:34Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,421 | ["x-pack/plugin/shutdown/src/internalClusterTest/java/org/elasticsearch/xpack/shutdown/NodeShutdownTasksIT.java"] | [CI] NodeShutdownTasksIT testTasksAreNotAssignedToShuttingDownNode failing | #84142 is introducing an assertion which verifies that the cluster state we write to disk can be loaded again. This build failure shows that this assertion currently does not hold due to an undeclared field called `task_name`.
NB doesn't fail on `master` directly you need to check the PR branch, but it represents a genuine bug on `master`: if a node crashed after writing this state then it would not be able to restart.
**Build scan:**
https://gradle-enterprise.elastic.co/s/zne65f5ti7kfo/tests/:x-pack:plugin:shutdown:internalClusterTest/org.elasticsearch.xpack.shutdown.NodeShutdownTasksIT/testTasksAreNotAssignedToShuttingDownNode
**Reproduction line:**
`./gradlew ':x-pack:plugin:shutdown:internalClusterTest' --tests "org.elasticsearch.xpack.shutdown.NodeShutdownTasksIT.testTasksAreNotAssignedToShuttingDownNode" -Dtests.seed=E2D8712A01541857 -Dtests.locale=es-PY -Dtests.timezone=Africa/Kinshasa -Druntime.java=17`
**Applicable branches:**
~master~ https://github.com/elastic/elasticsearch/pull/84142/commits/3eb6089edb1ead5e33f4a081c4b5a2719d9c4217
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.shutdown.NodeShutdownTasksIT&tests.test=testTasksAreNotAssignedToShuttingDownNode
**Failure excerpt:**
<details>
<summary>Expand for stack trace</summary>
```
WARNING: Uncaught exception in thread: Thread[elasticsearch[node_t0][cluster_coordination][T#1],5,TGRP-NodeShutdownTasksIT] |
-- | --
| java.lang.AssertionError: org.elasticsearch.gateway.CorruptStateException: org.elasticsearch.xcontent.XContentParseException: [-1:358] [persistent_tasks] failed to parse field [tasks] |
| at __randomizedtesting.SeedInfo.seed([E2D8712A01541857]:0) |
| at org.elasticsearch.gateway.PersistedClusterStateService$Writer.assertOnCommit(PersistedClusterStateService.java:1020) |
| at org.elasticsearch.gateway.PersistedClusterStateService$Writer.commit(PersistedClusterStateService.java:1007) |
| at org.elasticsearch.gateway.PersistedClusterStateService$Writer.writeIncrementalStateAndCommit(PersistedClusterStateService.java:823) |
| at org.elasticsearch.gateway.GatewayMetaState$LucenePersistedState.setLastAcceptedState(GatewayMetaState.java:507) |
| at org.elasticsearch.cluster.coordination.CoordinationState.handlePublishRequest(CoordinationState.java:392) |
| at org.elasticsearch.cluster.coordination.Coordinator.handlePublishRequest(Coordinator.java:418) |
| at org.elasticsearch.cluster.coordination.PublicationTransportHandler.acceptState(PublicationTransportHandler.java:200) |
| at org.elasticsearch.cluster.coordination.PublicationTransportHandler.handleIncomingPublishRequest(PublicationTransportHandler.java:183) |
| at org.elasticsearch.cluster.coordination.PublicationTransportHandler.lambda$new$0(PublicationTransportHandler.java:103) |
| at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:67) |
| at org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:917) |
| at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:776) |
| at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) |
| at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) |
| at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) |
| at java.base/java.lang.Thread.run(Thread.java:833) |
| Caused by: org.elasticsearch.gateway.CorruptStateException: org.elasticsearch.xcontent.XContentParseException: [-1:358] [persistent_tasks] failed to parse field [tasks] |
| at org.elasticsearch.gateway.PersistedClusterStateService.readXContent(PersistedClusterStateService.java:539) |
| at org.elasticsearch.gateway.PersistedClusterStateService.lambda$loadOnDiskState$2(PersistedClusterStateService.java:493) |
| at org.elasticsearch.gateway.PersistedClusterStateService.consumeFromType(PersistedClusterStateService.java:580) |
| at org.elasticsearch.gateway.PersistedClusterStateService.loadOnDiskState(PersistedClusterStateService.java:492) |
| at org.elasticsearch.gateway.PersistedClusterStateService$Writer.assertOnCommit(PersistedClusterStateService.java:1016) |
| ... 15 more |
| Caused by: org.elasticsearch.xcontent.XContentParseException: [-1:358] [persistent_tasks] failed to parse field [tasks] |
| at org.elasticsearch.xcontent.ObjectParser.throwFailedToParse(ObjectParser.java:626) |
| at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:621) |
| at org.elasticsearch.xcontent.ObjectParser.parseArray(ObjectParser.java:614) |
| at org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:647) |
| at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:319) |
| at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:258) |
| at org.elasticsearch.xcontent.ObjectParser.apply(ObjectParser.java:392) |
| at org.elasticsearch.persistent.PersistentTasksCustomMetadata.fromXContent(PersistentTasksCustomMetadata.java:208) |
| at org.elasticsearch.xcontent.NamedXContentRegistry$Entry.lambda$new$0(NamedXContentRegistry.java:54) |
| at org.elasticsearch.xcontent.NamedXContentRegistry.parseNamedObject(NamedXContentRegistry.java:147) |
| at org.elasticsearch.xcontent.support.AbstractXContentParser.namedObject(AbstractXContentParser.java:416) |
| at org.elasticsearch.cluster.metadata.Metadata$Builder.fromXContent(Metadata.java:2188) |
| at org.elasticsearch.gateway.PersistedClusterStateService.readXContent(PersistedClusterStateService.java:537) |
| ... 19 more |
| Caused by: org.elasticsearch.xcontent.XContentParseException: [-1:358] [tasks] failed to parse field [task] |
| at org.elasticsearch.xcontent.ObjectParser.throwFailedToParse(ObjectParser.java:626) |
| at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:621) |
| at org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:633) |
| at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:319) |
| at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:258) |
| at org.elasticsearch.xcontent.AbstractObjectParser.lambda$declareFieldArray$20(AbstractObjectParser.java:336) |
| at org.elasticsearch.xcontent.AbstractObjectParser.parseArray(AbstractObjectParser.java:418) |
| at org.elasticsearch.xcontent.AbstractObjectParser.lambda$declareFieldArray$21(AbstractObjectParser.java:336) |
| at org.elasticsearch.xcontent.ObjectParser.lambda$declareField$10(ObjectParser.java:441) |
| at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:619) |
| ... 30 more |
| Caused by: org.elasticsearch.xcontent.XContentParseException: [-1:358] [task] failed to parse field [task_name] |
| at org.elasticsearch.xcontent.ObjectParser.rethrowFieldParseFailure(ObjectParser.java:564) |
| at org.elasticsearch.xcontent.ObjectParser.lambda$declareNamedObjects$14(ObjectParser.java:504) |
| at org.elasticsearch.xcontent.ObjectParser.lambda$declareNamedObjects$15(ObjectParser.java:515) |
| at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:619) |
| ... 38 more |
| Caused by: org.elasticsearch.xcontent.XContentParseException: [-1:358] [named] failed to parse field [params] |
| at org.elasticsearch.xcontent.ObjectParser.throwFailedToParse(ObjectParser.java:626) |
| at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:621) |
| at org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:633) |
| at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:319) |
| at org.elasticsearch.persistent.PersistentTasksCustomMetadata.lambda$static$3(PersistentTasksCustomMetadata.java:97) |
| at org.elasticsearch.xcontent.ObjectParser.lambda$declareNamedObjects$14(ObjectParser.java:502) |
| ... 40 more |
| Caused by: org.elasticsearch.xcontent.NamedObjectNotFoundException: [-1:358] unknown field [task_name] |
| at org.elasticsearch.xcontent.NamedXContentRegistry.lookupParser(NamedXContentRegistry.java:162) |
| at org.elasticsearch.xcontent.NamedXContentRegistry.parseNamedObject(NamedXContentRegistry.java:146) |
| at org.elasticsearch.xcontent.support.AbstractXContentParser.namedObject(AbstractXContentParser.java:416) |
| at org.elasticsearch.persistent.PersistentTasksCustomMetadata.lambda$static$1(PersistentTasksCustomMetadata.java:89) |
| at org.elasticsearch.xcontent.ObjectParser.lambda$declareField$10(ObjectParser.java:441) |
| at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:619) |
| ... 44 more |
```
</details> | https://github.com/elastic/elasticsearch/issues/84421 | https://github.com/elastic/elasticsearch/pull/84445 | 7bda7d1a8daecb8e34ebd56a3a74ad837e5485de | 1ca2dbb7bb7403a59b49b708625dffd34a990d4d | "2022-02-28T12:39:55Z" | java | "2022-02-28T22:00:14Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,419 | ["docs/changelog/84420.yaml", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/XPackClientPlugin.java", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/job/snapshot/upgrade/SnapshotUpgradeTaskParams.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ml/job/snapshot/upgrade/SnapshotUpgradeTaskParamsTests.java"] | Cluster state containing `xpack/ml/job/snapshot/upgrade` cannot be read | ### Elasticsearch Version
master (& likely more)
### Installed Plugins
Any
### Java Version
_bundled_
### OS Version
Any
### Problem Description
https://github.com/elastic/elasticsearch/pull/84142 is introducing an assertion which verifies that the cluster state we write to disk can be loaded again. https://gradle-enterprise.elastic.co/s/id2j2df47glfe shows that this assertion currently does not hold due to an undeclared field called `xpack/ml/job/snapshot/upgrade`.
```
[2022-02-28T10:58:18,391][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [v8.0.1-2] fatal error in thread [elasticsearch[v8.0.1-2][cluster_coordination][T#1]], exiting
java.lang.AssertionError: org.elasticsearch.gateway.CorruptStateException: org.elasticsearch.xcontent.XContentParseException: [-1:32756] [persistent_tasks] failed to parse field [tasks]
Caused by: org.elasticsearch.gateway.CorruptStateException: org.elasticsearch.xcontent.XContentParseException: [-1:32756] [persistent_tasks] failed to parse field [tasks]
Caused by: org.elasticsearch.xcontent.XContentParseException: [-1:32756] [persistent_tasks] failed to parse field [tasks]
Caused by: org.elasticsearch.xcontent.XContentParseException: [-1:32756] [tasks] failed to parse field [task]
Caused by: org.elasticsearch.xcontent.XContentParseException: [-1:32756] [task] failed to parse field [xpack/ml/job/snapshot/upgrade]
Caused by: org.elasticsearch.xcontent.XContentParseException: [-1:32756] [named] failed to parse field [params]
Caused by: org.elasticsearch.xcontent.NamedObjectNotFoundException: [-1:32756] unknown field [xpack/ml/job/snapshot/upgrade]
```
If a node crashed after writing this state then it would not be able to restart.
### Steps to Reproduce
Run the failing tests on https://github.com/elastic/elasticsearch/pull/84142/commits/3eb6089edb1ead5e33f4a081c4b5a2719d9c4217.
### Logs (if relevant)
<details>
<summary>Expand for stack trace</summary>
```
[2022-02-28T10:58:18,391][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [v8.0.1-2] fatal error in thread [elasticsearch[v8.0.1-2][cluster_coordination][T#1]], exiting
java.lang.AssertionError: org.elasticsearch.gateway.CorruptStateException: org.elasticsearch.xcontent.XContentParseException: [-1:32756] [persistent_tasks] failed to parse field [tasks]
at org.elasticsearch.gateway.PersistedClusterStateService$Writer.assertOnCommit(PersistedClusterStateService.java:1020) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService$Writer.commit(PersistedClusterStateService.java:1007) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService$Writer.writeIncrementalStateAndCommit(PersistedClusterStateService.java:823) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.GatewayMetaState$LucenePersistedState.setLastAcceptedState(GatewayMetaState.java:507) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.cluster.coordination.CoordinationState.handlePublishRequest(CoordinationState.java:392) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.cluster.coordination.Coordinator.handlePublishRequest(Coordinator.java:418) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.cluster.coordination.PublicationTransportHandler.acceptState(PublicationTransportHandler.java:203) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.cluster.coordination.PublicationTransportHandler.handleIncomingPublishRequest(PublicationTransportHandler.java:183) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.cluster.coordination.PublicationTransportHandler.lambda$new$0(PublicationTransportHandler.java:103) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor$ProfileSecuredRequestHandler$1.doRun(SecurityServerTransportInterceptor.java:253) ~[?:?]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor$ProfileSecuredRequestHandler$3.onResponse(SecurityServerTransportInterceptor.java:315) ~[?:?]
at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor$ProfileSecuredRequestHandler$3.onResponse(SecurityServerTransportInterceptor.java:305) ~[?:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService.authorizeSystemUser(AuthorizationService.java:610) ~[?:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService.authorize(AuthorizationService.java:251) ~[?:?]
at org.elasticsearch.xpack.security.transport.ServerTransportFilter.lambda$inbound$1(ServerTransportFilter.java:113) ~[?:?]
at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.action.ActionListener$MappedActionListener.onResponse(ActionListener.java:101) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xpack.security.authc.AuthenticatorChain.authenticateAsync(AuthenticatorChain.java:93) ~[?:?]
at org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:199) ~[?:?]
at org.elasticsearch.xpack.security.transport.ServerTransportFilter.inbound(ServerTransportFilter.java:105) ~[?:?]
at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor$ProfileSecuredRequestHandler.messageReceived(SecurityServerTransportInterceptor.java:326) ~[?:?]
at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:67) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.transport.InboundHandler$1.doRun(InboundHandler.java:287) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:776) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: org.elasticsearch.gateway.CorruptStateException: org.elasticsearch.xcontent.XContentParseException: [-1:32756] [persistent_tasks] failed to parse field [tasks]
at org.elasticsearch.gateway.PersistedClusterStateService.readXContent(PersistedClusterStateService.java:539) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.lambda$loadOnDiskState$2(PersistedClusterStateService.java:493) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.consumeFromType(PersistedClusterStateService.java:580) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.loadOnDiskState(PersistedClusterStateService.java:492) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService$Writer.assertOnCommit(PersistedClusterStateService.java:1016) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
... 28 more
Caused by: org.elasticsearch.xcontent.XContentParseException: [-1:32756] [persistent_tasks] failed to parse field [tasks]
at org.elasticsearch.xcontent.ObjectParser.throwFailedToParse(ObjectParser.java:626) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:621) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseArray(ObjectParser.java:614) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:647) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:319) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:258) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.apply(ObjectParser.java:392) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.persistent.PersistentTasksCustomMetadata.fromXContent(PersistentTasksCustomMetadata.java:208) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.NamedXContentRegistry$Entry.lambda$new$0(NamedXContentRegistry.java:54) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.NamedXContentRegistry.parseNamedObject(NamedXContentRegistry.java:147) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.support.AbstractXContentParser.namedObject(AbstractXContentParser.java:416) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.cluster.metadata.Metadata$Builder.fromXContent(Metadata.java:2188) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.readXContent(PersistedClusterStateService.java:537) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.lambda$loadOnDiskState$2(PersistedClusterStateService.java:493) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.consumeFromType(PersistedClusterStateService.java:580) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.loadOnDiskState(PersistedClusterStateService.java:492) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService$Writer.assertOnCommit(PersistedClusterStateService.java:1016) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
... 28 more
Caused by: org.elasticsearch.xcontent.XContentParseException: [-1:32756] [tasks] failed to parse field [task]
at org.elasticsearch.xcontent.ObjectParser.throwFailedToParse(ObjectParser.java:626) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:621) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:633) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:319) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:258) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.AbstractObjectParser.lambda$declareFieldArray$20(AbstractObjectParser.java:336) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.AbstractObjectParser.parseArray(AbstractObjectParser.java:418) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.AbstractObjectParser.lambda$declareFieldArray$21(AbstractObjectParser.java:336) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.lambda$declareField$10(ObjectParser.java:441) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:619) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseArray(ObjectParser.java:614) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:647) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:319) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:258) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.apply(ObjectParser.java:392) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.persistent.PersistentTasksCustomMetadata.fromXContent(PersistentTasksCustomMetadata.java:208) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.NamedXContentRegistry$Entry.lambda$new$0(NamedXContentRegistry.java:54) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.NamedXContentRegistry.parseNamedObject(NamedXContentRegistry.java:147) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.support.AbstractXContentParser.namedObject(AbstractXContentParser.java:416) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.cluster.metadata.Metadata$Builder.fromXContent(Metadata.java:2188) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.readXContent(PersistedClusterStateService.java:537) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.lambda$loadOnDiskState$2(PersistedClusterStateService.java:493) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.consumeFromType(PersistedClusterStateService.java:580) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.loadOnDiskState(PersistedClusterStateService.java:492) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService$Writer.assertOnCommit(PersistedClusterStateService.java:1016) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
... 28 more
Caused by: org.elasticsearch.xcontent.XContentParseException: [-1:32756] [task] failed to parse field [xpack/ml/job/snapshot/upgrade]
at org.elasticsearch.xcontent.ObjectParser.rethrowFieldParseFailure(ObjectParser.java:564) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.lambda$declareNamedObjects$14(ObjectParser.java:504) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.lambda$declareNamedObjects$15(ObjectParser.java:515) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:619) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:633) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:319) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:258) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.AbstractObjectParser.lambda$declareFieldArray$20(AbstractObjectParser.java:336) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.AbstractObjectParser.parseArray(AbstractObjectParser.java:418) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.AbstractObjectParser.lambda$declareFieldArray$21(AbstractObjectParser.java:336) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.lambda$declareField$10(ObjectParser.java:441) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:619) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseArray(ObjectParser.java:614) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:647) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:319) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:258) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.apply(ObjectParser.java:392) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.persistent.PersistentTasksCustomMetadata.fromXContent(PersistentTasksCustomMetadata.java:208) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.NamedXContentRegistry$Entry.lambda$new$0(NamedXContentRegistry.java:54) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.NamedXContentRegistry.parseNamedObject(NamedXContentRegistry.java:147) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.support.AbstractXContentParser.namedObject(AbstractXContentParser.java:416) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.cluster.metadata.Metadata$Builder.fromXContent(Metadata.java:2188) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.readXContent(PersistedClusterStateService.java:537) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.lambda$loadOnDiskState$2(PersistedClusterStateService.java:493) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.consumeFromType(PersistedClusterStateService.java:580) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.loadOnDiskState(PersistedClusterStateService.java:492) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService$Writer.assertOnCommit(PersistedClusterStateService.java:1016) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
... 28 more
Caused by: org.elasticsearch.xcontent.XContentParseException: [-1:32756] [named] failed to parse field [params]
at org.elasticsearch.xcontent.ObjectParser.throwFailedToParse(ObjectParser.java:626) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:621) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:633) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:319) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.persistent.PersistentTasksCustomMetadata.lambda$static$3(PersistentTasksCustomMetadata.java:97) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.lambda$declareNamedObjects$14(ObjectParser.java:502) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.lambda$declareNamedObjects$15(ObjectParser.java:515) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:619) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:633) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:319) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:258) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.AbstractObjectParser.lambda$declareFieldArray$20(AbstractObjectParser.java:336) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.AbstractObjectParser.parseArray(AbstractObjectParser.java:418) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.AbstractObjectParser.lambda$declareFieldArray$21(AbstractObjectParser.java:336) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.lambda$declareField$10(ObjectParser.java:441) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:619) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseArray(ObjectParser.java:614) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:647) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:319) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:258) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.apply(ObjectParser.java:392) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.persistent.PersistentTasksCustomMetadata.fromXContent(PersistentTasksCustomMetadata.java:208) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.NamedXContentRegistry$Entry.lambda$new$0(NamedXContentRegistry.java:54) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.NamedXContentRegistry.parseNamedObject(NamedXContentRegistry.java:147) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.support.AbstractXContentParser.namedObject(AbstractXContentParser.java:416) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.cluster.metadata.Metadata$Builder.fromXContent(Metadata.java:2188) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.readXContent(PersistedClusterStateService.java:537) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.lambda$loadOnDiskState$2(PersistedClusterStateService.java:493) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.consumeFromType(PersistedClusterStateService.java:580) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.loadOnDiskState(PersistedClusterStateService.java:492) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService$Writer.assertOnCommit(PersistedClusterStateService.java:1016) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
... 28 more
Caused by: org.elasticsearch.xcontent.NamedObjectNotFoundException: [-1:32756] unknown field [xpack/ml/job/snapshot/upgrade]
at org.elasticsearch.xcontent.NamedXContentRegistry.lookupParser(NamedXContentRegistry.java:162) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.NamedXContentRegistry.parseNamedObject(NamedXContentRegistry.java:146) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.support.AbstractXContentParser.namedObject(AbstractXContentParser.java:416) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.persistent.PersistentTasksCustomMetadata.lambda$static$1(PersistentTasksCustomMetadata.java:89) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.lambda$declareField$10(ObjectParser.java:441) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:619) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:633) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:319) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.persistent.PersistentTasksCustomMetadata.lambda$static$3(PersistentTasksCustomMetadata.java:97) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.lambda$declareNamedObjects$14(ObjectParser.java:502) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.lambda$declareNamedObjects$15(ObjectParser.java:515) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:619) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:633) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:319) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:258) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.AbstractObjectParser.lambda$declareFieldArray$20(AbstractObjectParser.java:336) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.AbstractObjectParser.parseArray(AbstractObjectParser.java:418) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.AbstractObjectParser.lambda$declareFieldArray$21(AbstractObjectParser.java:336) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.lambda$declareField$10(ObjectParser.java:441) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:619) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseArray(ObjectParser.java:614) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:647) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:319) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:258) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.apply(ObjectParser.java:392) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.persistent.PersistentTasksCustomMetadata.fromXContent(PersistentTasksCustomMetadata.java:208) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.NamedXContentRegistry$Entry.lambda$new$0(NamedXContentRegistry.java:54) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.NamedXContentRegistry.parseNamedObject(NamedXContentRegistry.java:147) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.support.AbstractXContentParser.namedObject(AbstractXContentParser.java:416) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.cluster.metadata.Metadata$Builder.fromXContent(Metadata.java:2188) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.readXContent(PersistedClusterStateService.java:537) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.lambda$loadOnDiskState$2(PersistedClusterStateService.java:493) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.consumeFromType(PersistedClusterStateService.java:580) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.loadOnDiskState(PersistedClusterStateService.java:492) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService$Writer.assertOnCommit(PersistedClusterStateService.java:1016) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
... 28 more
```
</details> | https://github.com/elastic/elasticsearch/issues/84419 | https://github.com/elastic/elasticsearch/pull/84420 | 6f5541a9d6d8120de1fe9904cbbc8e0be015b1a4 | 87258d1c892f18339b7e007d6ed0499866f663ef | "2022-02-28T11:09:36Z" | java | "2022-02-28T13:34:41Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,414 | [".github/CODEOWNERS"] | Create a Github CODEOWNER file | ### Description
We, the Elastic Agent team, would like to have a Github CODEOWNER file setup in order to be notified as soon as there is a PR trying to modify something we own.
It can be either fleet* indices or some java code.
Examples:
- https://github.com/elastic/elasticsearch/blob/master/x-pack/plugin/core/src/main/resources/fleet-policies.json
- https://github.com/elastic/elasticsearch/tree/master/x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet
cc
@ph | https://github.com/elastic/elasticsearch/issues/84414 | https://github.com/elastic/elasticsearch/pull/89155 | e63bcb550e16f9dbbcf0a55fea194ef554b169a5 | 5233229bfb29660e253246794b148634400b011a | "2022-02-28T09:57:56Z" | java | "2022-08-09T13:54:35Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,352 | ["x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/IndexLifecycleExplainResponse.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/IndexLifecycleExplainResponseTests.java"] | IndexLifecycleExplainResponseTests testConcurrentToXContent failure | ### CI Link
https://gradle-enterprise.elastic.co/s/2kxb4swf2na3m
### Repro line
`gradlew ':x-pack:plugin:core:test' --tests "org.elasticsearch.xpack.core.ilm.IndexLifecycleExplainResponseTests.testConcurrentToXContent" -Dtests.seed=F0ACC0B7F00E87C -Dtests.locale=he-IL -Dtests.timezone=America/Mazatlan -Druntime.java=17`
### Does it reproduce?
No
### Applicable branches
master
### Failure history
Failed three times in the past three weeks. Cannot repro locally, even after running it with `-Dtests.iters=10000`
### Failure excerpt
```
REPRODUCE WITH: ./gradlew ':x-pack:plugin:core:test' --tests "org.elasticsearch.xpack.core.ilm.IndexLifecycleExplainResponseTests.testConcurrentToXContent" -Dtests.seed=F0ACC0B7F00E87C -Dtests.locale=he-IL -Dtests.timezone=America/Mazatlan -Druntime.java=17
org.elasticsearch.xpack.core.ilm.IndexLifecycleExplainResponseTests > testConcurrentToXContent FAILED
java.util.concurrent.ExecutionException: java.lang.AssertionError: Failed to round trip over human readable VND_JSON
Canonical is:
{
"index" : "OdLNCOIKwA",
"managed" : true,
"policy" : "AUuNtYTjhg",
"index_creation_date" : "1986-08-05T02:55:06.458Z",
"index_creation_date_millis" : 523594506458,
"time_since_index_creation" : "12987.34d",
"lifecycle_date" : "1988-04-18T16:24:40.565Z",
"lifecycle_date_millis" : 577383880565,
"age" : "12364.78d",
"phase" : "wvePKgOTZU",
"phase_time" : "+152620375-08-31T14:02:46.038Z",
"phase_time_millis" : 4816171701842566038,
"action" : "NwsgagyYHU",
"action_time" : "+112419015-07-21T08:32:22.739Z",
"action_time_millis" : 3547539310408342739,
"step" : "BxpfxjHiJx",
"step_time" : "+67495741-05-23T01:58:56.303Z",
"step_time_millis" : 2129897704067936303,
"failed_step" : "vcYCDfQVtg",
"is_auto_retryable_error" : true,
"failed_step_retry_count" : 9,
"repository_name" : "MTMJajqKrm",
"snapshot_name" : "ewBcghonnw",
"shrink_index_name" : "XSCUxutXRS",
"step_info" : {
"HNLPXKQbuQ" : "GQBbwuCOmq"
},
"phase_execution" : {
"policy" : "PRgtD",
"phase_definition" : {
"min_age" : "0ms",
"actions" : {
"TEST_ACTION" : { }
}
},
"version" : 755898683045883943,
"modified_date" : "+38424792-04-16T02:03:27.661Z",
"modified_date_in_millis" : 1212507158695407661
}
}
Wanted : {"index":"OdLNCOIKwA","managed":true,"policy":"AUuNtYTjhg","index_creation_date":"1986-08-05T02:55:06.458Z","index_creation_date_millis":523594506458,"time_since_index_creation":"12987.34d","lifecycle_date":"1988-04-18T16:24:40.565Z","lifecycle_date_millis":577383880565,"age":"12364.77d","phase":"wvePKgOTZU","phase_time":"+152620375-08-31T14:02:46.038Z","phase_time_millis":4816171701842566038,"action":"NwsgagyYHU","action_time":"+112419015-07-21T08:32:22.739Z","action_time_millis":3547539310408342739,"step":"BxpfxjHiJx","step_time":"+67495741-05-23T01:58:56.303Z","step_time_millis":2129897704067936303,"failed_step":"vcYCDfQVtg","is_auto_retryable_error":true,"failed_step_retry_count":9,"repository_name":"MTMJajqKrm","snapshot_name":"ewBcghonnw","shrink_index_name":"XSCUxutXRS","step_info":{"HNLPXKQbuQ":"GQBbwuCOmq"},"phase_execution":{"policy":"PRgtD","phase_definition":{"min_age":"0ms","actions":{"TEST_ACTION":{}}},"version":755898683045883943,"modified_date":"+38424792-04-16T02:03:27.661Z","modified_date_in_millis":1212507158695407661}}
But got: {"index":"OdLNCOIKwA","managed":true,"policy":"AUuNtYTjhg","index_creation_date":"1986-08-05T02:55:06.458Z","index_creation_date_millis":523594506458,"time_since_index_creation":"12987.34d","lifecycle_date":"1988-04-18T16:24:40.565Z","lifecycle_date_millis":577383880565,"age":"12364.78d","phase":"wvePKgOTZU","phase_time":"+152620375-08-31T14:02:46.038Z","phase_time_millis":4816171701842566038,"action":"NwsgagyYHU","action_time":"+112419015-07-21T08:32:22.739Z","action_time_millis":3547539310408342739,"step":"BxpfxjHiJx","step_time":"+67495741-05-23T01:58:56.303Z","step_time_millis":2129897704067936303,"failed_step":"vcYCDfQVtg","is_auto_retryable_error":true,"failed_step_retry_count":9,"repository_name":"MTMJajqKrm","snapshot_name":"ewBcghonnw","shrink_index_name":"XSCUxutXRS","step_info":{"HNLPXKQbuQ":"GQBbwuCOmq"},"phase_execution":{"policy":"PRgtD","phase_definition":{"min_age":"0ms","actions":{"TEST_ACTION":{}}},"version":755898683045883943,"modified_date":"+38424792-04-16T02:03:27.661Z","modified_date_in_millis":1212507158695407661}}
at __randomizedtesting.SeedInfo.seed([F0ACC0B7F00E87C:6773E0E2321A101F]:0)
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
at org.elasticsearch.test.AbstractWireTestCase.concurrentTest(AbstractWireTestCase.java:99)
at org.elasticsearch.test.AbstractSerializingTestCase.testConcurrentToXContent(AbstractSerializingTestCase.java:82)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by:
java.lang.AssertionError: Failed to round trip over human readable VND_JSON
Canonical is:
{
"index" : "OdLNCOIKwA",
"managed" : true,
"policy" : "AUuNtYTjhg",
"index_creation_date" : "1986-08-05T02:55:06.458Z",
"index_creation_date_millis" : 523594506458,
"time_since_index_creation" : "12987.34d",
"lifecycle_date" : "1988-04-18T16:24:40.565Z",
"lifecycle_date_millis" : 577383880565,
"age" : "12364.78d",
"phase" : "wvePKgOTZU",
"phase_time" : "+152620375-08-31T14:02:46.038Z",
"phase_time_millis" : 4816171701842566038,
"action" : "NwsgagyYHU",
"action_time" : "+112419015-07-21T08:32:22.739Z",
"action_time_millis" : 3547539310408342739,
"step" : "BxpfxjHiJx",
"step_time" : "+67495741-05-23T01:58:56.303Z",
"step_time_millis" : 2129897704067936303,
"failed_step" : "vcYCDfQVtg",
"is_auto_retryable_error" : true,
"failed_step_retry_count" : 9,
"repository_name" : "MTMJajqKrm",
"snapshot_name" : "ewBcghonnw",
"shrink_index_name" : "XSCUxutXRS",
"step_info" : {
"HNLPXKQbuQ" : "GQBbwuCOmq"
},
"phase_execution" : {
"policy" : "PRgtD",
"phase_definition" : {
"min_age" : "0ms",
"actions" : {
"TEST_ACTION" : { }
}
},
"version" : 755898683045883943,
"modified_date" : "+38424792-04-16T02:03:27.661Z",
"modified_date_in_millis" : 1212507158695407661
}
}
Wanted : {"index":"OdLNCOIKwA","managed":true,"policy":"AUuNtYTjhg","index_creation_date":"1986-08-05T02:55:06.458Z","index_creation_date_millis":523594506458,"time_since_index_creation":"12987.34d","lifecycle_date":"1988-04-18T16:24:40.565Z","lifecycle_date_millis":577383880565,"age":"12364.77d","phase":"wvePKgOTZU","phase_time":"+152620375-08-31T14:02:46.038Z","phase_time_millis":4816171701842566038,"action":"NwsgagyYHU","action_time":"+112419015-07-21T08:32:22.739Z","action_time_millis":3547539310408342739,"step":"BxpfxjHiJx","step_time":"+67495741-05-23T01:58:56.303Z","step_time_millis":2129897704067936303,"failed_step":"vcYCDfQVtg","is_auto_retryable_error":true,"failed_step_retry_count":9,"repository_name":"MTMJajqKrm","snapshot_name":"ewBcghonnw","shrink_index_name":"XSCUxutXRS","step_info":{"HNLPXKQbuQ":"GQBbwuCOmq"},"phase_execution":{"policy":"PRgtD","phase_definition":{"min_age":"0ms","actions":{"TEST_ACTION":{}}},"version":755898683045883943,"modified_date":"+38424792-04-16T02:03:27.661Z","modified_date_in_millis":1212507158695407661}}
But got: {"index":"OdLNCOIKwA","managed":true,"policy":"AUuNtYTjhg","index_creation_date":"1986-08-05T02:55:06.458Z","index_creation_date_millis":523594506458,"time_since_index_creation":"12987.34d","lifecycle_date":"1988-04-18T16:24:40.565Z","lifecycle_date_millis":577383880565,"age":"12364.78d","phase":"wvePKgOTZU","phase_time":"+152620375-08-31T14:02:46.038Z","phase_time_millis":4816171701842566038,"action":"NwsgagyYHU","action_time":"+112419015-07-21T08:32:22.739Z","action_time_millis":3547539310408342739,"step":"BxpfxjHiJx","step_time":"+67495741-05-23T01:58:56.303Z","step_time_millis":2129897704067936303,"failed_step":"vcYCDfQVtg","is_auto_retryable_error":true,"failed_step_retry_count":9,"repository_name":"MTMJajqKrm","snapshot_name":"ewBcghonnw","shrink_index_name":"XSCUxutXRS","step_info":{"HNLPXKQbuQ":"GQBbwuCOmq"},"phase_execution":{"policy":"PRgtD","phase_definition":{"min_age":"0ms","actions":{"TEST_ACTION":{}}},"version":755898683045883943,"modified_date":"+38424792-04-16T02:03:27.661Z","modified_date_in_millis":1212507158695407661}}
at org.junit.Assert.fail(Assert.java:88)
at org.elasticsearch.test.AbstractSerializingTestCase.lambda$testConcurrentToXContent$3(AbstractSerializingTestCase.java:98)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
... 1 more
``` | https://github.com/elastic/elasticsearch/issues/84352 | https://github.com/elastic/elasticsearch/pull/84528 | 5d3bbfbf74346e9a056c3d09fb735e89d5dfd4d6 | 891ad7b5b77bfcd04ae25008ed373ee53413bb44 | "2022-02-24T16:10:44Z" | java | "2022-03-02T14:41:12Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,349 | ["docs/changelog/84605.yaml", "x-pack/plugin/sql/qa/server/single-node/src/test/java/org/elasticsearch/xpack/sql/qa/single_node/RestSqlPaginationIT.java", "x-pack/plugin/sql/qa/server/src/main/java/org/elasticsearch/xpack/sql/qa/rest/BaseRestSqlTestCase.java", "x-pack/plugin/sql/qa/server/src/main/java/org/elasticsearch/xpack/sql/qa/rest/RestSqlPaginationTestCase.java", "x-pack/plugin/sql/qa/server/src/main/java/org/elasticsearch/xpack/sql/qa/rest/RestSqlTestCase.java", "x-pack/plugin/sql/src/internalClusterTest/java/org/elasticsearch/xpack/sql/action/SqlSearchPageTimeoutIT.java", "x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/execution/search/CompositeAggCursor.java", "x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/execution/search/Querier.java", "x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/execution/search/SearchHitCursor.java", "x-pack/plugin/sql/src/test/java/org/elasticsearch/xpack/sql/analysis/CancellationTests.java"] | SQL: Support consistent pagination for `GROUP BY` and `PIVOT` queries | ### Description
Only "search hits" based queries (no aggregations) provide a consistent view on the data when paginating through the result set. With point-in-time, it is possible to support transactional semantics for aggregation queries as well.
This issue is somewhat blocked by https://github.com/elastic/elasticsearch/issues/75528 because a PIT can not immediately be closed if the aggregation result set contains less than `fetch_size` records. This could cause some increased resource utilization due to open PITs. Especially if the client does not close the SQL cursor. | https://github.com/elastic/elasticsearch/issues/84349 | https://github.com/elastic/elasticsearch/pull/84605 | e56d3d3de67e198663a61c72047a4baf0accd9c8 | c4253ad29815d55b92746fd3e212ec33325ed54e | "2022-02-24T15:37:27Z" | java | "2022-03-14T14:14:41Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,308 | [".idea/externalDependencies.xml", "x-pack/plugin/ml/build.gradle"] | Consume new ML artifacts when building plugin bundle | https://github.com/elastic/ml-cpp/pull/2163 introduced separate artifacts for ML code and upstream dependencies. This allows us to have better reuse of cached dependency artifacts since the ML dependencies rarely change and they make up the bulk of the downloaded artifact. Update our ML plugin bundling so that when downloading the latest snapshot we use these new dependencies.
Relates to https://github.com/elastic/elasticsearch/issues/76726 | https://github.com/elastic/elasticsearch/issues/84308 | https://github.com/elastic/elasticsearch/pull/84536 | 0acdd68aae9a939cfa021b04751bb680c8932905 | a34c0b44d6c24f3e812867a809ee4622650c7704 | "2022-02-23T17:19:27Z" | java | "2022-03-04T18:11:17Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,262 | ["docs/changelog/86935.yaml", "server/src/internalClusterTest/java/org/elasticsearch/search/profile/aggregation/AggregationProfilerIT.java", "server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregator.java", "server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregatorTests.java", "server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregatorTests.java"] | Optimize date_histogram for single-valued fields | ### Description
Our most common aggregations should be optimized for single-valued fields. In general, our aggregations look like this:
```java
@Override
public LeafBucketCollector getLeafCollector(LeafReaderContext ctx, LeafBucketCollector sub) throws IOException {
if (valuesSource == null) {
return LeafBucketCollector.NO_OP_COLLECTOR;
}
SortedNumericDocValues values = valuesSource.longValues(ctx);
return new LeafBucketCollectorBase(sub, values) {
@Override
public void collect(int doc, long owningBucketOrd) throws IOException {
if (values.advanceExact(doc)) {
int valuesCount = values.docValueCount();
for (int i = 0; i < valuesCount; ++i) {
long value = values.nextValue();
// do something with value
}
}
}
};
}
```
The idea consists of optimizing for single-valued fields by unwrapping the single-valued doc-value iterator:
```java
@Override
public LeafBucketCollector getLeafCollector(LeafReaderContext ctx, LeafBucketCollector sub) throws IOException {
if (valuesSource == null) {
return LeafBucketCollector.NO_OP_COLLECTOR;
}
SortedNumericDocValues values = valuesSource.longValues(ctx);
NumericDocValues singleValues = DocValues.unwrapSingleton(values); // or FieldData.unwrapSingleton for doubles
if (singleValues != null) {
return new LeafBucketCollectorBase(sub, values) {
@Override
public void collect(int doc, long owningBucketOrd) throws IOException {
if (singleValues.advanceExact(doc)) {
long value = singleValues.longValue();
// do something with value
}
}
};
} else {
return new LeafBucketCollectorBase(sub, values) {
@Override
public void collect(int doc, long owningBucketOrd) throws IOException {
if (values.advanceExact(doc)) {
int valuesCount = values.docValueCount();
for (int i = 0; i < valuesCount; ++i) {
long value = values.nextValue();
// do something with value
}
}
}
};
}
}
```
The `terms` aggregation already does this, and e.g. `min` and `max` aggregations use similar tricks that also help optimize the single-valued case. But `date_histogram`, which is one of our most common aggregations, doesn't. Let's specialize the single-value case for date histograms too? | https://github.com/elastic/elasticsearch/issues/84262 | https://github.com/elastic/elasticsearch/pull/86935 | 9c5a2c1e4572c4de2323feecb6f5fe739986f229 | 01a3af096951db083a11b991885709fbb79dd013 | "2022-02-23T08:12:02Z" | java | "2022-05-26T21:57:47Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,245 | ["modules/reindex/src/internalClusterTest/java/org/elasticsearch/migration/AbstractFeatureMigrationIntegTest.java", "modules/reindex/src/internalClusterTest/java/org/elasticsearch/migration/FeatureMigrationIT.java", "modules/reindex/src/internalClusterTest/java/org/elasticsearch/migration/MultiFeatureMigrationIT.java", "modules/reindex/src/internalClusterTest/java/org/elasticsearch/migration/SystemIndexMigrationIT.java", "server/src/main/java/org/elasticsearch/upgrades/SystemIndexMigrationTaskState.java", "server/src/test/java/org/elasticsearch/upgrades/SystemIndexMigrationTaskParamsXContentTests.java", "server/src/test/java/org/elasticsearch/upgrades/SystemIndexMigrationTaskStateXContentTests.java"] | Clean up Feature Migration tests | There's some cleanup to be done in `FeatureMigrationIT` and related classes.
- [x] Convert `static` `preMigrationHook` and `postMigrationHook` to use instance members, retrieved from the `internalCluster()`
- [x] Use Hamcrest matchers as described [in this comment](https://github.com/elastic/elasticsearch/pull/84192/files#r812224067) for better failure output
- [x] Rename `createSimpleSettings` to `createSettings`
- [x] Rename `createSimpleMapping` to `createMapping`
- [x] add support for unknown fields https://github.com/elastic/elasticsearch/pull/84258#pullrequestreview-890890422 | https://github.com/elastic/elasticsearch/issues/84245 | https://github.com/elastic/elasticsearch/pull/84281 | 3b6ea694a275453a9c41b5146fbc7be1ed0feb12 | 3d3eb316379729e8b2e29b8adae94e70c5e8b12e | "2022-02-22T21:36:22Z" | java | "2022-03-21T10:53:25Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,243 | ["test/yaml-rest-runner/src/main/java/org/elasticsearch/test/rest/yaml/section/DoSection.java"] | Fix up version skips added in #84210 and friends | ### Description
In #84210 we added logic to bypass an assertion when running BWC tests against some released versions since the assertion is known to fail on them. At the time there were no released versions on which the assertion holds, although it does hold on all the the relevant branches. This means we cannot be sure which versions will eventually carry the fix. When fixed versions are released, we should update the logic to reflect reality. This'll need doing in every active 8.x branch. | https://github.com/elastic/elasticsearch/issues/84243 | https://github.com/elastic/elasticsearch/pull/86196 | cae53d1cd745ac466bd157efe2dc3ceb0cbaa597 | 7ea0ca9af33a9d8a01b29815cfe640d0e07a35fb | "2022-02-22T19:16:25Z" | java | "2022-04-27T19:42:03Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,198 | ["docs/changelog/84242.yaml", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/action/TransportStartTrainedModelDeploymentAction.java", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/job/JobNodeSelector.java", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/job/NodeLoadDetector.java", "x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/job/JobNodeSelectorTests.java"] | ML autoscaling decider is not taking into account that an existing node can be upscaled | ### Elasticsearch Version
8.0.0
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
Elastic Cloud
### Problem Description
Spotted in Elastic Cloud when autoscaling is enabled with only 1 zone for ML.
Using third party model deployments as an example, when the resources of a currently provisioned ML node have been exceeded, the user should still be able to start trained model deployments and the existing node resources should be scaled up.
**Current observed behavior**
If autoscaling is limited to just 1 ML node/zone, autoscaling doesn’t work if an ML node is provisioned but it doesn't have enough resources to fit new workloads.
### Steps to Reproduce
1. Create a deployment in Elastic Cloud using v8.0.0, autoscaling enabled and only 1 ML zone.
2. Upload and start a third party trained model deployment
3. Wait for autoscaling to provision an ML node
4. Try uploading/starting more third party trained model deployment until currently available resources are exceeded
5. Notice that instead of upscaling the ML node, the trained model start command fails claiming "not enough resources available".
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/84198 | https://github.com/elastic/elasticsearch/pull/84242 | c4686128f0142b8490aa33e56e7d3465dd62dc72 | 28758b0e261a12586305a961c8127c954320063d | "2022-02-21T17:24:05Z" | java | "2022-02-23T12:54:06Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,172 | ["server/src/internalClusterTest/java/org/elasticsearch/discovery/StableMasterDisruptionIT.java"] | [CI] StableMasterDisruptionIT testFollowerCheckerDetectsUnresponsiveNodeAfterMasterReelection failing | Doesn't seem to reproduce, but seen a few times including on a local test run.
**Build scan:**
https://gradle-enterprise.elastic.co/s/rlfzaojrmr5fs/tests/:server:internalClusterTest/org.elasticsearch.discovery.StableMasterDisruptionIT/testFollowerCheckerDetectsUnresponsiveNodeAfterMasterReelection
**Reproduction line:**
`./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.discovery.StableMasterDisruptionIT.testFollowerCheckerDetectsUnresponsiveNodeAfterMasterReelection" -Dtests.seed=D3646D45AD35342 -Dtests.locale=sq -Dtests.timezone=Africa/Blantyre -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
~No~ Yes after a few iterations on an otherwise-stressed machine.
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.discovery.StableMasterDisruptionIT&tests.test=testFollowerCheckerDetectsUnresponsiveNodeAfterMasterReelection
**Failure excerpt:**
```
com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=1859, name=Thread-57, state=RUNNABLE, group=TGRP-StableMasterDisruptionIT]
at __randomizedtesting.SeedInfo.seed([D3646D45AD35342:8B4BBC8B276FEAF4]:0)
Caused by: java.lang.AssertionError: java.lang.IllegalArgumentException: remote node [{node_t1}{TGSMWMQ-RRaRBJF0h3JuFQ}{O_WeXHzdTTO0QySJOxau3g}{127.0.0.1}{127.0.0.1:37609}{d}] is build [22b7ed72a1bdfc47c1f01f757d4682f34859074d] of version [8.1.0] but this node is build [unknown] of version [8.1.0] which has an incompatible wire format
at __randomizedtesting.SeedInfo.seed([D3646D45AD35342]:0)
at org.elasticsearch.transport.InboundHandler.handleResponse(InboundHandler.java:346)
at org.elasticsearch.transport.InboundHandler.messageReceived(InboundHandler.java:142)
at org.elasticsearch.transport.InboundHandler.inboundMessage(InboundHandler.java:94)
at org.elasticsearch.transport.TcpTransport.inboundMessage(TcpTransport.java:796)
at org.elasticsearch.transport.InboundPipeline.forwardFragments(InboundPipeline.java:149)
at org.elasticsearch.transport.InboundPipeline.doHandleBytes(InboundPipeline.java:121)
at org.elasticsearch.transport.InboundPipeline.handleBytes(InboundPipeline.java:86)
at org.elasticsearch.transport.netty4.Netty4MessageChannelHandler.channelRead(Netty4MessageChannelHandler.java:74)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.handler.logging.LoggingHandler.channelRead(LoggingHandler.java:280)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:719)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:620)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:583)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.IllegalArgumentException: remote node [{node_t1}{TGSMWMQ-RRaRBJF0h3JuFQ}{O_WeXHzdTTO0QySJOxau3g}{127.0.0.1}{127.0.0.1:37609}{d}] is build [22b7ed72a1bdfc47c1f01f757d4682f34859074d] of version [8.1.0] but this node is build [unknown] of version [8.1.0] which has an incompatible wire format
at org.elasticsearch.transport.TransportService$HandshakeResponse.<init>(TransportService.java:582)
at org.elasticsearch.action.ActionListenerResponseHandler.read(ActionListenerResponseHandler.java:58)
at org.elasticsearch.action.ActionListenerResponseHandler.read(ActionListenerResponseHandler.java:25)
at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.read(TransportService.java:1330)
at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.read(TransportService.java:1317)
at org.elasticsearch.transport.InboundHandler.handleResponse(InboundHandler.java:338)
at org.elasticsearch.transport.InboundHandler.messageReceived(InboundHandler.java:142)
at org.elasticsearch.transport.InboundHandler.inboundMessage(InboundHandler.java:94)
at org.elasticsearch.transport.TcpTransport.inboundMessage(TcpTransport.java:796)
at org.elasticsearch.transport.InboundPipeline.forwardFragments(InboundPipeline.java:149)
at org.elasticsearch.transport.InboundPipeline.doHandleBytes(InboundPipeline.java:121)
at org.elasticsearch.transport.InboundPipeline.handleBytes(InboundPipeline.java:86)
at org.elasticsearch.transport.netty4.Netty4MessageChannelHandler.channelRead(Netty4MessageChannelHandler.java:74)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.handler.logging.LoggingHandler.channelRead(LoggingHandler.java:280)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:719)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:620)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:583)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84172 | https://github.com/elastic/elasticsearch/pull/84200 | 119fbcf64e85f31c6d7c208a826ea62257c06f62 | e853bf5f3faff537a974abb50a93610127b5b0b2 | "2022-02-19T12:16:26Z" | java | "2022-02-22T08:21:23Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,171 | ["docs/changelog/84376.yaml", "modules/data-streams/src/internalClusterTest/java/org/elasticsearch/datastreams/DataStreamIT.java", "server/src/main/java/org/elasticsearch/cluster/metadata/MetadataIndexTemplateService.java", "server/src/test/java/org/elasticsearch/cluster/metadata/MetadataIndexTemplateServiceTests.java"] | Index Template cannot be deleted / error message seems incorrect | ### Elasticsearch Version
7.17
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
Not relevant
### Problem Description
Creating a match all index template is bad and we know it.
I needed it for a test and I created a new index template with a `*` `index_pattern`.
I wanted to delete it after few minutes (so that it wouldn't picked up by any new index creation) and I couldn't, unless updating it to match no index.
It seems to deny the deletion because it reports being used by data streams.
### Steps to Reproduce
Create a Index Template matching all:
```
PUT _index_template/matchall
{
"index_patterns": [
"*"
],
"priority": 1,
"template": {
"mappings": {
"_meta": {
"class": "lol"
}
}
}
}
```
Try to delete it:
```
DELETE _index_template/matchall
```
You get:
```
{
"error" : {
"root_cause" : [
{
"type" : "illegal_argument_exception",
"reason" : "unable to remove composable templates [matchall] as they are in use by a data streams [.fleet-actions-results, .logs-deprecation.elasticsearch-default, .slm-history-5, ilm-history-5, logs-elastic_agent-default, logs-elastic_agent.endpoint_security-default, logs-elastic_agent.filebeat-default, logs-elastic_agent.metricbeat-default, logs-endpoint.events.file-default, logs-endpoint.events.library-default, logs-endpoint.events.network-default, logs-endpoint.events.process-default, logs-endpoint.events.registry-default, logs-endpoint.events.security-default, logs-generic-default, logs-windows.powershell-default, logs-windows.powershell_operational-default, logs-windows.sysmon_operational-default, metrics-elastic_agent.elastic_agent-default, metrics-elastic_agent.endpoint_security-default, metrics-elastic_agent.filebeat-default, metrics-elastic_agent.metricbeat-default, metrics-endpoint.metadata-default, metrics-endpoint.metrics-default, metrics-endpoint.policy-default, metrics-system.cpu-default, metrics-system.diskio-default, metrics-system.memory-default, metrics-system.network-default, metrics-system.process-default, metrics-system.process_summary-default, metrics-system.socket_summary-default, metrics-system.uptime-default, metrics-windows.perfmon-default, metrics-windows.service-default]"
}
],
"type" : "illegal_argument_exception",
"reason" : "unable to remove composable templates [matchall] as they are in use by a data streams [.fleet-actions-results, .logs-deprecation.elasticsearch-default, .slm-history-5, ilm-history-5, logs-elastic_agent-default, logs-elastic_agent.endpoint_security-default, logs-elastic_agent.filebeat-default, logs-elastic_agent.metricbeat-default, logs-endpoint.events.file-default, logs-endpoint.events.library-default, logs-endpoint.events.network-default, logs-endpoint.events.process-default, logs-endpoint.events.registry-default, logs-endpoint.events.security-default, logs-generic-default, logs-windows.powershell-default, logs-windows.powershell_operational-default, logs-windows.sysmon_operational-default, metrics-elastic_agent.elastic_agent-default, metrics-elastic_agent.endpoint_security-default, metrics-elastic_agent.filebeat-default, metrics-elastic_agent.metricbeat-default, metrics-endpoint.metadata-default, metrics-endpoint.metrics-default, metrics-endpoint.policy-default, metrics-system.cpu-default, metrics-system.diskio-default, metrics-system.memory-default, metrics-system.network-default, metrics-system.process-default, metrics-system.process_summary-default, metrics-system.socket_summary-default, metrics-system.uptime-default, metrics-windows.perfmon-default, metrics-windows.service-default]"
},
"status" : 400
}
```
The list seems to be composed by all the data streams.
## Workaround
Update the `index_patterns` to something non-existing.
```
PUT _index_template/matchall
{
"index_patterns": [
"none"
],
"priority": 1,
"template": {
"mappings": {
"_meta": {
"class": "lol"
}
}
}
}
```
Then delete it:
```
DELETE _index_template/matchall
```
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/84171 | https://github.com/elastic/elasticsearch/pull/84376 | 50db05bc1cc0ba5c18d7de5073f2c95ed95fdc77 | 76a24890a2ea169992e98c6de7139b9cb13fcf39 | "2022-02-18T19:43:12Z" | java | "2022-02-28T19:06:44Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,161 | ["docs/changelog/87717.yaml", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/store/ReservedRolesStore.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/authz/store/ReservedRolesStoreTests.java"] | Add [indices:admin/rollover] permission for remote_monitoring_user | ### Elasticsearch Version
8.0
The built-in `remote_monitoring_user` has [remote_monitoring_agent, remote_monitoring_collector] roles, which can't perform a rollover on metricbeat indices.
`
[org.elasticsearch.xpack.ilm.IndexLifecycleRunner] [instance-0000000001] policy [metricbeat] for index [metricbeat-7.15.2-2022.01.24-000001] failed on step [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}]. Moving to ERROR step
org.elasticsearch.ElasticsearchSecurityException: action [indices:admin/rollover] is unauthorized for user [remote_monitoring_user] with roles [remote_monitoring_agent,remote_monitoring_collector] on indices [metricbeat-7.15.2,metricbeat-7.15.2-2022.01.24-000001], this action is granted by the index privileges [manage_follow_index,manage,all]
` | https://github.com/elastic/elasticsearch/issues/84161 | https://github.com/elastic/elasticsearch/pull/87717 | aee3a253dd8f5c40be9d3b1686b8c7889556a2f3 | 12cbe31732e8f90ce46c809a8e97a3c9f5e368cb | "2022-02-18T05:32:07Z" | java | "2022-06-20T21:34:56Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,159 | ["x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/SetSingleNodeAllocateStepTests.java"] | SetSingleNodeAllocateStepTests#testPerformActionAttrsRequestFails can fail with assertion | ### CI Link
https://gradle-enterprise.elastic.co/s/7dleq35dp5stm
### Repro line
./gradlew ':x-pack:plugin:core:test' --tests "org.elasticsearch.xpack.core.ilm.SetSingleNodeAllocateStepTests.testPerformActionAttrsRequestFails" -Dtests.seed=6B438F3C3DADE5D2 -Dtests.locale=nl -Dtests.timezone=Asia/Chongqin
### Does it reproduce?
Yes
### Applicable branches
8.1, 8.0
### Failure history
Seems to fail rarely, but has failed before. Example: https://gradle-enterprise.elastic.co/s/d33b4fzn7yoh6
### Failure excerpt
```
org.elasticsearch.xpack.core.ilm.SetSingleNodeAllocateStepTests > testPerformActionAttrsRequestFails FAILED
java.lang.AssertionError: Node roles must not be provided as attributes but saw attributes {ml=K}
at __randomizedtesting.SeedInfo.seed([C679BACC1DA27FA7:CB16887322D9C088]:0)
at org.elasticsearch.cluster.node.DiscoveryNode.<init>(DiscoveryNode.java:233)
at org.elasticsearch.cluster.node.DiscoveryNode.<init>(DiscoveryNode.java:175)
``` | https://github.com/elastic/elasticsearch/issues/84159 | https://github.com/elastic/elasticsearch/pull/84533 | 301231582a99897d56263ee5f5bc7463f4114afd | 51484a02586e63a92d110d422df8850d76a5dbd9 | "2022-02-18T00:20:15Z" | java | "2022-03-01T22:45:13Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,048 | ["docs/changelog/84427.yaml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.aggregation/370_doc_count_field.yml", "server/src/main/java/org/elasticsearch/index/mapper/DocCountFieldMapper.java", "server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FilterByFilterAggregator.java", "server/src/main/java/org/elasticsearch/search/aggregations/support/AggregationContext.java", "server/src/test/java/org/elasticsearch/search/aggregations/bucket/filter/FiltersAggregatorTests.java", "server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregatorTests.java", "server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregatorTests.java"] | Aggs: filter_by_filter optimization kicks in automatically to *slow down* `term` when `_doc_count` is present | ### Elasticsearch Version
many
### Installed Plugins
none
### Java Version
_bundled_
### OS Version
all
### Problem Description
The `filter_by_filter` optimization should kick in when it makes aggs faster. We have a switch to turn it off, but we advise folks not to because it usually does a good job. Well, we've found a case where the heuristics do a bad job of picking the implementation - specifically I've seen a case when the `_doc_count` field exists and we're slower. I'm not really sure if this is universal, but it could be. I'm trying to figure out if this is an all the time thing or a sometimes thing.
### Steps to Reproduce
index docs with `_doc_count`. run a terms agg on a field with a cardinality in the ball park of 500.
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/84048 | https://github.com/elastic/elasticsearch/pull/84427 | cb920164c464385bc38b0746aa0ded2d34280569 | e6dfc8309afd93a9b5f5f958f695e998ccae910f | "2022-02-16T17:00:51Z" | java | "2022-03-17T08:52:18Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,036 | ["docs/changelog/84089.yaml", "server/src/main/java/org/elasticsearch/snapshots/SnapshotsService.java"] | [CI] RepositoryHdfsClientYamlTestSuiteIT test {yaml=hdfs_repository_2/30_snapshot/take snapshot} failing | I tried reproduction a few times locally but without success.
**Build scan:**
https://gradle-enterprise.elastic.co/s/fngwbzlxxdsfa/tests/:plugins:repository-hdfs:integTest2/org.elasticsearch.repositories.hdfs.RepositoryHdfsClientYamlTestSuiteIT/test%20%7Byaml=hdfs_repository_2%2F30_snapshot%2Ftake%20snapshot%7D
**Reproduction line:**
`./gradlew ':plugins:repository-hdfs:integTest2' --tests "org.elasticsearch.repositories.hdfs.RepositoryHdfsClientYamlTestSuiteIT.test {yaml=hdfs_repository_2/30_snapshot/take snapshot}" -Dtests.seed=FE97822C475ED786 -Dtests.locale=et-EE -Dtests.timezone=Asia/Riyadh -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.repositories.hdfs.RepositoryHdfsClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dhdfs_repository_2/30_snapshot/take%20snapshot%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [hdfs_repository_2/30_snapshot:39]: Response is missing required X-Elastic-Product response header
at __randomizedtesting.SeedInfo.seed([FE97822C475ED786:76C3BDF6E9A2BA7E]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:493)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.AssertionError: Response is missing required X-Elastic-Product response header
at org.junit.Assert.fail(Assert.java:88)
at org.elasticsearch.test.rest.yaml.section.DoSection.checkElasticProductHeader(DoSection.java:398)
at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:370)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:482)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84036 | https://github.com/elastic/elasticsearch/pull/84089 | 35c9258e46c4865efc0efeeec1beaadeee9469ec | e27145030cfa4c6b269549f61f776cbe71520d45 | "2022-02-16T14:12:15Z" | java | "2022-02-17T10:08:38Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,009 | ["docs/reference/mapping/types/geo-shape.asciidoc"] | Cannot capture New Zealand using Orientation | ### Elasticsearch Version
7.16.2
### Installed Plugins
_No response_
### Java Version
openjdk version "1.8.0_292"
### OS Version
Darwin Kernel Version 20.6.0
### Problem Description
I'm using ES 7.16.2 and trying to capture New Zealand and having a horrible time of it.
This query does not capture NZ no matter the combinations of orientation values that I use.
```
POST /geo-test/_doc
{
"location" : {
"type" : "polygon",
"coordinates" : [
[
[-175.1235077, -28.8773225],
[165.7437641, -28.8773225],
[165.7437641, -52.7224663],
[-175.1235077, -52.7224663],
[-175.1235077, -28.8773225]
]
]
}
}
```
The only way I can get it to work is by translating the negative longitudes by +360.
```
POST /geo-test/_doc
{
"location" : {
"type" : "polygon",
"coordinates" : [
[
[185.1235077, -28.8773225],
[165.7437641, -28.8773225],
[165.7437641, -52.7224663],
[185.1235077, -52.7224663],
[185.1235077, -28.8773225]
]
]
}
}
```
Is that the intended method?
Note: I am viewing these polygons in the Kibana Map viewer. I suppose the issue could be there or I just really don't understand what Orientation is supposed to be doing here.
Thanks!
### Steps to Reproduce
Create index:
```
PUT /geo-test
{
"mappings":{
"properties": {
"location": {
"type": "geo_shape"
}
}
}
}
```
Use the queries listed above
View in Kibana Map viewer
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/84009 | https://github.com/elastic/elasticsearch/pull/84025 | 69e898db9f5bd1935a9dcca2d6d1f76d69b576cf | 6ad3f8bfdd7c7ea1b0d8e35cba90555d9fc73250 | "2022-02-16T05:05:32Z" | java | "2022-02-17T15:33:06Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,948 | ["docs/reference/analysis.asciidoc"] | Lucene analysis link is broken from version 8 | ### Elasticsearch Version
8.0
### Installed Plugins
none
### Java Version
_bundled_
### OS Version
macos
### Problem Description
Refer to all the latest analysis pieces like [edge-n-gram token filter](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/analysis-edgengram-tokenfilter.html) which mention the underlying Lucene token filter it is using, as shown in attached screen-shot, when you click on the link, it's broken since es version 8.0, before that ES was using lucene 8.X and there path was like `https://lucene.apache.org/core/8_11_1/analyzers-common/org/apache/lucene/analysis` but ES since its 8.0 version is using Lucene 9.X, where analysis path is `https://lucene.apache.org/core/9_0_0/analysis/common/org/apache/lucene/analysis/`, notice that `analyzers-common` is replaces with `analysis/common` in the URL.
@cbuescher Let me know if I could work on this issue.
### Steps to Reproduce
1. Go to [Edge-n-gram token-filter](url) and open the Lucene link for the token filter.
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/83948 | https://github.com/elastic/elasticsearch/pull/84094 | 3d2617136c8d8e6880d486204f6e393c6a9b9e17 | 4e55efc09d46ef11f99de7347b325840fa5f0c93 | "2022-02-15T14:50:11Z" | java | "2022-02-17T11:44:12Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,946 | ["docs/changelog/84051.yaml", "modules/legacy-geo/src/main/java/org/elasticsearch/legacygeo/builders/PolygonBuilder.java", "modules/legacy-geo/src/test/java/org/elasticsearch/legacygeo/ShapeBuilderTests.java", "modules/legacy-geo/src/test/java/org/elasticsearch/legacygeo/builders/PolygonBuilderTests.java", "server/src/main/java/org/elasticsearch/common/geo/GeoPolygonDecomposer.java", "server/src/test/java/org/elasticsearch/common/geo/GeometryIndexerTests.java", "server/src/test/java/org/elasticsearch/common/geo/GeometryNormalizerTests.java", "x-pack/plugin/spatial/src/test/java/org/elasticsearch/xpack/spatial/index/mapper/GeoShapeWithDocValuesFieldMapperTests.java"] | New polygon orientation logic breaks on small polygon | We recently upgraded from ES version 6 to 7.16.3. One of the shapes we have in our index worked fine in version 6 and is currently working fine in version 7 in the index we migrated over from 6, but when trying to recreate the index in version 7, it throws an "invalid_shape_exception" exception on one of the shapes.
This shape is a very narrow polygon wedge. It was the result of public land parcel data that was originally a linestring that ended up getting buffered into a polygon. It indexed fine in the last version of Elasticsearch and when I test the geojson in online viewers, it displays it just fine. See below for details on how to recreate.
**Search Index Settings:**
`PUT http://ServerName:PortNumber/test_index?include_type_name=true
{
"settings": {
"index": {
"codec": "best_compression"
},
"number_of_shards": 10,
"number_of_replicas": 0,
"refresh_interval": -1
},
"mappings": {
"datasetitems": {
"properties": {
"geography": {
"type": "geo_shape",
"tree": "quadtree",
"precision": "50.0m"
}
}
}
}
}`
**Post that returns error:**
`POST http://ServerName:PortNumber/_bulk
{ "create": { "_index" : "test_index", "_type" : "datasetitems", "_id": 1 } }
{"geography":{"type":"Polygon","coordinates":[[[-107.88180702965093,37.289285907909985],[-107.88179936541891,37.289278246132682],[-107.88180701456989,37.289285918063491],[-107.88180702965093,37.289285907909985]]]}}`
**Error I receive:**
`"error": {
"type": "mapper_parsing_exception",
"reason": "failed to parse",
"caused_by": {
"type": "invalid_shape_exception",
"reason": "Cannot determine orientation: signed area equal to 0"
}
}` | https://github.com/elastic/elasticsearch/issues/83946 | https://github.com/elastic/elasticsearch/pull/84051 | ed6627f80432e83eab8109bd551c00e4a532f925 | 3e1b6612ac259e9d9c5bc1a50d1a5068cdc02377 | "2022-02-15T14:20:28Z" | java | "2022-02-17T07:12:52Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,923 | ["x-pack/plugin/ml/src/internalClusterTest/java/org/elasticsearch/xpack/ml/integration/TestFeatureLicenseTrackingIT.java"] | [CI] TestFeatureLicenseTrackingIT testFeatureTrackingInferenceModelPipeline failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/uxh3n4jdo6gnk/tests/:x-pack:plugin:ml:internalClusterTest/org.elasticsearch.xpack.ml.integration.TestFeatureLicenseTrackingIT/testFeatureTrackingInferenceModelPipeline
**Reproduction line:**
`./gradlew ':x-pack:plugin:ml:internalClusterTest' --tests "org.elasticsearch.xpack.ml.integration.TestFeatureLicenseTrackingIT.testFeatureTrackingInferenceModelPipeline" -Dtests.seed=3330A8C1DE35092D -Dtests.locale=en-AU -Dtests.timezone=Europe/Amsterdam -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.ml.integration.TestFeatureLicenseTrackingIT&tests.test=testFeatureTrackingInferenceModelPipeline
**Failure excerpt:**
```
java.lang.AssertionError: test leaves indices that were not deleted: .ml-annotations-000001
Expected: []
but: was [".ml-annotations-000001"]
at __randomizedtesting.SeedInfo.seed([3330A8C1DE35092D:3B4724E1DE5E0E49]:0)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.elasticsearch.test.ESSingleNodeTestCase.tearDown(ESSingleNodeTestCase.java:168)
at org.elasticsearch.xpack.ml.MlSingleNodeTestCase.tearDown(MlSingleNodeTestCase.java:112)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:1004)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/83923 | https://github.com/elastic/elasticsearch/pull/84020 | d465ee1be44fcc32783e8daa6eae8b5c87f3e3ff | 15e522ec414b482a4f347092128cb22b1113cc07 | "2022-02-15T08:43:23Z" | java | "2022-02-16T12:41:19Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,917 | ["docs/changelog/83918.yaml", "modules/reindex/src/internalClusterTest/java/org/elasticsearch/migration/FeatureMigrationIT.java", "server/src/main/java/org/elasticsearch/action/admin/cluster/migration/TransportPostFeatureUpgradeAction.java"] | Feature migration refuses to run if all features requiring upgrade have encountered errors | ### Elasticsearch Version
7.17.0
### Installed Plugins
none
### Java Version
_bundled_
### OS Version
Doesn't matter
### Problem Description
If all features which still require migration have encountered an error, trying to start migration produces no results, only a response claiming no migration is necessary, even if that's not true. This means that transient errors that occur during migration are impossible to retry.
The only known workaround for this is a full-cluster restart, which will clear the migration upgrade result metadata.
### Steps to Reproduce
1. Start a cluster using a 6.x version.
2. Upgrade it to 7.17.0.
3. Run system index migration, but ensure that some indices fail (e.g. by triggering https://github.com/elastic/elasticsearch/issues/83779, which `.tasks` always will - fortunately that is easy enough to work around by removing the index)
4. Try to re-run migration. Migration will not try to re-run.
### Logs (if relevant)
The response will just say no migration is necessary:
```json
{
"accepted" : false,
"reason" : "No system indices require migration"
}
``` | https://github.com/elastic/elasticsearch/issues/83917 | https://github.com/elastic/elasticsearch/pull/83918 | 6ad3f8bfdd7c7ea1b0d8e35cba90555d9fc73250 | 4bc6a121c49cacc876562318c8a5325fe9def7bb | "2022-02-15T01:37:24Z" | java | "2022-02-17T16:56:53Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,915 | ["docs/changelog/83920.yaml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/tsdb/05_dimension_and_metric_in_non_tsdb_index.yml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/tsdb/20_mapping.yml", "server/src/main/java/org/elasticsearch/index/mapper/IpFieldMapper.java", "server/src/main/java/org/elasticsearch/index/mapper/KeywordFieldMapper.java", "server/src/main/java/org/elasticsearch/index/mapper/NumberFieldMapper.java", "server/src/test/java/org/elasticsearch/index/mapper/NestedObjectMapperTests.java", "x-pack/plugin/mapper-unsigned-long/src/main/java/org/elasticsearch/xpack/unsignedlong/UnsignedLongFieldMapper.java"] | tsdb/05_dimension_and_metric_in_non_tsdb_index/nested dimensions | ### CI Link
local
### Repro line
./gradlew ':rest-api-spec:yamlRestTest' --tests "org.elasticsearch.test.rest.ClientYamlTestSuiteIT.test {yaml=tsdb/05_dimension_and_metric_in_non_tsdb_index/nested dimensions}" -Dtests.seed=CE43030603A1AB90 -Dtests.locale=en-PH -Dtests.timezone=Asia/Aqtau -Druntime.java=17
### Does it reproduce?
Yes
### Applicable branches
master
### Failure history
I just caused it
### Failure excerpt
```
java.lang.AssertionError: Failure at [tsdb/05_dimension_and_metric_in_non_tsdb_index:239]: expected [2xx] status code but api [index] returned [400 Bad Request] [{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"failed to parse field [nested.dim] of type [keyword] in document with id 'yF2M-n4BxnJzvZeHLUG1'. Preview of field's value: 'bar'","stack_trace":"org.elasticsearch.index.mapper.MapperParsingException: failed to parse field [nested.dim] of type [keyword] in document with id 'yF2M-n4BxnJzvZeHLUG1'. Preview of field's value: 'bar'\n\tat org.elasticsearch.index.mapper.FieldMapper.parse(FieldMapper.java:254)\n\tat org.elasticsearch.index.mapper.DocumentParser.parseObjectOrField(DocumentParser.java:356)\n\tat org.elasticsearch.index.mapper.DocumentParser.parseValue(DocumentParser.java:508)\n\tat org.elasticsearch.index.mapper.DocumentParser.innerParseObject(DocumentParser.java:296)\n\tat org.elasticsearch.index.mapper.DocumentParser.parseObjectOrNested(DocumentParser.java:260)\n\tat org.elasticsearch.index.mapper.DocumentParser.parseObjectOrField(DocumentParser.java:354)\n\tat org.elasticsearch.index.mapper.DocumentParser.parseObject(DocumentParser.java:387)\n\tat org.elasticsearch.index.mapper.DocumentParser.parseNonDynamicArray(DocumentParser.java:470)\n\tat org.elasticsearch.index.mapper.DocumentParser.parseArray(DocumentParser.java:428)\n\tat org.elasticsearch.index.mapper.DocumentParser.innerParseObject(DocumentParser.java:284)\n\tat org.elasticsearch.index.mapper.DocumentParser.parseObjectOrNested(DocumentParser.java:260)\n\tat org.elasticsearch.index.mapper.DocumentParser.internalParseDocument(DocumentParser.java:118)\n\tat org.elasticsearch.index.mapper.DocumentParser.parseDocument(DocumentParser.java:80)\n\tat org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:80)\n\tat org.elasticsearch.index.shard.IndexShard.prepareIndex(IndexShard.java:998)\n\tat org.elasticsearch.index.shard.IndexShard.applyIndexOperation(IndexShard.java:947)\n\tat org.elasticsearch.index.shard.IndexShard.applyIndexOperationOnPrimary(IndexShard.java:891)\n\tat org.elasticsearch.action.bulk.TransportShardBulkAction.executeBulkItemRequest(TransportShardBulkAction.java:320)\n\tat org.elasticsearch.action
``` | https://github.com/elastic/elasticsearch/issues/83915 | https://github.com/elastic/elasticsearch/pull/83920 | 8ff13361276416cc1d6de43e047902ce227bc6aa | c84c7d484e40925c82f0c3bca3a387cf2ff35125 | "2022-02-14T23:15:02Z" | java | "2022-02-17T14:39:57Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,722 | ["modules/data-streams/build.gradle", "qa/mixed-cluster/build.gradle", "x-pack/qa/core-rest-tests-with-security/build.gradle", "x-pack/qa/runtime-fields/build.gradle"] | [CI] TSDBIndexingIT testTimeRanges failing | Introduced recently in https://github.com/elastic/elasticsearch/pull/82798
**Build scan:**
https://gradle-enterprise.elastic.co/s/doqs4hvlwmuyo/tests/:modules:data-streams:internalClusterTest/org.elasticsearch.datastreams.TSDBIndexingIT/testTimeRanges
**Reproduction line:**
`./gradlew ':modules:data-streams:internalClusterTest' --tests "org.elasticsearch.datastreams.TSDBIndexingIT.testTimeRanges" -Dtests.seed=CAC1EB749EBC5C7F -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=en-NZ -Dtests.timezone=America/Los_Angeles -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.datastreams.TSDBIndexingIT&tests.test=testTimeRanges
**Failure excerpt:**
```
java.lang.IllegalArgumentException: unknown setting [time_series.poll_interval] please check that any required plugins are installed, or check the breaking changes documentation for removed settings
at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:563)
at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:509)
at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:479)
at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:449)
at org.elasticsearch.common.settings.SettingsModule.<init>(SettingsModule.java:151)
at org.elasticsearch.common.settings.SettingsModule.<init>(SettingsModule.java:56)
at org.elasticsearch.node.Node.<init>(Node.java:445)
at org.elasticsearch.node.MockNode.<init>(MockNode.java:95)
at org.elasticsearch.node.MockNode.<init>(MockNode.java:83)
at org.elasticsearch.node.MockNode.<init>(MockNode.java:74)
at org.elasticsearch.test.ESSingleNodeTestCase.newNode(ESSingleNodeTestCase.java:250)
at com.carrotsearch.randomizedtesting.RandomizedContext.runWithPrivateRandomness(RandomizedContext.java:187)
at com.carrotsearch.randomizedtesting.RandomizedContext.runWithPrivateRandomness(RandomizedContext.java:211)
at org.elasticsearch.test.ESSingleNodeTestCase.startNode(ESSingleNodeTestCase.java:79)
at org.elasticsearch.test.ESSingleNodeTestCase.setUp(ESSingleNodeTestCase.java:118)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:980)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/83722 | https://github.com/elastic/elasticsearch/pull/83720 | 23be6d3e016ed2f0044db4517b191dcd76421d05 | 0ddfad4cd7df03acb49d1bace4d3bb87d5582c62 | "2022-02-09T13:27:45Z" | java | "2022-02-09T23:30:15Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,719 | ["rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.allocation/10_basic.yml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.indices/10_basic.yml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.indices/20_hidden.yml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.shards/10_basic.yml"] | [CI] ClientYamlTestSuiteIT test {yaml=cat.allocation/10_basic/Bytes} failing | Looks like this test also fails in a number of different ways
**Build scan:**
https://gradle-enterprise.elastic.co/s/2mecoqjjrralu/tests/:rest-api-spec:yamlRestTest/org.elasticsearch.test.rest.ClientYamlTestSuiteIT/test%20%7Byaml=cat.allocation%2F10_basic%2FBytes%7D
**Reproduction line:**
`./gradlew ':rest-api-spec:yamlRestTest' --tests "org.elasticsearch.test.rest.ClientYamlTestSuiteIT" -Dtests.method="test {yaml=cat.allocation/10_basic/Bytes}" -Dtests.seed=6F089B83E9FAF87E -Dtests.locale=et -Dtests.timezone=Asia/Famagusta -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.test.rest.ClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dcat.allocation/10_basic/Bytes%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [cat.allocation/10_basic:194]: field [$body] was expected to match the provided regex but didn't
Expected: ^
( 0 \s+
0 \s+
\d+ \s+
(\d+ \s+) #always should return value since we filter out non data nodes by default
(\d+ \s+) #always should return value since we filter out non data nodes by default
(\d+ \s+) #always should return value since we filter out non data nodes by default
[-\w.]+ \s+
\d+(\.\d+){3} \s+
[-\w.]+
\n
)+
$
but: was "1 0 5 41 47 11 127.0.0.1 127.0.0.1 yamlRestTest-0\n"
at __randomizedtesting.SeedInfo.seed([6F089B83E9FAF87E:E75CA45947069586]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:489)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.AssertionError: field [$body] was expected to match the provided regex but didn't
Expected: ^
( 0 \s+
0 \s+
\d+ \s+
(\d+ \s+) #always should return value since we filter out non data nodes by default
(\d+ \s+) #always should return value since we filter out non data nodes by default
(\d+ \s+) #always should return value since we filter out non data nodes by default
[-\w.]+ \s+
\d+(\.\d+){3} \s+
[-\w.]+
\n
)+
$
but: was "1 0 5 41 47 11 127.0.0.1 127.0.0.1 yamlRestTest-0\n"
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.elasticsearch.test.rest.yaml.section.MatchAssertion.doAssert(MatchAssertion.java:64)
at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:478)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/83719 | https://github.com/elastic/elasticsearch/pull/84539 | 8a1632235daa140f3904cfe46f8215537c75ded3 | c4b1f18f32aa337253664d1295bc1b59233b3d44 | "2022-02-09T12:32:39Z" | java | "2022-03-24T19:08:51Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,658 | ["docs/changelog/90303.yaml", "server/src/main/java/org/elasticsearch/index/mapper/IpFieldMapper.java", "server/src/test/java/org/elasticsearch/index/mapper/IpFieldTypeTests.java"] | Queries against IP field should use IndexOrDocValues when possible | ### Elasticsearch Version
master
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
any
### Problem Description
Currently we are using plain range queries against the BKD tree in all circumstances which can lead to slow queries in some circumstances. This issue comes from the discussion in this discuss issue:
https://discuss.elastic.co/t/very-slow-search-performance-after-upgrade-to-7-16-1/296152
The reason the query is performing badly is because we are executing a query that is matching many documents on the index which start behaving as a linear scan. This query is used with other conditions so having the queries wrapped with `IndexOrDocValuesQuery` is expected to perform much better.
### Steps to Reproduce
see discuss issue
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/83658 | https://github.com/elastic/elasticsearch/pull/90303 | dae717ae8d40509e8105e78ede8f84f887078b50 | 99d51df238252ee40b7da71225179677d2626e0f | "2022-02-08T14:57:05Z" | java | "2022-09-26T09:38:44Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,653 | ["docs/changelog/94000.yaml", "modules/ingest-common/src/yamlRestTest/resources/rest-api-spec/test/ingest/230_change_target_index.yml", "server/src/internalClusterTest/java/org/elasticsearch/index/FinalPipelineIT.java", "server/src/main/java/org/elasticsearch/ingest/CompoundProcessor.java", "server/src/main/java/org/elasticsearch/ingest/IngestDocument.java", "server/src/main/java/org/elasticsearch/ingest/IngestService.java", "server/src/test/java/org/elasticsearch/ingest/CompoundProcessorTests.java"] | final_pipeline appears to process twice when using the date match index processor | ### Elasticsearch Version
7.16.2
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
Cloud
### Problem Description
When using the `final_pipeline` option and the `date match index` in a pipeline to process data, the final_pipeline appears to run twice. This can be shown by using the `append` processor which adds two of the same values or a `rename` processor which shows a failure, but it will show the name of a field changed and shows a failure due to the `old` named field not being present.
Also referenced in a [discuss topic](https://discuss.elastic.co/t/with-final-pipeline-and-a-pipeline-specified-the-final-pipeline-appears-to-be-running-twice-with-index-date-math-processor/296593) to confirm that the example is valid.
Additional note: This seems to run fine on a 7.6.2 environment, so something between that and 7.16.2 may have caused this issue. #69727 or #75047 could be related.
### Steps to Reproduce
Append method of showing the `final_pipeline` running twice:
```
PUT _ingest/pipeline/test-final-pipeline
{
"processors": [
{
"append": {
"field": "pipeline",
"value": "completed"
}
}
]
}
PUT _template/test-template
{
"index_patterns": [
"test*"
],
"settings": {
"final_pipeline": "test-final-pipeline",
"number_of_shards": 2
}
}
POST /test-1/_doc
{
"time-field": "2021-02-10T12:02:01.789Z",
"CONTENT": "blah1"
}
PUT /_ingest/pipeline/routing-test-pipeline
{
"description": "Time series DAY pipeline",
"processors": [
{
"date_index_name": {
"field": "time-field",
"index_name_prefix": "test-",
"date_rounding": "d",
"index_name_format": "yyyy-MM-dd"
}
}
]
}
POST /test-1/_doc?pipeline=routing-test-pipeline
{
"time-field": "2021-02-10T12:02:01.789Z",
"CONTENT": "blah2"
}
```
Rename processor used to show a failure.
```
PUT _ingest/pipeline/test-final-pipeline
{
"processors": [
{
"rename": {
"field": "CONTENT",
"target_field": "MALCONTENT"
}
}
]
}
PUT _template/test-template
{
"index_patterns": [
"test*"
],
"settings": {
"final_pipeline": "test-final-pipeline",
"number_of_shards": 2
}
}
POST /test-1/_doc
{
"time-field": "2021-02-10T12:02:01.789Z",
"CONTENT": "blah1"
}
PUT /_ingest/pipeline/routing-test-pipeline
{
"description": "Time series DAY pipeline",
"processors": [
{
"date_index_name": {
"field": "time-field",
"index_name_prefix": "test-",
"date_rounding": "d",
"index_name_format": "yyyy-MM-dd"
}
}
]
}
POST /test-1/_doc?pipeline=routing-test-pipeline
{
"time-field": "2021-02-10T12:02:01.789Z",
"CONTENT": "blah2"
}
```
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/83653 | https://github.com/elastic/elasticsearch/pull/94000 | 8a8bc4f4d9de0e4714614df5b1787c13cba674a0 | cdf25220a0713e61cc4937bf0426230cc1ce4787 | "2022-02-08T14:25:09Z" | java | "2023-03-22T17:32:48Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,652 | ["docs/changelog/83661.yaml", "modules/repository-azure/build.gradle", "modules/repository-azure/licenses/log4j-slf4j-impl-2.17.1.jar.sha1", "modules/repository-azure/licenses/log4j-slf4j-impl-LICENSE.txt", "modules/repository-azure/licenses/log4j-slf4j-impl-NOTICE.txt"] | Azure repository is missing log4j-slf4j-impl dependency | ### Elasticsearch Version
8.0
### Installed Plugins
repository_azure
### Java Version
_bundled_
### OS Version
macos
### Problem Description
ES never had a dependency on slf4j, however azure repository does. This plugin default to no op logger implementation and emits a warning into logs
```
[2022-01-28T15:35:44,847][WARN ][stderr ] [runTask-0] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
[2022-01-28T15:35:44,848][WARN ][stderr ] [runTask-0] SLF4J: Defaulting to no-operation (NOP) logger implementation
[2022-01-28T15:35:44,849][WARN ][stderr ] [runTask-0] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
```
The stacktrace for this warning is
```
bind:135, LoggerFactory (org.slf4j)
performInitialization:108, LoggerFactory (org.slf4j)
getILoggerFactory:279, LoggerFactory (org.slf4j)
getLogger:252, LoggerFactory (org.slf4j)
<init>:58, ClientLogger (com.azure.core.util.logging)
<init>:48, ClientLogger (com.azure.core.util.logging)
<init>:49, JacksonAdapter (com.azure.core.util.serializer)
createDefaultSerializerAdapter:112, JacksonAdapter (com.azure.core.util.serializer)
<clinit>:55, AzureRepositoryPlugin (org.elasticsearch.repositories.azure)
newInstance0:-1, NativeConstructorAccessorImpl (jdk.internal.reflect)
newInstance:77, NativeConstructorAccessorImpl (jdk.internal.reflect)
newInstance:45, DelegatingConstructorAccessorImpl (jdk.internal.reflect)
newInstanceWithCaller:499, Constructor (java.lang.reflect)
newInstance:480, Constructor (java.lang.reflect)
loadPlugin:762, PluginsService (org.elasticsearch.plugins)
loadBundle:709, PluginsService (org.elasticsearch.plugins)
loadBundles:492, PluginsService (org.elasticsearch.plugins)
<init>:165, PluginsService (org.elasticsearch.plugins)
<init>:377, Node (org.elasticsearch.node)
<init>:277, Node (org.elasticsearch.node)
<init>:234, Bootstrap$5 (org.elasticsearch.bootstrap)
setup:234, Bootstrap (org.elasticsearch.bootstrap)
init:358, Bootstrap (org.elasticsearch.bootstrap)
init:166, Elasticsearch (org.elasticsearch.bootstrap)
execute:157, Elasticsearch (org.elasticsearch.bootstrap)
execute:77, EnvironmentAwareCommand (org.elasticsearch.cli)
mainWithoutErrorHandling:112, Command (org.elasticsearch.cli)
main:77, Command (org.elasticsearch.cli)
main:122, Elasticsearch (org.elasticsearch.bootstrap)
main:80, Elasticsearch (org.elasticsearch.bootstrap)
```
The problem become visible since https://github.com/elastic/elasticsearch/pull/81870/ made repository_azure a module (an always loaded plugin). Hence we can observe this warning on very startup when modules are loaded.
Should we add log4j-slf4j-impl dependency?
or Should we ignore this, "strip"/hide those warnings? From what I see in ClientLogger from azure-core it would just use System.out.println for logging.
```
logger = initLogger instanceof NOPLogger ? new DefaultLogger(className) : initLogger;
```
### Steps to Reproduce
checkout any revision after 29349f484328b09537533764d258d1666090b019 and start ES
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/83652 | https://github.com/elastic/elasticsearch/pull/83661 | 0a93df1e736461397a8c89801130e118e041399f | de756c1f5c11ffdd447db05b76ed17c5577465de | "2022-02-08T14:24:31Z" | java | "2022-02-09T10:01:29Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,632 | ["x-pack/docs/en/security/limitations.asciidoc"] | [Docs update] Document security limitation for _terms_enum | The [_terms_enum](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/search-terms-enum.html) API doesn't return any suggestion when document level security is enabled. This seems to be the intended behavior. Could you please update the [security limitations](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-limitations.html) page to mention this as it's not currently mentioned?
Thanks | https://github.com/elastic/elasticsearch/issues/83632 | https://github.com/elastic/elasticsearch/pull/89731 | 72a384d8d48b6b9e82697216e0fc54da2f083aab | ca7640009a4b1ba6e4a37835f4c06ad0ba710350 | "2022-02-08T08:51:35Z" | java | "2022-09-08T09:52:08Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,575 | ["docs/changelog/83767.yaml", "x-pack/plugin/sql/build.gradle", "x-pack/plugin/sql/sql-cli/licenses/jline-reader-3.14.1.jar.sha1", "x-pack/plugin/sql/sql-cli/licenses/jline-reader-3.21.0.jar.sha1", "x-pack/plugin/sql/sql-cli/licenses/jline-style-3.14.1.jar.sha1", "x-pack/plugin/sql/sql-cli/licenses/jline-style-3.21.0.jar.sha1", "x-pack/plugin/sql/sql-cli/licenses/jline-terminal-3.14.1.jar.sha1", "x-pack/plugin/sql/sql-cli/licenses/jline-terminal-3.21.0.jar.sha1", "x-pack/plugin/sql/sql-cli/licenses/jline-terminal-jna-3.14.1.jar.sha1", "x-pack/plugin/sql/sql-cli/licenses/jline-terminal-jna-3.21.0.jar.sha1"] | SQL: Upgrade JLine/Jansi | ### Description
The current version of JLine used by the SQL CLI has an old JAnsi dependency - when used in an environment with new hardware (such as Apple M1/Silicon) the terminal detection is unlikely to work (see https://github.com/elastic/elasticsearch/pull/83566).
Upgrading JAnsi to 2.4 (and by transition JLine as well) should fix this problem. | https://github.com/elastic/elasticsearch/issues/83575 | https://github.com/elastic/elasticsearch/pull/83767 | 248918f142b870b18fd5168a3210947e6550d3df | bf03552ddd21db9dfda1a0588f9a8b8edbf91e65 | "2022-02-07T08:29:19Z" | java | "2022-05-24T13:51:17Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,534 | ["docs/changelog/83595.yaml", "libs/x-content/src/main/java/org/elasticsearch/xcontent/support/MapXContentParser.java", "server/src/main/java/org/elasticsearch/index/mapper/AbstractGeometryFieldMapper.java", "server/src/main/java/org/elasticsearch/index/mapper/CompletionFieldMapper.java", "server/src/main/java/org/elasticsearch/index/mapper/FieldMapper.java", "server/src/main/java/org/elasticsearch/index/mapper/GeoPointFieldMapper.java", "server/src/test/java/org/elasticsearch/index/mapper/CompletionFieldMapperTests.java", "server/src/test/java/org/elasticsearch/index/mapper/GeoPointFieldMapperTests.java"] | Completion field can't hold more than one completion multi-field | Completion fields support multi-fields. When a multi-field is configured that supports the object format, and not only reading the value, for instance another completion field, an error is thrown when parsing the incoming document.
```
PUT completion_test_index_1
{
"mappings": {
"properties": {
"keyword": {
"type": "completion",
"fields": {
"subfield1": {
"type": "completion"
},
"subfield2": {
"type": "completion"
}
}
}
}
}
}
POST completion_test_index_1/_doc
{
"keyword":
{
"input": "test,
"weight": "10"
}
}
```
here is the error:
```
"root_cause" : [
{
"type" : "parsing_exception",
"reason" : "failed to parse [dummy_field]: expected text or object, but got END_OBJECT",
"line" : 0,
"col" : 0
}
]
```
The issue is that we switch the xcontent parser to be able to read the whole object structure of the field multiple times, but we end up exhausting it after the first pass and we stop at its END_OBJECT when trying to read it for the second time as it is not an unexpected token. I suspect configuring a keyword sub-field after the completion sub-field would also cause errors due to the leftover state of the parser.
Another issue that would be nice to address is that we output the error with wrong location and an artificial field name: users may think they have something wrong in their documents but they do not have a `dummy_field` in their documents.
| https://github.com/elastic/elasticsearch/issues/83534 | https://github.com/elastic/elasticsearch/pull/83595 | 62943fe85c04973825b098ac67d89e2f54bdb42c | a91e692779de0782871ecec36902ad05739a8672 | "2022-02-04T15:55:01Z" | java | "2022-02-11T14:15:17Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,533 | ["docs/changelog/83715.yaml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.aggregation/40_range.yml", "server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/InternalRange.java"] | [CI] MixedClusterClientYamlTestSuiteIT test {p0=search.aggregation/40_range/Float range} failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/khqcvxabzf3k4/tests/:qa:mixed-cluster:v7.17.0%23mixedClusterTest/org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT/test%20%7Bp0=search.aggregation%2F40_range%2FFloat%20range%7D
**Reproduction line:**
`./gradlew ':qa:mixed-cluster:v7.17.0#mixedClusterTest' -Dtests.class="org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT" -Dtests.method="test {p0=search.aggregation/40_range/Float range}" -Dtests.seed=D8CF8B264A2BA902 -Dtests.bwc=true -Dtests.locale=zh -Dtests.timezone=Africa/Brazzaville -Druntime.java=17`
**Applicable branches:**
8.1
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT&tests.test=test%20%7Bp0%3Dsearch.aggregation/40_range/Float%20range%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [search.aggregation/40_range:174]:
Expected: <10.6>
but: was <10.600000381469727>
at __randomizedtesting.SeedInfo.seed([D8CF8B264A2BA902:509BB4FCE4D7C4FA]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:489)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor19.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.AssertionError:
Expected: <10.6>
but: was <10.600000381469727>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.test.rest.yaml.section.MatchAssertion.doAssert(MatchAssertion.java:99)
at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:478)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor19.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/83533 | https://github.com/elastic/elasticsearch/pull/83715 | ca78d928aa8693e9f3f83d8dd37cbd2fcf6ee622 | b09cd19fde800871ecc1a0c6e9806f82c989c2c3 | "2022-02-04T15:54:11Z" | java | "2022-02-11T09:14:00Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,523 | ["qa/smoke-test-multinode/build.gradle", "server/src/test/java/org/elasticsearch/search/aggregations/bucket/sampler/random/RandomSamplerAggregatorTests.java", "x-pack/plugin/build.gradle"] | [CI] SmokeTestMultiNodeClientYamlTestSuiteIT test {yaml=search.aggregation/450_random_sampler/Test random_sampler aggregation with filter} failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/y2oxamxv5rh44/tests/:qa:smoke-test-multinode:integTest/org.elasticsearch.smoketest.SmokeTestMultiNodeClientYamlTestSuiteIT/test%20%7Byaml=search.aggregation%2F450_random_sampler%2FTest%20random_sampler%20aggregation%20with%20filter%7D
**Reproduction line:**
`./gradlew ':qa:smoke-test-multinode:integTest' --tests "org.elasticsearch.smoketest.SmokeTestMultiNodeClientYamlTestSuiteIT" -Dtests.method="test {yaml=search.aggregation/450_random_sampler/Test random_sampler aggregation with filter}" -Dtests.seed=89C9BB586C945CE2 -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=es-DO -Dtests.timezone=Etc/GMT-10 -Druntime.java=17`
**Applicable branches:**
8.1
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.smoketest.SmokeTestMultiNodeClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dsearch.aggregation/450_random_sampler/Test%20random_sampler%20aggregation%20with%20filter%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [search.aggregation/450_random_sampler:65]: expected [2xx] status code but api [search] returned [400 Bad Request] [{"error":{"root_cause":[{"type":"parsing_exception","reason":"Unknown aggregation type [random_sampler]","line":1,"col":98,"stack_trace":"org.elasticsearch.common.ParsingException: Unknown aggregation type [random_sampler]\n\tat org.elasticsearch.search.aggregations.AggregatorFactories.parseAggregators(AggregatorFactories.java:159)\n\tat org.elasticsearch.search.aggregations.AggregatorFactories.parseAggregators(AggregatorFactories.java:62)\n\tat org.elasticsearch.search.builder.SearchSourceBuilder.parseXContent(SearchSourceBuilder.java:1218)\n\tat org.elasticsearch.rest.action.search.RestSearchAction.parseSearchRequest(RestSearchAction.java:162)\n\tat org.elasticsearch.rest.action.search.RestSearchAction.parseSearchRequest(RestSearchAction.java:137)\n\tat org.elasticsearch.rest.action.search.RestSearchAction.lambda$prepareRequest$1(RestSearchAction.java:114)\n\tat org.elasticsearch.rest.RestRequest.withContentOrSourceParamParserOrNull(RestRequest.java:543)\n\tat org.elasticsearch.rest.action.search.RestSearchAction.prepareRequest(RestSearchAction.java:113)\n\tat org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:80)\n\tat org.elasticsearch.xpack.security.rest.SecurityRestFilter.handleRequest(SecurityRestFilter.java:119)\n\tat org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:385)\n\tat org.elasticsearch.rest.RestController.tryAllHandlers(RestController.java:453)\n\tat org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:300)\n\tat org.elasticsearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:385)\n\tat org.elasticsearch.http.AbstractHttpServerTransport.handleIncomingRequest(AbstractHttpServerTransport.java:464)\n\tat org.elasticsearch.http.AbstractHttpServerTransport.incomingRequest(AbstractHttpServerTransport.java:359)\n\tat org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:32)\n\tat org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:18)\n\tat io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.channelRead(Netty4HttpPipeliningHandler.java:48)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:327)\n\tat io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:299)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)\n\tat io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:722)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:623)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:586)\n\tat io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496)\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n\tat io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\nCaused by: org.elasticsearch.xcontent.NamedObjectNotFoundException: [1:98] unknown field [random_sampler]\n\tat org.elasticsearch.xcontent.NamedXContentRegistry.lookupParser(NamedXContentRegistry.java:162)\n\tat org.elasticsearch.xcontent.NamedXContentRegistry.parseNamedObject(NamedXContentRegistry.java:146)\n\tat org.elasticsearch.xcontent.support.AbstractXContentParser.namedObject(AbstractXContentParser.java:416)\n\tat org.elasticsearch.search.aggregations.AggregatorFactories.parseAggregators(AggregatorFactories.java:151)\n\t... 67 more\n"}],"type":"parsing_exception","reason":"Unknown aggregation type [random_sampler]","line":1,"col":98,"caused_by":{"type":"named_object_not_found_exception","reason":"[1:98] unknown field [random_sampler]","stack_trace":"org.elasticsearch.xcontent.NamedObjectNotFoundException: [1:98] unknown field [random_sampler]\n\tat org.elasticsearch.xcontent.NamedXContentRegistry.lookupParser(NamedXContentRegistry.java:162)\n\tat org.elasticsearch.xcontent.NamedXContentRegistry.parseNamedObject(NamedXContentRegistry.java:146)\n\tat org.elasticsearch.xcontent.support.AbstractXContentParser.namedObject(AbstractXContentParser.java:416)\n\tat org.elasticsearch.search.aggregations.AggregatorFactories.parseAggregators(AggregatorFactories.java:151)\n\tat org.elasticsearch.search.aggregations.AggregatorFactories.parseAggregators(AggregatorFactories.java:62)\n\tat org.elasticsearch.search.builder.SearchSourceBuilder.parseXContent(SearchSourceBuilder.java:1218)\n\tat org.elasticsearch.rest.action.search.RestSearchAction.parseSearchRequest(RestSearchAction.java:162)\n\tat org.elasticsearch.rest.action.search.RestSearchAction.parseSearchRequest(RestSearchAction.java:137)\n\tat org.elasticsearch.rest.action.search.RestSearchAction.lambda$prepareRequest$1(RestSearchAction.java:114)\n\tat org.elasticsearch.rest.RestRequest.withContentOrSourceParamParserOrNull(RestRequest.java:543)\n\tat org.elasticsearch.rest.action.search.RestSearchAction.prepareRequest(RestSearchAction.java:113)\n\tat org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:80)\n\tat org.elasticsearch.xpack.security.rest.SecurityRestFilter.handleRequest(SecurityRestFilter.java:119)\n\tat org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:385)\n\tat org.elasticsearch.rest.RestController.tryAllHandlers(RestController.java:453)\n\tat org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:300)\n\tat org.elasticsearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:385)\n\tat org.elasticsearch.http.AbstractHttpServerTransport.handleIncomingRequest(AbstractHttpServerTransport.java:464)\n\tat org.elasticsearch.http.AbstractHttpServerTransport.incomingRequest(AbstractHttpServerTransport.java:359)\n\tat org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:32)\n\tat org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:18)\n\tat io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.channelRead(Netty4HttpPipeliningHandler.java:48)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:327)\n\tat io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:299)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)\n\tat io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:722)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:623)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:586)\n\tat io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496)\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n\tat io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"},"stack_trace":"org.elasticsearch.common.ParsingException: Unknown aggregation type [random_sampler]\n\tat org.elasticsearch.search.aggregations.AggregatorFactories.parseAggregators(AggregatorFactories.java:159)\n\tat org.elasticsearch.search.aggregations.AggregatorFactories.parseAggregators(AggregatorFactories.java:62)\n\tat org.elasticsearch.search.builder.SearchSourceBuilder.parseXContent(SearchSourceBuilder.java:1218)\n\tat org.elasticsearch.rest.action.search.RestSearchAction.parseSearchRequest(RestSearchAction.java:162)\n\tat org.elasticsearch.rest.action.search.RestSearchAction.parseSearchRequest(RestSearchAction.java:137)\n\tat org.elasticsearch.rest.action.search.RestSearchAction.lambda$prepareRequest$1(RestSearchAction.java:114)\n\tat org.elasticsearch.rest.RestRequest.withContentOrSourceParamParserOrNull(RestRequest.java:543)\n\tat org.elasticsearch.rest.action.search.RestSearchAction.prepareRequest(RestSearchAction.java:113)\n\tat org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:80)\n\tat org.elasticsearch.xpack.security.rest.SecurityRestFilter.handleRequest(SecurityRestFilter.java:119)\n\tat org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:385)\n\tat org.elasticsearch.rest.RestController.tryAllHandlers(RestController.java:453)\n\tat org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:300)\n\tat org.elasticsearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:385)\n\tat org.elasticsearch.http.AbstractHttpServerTransport.handleIncomingRequest(AbstractHttpServerTransport.java:464)\n\tat org.elasticsearch.http.AbstractHttpServerTransport.incomingRequest(AbstractHttpServerTransport.java:359)\n\tat org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:32)\n\tat org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:18)\n\tat io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.channelRead(Netty4HttpPipeliningHandler.java:48)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:327)\n\tat io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:299)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)\n\tat io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:722)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:623)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:586)\n\tat io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496)\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n\tat io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\nCaused by: org.elasticsearch.xcontent.NamedObjectNotFoundException: [1:98] unknown field [random_sampler]\n\tat org.elasticsearch.xcontent.NamedXContentRegistry.lookupParser(NamedXContentRegistry.java:162)\n\tat org.elasticsearch.xcontent.NamedXContentRegistry.parseNamedObject(NamedXContentRegistry.java:146)\n\tat org.elasticsearch.xcontent.support.AbstractXContentParser.namedObject(AbstractXContentParser.java:416)\n\tat org.elasticsearch.search.aggregations.AggregatorFactories.parseAggregators(AggregatorFactories.java:151)\n\t... 67 more\n"},"status":400}]
at __randomizedtesting.SeedInfo.seed([89C9BB586C945CE2:19D8482C268311A]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:489)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.AssertionError: expected [2xx] status code but api [search] returned [400 Bad Request] [{"error":{"root_cause":[{"type":"parsing_exception","reason":"Unknown aggregation type [random_sampler]","line":1,"col":98,"stack_trace":"org.elasticsearch.common.ParsingException: Unknown aggregation type [random_sampler]\n\tat org.elasticsearch.search.aggregations.AggregatorFactories.parseAggregators(AggregatorFactories.java:159)\n\tat org.elasticsearch.search.aggregations.AggregatorFactories.parseAggregators(AggregatorFactories.java:62)\n\tat org.elasticsearch.search.builder.SearchSourceBuilder.parseXContent(SearchSourceBuilder.java:1218)\n\tat org.elasticsearch.rest.action.search.RestSearchAction.parseSearchRequest(RestSearchAction.java:162)\n\tat org.elasticsearch.rest.action.search.RestSearchAction.parseSearchRequest(RestSearchAction.java:137)\n\tat org.elasticsearch.rest.action.search.RestSearchAction.lambda$prepareRequest$1(RestSearchAction.java:114)\n\tat org.elasticsearch.rest.RestRequest.withContentOrSourceParamParserOrNull(RestRequest.java:543)\n\tat org.elasticsearch.rest.action.search.RestSearchAction.prepareRequest(RestSearchAction.java:113)\n\tat org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:80)\n\tat org.elasticsearch.xpack.security.rest.SecurityRestFilter.handleRequest(SecurityRestFilter.java:119)\n\tat org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:385)\n\tat org.elasticsearch.rest.RestController.tryAllHandlers(RestController.java:453)\n\tat org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:300)\n\tat org.elasticsearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:385)\n\tat org.elasticsearch.http.AbstractHttpServerTransport.handleIncomingRequest(AbstractHttpServerTransport.java:464)\n\tat org.elasticsearch.http.AbstractHttpServerTransport.incomingRequest(AbstractHttpServerTransport.java:359)\n\tat org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:32)\n\tat org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:18)\n\tat io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.channelRead(Netty4HttpPipeliningHandler.java:48)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:327)\n\tat io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:299)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)\n\tat io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:722)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:623)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:586)\n\tat io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496)\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n\tat io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\nCaused by: org.elasticsearch.xcontent.NamedObjectNotFoundException: [1:98] unknown field [random_sampler]\n\tat org.elasticsearch.xcontent.NamedXContentRegistry.lookupParser(NamedXContentRegistry.java:162)\n\tat org.elasticsearch.xcontent.NamedXContentRegistry.parseNamedObject(NamedXContentRegistry.java:146)\n\tat org.elasticsearch.xcontent.support.AbstractXContentParser.namedObject(AbstractXContentParser.java:416)\n\tat org.elasticsearch.search.aggregations.AggregatorFactories.parseAggregators(AggregatorFactories.java:151)\n\t... 67 more\n"}],"type":"parsing_exception","reason":"Unknown aggregation type [random_sampler]","line":1,"col":98,"caused_by":{"type":"named_object_not_found_exception","reason":"[1:98] unknown field [random_sampler]","stack_trace":"org.elasticsearch.xcontent.NamedObjectNotFoundException: [1:98] unknown field [random_sampler]\n\tat org.elasticsearch.xcontent.NamedXContentRegistry.lookupParser(NamedXContentRegistry.java:162)\n\tat org.elasticsearch.xcontent.NamedXContentRegistry.parseNamedObject(NamedXContentRegistry.java:146)\n\tat org.elasticsearch.xcontent.support.AbstractXContentParser.namedObject(AbstractXContentParser.java:416)\n\tat org.elasticsearch.search.aggregations.AggregatorFactories.parseAggregators(AggregatorFactories.java:151)\n\tat org.elasticsearch.search.aggregations.AggregatorFactories.parseAggregators(AggregatorFactories.java:62)\n\tat org.elasticsearch.search.builder.SearchSourceBuilder.parseXContent(SearchSourceBuilder.java:1218)\n\tat org.elasticsearch.rest.action.search.RestSearchAction.parseSearchRequest(RestSearchAction.java:162)\n\tat org.elasticsearch.rest.action.search.RestSearchAction.parseSearchRequest(RestSearchAction.java:137)\n\tat org.elasticsearch.rest.action.search.RestSearchAction.lambda$prepareRequest$1(RestSearchAction.java:114)\n\tat org.elasticsearch.rest.RestRequest.withContentOrSourceParamParserOrNull(RestRequest.java:543)\n\tat org.elasticsearch.rest.action.search.RestSearchAction.prepareRequest(RestSearchAction.java:113)\n\tat org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:80)\n\tat org.elasticsearch.xpack.security.rest.SecurityRestFilter.handleRequest(SecurityRestFilter.java:119)\n\tat org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:385)\n\tat org.elasticsearch.rest.RestController.tryAllHandlers(RestController.java:453)\n\tat org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:300)\n\tat org.elasticsearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:385)\n\tat org.elasticsearch.http.AbstractHttpServerTransport.handleIncomingRequest(AbstractHttpServerTransport.java:464)\n\tat org.elasticsearch.http.AbstractHttpServerTransport.incomingRequest(AbstractHttpServerTransport.java:359)\n\tat org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:32)\n\tat org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:18)\n\tat io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.channelRead(Netty4HttpPipeliningHandler.java:48)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:327)\n\tat io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:299)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)\n\tat io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:722)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:623)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:586)\n\tat io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496)\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n\tat io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"},"stack_trace":"org.elasticsearch.common.ParsingException: Unknown aggregation type [random_sampler]\n\tat org.elasticsearch.search.aggregations.AggregatorFactories.parseAggregators(AggregatorFactories.java:159)\n\tat org.elasticsearch.search.aggregations.AggregatorFactories.parseAggregators(AggregatorFactories.java:62)\n\tat org.elasticsearch.search.builder.SearchSourceBuilder.parseXContent(SearchSourceBuilder.java:1218)\n\tat org.elasticsearch.rest.action.search.RestSearchAction.parseSearchRequest(RestSearchAction.java:162)\n\tat org.elasticsearch.rest.action.search.RestSearchAction.parseSearchRequest(RestSearchAction.java:137)\n\tat org.elasticsearch.rest.action.search.RestSearchAction.lambda$prepareRequest$1(RestSearchAction.java:114)\n\tat org.elasticsearch.rest.RestRequest.withContentOrSourceParamParserOrNull(RestRequest.java:543)\n\tat org.elasticsearch.rest.action.search.RestSearchAction.prepareRequest(RestSearchAction.java:113)\n\tat org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:80)\n\tat org.elasticsearch.xpack.security.rest.SecurityRestFilter.handleRequest(SecurityRestFilter.java:119)\n\tat org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:385)\n\tat org.elasticsearch.rest.RestController.tryAllHandlers(RestController.java:453)\n\tat org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:300)\n\tat org.elasticsearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:385)\n\tat org.elasticsearch.http.AbstractHttpServerTransport.handleIncomingRequest(AbstractHttpServerTransport.java:464)\n\tat org.elasticsearch.http.AbstractHttpServerTransport.incomingRequest(AbstractHttpServerTransport.java:359)\n\tat org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:32)\n\tat org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:18)\n\tat io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.channelRead(Netty4HttpPipeliningHandler.java:48)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:327)\n\tat io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:299)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)\n\tat io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)\n\tat io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)\n\tat io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:722)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:623)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:586)\n\tat io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496)\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n\tat io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\nCaused by: org.elasticsearch.xcontent.NamedObjectNotFoundException: [1:98] unknown field [random_sampler]\n\tat org.elasticsearch.xcontent.NamedXContentRegistry.lookupParser(NamedXContentRegistry.java:162)\n\tat org.elasticsearch.xcontent.NamedXContentRegistry.parseNamedObject(NamedXContentRegistry.java:146)\n\tat org.elasticsearch.xcontent.support.AbstractXContentParser.namedObject(AbstractXContentParser.java:416)\n\tat org.elasticsearch.search.aggregations.AggregatorFactories.parseAggregators(AggregatorFactories.java:151)\n\t... 67 more\n"},"status":400}]
at org.junit.Assert.fail(Assert.java:88)
at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:374)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:478)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/83523 | https://github.com/elastic/elasticsearch/pull/83549 | 2282cf75d09e72eae1967e53491dca68088d7eaa | 73b323e6fa82727ba11a922c3d7cc23cd84fcd62 | "2022-02-04T14:28:21Z" | java | "2022-02-07T13:34:37Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,520 | ["modules/data-streams/src/javaRestTest/java/org/elasticsearch/datastreams/TsdbDataStreamRestIT.java", "modules/data-streams/src/main/java/org/elasticsearch/datastreams/DataStreamIndexSettingsProvider.java", "modules/data-streams/src/test/java/org/elasticsearch/datastreams/MetadataDataStreamRolloverServiceTests.java", "server/src/main/java/org/elasticsearch/action/admin/indices/rollover/MetadataRolloverService.java", "server/src/main/java/org/elasticsearch/cluster/metadata/DataStream.java", "server/src/test/java/org/elasticsearch/cluster/metadata/DataStreamTests.java", "test/framework/src/main/java/org/elasticsearch/cluster/metadata/DataStreamTestHelper.java", "x-pack/plugin/autoscaling/src/main/java/org/elasticsearch/xpack/autoscaling/storage/ReactiveStorageDeciderService.java"] | Support migrating regular data streams to tsdb data streams | Migrating a regular data stream to be a tsdb data stream should be achieved by
setting the `index_mode` parameter to `time_series` in the data stream snippet
of the composable index template that created the data stream. This should only
be possible when no `index_mode` has been specified in the composable index template.
When this change has been made to the composable index template, then the next
time the data stream rolls over the `index_mode` property of a data stream will
be set to `time_series` and a new backing index with `index.mode` index setting
set `time_series` will be created. All new backing indices created by rollover
for this migrated data stream will be tsdb indices. | https://github.com/elastic/elasticsearch/issues/83520 | https://github.com/elastic/elasticsearch/pull/83843 | f9a64b2e8685a95fe27b89daefbe898668298b13 | ae7defa9f9578f6872a3a8cdd33ffd39331ef881 | "2022-02-04T13:43:28Z" | java | "2022-02-17T14:16:26Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,518 | ["modules/data-streams/src/main/java/org/elasticsearch/datastreams/action/GetDataStreamsTransportAction.java", "modules/data-streams/src/test/java/org/elasticsearch/datastreams/action/GetDataStreamsResponseTests.java", "modules/data-streams/src/test/java/org/elasticsearch/datastreams/action/GetDataStreamsTransportActionTests.java", "modules/data-streams/src/yamlRestTest/resources/rest-api-spec/test/data_stream/150_tsdb.yml", "server/src/main/java/org/elasticsearch/action/datastreams/GetDataStreamAction.java"] | Include time series temporal ranges to get data stream api for data streams in time series index mode | Change the get data stream api to include the following properties of a data stream:
- ~~Add `index_mode` from `DataStream` to the response.~~
- For each backing index of a data stream with time series index mode, include the temporal range the backing index represents (based on the `index.time_series.start_time` and `index.time_series.end_time` index settings. | https://github.com/elastic/elasticsearch/issues/83518 | https://github.com/elastic/elasticsearch/pull/86395 | fae50996423c3c1262c1cad6ce5e5ee1800cb473 | f14da48935fb3cdb79c6c75718fa682469ea6300 | "2022-02-04T13:38:02Z" | java | "2022-05-09T14:22:14Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,516 | ["x-pack/plugin/sql/qa/server/src/main/resources/unsigned-long.csv-spec", "x-pack/plugin/sql/qa/server/src/main/resources/unsigned-long.sql-spec"] | [CI] JdbcSqlSpecIT » test {unsigned-long.testMod} | ### CI Link
https://gradle-enterprise.elastic.co/s/u62fai6tyx2m4/tests/:x-pack:plugin:sql:qa:server:security:with-ssl:integTest/org.elasticsearch.xpack.sql.qa.security.JdbcSqlSpecIT/test%20%7Bunsigned-long.testMod%7D?top-execution=1
### Repro line
./gradlew ':x-pack:plugin:sql:qa:server:security:with-ssl:integTest' --tests "org.elasticsearch.xpack.sql.qa.security.JdbcSqlSpecIT" -Dtests.method="test {unsigned-long.testMod}" -Dtests.seed=CCB67441D91FFC5F -Dtests.locale=pt-BR -Dtests.timezone=Africa/Johannesburg -Druntime.java=17
### Does it reproduce?
No
### Applicable branches
master
### Failure history
https://gradle-enterprise.elastic.co/scans/tests?search.relativeStartTime=P7D&search.timeZoneId=Europe/Berlin&tests.container=org.elasticsearch.xpack.sql.qa.security.JdbcSqlSpecIT&tests.sortField=FAILED&tests.test=test%20%7Bunsigned-long.testMod%7D&tests.unstableOnly=true
### Failure excerpt
```
java.lang.AssertionError: Different result for column [x], entry [1] expected:<4832.0> but was:<3877.0>
``` | https://github.com/elastic/elasticsearch/issues/83516 | https://github.com/elastic/elasticsearch/pull/89800 | e58d28dc2629333f5a08bc47d5a4c77886069135 | 0b8ba2a8e2689144068224ed05028a4476b3c3bc | "2022-02-04T13:00:06Z" | java | "2022-09-07T06:53:46Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,491 | ["docs/reference/commands/service-tokens-command.asciidoc", "x-pack/docs/en/security/authentication/service-accounts.asciidoc"] | Clarify the intended usage of service-tokens CLI | The documentation around [Service Accounts](https://www.elastic.co/guide/en/elasticsearch/reference/current/service-accounts.html) needs more clarification on how and when to use the [elasticsearch-service-tokens CLI](https://www.elastic.co/guide/en/elasticsearch/reference/current/service-tokens-command.html).
Currently, it is not clear that the CLI generates token on the single node where the it runs. It also generates different token each time it runs. As such, the CLI is more suitable to be part of an orchestration flow. That is, using it to prepare a service token that can be used on all nodes in a cluster needs roughly the following steps:
1. Run the CLI to generate the service token on one node.
2. Copy the `service_tokens` file generated in the previous step to all other nodes of the cluster.
Alternatively, the [CreateServiceToken API](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-service-token.html) can be used to generate a service token that is automatically usable on all nodes (similar to how [CreateUser API](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html) works). | https://github.com/elastic/elasticsearch/issues/83491 | https://github.com/elastic/elasticsearch/pull/96091 | e81f461aa17b7bfa43ea58d851849fd5604f2e21 | 5e2c7d535359237c1123f491f35bff60f90aa163 | "2022-02-04T00:13:25Z" | java | "2023-05-16T04:05:05Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,451 | ["docs/changelog/83482.yaml", "server/src/main/java/org/elasticsearch/index/mapper/KeywordFieldMapper.java", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/termsenum/action/NodeTermsEnumResponse.java", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/termsenum/action/SimpleTermCountEnum.java", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/termsenum/action/TermCount.java", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/termsenum/action/TransportTermsEnumAction.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/termsenum/MultiShardTermsEnumTests.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/termsenum/TermCountTests.java", "x-pack/plugin/mapper-constant-keyword/src/main/java/org/elasticsearch/xpack/constantkeyword/mapper/ConstantKeywordFieldMapper.java", "x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/terms_enum/10_basic.yml"] | Add `_terms_enum` support for `keyword` doc-value-only fileds | ### Description
The `_terms_enum` API could leverage the terms dictionary of doc values to provide term suggestions on `keyword` doc-value-only fields.
cc @ywelsch | https://github.com/elastic/elasticsearch/issues/83451 | https://github.com/elastic/elasticsearch/pull/83482 | e8c31cf938eefdae09114a815f46adbcf29f027b | 6d7c1b2a2686e3beeeb1ee66b582169a68687e85 | "2022-02-03T14:12:37Z" | java | "2022-02-04T12:04:26Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,449 | ["docs/changelog/85168.yaml", "x-pack/plugin/ql/src/main/java/org/elasticsearch/xpack/ql/index/IndexResolver.java", "x-pack/plugin/sql/qa/server/src/main/java/org/elasticsearch/xpack/sql/qa/jdbc/DatabaseMetaDataTestCase.java", "x-pack/plugin/sql/qa/server/src/main/java/org/elasticsearch/xpack/sql/qa/rest/BaseRestSqlTestCase.java", "x-pack/plugin/sql/qa/server/src/main/java/org/elasticsearch/xpack/sql/qa/rest/RestSqlTestCase.java"] | SQL: support for data streams | ### Description
This is to investigate what we could do to support the data streams in SQL. The backing indices can be queried already, but to address them similarly as they're queried over QDSL one would need to construct a pattern learned out of band and not through SQL metadata discovery mechanisms. | https://github.com/elastic/elasticsearch/issues/83449 | https://github.com/elastic/elasticsearch/pull/85168 | 946265e711de4369b05e3887a0602a92587b8776 | 5fbd11f12853f144d2ded5bd6009c8b4d0b3f9c4 | "2022-02-03T12:52:11Z" | java | "2022-03-28T21:30:19Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,434 | ["docs/changelog/84236.yaml", "x-pack/plugin/text-structure/src/main/java/org/elasticsearch/xpack/textstructure/structurefinder/DelimitedTextStructureFinder.java", "x-pack/plugin/text-structure/src/test/java/org/elasticsearch/xpack/textstructure/structurefinder/DelimitedTextStructureFinderTests.java"] | [ML] Structure finder should not generate regexes more than 1000 characters long | ### Elasticsearch Version
8.1.0 (also seen since 7.15.1)
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
Darwin Kernel Version 21.3.0
### Problem Description
Attempting to upload data in a CSV format via the file data visualizer fails with a 408 error against `/internal/file_data_visualizer/analyze_file`
This is caused by a too-long regex that when running a string match results in an error ending with "stack overflow".
The default limit on mappings per index is 1000. So the structure finder should also limit mappings to the first 1000 fields.
### Steps to Reproduce
Navigate to Kibana UI file data visualizer and attempt to upload CSV with 1900 > columns.
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/83434 | https://github.com/elastic/elasticsearch/pull/84236 | c923bd235bcdd0b5d5257affb65437e7ea4956f5 | 362351fe2516f3c83fadb18ac2e48d9c7200c016 | "2022-02-02T23:19:16Z" | java | "2022-02-22T17:56:02Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,431 | ["docs/changelog/83577.yaml", "x-pack/qa/runtime-fields/build.gradle", "x-pack/qa/runtime-fields/src/main/java/org/elasticsearch/xpack/runtimefields/test/CoreTestTranslater.java"] | [CI] CoreWithMappedRuntimeFieldsIT test {yaml=search.aggregation/450_time_series/Basic test} failing | This showed up after bumping master to 8.2.0 so not sure if that is related.
**Build scan:**
https://gradle-enterprise.elastic.co/s/yzxgyguzc6qns/tests/:x-pack:qa:runtime-fields:core-with-mapped:yamlRestTest/org.elasticsearch.xpack.runtimefields.test.mapped.CoreWithMappedRuntimeFieldsIT/test%20%7Byaml=search.aggregation%2F450_time_series%2FBasic%20test%7D
**Reproduction line:**
`./gradlew ':x-pack:qa:runtime-fields:core-with-mapped:yamlRestTest' --tests "org.elasticsearch.xpack.runtimefields.test.mapped.CoreWithMappedRuntimeFieldsIT" -Dtests.method="test {yaml=search.aggregation/450_time_series/Basic test}" -Dtests.seed=10391BEE48E763BE -Dtests.locale=ga -Dtests.timezone=America/Cancun -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.runtimefields.test.mapped.CoreWithMappedRuntimeFieldsIT&tests.test=test%20%7Byaml%3Dsearch.aggregation/450_time_series/Basic%20test%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [search.aggregation/450_time_series:6]: expected [2xx] status code but api [indices.create] returned [400 Bad Request] [{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"unknown parameter [time_series_dimension] on runtime field [key] of type [keyword]","stack_trace":"org.elasticsearch.index.mapper.MapperParsingException: unknown parameter [time_series_dimension] on runtime field [key] of type [keyword]\n\tat org.elasticsearch.index.mapper.RuntimeField$Builder.parse(RuntimeField.java:81)\n\tat org.elasticsearch.index.mapper.RuntimeField$Parser.parse(RuntimeField.java:114)\n\tat org.elasticsearch.index.mapper.RuntimeField.parseRuntimeFields(RuntimeField.java:182)\n\tat org.elasticsearch.index.mapper.RuntimeField.parseRuntimeFields(RuntimeField.java:132)\n\tat org.elasticsearch.index.mapper.RootObjectMapper$TypeParser.processField(RootObjectMapper.java:231)\n\tat org.elasticsearch.index.mapper.RootObjectMapper$TypeParser.parse(RootObjectMapper.java:162)\n\tat org.elasticsearch.index.mapper.MappingParser.parse(MappingParser.java:99)\n\tat org.elasticsearch.index.mapper.MappingParser.parse(MappingParser.java:94)\n\tat org.elasticsearch.index.mapper.MapperService.parseMapping(MapperService.java:375)\n\tat org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:352)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.updateIndexMappingsAndBuildSortOrder(MetadataCreateIndexService.java:1222)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.lambda$applyCreateIndexWithTemporaryService$3(MetadataCreateIndexService.java:428)\n\tat org.elasticsearch.indices.IndicesService.withTempIndexService(IndicesService.java:663)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexWithTemporaryService(MetadataCreateIndexService.java:426)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequestWithV2Template(MetadataCreateIndexService.java:605)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:368)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:395)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService$1.execute(MetadataCreateIndexService.java:293)\n\tat org.elasticsearch.cluster.ClusterStateTaskExecutor$1.execute(ClusterStateTaskExecutor.java:142)\n\tat org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:818)\n\tat org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:397)\n\tat org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:237)\n\tat org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:162)\n\tat org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:152)\n\tat org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:208)\n\tat org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:717)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:260)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:223)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping: unknown parameter [time_series_dimension] on runtime field [key] of type [keyword]","caused_by":{"type":"mapper_parsing_exception","reason":"unknown parameter [time_series_dimension] on runtime field [key] of type [keyword]","stack_trace":"org.elasticsearch.index.mapper.MapperParsingException: unknown parameter [time_series_dimension] on runtime field [key] of type [keyword]\n\tat org.elasticsearch.index.mapper.RuntimeField$Builder.parse(RuntimeField.java:81)\n\tat org.elasticsearch.index.mapper.RuntimeField$Parser.parse(RuntimeField.java:114)\n\tat org.elasticsearch.index.mapper.RuntimeField.parseRuntimeFields(RuntimeField.java:182)\n\tat org.elasticsearch.index.mapper.RuntimeField.parseRuntimeFields(RuntimeField.java:132)\n\tat org.elasticsearch.index.mapper.RootObjectMapper$TypeParser.processField(RootObjectMapper.java:231)\n\tat org.elasticsearch.index.mapper.RootObjectMapper$TypeParser.parse(RootObjectMapper.java:162)\n\tat org.elasticsearch.index.mapper.MappingParser.parse(MappingParser.java:99)\n\tat org.elasticsearch.index.mapper.MappingParser.parse(MappingParser.java:94)\n\tat org.elasticsearch.index.mapper.MapperService.parseMapping(MapperService.java:375)\n\tat org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:352)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.updateIndexMappingsAndBuildSortOrder(MetadataCreateIndexService.java:1222)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.lambda$applyCreateIndexWithTemporaryService$3(MetadataCreateIndexService.java:428)\n\tat org.elasticsearch.indices.IndicesService.withTempIndexService(IndicesService.java:663)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexWithTemporaryService(MetadataCreateIndexService.java:426)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequestWithV2Template(MetadataCreateIndexService.java:605)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:368)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:395)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService$1.execute(MetadataCreateIndexService.java:293)\n\tat org.elasticsearch.cluster.ClusterStateTaskExecutor$1.execute(ClusterStateTaskExecutor.java:142)\n\tat org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:818)\n\tat org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:397)\n\tat org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:237)\n\tat org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:162)\n\tat org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:152)\n\tat org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:208)\n\tat org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:717)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:260)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:223)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"},"stack_trace":"org.elasticsearch.index.mapper.MapperParsingException: Failed to parse mapping: unknown parameter [time_series_dimension] on runtime field [key] of type [keyword]\n\tat org.elasticsearch.index.mapper.MapperService.parseMapping(MapperService.java:377)\n\tat org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:352)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.updateIndexMappingsAndBuildSortOrder(MetadataCreateIndexService.java:1222)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.lambda$applyCreateIndexWithTemporaryService$3(MetadataCreateIndexService.java:428)\n\tat org.elasticsearch.indices.IndicesService.withTempIndexService(IndicesService.java:663)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexWithTemporaryService(MetadataCreateIndexService.java:426)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequestWithV2Template(MetadataCreateIndexService.java:605)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:368)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:395)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService$1.execute(MetadataCreateIndexService.java:293)\n\tat org.elasticsearch.cluster.ClusterStateTaskExecutor$1.execute(ClusterStateTaskExecutor.java:142)\n\tat org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:818)\n\tat org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:397)\n\tat org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:237)\n\tat org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:162)\n\tat org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:152)\n\tat org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:208)\n\tat org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:717)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:260)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:223)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\nCaused by: org.elasticsearch.index.mapper.MapperParsingException: unknown parameter [time_series_dimension] on runtime field [key] of type [keyword]\n\tat org.elasticsearch.index.mapper.RuntimeField$Builder.parse(RuntimeField.java:81)\n\tat org.elasticsearch.index.mapper.RuntimeField$Parser.parse(RuntimeField.java:114)\n\tat org.elasticsearch.index.mapper.RuntimeField.parseRuntimeFields(RuntimeField.java:182)\n\tat org.elasticsearch.index.mapper.RuntimeField.parseRuntimeFields(RuntimeField.java:132)\n\tat org.elasticsearch.index.mapper.RootObjectMapper$TypeParser.processField(RootObjectMapper.java:231)\n\tat org.elasticsearch.index.mapper.RootObjectMapper$TypeParser.parse(RootObjectMapper.java:162)\n\tat org.elasticsearch.index.mapper.MappingParser.parse(MappingParser.java:99)\n\tat org.elasticsearch.index.mapper.MappingParser.parse(MappingParser.java:94)\n\tat org.elasticsearch.index.mapper.MapperService.parseMapping(MapperService.java:375)\n\t... 22 more\n"},"status":400}]
at __randomizedtesting.SeedInfo.seed([10391BEE48E763BE:986D2434E61B0E46]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:489)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:453)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.AssertionError: expected [2xx] status code but api [indices.create] returned [400 Bad Request] [{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"unknown parameter [time_series_dimension] on runtime field [key] of type [keyword]","stack_trace":"org.elasticsearch.index.mapper.MapperParsingException: unknown parameter [time_series_dimension] on runtime field [key] of type [keyword]\n\tat org.elasticsearch.index.mapper.RuntimeField$Builder.parse(RuntimeField.java:81)\n\tat org.elasticsearch.index.mapper.RuntimeField$Parser.parse(RuntimeField.java:114)\n\tat org.elasticsearch.index.mapper.RuntimeField.parseRuntimeFields(RuntimeField.java:182)\n\tat org.elasticsearch.index.mapper.RuntimeField.parseRuntimeFields(RuntimeField.java:132)\n\tat org.elasticsearch.index.mapper.RootObjectMapper$TypeParser.processField(RootObjectMapper.java:231)\n\tat org.elasticsearch.index.mapper.RootObjectMapper$TypeParser.parse(RootObjectMapper.java:162)\n\tat org.elasticsearch.index.mapper.MappingParser.parse(MappingParser.java:99)\n\tat org.elasticsearch.index.mapper.MappingParser.parse(MappingParser.java:94)\n\tat org.elasticsearch.index.mapper.MapperService.parseMapping(MapperService.java:375)\n\tat org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:352)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.updateIndexMappingsAndBuildSortOrder(MetadataCreateIndexService.java:1222)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.lambda$applyCreateIndexWithTemporaryService$3(MetadataCreateIndexService.java:428)\n\tat org.elasticsearch.indices.IndicesService.withTempIndexService(IndicesService.java:663)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexWithTemporaryService(MetadataCreateIndexService.java:426)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequestWithV2Template(MetadataCreateIndexService.java:605)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:368)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:395)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService$1.execute(MetadataCreateIndexService.java:293)\n\tat org.elasticsearch.cluster.ClusterStateTaskExecutor$1.execute(ClusterStateTaskExecutor.java:142)\n\tat org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:818)\n\tat org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:397)\n\tat org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:237)\n\tat org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:162)\n\tat org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:152)\n\tat org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:208)\n\tat org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:717)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:260)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:223)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping: unknown parameter [time_series_dimension] on runtime field [key] of type [keyword]","caused_by":{"type":"mapper_parsing_exception","reason":"unknown parameter [time_series_dimension] on runtime field [key] of type [keyword]","stack_trace":"org.elasticsearch.index.mapper.MapperParsingException: unknown parameter [time_series_dimension] on runtime field [key] of type [keyword]\n\tat org.elasticsearch.index.mapper.RuntimeField$Builder.parse(RuntimeField.java:81)\n\tat org.elasticsearch.index.mapper.RuntimeField$Parser.parse(RuntimeField.java:114)\n\tat org.elasticsearch.index.mapper.RuntimeField.parseRuntimeFields(RuntimeField.java:182)\n\tat org.elasticsearch.index.mapper.RuntimeField.parseRuntimeFields(RuntimeField.java:132)\n\tat org.elasticsearch.index.mapper.RootObjectMapper$TypeParser.processField(RootObjectMapper.java:231)\n\tat org.elasticsearch.index.mapper.RootObjectMapper$TypeParser.parse(RootObjectMapper.java:162)\n\tat org.elasticsearch.index.mapper.MappingParser.parse(MappingParser.java:99)\n\tat org.elasticsearch.index.mapper.MappingParser.parse(MappingParser.java:94)\n\tat org.elasticsearch.index.mapper.MapperService.parseMapping(MapperService.java:375)\n\tat org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:352)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.updateIndexMappingsAndBuildSortOrder(MetadataCreateIndexService.java:1222)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.lambda$applyCreateIndexWithTemporaryService$3(MetadataCreateIndexService.java:428)\n\tat org.elasticsearch.indices.IndicesService.withTempIndexService(IndicesService.java:663)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexWithTemporaryService(MetadataCreateIndexService.java:426)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequestWithV2Template(MetadataCreateIndexService.java:605)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:368)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:395)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService$1.execute(MetadataCreateIndexService.java:293)\n\tat org.elasticsearch.cluster.ClusterStateTaskExecutor$1.execute(ClusterStateTaskExecutor.java:142)\n\tat org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:818)\n\tat org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:397)\n\tat org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:237)\n\tat org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:162)\n\tat org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:152)\n\tat org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:208)\n\tat org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:717)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:260)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:223)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"},"stack_trace":"org.elasticsearch.index.mapper.MapperParsingException: Failed to parse mapping: unknown parameter [time_series_dimension] on runtime field [key] of type [keyword]\n\tat org.elasticsearch.index.mapper.MapperService.parseMapping(MapperService.java:377)\n\tat org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:352)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.updateIndexMappingsAndBuildSortOrder(MetadataCreateIndexService.java:1222)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.lambda$applyCreateIndexWithTemporaryService$3(MetadataCreateIndexService.java:428)\n\tat org.elasticsearch.indices.IndicesService.withTempIndexService(IndicesService.java:663)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexWithTemporaryService(MetadataCreateIndexService.java:426)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequestWithV2Template(MetadataCreateIndexService.java:605)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:368)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:395)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService$1.execute(MetadataCreateIndexService.java:293)\n\tat org.elasticsearch.cluster.ClusterStateTaskExecutor$1.execute(ClusterStateTaskExecutor.java:142)\n\tat org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:818)\n\tat org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:397)\n\tat org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:237)\n\tat org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:162)\n\tat org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:152)\n\tat org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:208)\n\tat org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:717)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:260)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:223)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\nCaused by: org.elasticsearch.index.mapper.MapperParsingException: unknown parameter [time_series_dimension] on runtime field [key] of type [keyword]\n\tat org.elasticsearch.index.mapper.RuntimeField$Builder.parse(RuntimeField.java:81)\n\tat org.elasticsearch.index.mapper.RuntimeField$Parser.parse(RuntimeField.java:114)\n\tat org.elasticsearch.index.mapper.RuntimeField.parseRuntimeFields(RuntimeField.java:182)\n\tat org.elasticsearch.index.mapper.RuntimeField.parseRuntimeFields(RuntimeField.java:132)\n\tat org.elasticsearch.index.mapper.RootObjectMapper$TypeParser.processField(RootObjectMapper.java:231)\n\tat org.elasticsearch.index.mapper.RootObjectMapper$TypeParser.parse(RootObjectMapper.java:162)\n\tat org.elasticsearch.index.mapper.MappingParser.parse(MappingParser.java:99)\n\tat org.elasticsearch.index.mapper.MappingParser.parse(MappingParser.java:94)\n\tat org.elasticsearch.index.mapper.MapperService.parseMapping(MapperService.java:375)\n\t... 22 more\n"},"status":400}]
at org.junit.Assert.fail(Assert.java:88)
at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:374)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:478)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:453)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/83431 | https://github.com/elastic/elasticsearch/pull/83577 | fb00992003c192f7f07f8d47bc7d7befb7e722d8 | 9503e9f4e28579d1d3ffdc543c85f5de3eba5240 | "2022-02-02T21:48:49Z" | java | "2022-02-08T19:21:23Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,393 | ["server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/InternalBinaryRange.java", "server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/InternalRange.java"] | [CI] MixedClusterClientYamlTestSuiteIT test {p0=search.aggregation/70_adjacency_matrix/Terms lookup} failing | The underlying reason for this failure and a couple others in the same test suite was that one node got killed when upgrading. The node failed to start because a serialisation error for `InternalRange` https://gradle-enterprise.elastic.co/s/fx4ulm463asji/console-log#L6392
It seems that the backport PR #83339 didn't make its way into v7.17.0. It was automatically tagged as `v7.17.1` and `git tag --contains 7f5623f464576e775cf341fc9fde4a9f2aa9ce15` shows no result.
@salvatore-campagna Could you please take a look?
**Build scan:**
https://gradle-enterprise.elastic.co/s/fx4ulm463asji/tests/:qa:mixed-cluster:v7.17.0%23mixedClusterTest/org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT/test%20%7Bp0=search.aggregation%2F70_adjacency_matrix%2FTerms%20lookup%7D
**Reproduction line:**
`./gradlew ':qa:mixed-cluster:v7.17.0#mixedClusterTest' -Dtests.class="org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT" -Dtests.method="test {p0=search.aggregation/70_adjacency_matrix/Terms lookup}" -Dtests.seed=340A3D79B51F2327 -Dtests.bwc=true -Dtests.locale=ko-KR -Dtests.timezone=NZ-CHAT -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT&tests.test=test%20%7Bp0%3Dsearch.aggregation/70_adjacency_matrix/Terms%20lookup%7D
**Failure excerpt:**
```
java.lang.RuntimeException: Failure at [search.aggregation/70_adjacency_matrix:95]: NodeSelector [version ranges [[8.1.0 - 8.1.0]]] rejected all nodes, living [[host=http://127.0.0.1:46615, bound=[http://[::1]:38445, http://127.0.0.1:46615], name=v7.17.0-3, version=7.17.0, roles=data,data_cold,data_content,data_frozen,data_hot,data_warm,ingest,master,ml,remote_cluster_client,transform, attributes={testattr=[test], ml.machine_memory=[101259509760], ml.max_open_jobs=[512], xpack.installed=[true], ml.max_jvm_size=[536870912], transform.node=[true]}], [host=http://127.0.0.1:37241, bound=[http://[::1]:45615, http://127.0.0.1:37241], name=v7.17.0-2, version=7.17.0, roles=data,data_cold,data_content,data_frozen,data_hot,data_warm,ingest,master,ml,remote_cluster_client,transform, attributes={testattr=[test], ml.machine_memory=[101259509760], ml.max_open_jobs=[512], xpack.installed=[true], ml.max_jvm_size=[536870912], transform.node=[true]}]] and dead []
at __randomizedtesting.SeedInfo.seed([340A3D79B51F2327:BC5E02A31BE34EDF]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:491)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor19.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.io.IOException: NodeSelector [version ranges [[8.1.0 - 8.1.0]]] rejected all nodes, living [[host=http://127.0.0.1:46615, bound=[http://[::1]:38445, http://127.0.0.1:46615], name=v7.17.0-3, version=7.17.0, roles=data,data_cold,data_content,data_frozen,data_hot,data_warm,ingest,master,ml,remote_cluster_client,transform, attributes={testattr=[test], ml.machine_memory=[101259509760], ml.max_open_jobs=[512], xpack.installed=[true], ml.max_jvm_size=[536870912], transform.node=[true]}], [host=http://127.0.0.1:37241, bound=[http://[::1]:45615, http://127.0.0.1:37241], name=v7.17.0-2, version=7.17.0, roles=data,data_cold,data_content,data_frozen,data_hot,data_warm,ingest,master,ml,remote_cluster_client,transform, attributes={testattr=[test], ml.machine_memory=[101259509760], ml.max_open_jobs=[512], xpack.installed=[true], ml.max_jvm_size=[536870912], transform.node=[true]}]] and dead []
at org.elasticsearch.client.RestClient.selectNodes(RestClient.java:515)
at org.elasticsearch.client.RestClient.nextNodes(RestClient.java:447)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:287)
at org.elasticsearch.test.rest.yaml.ClientYamlTestClient.callApi(ClientYamlTestClient.java:201)
at org.elasticsearch.test.rest.yaml.ClientYamlTestExecutionContext.callApiInternal(ClientYamlTestExecutionContext.java:185)
at org.elasticsearch.test.rest.yaml.ClientYamlTestExecutionContext.callApi(ClientYamlTestExecutionContext.java:105)
at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:349)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:478)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor19.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/83393 | https://github.com/elastic/elasticsearch/pull/83477 | ea96bfe5ac59e1e88b6c096c124e3c8ee2a99656 | a9101236c9f9b3ac4d50030dd19f1426aedfc9e0 | "2022-02-02T01:00:17Z" | java | "2022-02-03T21:01:06Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,390 | ["rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/tsdb/30_snapshot.yml"] | [CI] ClientYamlTestSuiteIT test {yaml=tsdb/30_snapshot/Create a snapshot and then restore it} failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/j5pzmh3fyazsc/tests/:rest-api-spec:yamlRestTest/org.elasticsearch.test.rest.ClientYamlTestSuiteIT/test%20%7Byaml=tsdb%2F30_snapshot%2FCreate%20a%20snapshot%20and%20then%20restore%20it%7D
**Reproduction line:**
`./gradlew ':rest-api-spec:yamlRestTest' --tests "org.elasticsearch.test.rest.ClientYamlTestSuiteIT.test {yaml=tsdb/30_snapshot/Create a snapshot and then restore it}" -Dtests.seed=CB31E243246346C -Dtests.locale=en-US -Dtests.timezone=Greenwich -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.test.rest.ClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dtsdb/30_snapshot/Create%20a%20snapshot%20and%20then%20restore%20it%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [tsdb/30_snapshot:107]:
Expected: <2>
but: was <3>
at __randomizedtesting.SeedInfo.seed([CB31E243246346C:84E721FE9CBA5994]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:489)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.AssertionError:
Expected: <2>
but: was <3>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.test.rest.yaml.section.MatchAssertion.doAssert(MatchAssertion.java:99)
at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:478)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/83390 | https://github.com/elastic/elasticsearch/pull/83394 | a04d4ffe277ec5426b697d6bf0ed969ece976536 | 9d8686920ac0696182702dc32a83e8ca70b3a0d5 | "2022-02-01T23:17:23Z" | java | "2022-02-03T06:58:32Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,386 | ["server/src/internalClusterTest/java/org/elasticsearch/action/admin/cluster/desirednodes/TransportDesiredNodesActionsIT.java"] | [CI] TransportDesiredNodesActionsIT testDeleteDesiredNodesTasksAreBatchedCorrectly failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/3sdeo4fn4dpio/tests/:server:internalClusterTest/org.elasticsearch.action.admin.cluster.desirednodes.TransportDesiredNodesActionsIT/testDeleteDesiredNodesTasksAreBatchedCorrectly
**Reproduction line:**
`./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.action.admin.cluster.desirednodes.TransportDesiredNodesActionsIT.testDeleteDesiredNodesTasksAreBatchedCorrectly" -Dtests.seed=EFDF9BFF1D476AA8 -Dtests.locale=ro-RO -Dtests.timezone=US/Indiana-Starke -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.action.admin.cluster.desirednodes.TransportDesiredNodesActionsIT&tests.test=testDeleteDesiredNodesTasksAreBatchedCorrectly
**Failure excerpt:**
```
java.lang.Exception: Test abandoned because suite timeout was reached.
at __randomizedtesting.SeedInfo.seed([EFDF9BFF1D476AA8]:0)
``` | https://github.com/elastic/elasticsearch/issues/83386 | https://github.com/elastic/elasticsearch/pull/83406 | da6a4be19ea46c54077c407da7edbc8f7b2157fb | 1b91bf6cc1e5bcd0e9c2df553f3a7b4d0926643e | "2022-02-01T17:49:25Z" | java | "2022-02-08T10:54:00Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,366 | ["x-pack/plugin/enrich/qa/common/src/main/java/org/elasticsearch/test/enrich/CommonEnrichRestTestCase.java"] | EnrichSecurityIT fails due to .monitoring name deprecation | ### CI Link
https://gradle-enterprise.elastic.co/s/oadbbzpxkn6tg/tests/:x-pack:plugin:enrich:qa:rest-with-security:javaRestTest/org.elasticsearch.xpack.enrich.EnrichSecurityIT/testBasicFlowDouble?top-execution=1
### Repro line
https://gradle-enterprise.elastic.co/s/oadbbzpxkn6tg
### Does it reproduce?
No
### Applicable branches
master
### Failure history
_No response_
### Failure excerpt
org.elasticsearch.client.WarningFailureException: method [PUT], host [http://127.0.0.1:41171], URI [/my-index/_doc/1?pipeline=my_pipeline], status line [HTTP/1.1 201 Created]
Warnings: [index name [.monitoring-es-7-2022.02.01] starts with a dot '.', in the next major version, index names starting with a dot are reserved for hidden indices and system indices] |
{"_index":"my-index","_id":"1","_version":1,"result":"created","_shards":{"total":2,"successful":1,"failed":0},"_seq_no":0,"_primary_term":1}
failed tests
EnrichSecurityIT » testBasicFlowDouble
EnrichSecurityIT » testDeleteExistingPipeline
EnrichSecurityIT » testBasicFlowDate
EnrichSecurityIT » testImmutablePolicy
EnrichSecurityIT » testBasicFlowKeyword
EnrichSecurityIT » testDeleteIsCaseSensitive
| https://github.com/elastic/elasticsearch/issues/83366 | https://github.com/elastic/elasticsearch/pull/87317 | b7df9e98d258df6f13bab54ceb9ccacfac9816d2 | 7a4542fe29fb4429357d02a0b1cfbb66103ca6d7 | "2022-02-01T12:06:03Z" | java | "2022-06-03T07:29:23Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,800 | ["x-pack/plugin/deprecation/src/main/java/org/elasticsearch/xpack/deprecation/DeprecationChecks.java", "x-pack/plugin/deprecation/src/main/java/org/elasticsearch/xpack/deprecation/NodeDeprecationChecks.java", "x-pack/plugin/deprecation/src/test/java/org/elasticsearch/xpack/deprecation/NodeDeprecationChecksTests.java"] | [Upgrade Assistant] Warn if cluster's node attributes and data tiers may not match | **Describe the feature:**
If a node has `node.data: true` defined and includes _any_ `node.attributes.data` value, list a warning the configuration may not be valid for data tiers in 8.0.
The presence of a `node.attribute.data` value _strongly_ indicates a hot/warm or tiered architecture. It is completely valid to run all data tiers on the same nodes if the cluster is not used for timeseries data.
**Describe a specific use case for the feature:**
Historically Elasticsearch has recommended using `node.attributes.data` to identify `hot`, `warm` or `cold` nodes.
In 7.9 we introduced data tiers: https://www.elastic.co/guide/en/elasticsearch/reference/7.16/data-tiers.html
When upgrading to 8.0 the legacy `node.data` is no longer allowed: https://github.com/elastic/elasticsearch/issues/66409
In 7.10 through 7.17 any node with `node.data: true` is assigned all 5 data tiers: `data_content`, `data_hot`, `data_warm`, `data_cold` and `data_frozen`. This can conflict with the preexisting node attribute, leading to shards being assigned to unexpected nodes. This includes _system_ indices which could end up on cold/frozen tiers and cause unexpected cluster behavior.
In 8.0 we rely on `_tier_preference` so it is critical these are _accurate_ in the nodes' `elasticsearch.yml` files: https://github.com/elastic/elasticsearch/issues/76147 | https://github.com/elastic/elasticsearch/issues/83800 | https://github.com/elastic/elasticsearch/pull/84050 | dd3397b2c85ef9e23ca0b3dd70bdd6db8420e0b0 | b001a6fe12b96717a3406ceccc6cf139bdf4686c | "2022-02-01T03:36:32Z" | java | "2022-02-16T21:25:25Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,336 | ["docs/changelog/83478.yaml", "x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/expression/predicate/operator/arithmetic/SqlBinaryArithmeticOperation.java", "x-pack/plugin/sql/src/test/java/org/elasticsearch/xpack/sql/expression/predicate/operator/arithmetic/SqlBinaryArithmeticTests.java"] | SQL: bounds of interval multiplication are not checked | ### Description
Running a query like `SELECT 9223372036854775807 * INTERVAL '1-0' YEAR TO MONTH` will result in `P-1Y`, instead of a range exception. | https://github.com/elastic/elasticsearch/issues/83336 | https://github.com/elastic/elasticsearch/pull/83478 | 221ab4b42f2e4eeadf557fb972e6cdbf38d2d7dc | 7c6a2a60ba81605847e6cd2d04a5a470d69d1983 | "2022-01-31T19:55:20Z" | java | "2022-02-07T09:05:37Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,321 | ["docs/changelog/83637.yaml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.aggregation/450_ip_prefix.yml", "server/src/main/java/org/elasticsearch/search/aggregations/bucket/prefix/InternalIpPrefix.java", "server/src/test/java/org/elasticsearch/search/aggregations/bucket/prefix/IpPrefixAggregatorTests.java"] | [CI] ClientYamlTestSuiteIT test {yaml=search.aggregation/450_ip_prefix/IPv4 prefix} failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/tgtlh62l6mopc/tests/:rest-api-spec:yamlRestTest/org.elasticsearch.test.rest.ClientYamlTestSuiteIT/test%20%7Byaml=search.aggregation%2F450_ip_prefix%2FIPv4%20prefix%7D
**Reproduction line:**
`./gradlew ':rest-api-spec:yamlRestTest' --tests "org.elasticsearch.test.rest.ClientYamlTestSuiteIT" -Dtests.method="test {yaml=search.aggregation/450_ip_prefix/IPv4 prefix}" -Dtests.seed=EBCB5A74B6F226F2 -Dtests.locale=ar-LB -Dtests.timezone=Pacific/Samoa -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.test.rest.ClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dsearch.aggregation/450_ip_prefix/IPv4%20prefix%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [search.aggregation/450_ip_prefix:66]:
Expected: <5>
but: was <2>
at __randomizedtesting.SeedInfo.seed([EBCB5A74B6F226F2:639F65AE180E4B0A]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:489)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.AssertionError:
Expected: <5>
but: was <2>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.test.rest.yaml.section.MatchAssertion.doAssert(MatchAssertion.java:99)
at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:478)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/83321 | https://github.com/elastic/elasticsearch/pull/83637 | 914c6dfe45f36f61da7dc3dd59f1043543c354a9 | 13018e73324d86e916b72f7534d9d6275a99e6d0 | "2022-01-31T11:54:19Z" | java | "2022-02-09T16:55:04Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,311 | ["build-tools-internal/src/main/resources/checkstyle-idea.xml", "build-tools-internal/src/main/resources/checkstyle.xml", "build-tools-internal/version.properties", "server/src/main/java/org/elasticsearch/action/datastreams/GetDataStreamAction.java", "server/src/main/java/org/elasticsearch/cluster/routing/IndexRouting.java", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/aggs/changepoint/ChangePointAggregator.java", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/aggs/changepoint/KDE.java", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/nlp/tokenizers/BpeTokenizer.java", "x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/transforms/Function.java"] | Checkstyle should reject `static record` as redundant | ### Elasticsearch Version
master
### Installed Plugins
N/A
### Java Version
_bundled_
### OS Version
N/A
### Problem Description
@arteam [observed](https://github.com/elastic/elasticsearch/pull/83221/files#r795474431) that `static record` is redundant, records are apparently implicitly static. I think we should make sure that Checkstyle picks this up rather than needing human involvement.
### Steps to Reproduce
Mark a record declaration as `static` and observe that `./gradlew precommit` still passes.
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/83311 | https://github.com/elastic/elasticsearch/pull/87792 | cb70dac01609fc4865343cc0c6514b837129092e | b6e3b47f39cac4fdc40870455b1dea7dd5501b3d | "2022-01-31T09:47:54Z" | java | "2022-06-21T09:25:17Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,306 | ["docs/reference/settings/security-settings.asciidoc", "x-pack/docs/en/security/configuring-stack-security.asciidoc"] | Document the cases where security auto-configuration is not triggered | In 8.0.0 , with Security on by default, we introduce security auto-configuration when a node starts up for the first time. There are certain cases though, where we either can't proceed with auto-configuration or we determine/assume that the user is intending to configure security on their own and we proceed with starting the node without performing the security auto-configuration steps. We should document the cases where this happens and link it in appropriate places in our Getting started docs so that folks can easily find them / we can point them to these.
#### Cases where TLS auto-configuration doesn't happen
##### Environment related
- When the data dir exists and is not empty. This is a **strong** indication that this is not the first time that the node starts and we don't want to run autoconfiguration in this case.
- When `elasticsearch.yml` doesn't exist, or we can't read it. If we can't read it, then we can't know if elasticsearch security features are already configured or not. This is also an indication that we;re running as a different user ( or a not privileged enough user ) and we can't handle this case.
- When we can't read `elasticsearch.keystore` for the same reasons as above
- When the configuration directory is not writeable. This means that it is made read only by the admin, or the user starting is not the user that installed elasticsearch.
- When indices are read-only ( ie, because of low disk space availability, https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-cluster.html#disk-based-shard-allocation ) because we can't write the `elastic` user password and the API key to the security index
##### Configuration related
- When `xpack.security.autoconfiguration.enabled` is set to false. This defaults to true and it's purpose is for users to be able to explicitly disable auto-configuration
- When `xpack.security.enabled` is set ( independent of its value ). We assume that the user wants to configure security features themselves.
- When any `xpack.security.transport.ssl.*` or `xpack.security.http.ssl.*` settings are set. We assume that the users want to configure TLS themselves
- When any of the discovery ( `discovery.type`, `discovery.seed_hosts` ) or initial master nodes (`cluster.initial_master_nodes` ) settings are set. There are two exceptions to this:
- When `discovery.type: single-node`
- When `cluster.initial_master_nodes` exists but contains only the name of the current node.
- If the current node cannot become a master node ( i.e. node.roles is configured with other values ).
- If the current node cannot have a copy of the security index ( i.e. only has role that can't contain data )
#### Cases where initial `elastic` password generation doesn't happen
- All the above cases
- When `bootstrap.password` is set in the `elasticsearch.keystore`
- When `autoconfiguration.password_hash` is set in the `elasticsearch.keystore` ( this is an implementation detail of the installation process for DEB/RPM )
#### Cases where an enrollment token for nodes is not generated ( default behavior for anything else than docker )
- When elasticsearch is only bound to localhost. | https://github.com/elastic/elasticsearch/issues/83306 | https://github.com/elastic/elasticsearch/pull/86575 | 5a955c7c723a6815e67814e0162babe12481d8fc | acc22de4fd6ec6a5f11ac6afb981fd261eda7af4 | "2022-01-31T05:01:13Z" | java | "2022-05-17T12:27:48Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,282 | ["docs/reference/mapping/params/copy-to.asciidoc"] | copy_to does not complain if target field does not exist | ### Elasticsearch Version
7.16
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
Docker image
### Problem Description
Based on documentation, I would expect that `copy_to` field has to exist, but this does not seem to be so. See steps to reproduce to see that index is created just fine when `copy_to` is set to nonexistent `foobarX` instead of `foobar`. But it is not possible really to know what is done internally (there seems to be no way to list fields which have really been made), does this make 3 fields? 2? Does this mean that `foobar2` is simply not copied to `foobar` silently?
### Steps to Reproduce
```
curl -X PUT "localhost:9200/test?pretty" -H 'Content-Type: application/json' -d'
{
"mappings": {
"dynamic": false,
"properties": {
"foobar": {
"type": "keyword"
},
"foobar2": {
"type": "keyword",
"copy_to": "foobarX"
}
}
}
}
'
```
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/83282 | https://github.com/elastic/elasticsearch/pull/89626 | 4b4116533a92807f0712487ec0d5edf34201dd47 | e891909dfae425062fea9c72fc0bfd76f418eaf0 | "2022-01-28T19:41:34Z" | java | "2022-08-30T13:15:35Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,269 | ["build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/BwcSetupExtension.java"] | [CI] InternalDistributionBwcSetupPluginFuncTest bwc expanded distribution folder can be resolved as bwc project artifact failing | No idea how to reproduce this even. It's on Windows tho.
**Build scan:**
https://gradle-enterprise.elastic.co/s/jfm5i67ybasa4/tests/:integTest/org.elasticsearch.gradle.internal.InternalDistributionBwcSetupPluginFuncTest/bwc%20expanded%20distribution%20folder%20can%20be%20resolved%20as%20bwc%20project%20artifact
**Reproduction line:**
`null`
**Applicable branches:**
7.16
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.gradle.internal.InternalDistributionBwcSetupPluginFuncTest&tests.test=bwc%20expanded%20distribution%20folder%20can%20be%20resolved%20as%20bwc%20project%20artifact
**Failure excerpt:**
```
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in C:\Users\jenkins\AppData\Local\Temp\junit10293579225588038864\cloned with arguments [:resolveExpandedDistribution, -DtestRemoteRepo=C:\Users\jenkins\AppData\Local\Temp\junit12751380988170521671\remote\.git, -Dbwc.remote=origin, -Dtest.external=true]
Output:
> Task :buildSrc:compileJava NO-SOURCE
> Task :buildSrc:compileGroovy NO-SOURCE
> Task :buildSrc:processResources
> Task :buildSrc:classes
> Task :buildSrc:jar
> Task :buildSrc:assemble
> Task :buildSrc:compileTestJava NO-SOURCE
> Task :buildSrc:compileTestGroovy NO-SOURCE
> Task :buildSrc:processTestResources NO-SOURCE
> Task :buildSrc:testClasses UP-TO-DATE
> Task :buildSrc:test NO-SOURCE
> Task :buildSrc:check UP-TO-DATE
> Task :buildSrc:build
=======================================
Elasticsearch Build Hamster says Hello!
Gradle Version : 7.3.2
OS Info : Windows Server 2016 10.0 (amd64)
Runtime JDK Version : 1.8.0_301 (Oracle)
Runtime java.home : C:\Users\jenkins\.java\java8
Gradle JDK Version : 16.0.2 (Oracle)
Gradle java.home : C:\Users\jenkins\.java\openjdk16
Random Testing Seed : 7CCAE3A0EAEC43FD
In FIPS 140 mode : false
=======================================
> Task :distribution:bwc:minor:createClone
> Task :distribution:bwc:minor:findRemote
> Task :distribution:bwc:minor:addRemote SKIPPED
> Task :distribution:bwc:minor:fetchLatest
> Task :distribution:bwc:minor:checkoutBwcBranch
Performing checkout of origin/7.x...
Checkout hash for :distribution:bwc:minor is e76c0a56b900e06249421b14ca2992832da75e86
> Task :distribution:bwc:minor:buildBwcDarwinTar
[7.12.0] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 -Dsun.jnu.encoding=UTF8
[7.12.0]
[7.12.0] FAILURE: Build failed with an exception.
[7.12.0]
[7.12.0] * Where:
[7.12.0] Initialization script 'C:\Users\jenkins\.gradle\init.d\init.gradle' line: 25
[7.12.0]
[7.12.0] * What went wrong:
[7.12.0] A problem occurred evaluating initialization script.
[7.12.0] > Vault responded with HTTP status code: 500
[7.12.0]
[7.12.0] * Try:
[7.12.0] > Run with --stacktrace option to get the stack trace.
[7.12.0] > Run with --info or --debug option to get more log output.
[7.12.0] > Run with --scan to get full insights.
[7.12.0]
[7.12.0] * Get more help at https://help.gradle.org
[7.12.0]
[7.12.0] BUILD FAILED in 27s
Output for cmd:
> Task :distribution:bwc:minor:buildBwcDarwinTar FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':distribution:bwc:minor:buildBwcDarwinTar'.
> Process 'cmd [/C, call, C:\Users\jenkins\AppData\Local\Temp\junit10293579225588038864\cloned\distribution\bwc\minor\build\bwc\checkout-7.x\gradlew, -Dbuild.snapshot=true, -Dscan.tag.NESTED, distribution:archives:darwin-tar:extractedAssemble]' finished with non-zero exit value 1
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 31s
7 actionable tasks: 7 executed
at org.gradle.testkit.runner.internal.DefaultGradleRunner.lambda$build$2(DefaultGradleRunner.java:264)
at org.gradle.testkit.runner.internal.DefaultGradleRunner.run(DefaultGradleRunner.java:338)
at org.gradle.testkit.runner.internal.DefaultGradleRunner.build(DefaultGradleRunner.java:262)
at org.elasticsearch.gradle.internal.test.InternalAwareGradleRunner.build(InternalAwareGradleRunner.java:145)
at org.elasticsearch.gradle.internal.test.NormalizeOutputGradleRunner.build(NormalizeOutputGradleRunner.java:145)
at org.elasticsearch.gradle.internal.InternalDistributionBwcSetupPluginFuncTest.bwc expanded distribution folder can be resolved as bwc project artifact(InternalDistributionBwcSetupPluginFuncTest.groovy:170)
``` | https://github.com/elastic/elasticsearch/issues/83269 | https://github.com/elastic/elasticsearch/pull/86376 | ba91f26826aba1213cdf76404dc110dcbb0a4a89 | 5b4fc60238d85ae0900609e6110e80bc1a10e221 | "2022-01-28T14:57:35Z" | java | "2022-05-03T08:44:15Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,259 | ["x-pack/plugin/src/test/java/org/elasticsearch/xpack/test/rest/AbstractXPackRestTest.java", "x-pack/plugin/src/yamlRestTest/java/org/elasticsearch/xpack/test/rest/XPackRestIT.java", "x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/license/20_put_license.yml"] | [CI] XPackRestIT test {p0=license/20_put_license/Current license is trial means not eligle to start trial} failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/hpkrduphhw4po/tests/:x-pack:plugin:yamlRestTest/org.elasticsearch.xpack.test.rest.XPackRestIT/test%20%7Bp0=license%2F20_put_license%2FCurrent%20license%20is%20trial%20means%20not%20eligle%20to%20start%20trial%7D
**Reproduction line:**
`./gradlew ':x-pack:plugin:yamlRestTest' --tests "org.elasticsearch.xpack.test.rest.XPackRestIT.test {p0=license/20_put_license/Current license is trial means not eligle to start trial}" -Dtests.seed=AC21989E621A3C68 -Dtests.locale=sr-RS -Dtests.timezone=America/Montreal -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.test.rest.XPackRestIT&tests.test=test%20%7Bp0%3Dlicense/20_put_license/Current%20license%20is%20trial%20means%20not%20eligle%20to%20start%20trial%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [license/20_put_license:133]:
Expected: <false>
but: was <true>
at __randomizedtesting.SeedInfo.seed([AC21989E621A3C68:2475A744CCE65190]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:489)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.AssertionError:
Expected: <false>
but: was <true>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.test.rest.yaml.section.MatchAssertion.doAssert(MatchAssertion.java:99)
at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:478)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/83259 | https://github.com/elastic/elasticsearch/pull/83563 | ff9c8271e649dd1ae8a939b56c4e2a439563b708 | 7b952c28ff505f6121b027b66844a6d1b27b91c8 | "2022-01-28T12:45:46Z" | java | "2022-02-08T04:45:54Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,256 | ["rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/indices.forcemerge/10_basic.yml"] | [CI] ClientYamlTestSuiteIT test {yaml=indices.get_alias/10_basic/Get aliases via /_all/_alias/} failing | Tried various combinations of things to see if I could get it to reproduce but no luck.
**Build scan:**
https://gradle-enterprise.elastic.co/s/gilio54m2qpfg/tests/:rest-api-spec:yamlRestTest/org.elasticsearch.test.rest.ClientYamlTestSuiteIT/test%20%7Byaml=indices.get_alias%2F10_basic%2FGet%20aliases%20via%20%2F_all%2F_alias%2F%7D
**Reproduction line:**
`./gradlew ':rest-api-spec:yamlRestTest' --tests "org.elasticsearch.test.rest.ClientYamlTestSuiteIT" -Dtests.method="test {yaml=indices.get_alias/10_basic/Get aliases via /_all/_alias/}" -Dtests.seed=A6876E6644ACEAF -Dtests.locale=ro -Dtests.timezone=CST6CDT -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.test.rest.ClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dindices.get_alias/10_basic/Get%20aliases%20via%20/_all/_alias/%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [indices.get_alias/10_basic:86]: got unexpected warning header [
299 Elasticsearch-8.1.0-SNAPSHOT-6dba3344a49153459bbc8f6e632868723e8486c6 "this request accesses system indices: [.tasks], but in a future major version, direct access to system indices will be prevented by default"
]
at __randomizedtesting.SeedInfo.seed([A6876E6644ACEAF:823C493CCAB6A357]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:489)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.AssertionError: got unexpected warning header [
299 Elasticsearch-8.1.0-SNAPSHOT-6dba3344a49153459bbc8f6e632868723e8486c6 "this request accesses system indices: [.tasks], but in a future major version, direct access to system indices will be prevented by default"
]
at org.junit.Assert.fail(Assert.java:88)
at org.elasticsearch.test.rest.yaml.section.DoSection.checkWarningHeaders(DoSection.java:487)
at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:370)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:478)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/83256 | https://github.com/elastic/elasticsearch/pull/85683 | 378736ac320afe5d4d82fcfb38e196346d63ca5b | 92852f3eac3c6dfe7689c61a5a852aba1d6ecb07 | "2022-01-28T12:34:00Z" | java | "2022-04-04T21:26:52Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,242 | ["build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/DistroTestPlugin.java", "build-tools-internal/version.properties", "docs/changelog/83243.yaml"] | Upgrade Adoptium OpenJDK to 17.0.2+8 | Adoptium OpenJDK 17.0.2+8 is now available. We need to upgrade the version that is bundled with Elasticsearch to the newer version. We currently bundle 17.0.1+12. | https://github.com/elastic/elasticsearch/issues/83242 | https://github.com/elastic/elasticsearch/pull/83243 | 540a40093c62a822f689d51bbf0f08da486345b7 | 878a4458b0f3cced989d34bc861c3be9ee71cc64 | "2022-01-28T10:01:01Z" | java | "2022-01-28T20:31:22Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,240 | ["docs/changelog/83513.yaml", "docs/reference/index-modules.asciidoc", "server/src/main/java/org/elasticsearch/cluster/metadata/NodesShutdownMetadata.java", "server/src/main/java/org/elasticsearch/cluster/routing/allocation/ShardsAvailabilityHealthIndicatorService.java", "server/src/main/java/org/elasticsearch/node/Node.java", "server/src/test/java/org/elasticsearch/cluster/routing/allocation/ShardsAvailabilityHealthIndicatorServiceTests.java", "x-pack/plugin/shutdown/src/main/java/org/elasticsearch/xpack/shutdown/TransportPutShutdownNodeAction.java"] | Implement health indicator for shard allocation | ### Description
Implement health indicator for shard allocation.
This indicator should have same or similar behavior to existing health endpoint.
Aspects to be considered:
* nodes scheduled for reboot should not cause cluster to go yellow (but could cause it go red)
* huge number of unallocated shards should not cause response bloat.
* consider showing allocation explain if possible
Rel: TBD | https://github.com/elastic/elasticsearch/issues/83240 | https://github.com/elastic/elasticsearch/pull/83513 | a55370857652f1c3f4c0d4999473ed96cd027263 | 8d637f588f04edc07e0c6ab2ed8159ac49d670d0 | "2022-01-28T09:16:25Z" | java | "2022-03-07T08:31:33Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,190 | ["rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/indices.forcemerge/10_basic.yml"] | [CI] ClientYamlTestSuiteIT test {yaml=cluster.health/20_request_timeout/cluster health request timeout on waiting for nodes} failing | This happened [on my PR build](https://github.com/elastic/elasticsearch/pull/82838), I attempted local reproduction with `$ ./gradlew ':rest-api-spec:yamlRestTest' --tests "org.elasticsearch.test.rest.ClientYamlTestSuiteIT" -Dtests.method="test {yaml=cluster.health/20_request_timeout/cluster health request timeout on waiting for nodes}" -Dtests.seed=85E56E07E7E3029A -Dtests.locale=he -Dtests.timezone=America/Argentina/ComodRivadavia -Druntime.java=17`, but no luck.
**Build scan:**
https://gradle-enterprise.elastic.co/s/izvd4bxqwp6t2/tests/:rest-api-spec:yamlRestTest/org.elasticsearch.test.rest.ClientYamlTestSuiteIT/test%20%7Byaml=cluster.health%2F20_request_timeout%2Fcluster%20health%20request%20timeout%20on%20waiting%20for%20nodes%7D
**Reproduction line:**
`./gradlew ':rest-api-spec:yamlRestTest' --tests "org.elasticsearch.test.rest.ClientYamlTestSuiteIT" -Dtests.method="test {yaml=cluster.health/20_request_timeout/cluster health request timeout on waiting for nodes}" -Dtests.seed=85E56E07E7E3029A -Dtests.locale=he -Dtests.timezone=America/Argentina/ComodRivadavia -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.test.rest.ClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dcluster.health/20_request_timeout/cluster%20health%20request%20timeout%20on%20waiting%20for%20nodes%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [cluster.health/20_request_timeout:13]:
Expected: <0>
but: was <1>
at __randomizedtesting.SeedInfo.seed([85E56E07E7E3029A:DB151DD491F6F62]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:489)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.AssertionError:
Expected: <0>
but: was <1>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.test.rest.yaml.section.MatchAssertion.doAssert(MatchAssertion.java:99)
at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:478)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/83190 | https://github.com/elastic/elasticsearch/pull/85683 | 378736ac320afe5d4d82fcfb38e196346d63ca5b | 92852f3eac3c6dfe7689c61a5a852aba1d6ecb07 | "2022-01-27T01:45:16Z" | java | "2022-04-04T21:26:52Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,187 | ["server/src/internalClusterTest/java/org/elasticsearch/search/aggregations/TimeSeriesAggregationsIT.java"] | [CI] TimeSeriesAggregationsIT classMethod failing | This test looks to be triggering OOMEs on occassion. This test was recently added in https://github.com/elastic/elasticsearch/pull/82129 so perhaps they are related.
**Build scan:**
https://gradle-enterprise.elastic.co/s/jxghkiieanaye/tests/:server:internalClusterTest/org.elasticsearch.search.aggregations.TimeSeriesAggregationsIT/classMethod
**Reproduction line:**
`./gradlew :server:internalClusterTest --tests org.elasticsearch.search.aggregations.TimeSeriesAggregationsIT`
**Applicable branches:**
master
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.search.aggregations.TimeSeriesAggregationsIT&tests.test=classMethod
**Failure excerpt:**
```
java.lang.Exception: Suite timeout exceeded (>= 1200000 msec).
at __randomizedtesting.SeedInfo.seed([BB4BF7246028F1CC]:0)
``` | https://github.com/elastic/elasticsearch/issues/83187 | https://github.com/elastic/elasticsearch/pull/83189 | b610aeeabb6eb659f85f7eac4c5a6bb763c146b4 | 124ef4b41cc4273807c826f7a4f7155f03dff1e9 | "2022-01-27T00:02:25Z" | java | "2022-01-27T17:17:26Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,144 | ["x-pack/qa/third-party/active-directory/src/test/java/org/elasticsearch/xpack/security/authc/ldap/AbstractAdLdapRealmTestCase.java"] | [CI] MultiGroupMappingIT testGroupMapping failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/qooqg3yxgy6rg/tests/:x-pack:qa:third-party:active-directory:test/org.elasticsearch.xpack.security.authc.ldap.MultiGroupMappingIT/testGroupMapping
**Reproduction line:**
`./gradlew ':x-pack:qa:third-party:active-directory:test' --tests "org.elasticsearch.xpack.security.authc.ldap.MultiGroupMappingIT.testGroupMapping" -Dtests.seed=6F6F32CBCD52E4DD -Dtests.locale=de-CH -Dtests.timezone=America/Anguilla -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.security.authc.ldap.MultiGroupMappingIT&tests.test=testGroupMapping
**Failure excerpt:**
```
org.elasticsearch.ElasticsearchSecurityException: unable to authenticate user [odin] for action [indices:data/write/index]
at __randomizedtesting.SeedInfo.seed([6F6F32CBCD52E4DD:2D682E71BC94FFEC]:0)
at org.elasticsearch.xpack.core.security.support.Exceptions.authenticationError(Exceptions.java:20)
at org.elasticsearch.xpack.core.security.authc.DefaultAuthenticationFailureHandler.createAuthenticationError(DefaultAuthenticationFailureHandler.java:186)
at org.elasticsearch.xpack.core.security.authc.DefaultAuthenticationFailureHandler.failedAuthentication(DefaultAuthenticationFailureHandler.java:106)
at org.elasticsearch.xpack.security.authc.AuthenticationService$AuditableTransportRequest.authenticationFailed(AuthenticationService.java:332)
at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.consumeNullUser(RealmsAuthenticator.java:269)
at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.lambda$consumeToken$3(RealmsAuthenticator.java:214)
at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136)
at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31)
at org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:132)
at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.lambda$consumeToken$0(RealmsAuthenticator.java:192)
at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136)
at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.lambda$authenticateWithCache$3(CachingUsernamePasswordRealm.java:221)
at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136)
at org.elasticsearch.xpack.security.authc.ldap.LdapRealm$LdapSessionActionListener.onFailure(LdapRealm.java:308)
at org.elasticsearch.action.support.ContextPreservingActionListener.onFailure(ContextPreservingActionListener.java:38)
at org.elasticsearch.xpack.security.authc.ldap.LdapSessionFactory$1.onFailure(LdapSessionFactory.java:105)
at org.elasticsearch.xpack.security.authc.ldap.support.LdapUtils$2.onFailure(LdapUtils.java:204)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:28)
at org.elasticsearch.xpack.security.authc.ldap.support.LdapUtils.maybeForkAndRun(LdapUtils.java:102)
at org.elasticsearch.xpack.security.authc.ldap.support.LdapUtils.maybeForkThenBind(LdapUtils.java:212)
at org.elasticsearch.xpack.security.authc.ldap.LdapSessionFactory$1.loop(LdapSessionFactory.java:115)
at org.elasticsearch.xpack.security.authc.ldap.LdapSessionFactory.session(LdapSessionFactory.java:117)
at org.elasticsearch.xpack.security.authc.ldap.LdapRealm.lambda$doAuthenticate$1(LdapRealm.java:147)
at org.elasticsearch.xpack.security.authc.ldap.LdapRealm$CancellableLdapRunnable.doRun(LdapRealm.java:343)
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:776)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/83144 | https://github.com/elastic/elasticsearch/pull/84748 | 5e35112d00113b86982dd1f92c568290de5ebcd2 | 1e6b30ee1e387677942ec94b60acf3e8b211c39e | "2022-01-26T12:06:15Z" | java | "2022-03-18T02:58:52Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,034 | ["server/src/test/java/org/elasticsearch/node/NodeTests.java", "test/framework/src/main/java/org/elasticsearch/node/MockNode.java"] | [CI] NodeTests failing with incompatible wire format error | Could not reproduce, haven't seen any recent failures so far either so keeping this unmuted for now.
**Build scan:**
https://gradle-enterprise.elastic.co/s/auabxhkpzbxn2/tests/:server:test/org.elasticsearch.node.NodeTests/testCloseOnInterruptibleTask
**Reproduction line:**
`./gradlew ':server:test' --tests "org.elasticsearch.node.NodeTests.testCloseOnInterruptibleTask" -Dtests.seed=3E36C1C728F289EA -Dtests.locale=pt-PT -Dtests.timezone=America/Ensenada -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.node.NodeTests&tests.test=testCloseOnInterruptibleTask
**Failure excerpt:**
```
com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=851, name=Thread-64, state=RUNNABLE, group=TGRP-NodeTests]
Caused by: java.lang.AssertionError: java.lang.IllegalArgumentException: remote node [{TS_B}{TS_B}{HlNEkIWGTwKCjy--a1FF3w}{127.0.0.1}{127.0.0.1:9302}] is build [unknown-modified] of version [8.1.0] but this node is build [unknown] of version [8.1.0] which has an incompatible wire format
at __randomizedtesting.SeedInfo.seed([3E36C1C728F289EA]:0)
at org.elasticsearch.transport.InboundHandler.handleResponse(InboundHandler.java:346)
at org.elasticsearch.transport.InboundHandler.messageReceived(InboundHandler.java:142)
at org.elasticsearch.transport.InboundHandler.inboundMessage(InboundHandler.java:94)
at org.elasticsearch.transport.TcpTransport.inboundMessage(TcpTransport.java:796)
at org.elasticsearch.transport.InboundPipeline.forwardFragments(InboundPipeline.java:149)
at org.elasticsearch.transport.InboundPipeline.doHandleBytes(InboundPipeline.java:121)
at org.elasticsearch.transport.InboundPipeline.handleBytes(InboundPipeline.java:86)
at org.elasticsearch.transport.netty4.Netty4MessageChannelHandler.channelRead(Netty4MessageChannelHandler.java:74)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.handler.logging.LoggingHandler.channelRead(LoggingHandler.java:280)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:722)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:623)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:586)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.IllegalArgumentException: remote node [{TS_B}{TS_B}{HlNEkIWGTwKCjy--a1FF3w}{127.0.0.1}{127.0.0.1:9302}] is build [unknown-modified] of version [8.1.0] but this node is build [unknown] of version [8.1.0] which has an incompatible wire format
at org.elasticsearch.transport.TransportService$HandshakeResponse.<init>(TransportService.java:582)
at org.elasticsearch.action.ActionListenerResponseHandler.read(ActionListenerResponseHandler.java:58)
at org.elasticsearch.action.ActionListenerResponseHandler.read(ActionListenerResponseHandler.java:25)
at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.read(TransportService.java:1330)
at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.read(TransportService.java:1317)
at org.elasticsearch.transport.InboundHandler.handleResponse(InboundHandler.java:338)
at org.elasticsearch.transport.InboundHandler.messageReceived(InboundHandler.java:142)
at org.elasticsearch.transport.InboundHandler.inboundMessage(InboundHandler.java:94)
at org.elasticsearch.transport.TcpTransport.inboundMessage(TcpTransport.java:796)
at org.elasticsearch.transport.InboundPipeline.forwardFragments(InboundPipeline.java:149)
at org.elasticsearch.transport.InboundPipeline.doHandleBytes(InboundPipeline.java:121)
at org.elasticsearch.transport.InboundPipeline.handleBytes(InboundPipeline.java:86)
at org.elasticsearch.transport.netty4.Netty4MessageChannelHandler.channelRead(Netty4MessageChannelHandler.java:74)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.handler.logging.LoggingHandler.channelRead(LoggingHandler.java:280)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:722)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:623)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:586)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/83034 | https://github.com/elastic/elasticsearch/pull/86010 | 06b14e57ec57577919c5ff1b590ffc0153a2f20a | 238f5ee53e8f1d58b8d2c174d0fe50891d1c813a | "2022-01-25T11:40:31Z" | java | "2022-04-25T07:28:16Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,028 | ["rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/snapshot.restore/10_basic.yml"] | [CI] ClientYamlTestSuiteIT test {yaml=snapshot.restore/10_basic/Create a snapshot and then restore it} failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/zok42wqgpgxqy/tests/:rest-api-spec:yamlRestTest/org.elasticsearch.test.rest.ClientYamlTestSuiteIT/test%20%7Byaml=snapshot.restore%2F10_basic%2FCreate%20a%20snapshot%20and%20then%20restore%20it%7D
**Reproduction line:**
`./gradlew ':rest-api-spec:yamlRestTest' --tests "org.elasticsearch.test.rest.ClientYamlTestSuiteIT" -Dtests.method="test {yaml=snapshot.restore/10_basic/Create a snapshot and then restore it}" -Dtests.seed=F6E5E1A845C246A9 -Dtests.locale=sl -Dtests.timezone=America/Knox_IN -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.test.rest.ClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dsnapshot.restore/10_basic/Create%20a%20snapshot%20and%20then%20restore%20it%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [snapshot.restore/10_basic:38]:
Expected: <1>
but: was <2>
at __randomizedtesting.SeedInfo.seed([F6E5E1A845C246A9:7EB1DE72EB3E2B51]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:489)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.AssertionError:
Expected: <1>
but: was <2>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.test.rest.yaml.section.MatchAssertion.doAssert(MatchAssertion.java:99)
at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:478)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/83028 | https://github.com/elastic/elasticsearch/pull/83053 | d88d480100965859d148c15e55d9cdd38aa36266 | c77564214a77cbaf3616992743248b1db54b2909 | "2022-01-25T10:59:24Z" | java | "2022-01-26T09:58:09Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,005 | ["docs/changelog/96588.yaml", "docs/reference/analysis/normalizers.asciidoc", "modules/analysis-common/src/main/java/org/elasticsearch/analysis/common/PatternReplaceTokenFilterFactory.java", "modules/analysis-common/src/test/java/org/elasticsearch/analysis/common/PatternReplaceTokenFilterTests.java", "modules/analysis-common/src/yamlRestTest/resources/rest-api-spec/test/analysis-common/40_token_filters.yml"] | Support for pattern_replace filter in keyword normalizers | My use case is that I have a field which is storing IDs. Those IDs might be coming from different sources, but in general there might be noise. For example, there might be ID `000123` and I would like to configure normalizer which trims all prefix zeros:
```
"zeros_prefix_trim": {
"type": "pattern_replace",
"pattern": "^0+",
"replacement": "",
"all": false
}
```
But it seems this is not allowed. Not sure why, because `trim` filter itself works (after #27310, which has not been documented, BTW). | https://github.com/elastic/elasticsearch/issues/83005 | https://github.com/elastic/elasticsearch/pull/96588 | 4df6911ec797928fc4c6be5443ff8dc048fd1d4d | a8cf4d6006c912af97c1407ff0406bc4a9a9659c | "2022-01-24T23:49:31Z" | java | "2023-06-09T22:32:39Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,983 | ["docs/reference/search/search-your-data/retrieve-selected-fields.asciidoc"] | [DOCS] Collapse "edge case" sections in "Retrieve selected fields" | The [`fields` option section](https://www.elastic.co/guide/en/elasticsearch/reference/master/search-fields.html#search-fields-param) of the [Retrieve selected fields](https://www.elastic.co/guide/en/elasticsearch/reference/master/search-fields.html#search-fields) page has gotten pretty long. It may be difficult for new users to distinguish between common scenarios and uncommon ones, such as retrieving nested or metadata fields.
To reduce page length and help users scan the information, we should consider collapsing parts of the page that cover more "edge case" scenarios. | https://github.com/elastic/elasticsearch/issues/82983 | https://github.com/elastic/elasticsearch/pull/84373 | 446004eea74bca60f4f4f94d78f64cb8cc1de922 | 713017f0e3b6e92465474bf956d7fc9356d0e157 | "2022-01-24T19:30:49Z" | java | "2022-02-28T17:52:39Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,965 | ["docs/reference/mapping/dynamic/field-mapping.asciidoc", "docs/reference/mapping/dynamic/templates.asciidoc"] | Confusing documentation about dynamic types | In [this section](https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic-templates.html#match-mapping-type) it says (emphasis mine):
> The match_mapping_type is the data type detected by the JSON parser. Because JSON doesn’t distinguish a long from an integer or a double from a float, it always chooses the wider data type such as **long** for integers and **double** for floating-point numbers.
Later on it says in the table (emphasis mine):
| JSON data type | `"dynamic":"true"` | `"dynamic":"runtime"` |
| ------------- | ------------- | ------------- |
| `double` | **`float`** | `double` |
| `integer` | **`long`** | `long` |
This two parts of documentation are contradicting. In the table it is picked `float` and not `double` for floating point numbers. For integers, documentation matches. | https://github.com/elastic/elasticsearch/issues/82965 | https://github.com/elastic/elasticsearch/pull/83274 | 10dd63855062043d719168f4bf27b43814eeda6a | 620fe44c6b882d92c69bb5db173d2f10d9a40b6a | "2022-01-24T16:51:46Z" | java | "2022-02-01T15:37:27Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,948 | ["docs/changelog/83083.yaml", "rest-api-spec/src/main/resources/rest-api-spec/api/indices.get.json", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/indices.get/10_basic.yml", "server/src/main/java/org/elasticsearch/action/admin/indices/get/GetIndexRequest.java", "server/src/main/java/org/elasticsearch/rest/action/admin/indices/RestGetIndicesAction.java", "server/src/test/java/org/elasticsearch/action/admin/indices/get/GetIndexRequestTests.java", "server/src/test/java/org/elasticsearch/rest/RestRequestTests.java"] | Expose features option in Get Index API | The Get Index Api always fetches all mappings, aliases and settings for each index it return results for.
It is possible to filter unwanted information out by using `filter_path` option, but this only avoids the unneeded
to be added to the response. The information is still computed on the Elasticsearch side. Especially getting
the mappings is relatively expensive here, since this requires uncompressing certain parts of the cluster state.
Internally the Get Index Api has a functionality called `features` that allow certain parts of an index not be computed / fetch to begin with. Unfortunately this option isn't exposed in the rest layer. We should expose this feature to avoid Elasticsearch from doing unnecessary computations for things that the caller of the get index api will not use anyway. | https://github.com/elastic/elasticsearch/issues/82948 | https://github.com/elastic/elasticsearch/pull/83083 | 836d9bc7861adbe13eb063176048919bf35ad4e2 | 4ad7814a76335649bad1777dde345708778ca52f | "2022-01-24T15:00:50Z" | java | "2022-01-27T13:44:52Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,911 | ["server/src/internalClusterTest/java/org/elasticsearch/snapshots/ConcurrentSnapshotsIT.java", "server/src/main/java/org/elasticsearch/cluster/SnapshotsInProgress.java", "server/src/main/java/org/elasticsearch/snapshots/SnapshotsService.java", "test/framework/src/main/java/org/elasticsearch/snapshots/AbstractSnapshotIntegTestCase.java"] | Master Failover during Delete Corrupts Repostory in Edge Case | The following test added to `ConcurrentSnapshotsIT` shows an unlikely but possible edge case that can lead to repository corruption.
```
public void testMasterFailoverDuringStaleIndicesCleanup() throws Exception {
internalCluster().startMasterOnlyNodes(3);
final String dataNode = internalCluster().startDataOnlyNode();
final String repoName = "test-repo";
createRepository(repoName, "mock");
createFullSnapshot(repoName, "empty-snapshot");
createIndex("index-test", indexSettingsNoReplicas(randomIntBetween(6, 10)).build());
indexRandomDocs("index-test", 10000);
final NetworkDisruption networkDisruption = isolateMasterDisruption(NetworkDisruption.DISCONNECT);
internalCluster().setDisruptionScheme(networkDisruption);
final List<String> fullSnapshotsToDelete = createNSnapshots(repoName, randomIntBetween(1, 5));
final String masterName = internalCluster().getMasterName();
blockMasterOnAnyDataFile(repoName);
final ActionFuture<AcknowledgedResponse> deleteAllSnapshotsWithIndex =
startDeleteSnapshots(repoName, fullSnapshotsToDelete, masterName);
final ActionFuture<CreateSnapshotResponse> snapshotFuture = startFullSnapshotFromDataNode(repoName, "new-full-snapshot");
waitForBlock(masterName, repoName);
awaitNDeletionsInProgress(1);
awaitNDeletionsInProgress(1);
networkDisruption.startDisrupting();
ensureStableCluster(3, dataNode);
awaitNoMoreRunningOperations(dataNode);
unblockNode(repoName, masterName);
networkDisruption.stopDisrupting();
ensureStableCluster(4);
awaitNoMoreRunningOperations();
for (ActionFuture<?> future : List.of(deleteAllSnapshotsWithIndex, snapshotFuture)) {
try {
future.get();
} catch (Exception ignored) {
// ignored had a failover in here and will get all kinds of errors on these, just making sure they complete
}
}
}
```
This tests master failing over in the last delete step, after updating the repository metadata and during the cleanup of stale indices in the repository. Since stale indices are not deleted blob by blob but instead are deleted on a per-folder basis an unfortunate situation can arise.
The snapshot queued after the delete might use the `IndexId` that is being cleaned up as stale in the delete. If the delete works out fine, the snapshot after the delete will just re-create the folder and all will be ok.
If the master simply goes away and doesn't do any work, this won't break either because the next writer will just find some irrelevant blobs in the assumed empty shard directory and will clean them up with the next delete but otherwise ignore them.
If however the master is simply disconnected from the cluster and keeps deleting from the repository there is a very small window of time in which the old/disconnected master could technically list out new valid blobs and delete them when doing a folder delete.
This is quite the unlikely scenario in practice because you will rarely delete the only snapshot of a certain index before creating the next snapshot of that index + the timing of the master disconnect etc. makes it hard to actually run into this but it is not impossible unfortunately.
The fix to this is relatively straight forward and I'll implement it shortly. | https://github.com/elastic/elasticsearch/issues/82911 | https://github.com/elastic/elasticsearch/pull/82912 | 805cd39147740f31eb5adabc3e4581a94718ead2 | 4ad9070b98cf581e3081ff9420cc81c068e1ddcd | "2022-01-21T18:20:21Z" | java | "2022-01-24T14:00:12Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,905 | ["server/src/main/java/org/elasticsearch/search/fetch/subphase/FieldFetcher.java", "server/src/test/java/org/elasticsearch/search/fetch/subphase/FieldFetcherTests.java"] | Field not returned if it has the same prefix as a nested field | **Elasticsearch version**: 7.16.2
**Plugins installed**: []
**JVM version**: Bundled in official Elasticsearch docker image
**OS version**: Bundled in official Elasticsearch docker image
**Description of the problem including expected versus actual behavior**:
Running Elasticsearch on ECK, an index containing fields `foo` and `foo_bar` will not allow returning field `foo_bar` if `foo` is of type `nested`. This means any field that has the same prefix as a sibling field with type `nested` can be queried on, but is not returned even if requested, the `foo_bar` field is returned as part of `_source`.
More background documented in https://discuss.elastic.co/t/vector-tiles-search-not-returning-hits-on-geo-shape-fields/294926/10
Although the discussion is about `geo_shape` fields, I also reproduced it with type `keyword` for `foo_bar`.
Thanks for helping with this!
**Steps to reproduce**:
```
PUT /locations
{
"mappings": {
"properties": {
"stops": {
"type": "nested",
"properties": {
"stop_id": {
"type": "keyword"
}
}
},
"stops_geoshape": {
"type": "geo_shape"
}
}
}
}
POST /locations/_bulk
{ "index": { "_id": "1" } }
{ "stops_geoshape": {"coordinates":[[[24.7412109375,59.45624336447568],[23.70849609375,56.64414704199467]],[[12.41455078125,51.358061573190916],[8.76708984375,53.12040528310657]]],"type":"multilinestring" } }
POST /locations/_search
{
"query": {
"geo_bounding_box": {
"stops_geoshape": {
"bottom_right": {
"lat": 35.029996,
"lon": 36.079102
},
"top_left": {
"lat": 62.714462,
"lon": -12.436523
}
}
}
},
"fields": ["stops_geoshape"],
"_source": ["stops_geoshape"]
}
{
"took": 1,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 1,
"relation": "eq"
},
"max_score": 1.0,
"hits": [
{
"_index": "locations",
"_type": "_doc",
"_id": "1",
"_score": 1.0,
"_source": {
"stops_geoshape": {
"coordinates": [
[
[
24.7412109375,
59.45624336447568
],
[
23.70849609375,
56.64414704199467
]
],
[
[
12.41455078125,
51.358061573190916
],
[
8.76708984375,
53.12040528310657
]
]
],
"type": "multilinestring"
}
}
}
]
}
}
```
As you can see, the search response does not include the `stops_geoshape` field, although it was requested. Renaming the nested field `stops` to be `stopss` results in expected result - the `stops_geoshape` field being returned in the response. Adding an alias to the underlying `stops_geoshape` field works:
```
PUT /locations/_mapping
{
"properties": {
"geoshape": {
"type": "alias",
"path": "stops_geoshape"
}
}
}
POST /locations/_search
{
"query": {
"geo_bounding_box": {
"stops_geoshape": {
"bottom_right": {
"lat": 35.029996,
"lon": 36.079102
},
"top_left": {
"lat": 62.714462,
"lon": -12.436523
}
}
}
},
"fields": ["stops_geoshape", "geoshape"],
"_source": [ "stops_geoshape"]
}
{
"took": 1,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 1,
"relation": "eq"
},
"max_score": 1.0,
"hits": [
{
"_index": "locations",
"_type": "_doc",
"_id": "1",
"_score": 1.0,
"_source": {
"stops_geoshape": {
"coordinates": [
[
[
24.7412109375,
59.45624336447568
],
[
23.70849609375,
56.64414704199467
]
],
[
[
12.41455078125,
51.358061573190916
],
[
8.76708984375,
53.12040528310657
]
]
],
"type": "multilinestring"
}
},
"fields": {
"geoshape": [
{
"coordinates": [
[
[
24.7412109375,
59.45624336447568
],
[
23.70849609375,
56.64414704199467
]
],
[
[
12.41455078125,
51.358061573190916
],
[
8.76708984375,
53.12040528310657
]
]
],
"type": "MultiLineString"
}
]
}
}
]
}
}
``` | https://github.com/elastic/elasticsearch/issues/82905 | https://github.com/elastic/elasticsearch/pull/82922 | 20e24c3db612631712fcf417ea914b88ceab5dfd | 036eb8055d4032e5124c0399efc71d15e1d2c15a | "2022-01-21T11:03:52Z" | java | "2022-01-24T11:50:42Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,903 | ["docs/changelog/84535.yaml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.aggregation/360_date_histogram.yml", "server/src/main/java/org/elasticsearch/search/aggregations/support/CoreValuesSourceType.java"] | Data histogram aggregation issue for arrays field | **Elasticsearch version** (`bin/elasticsearch --version`): 7.11.0 - 7.16.3
**Plugins installed**: [Netty4Plugin.class, PainlessPlugin.class, CommonAnalysisPlugin.class, ParentJoinPlugin.class]
**JVM version** (`java -version`): 11.0.13
**OS version** (`uname -a` if on a Unix-like system):Darwin Kernel Version 21.2.0 and on windows 10
**Description of the problem including expected versus actual behavior**:
During the upgrade from 7.10.2 to 7.16.3 I encounter the issue with date histogram aggregation for the arrays field. Aggregated buckets are displayed after query, but if I select one then the rest are gone.
To explaining behavioral I will based on document with array field `"date":["2021-05-01","2021-04-01"]`.
I expect that when I made a query with date aggregation by month and on `date` field for that document then I got, as a result, two buckets: `2021-05` and `2021-04`. Which is working as expected. The issue here is when I select one of the buckets as a filter then as result I didn't got the second bucket. This is unexpected because the given document matches also the second filter. In version `<=7.10.2` it's working as expected.
Current behavioral break facet approach in search driven application. It is intended behavior or a bug?
**Steps to reproduce**:
1. Create doc
```
POST test/_doc
{
"date":["2021-05-01","2021-04-01","2021-04-22"]
}
```
2. Make a search request with filter (doesn't work in 7.16.3, but works in 7.10.2)
```
GET test/_search?q=date:2021-04-01
{
"aggs": {
"NAME": {
"date_histogram": {
"field": "date",
"interval": "1M"
}
}
}
}
```
3. Make a search request with range filter (work, but is a kinda workaround)
```
GET test/_search?q=date:[2021-04-01 TO 2021-08-01]
{
"aggs": {
"NAME": {
"date_histogram": {
"field": "date",
"interval": "1M"
}
}
}
}
```
I checked for other types, an issue occurs only for `date` type.
| https://github.com/elastic/elasticsearch/issues/82903 | https://github.com/elastic/elasticsearch/pull/84535 | b95aa4f5b48c3d5dfb5ee819b37aa9b14b89d400 | 947f88b1e9380600410b95504ebfd8aa3d56f5b1 | "2022-01-21T07:33:29Z" | java | "2022-03-23T14:40:42Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,879 | ["docs/changelog/83494.yaml", "server/src/main/java/org/elasticsearch/action/fieldcaps/FieldCapabilitiesFetcher.java", "server/src/main/java/org/elasticsearch/action/fieldcaps/FieldCapabilitiesIndexResponse.java", "server/src/main/java/org/elasticsearch/action/fieldcaps/FieldCapabilitiesNodeResponse.java", "server/src/main/java/org/elasticsearch/action/fieldcaps/FieldCapabilitiesResponse.java", "server/src/main/java/org/elasticsearch/action/fieldcaps/TransportFieldCapabilitiesAction.java", "server/src/test/java/org/elasticsearch/action/fieldcaps/FieldCapabilitiesFilterTests.java", "server/src/test/java/org/elasticsearch/action/fieldcaps/FieldCapabilitiesIndexResponseTests.java", "server/src/test/java/org/elasticsearch/action/fieldcaps/FieldCapabilitiesResponseTests.java"] | Merge field caps responses on each node? | We'd like to look into merging field caps responses on each node, to prevent the coordinator from doing all merging. This will help reduce latency and memory when the field caps request includes many shards.
As part of this work, we can see if we could detect when two indices share the same mappings, and in that case skip over the shards with mappings we've already collected. This can help in the case of time-based indices, where most indices may have the same mappings.
This is a spin-off from https://github.com/elastic/elasticsearch/issues/76509#issuecomment-906005419 to capture unresolved work. | https://github.com/elastic/elasticsearch/issues/82879 | https://github.com/elastic/elasticsearch/pull/83494 | acf9968f9d397d755d5ad9fcf815cca23bbeda61 | 69e898db9f5bd1935a9dcca2d6d1f76d69b576cf | "2022-01-20T17:14:22Z" | java | "2022-02-17T15:19:47Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,867 | ["docs/changelog/83213.yaml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.aggregation/40_range.yml", "server/src/main/java/org/elasticsearch/index/mapper/NumberFieldMapper.java", "server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregatorTests.java"] | Range aggregation with decimal parts no longer working (with 7.16.2) | **Elasticsearch version** (`bin/elasticsearch --version`): 7.16.2
**Plugins installed**: []
**JVM version** (`java -version`):
```
openjdk version "11.0.9" 2020-10-20 LTS
OpenJDK Runtime Environment Zulu11.43+21-CA (build 11.0.9+11-LTS)
OpenJDK 64-Bit Server VM Zulu11.43+21-CA (build 11.0.9+11-LTS, mixed mode)
```
**OS version** (`uname -a` if on a Unix-like system): Windows 10
**Description of the problem including expected versus actual behavior**:
After upgrading from v7.12.1 to v7.16.2, range aggregations with decimal parts are no longer working for fields of type long. An exception is thrown and the query is rejected. This worked previously.
**Steps to reproduce**:
The following script will cause the exception on v7.16.2.
```bash
curl -XDELETE 'localhost:9200/test123'
curl -H 'Content-type: application/json' -XPOST 'localhost:9200/test123/_doc' -d "{ \"value\": 1000 }"
curl -H 'Content-type: application/json' -XPOST 'localhost:9200/test123/_search' -d '{
"size": 0,
"query": {
"bool": {
"adjust_pure_negative": true,
"boost": 1
}
},
"aggregations": {
"agg1": {
"range": {
"field": "value",
"ranges": [{
"from": 999.9
}]
}
}
}
}'
```
**Provide logs (if relevant)**:
```json
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Value [999.9] has a decimal part"
}
],
"type": "search_phase_execution_exception",
"reason": "all shards failed",
"phase": "query",
"grouped": true,
"failed_shards": [
{
"shard": 0,
"index": "test123",
"node": "-XNCseqAQeGOjNtcCYiGXQ",
"reason": {
"type": "illegal_argument_exception",
"reason": "Value [999.9] has a decimal part"
}
}
],
"caused_by": {
"type": "illegal_argument_exception",
"reason": "Value [999.9] has a decimal part",
"caused_by": {
"type": "illegal_argument_exception",
"reason": "Value [999.9] has a decimal part"
}
}
},
"status": 400
}
```
| https://github.com/elastic/elasticsearch/issues/82867 | https://github.com/elastic/elasticsearch/pull/83213 | 7f0595abe68e07d927c874a53737556f6555fdaf | 2d701b99670246724399f37df2fd63299af7d33b | "2022-01-20T15:25:07Z" | java | "2022-02-02T13:59:13Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,857 | ["docs/changelog/83302.yaml", "server/src/main/java/org/elasticsearch/cluster/metadata/DataStream.java", "test/framework/src/main/java/org/elasticsearch/cluster/metadata/DataStreamTestHelper.java", "x-pack/plugin/autoscaling/src/main/java/org/elasticsearch/xpack/autoscaling/storage/ReactiveStorageDeciderService.java", "x-pack/plugin/autoscaling/src/test/java/org/elasticsearch/xpack/autoscaling/storage/ProactiveStorageDeciderServiceTests.java"] | Autoscaling a follower cluster with data streams fails | A cluster using CCR to follow a data stream from another cluster can cause the autoscaling capacity API to fail to deliver an autoscaling response with an exception like:
```
GET /_autoscaling/capacity/
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "data stream [data-stream-name] cannot be rolled over, because it is a replicated data stream"
}
],
"type": "illegal_argument_exception",
"reason": "data stream [data-stream-name] cannot be rolled over, because it is a replicated data stream"
},
"status": 400
}
``` | https://github.com/elastic/elasticsearch/issues/82857 | https://github.com/elastic/elasticsearch/pull/83302 | 9c992d7cb8b461dd081d7c3405a0ad0dfa0fc843 | c731fefb96ebd5d0db86676b43fe158bd2c5eb9a | "2022-01-20T13:12:47Z" | java | "2022-01-31T10:46:53Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,840 | ["server/src/main/java/org/elasticsearch/common/geo/GeoPolygonDecomposer.java", "server/src/test/java/org/elasticsearch/common/geo/GeometryNormalizerTests.java"] | [CI] LatLonShapeDocValuesQueryTests testIndexSimpleShapes failing | **Build scan**:
https://gradle-enterprise.elastic.co/s/scskbvxhpany2/tests/:x-pack:plugin:spatial:test/org.elasticsearch.xpack.spatial.index.mapper.LatLonShapeDocValuesQueryTests/testIndexSimpleShapes?top-execution=1
**Repro line**:
`./gradlew ':x-pack:plugin:spatial:test' --tests "org.elasticsearch.xpack.spatial.index.mapper.LatLonShapeDocValuesQueryTests.testIndexSimpleShapes" -Dtests.seed=CAC8D1ECA29BF357 -Dtests.locale=fr-LU -Dtests.timezone=SystemV/EST5EDT -Druntime.java=17`
**Reproduces locally?**:
Yes
**Applicable branches**:
master
**Failure history**:
./gradlew ':x-pack:plugin:spatial:test' --tests "org.elasticsearch.xpack.spatial.index.mapper.LatLonShapeDocValuesQueryTests.testIndexSimpleShapes" -Dtests.seed=CAC8D1ECA29BF357 -Dtests.locale=fr-LU -Dtests.timezone=SystemV/EST5EDT -Druntime.java=17
**Failure excerpt**:
```
| | at __randomizedtesting.SeedInfo.seed([CAC8D1ECA29BF357:D7B9C5F85FE60BAE]:0) |
-- | -- | -- | --
| | at org.apache.lucene.geo.Tessellator.earcutLinkedList(Tessellator.java:561) |
| | at org.apache.lucene.geo.Tessellator.tessellate(Tessellator.java:126) |
| | at org.apache.lucene.document.LatLonShape.createIndexableFields(LatLonShape.java:75) |
| | at org.elasticsearch.index.mapper.GeoShapeIndexer$LuceneGeometryIndexer.visit(GeoShapeIndexer.java:128) |
| | at org.elasticsearch.index.mapper.GeoShapeIndexer$LuceneGeometryIndexer.visit(GeoShapeIndexer.java:115) |
| | at org.elasticsearch.index.mapper.GeoShapeIndexer$LuceneGeometryIndexer.visit(GeoShapeIndexer.java:60) |
| | at org.elasticsearch.geometry.MultiPolygon.visit(MultiPolygon.java:32) |
| | at org.elasticsearch.index.mapper.GeoShapeIndexer.indexShape(GeoShapeIndexer.java:56) |
| | at org.elasticsearch.xpack.spatial.index.mapper.LatLonShapeDocValuesQueryTests.testIndexSimpleShapes(LatLonShapeDocValuesQueryTests.java:78) |
| | at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
| | at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) |
| | at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
| | at java.lang.reflect.Method.invoke(Method.java:568) |
| | at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) |
| | at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) |
| | at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) |
| | at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) |
| | at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) |
| | at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) |
| | at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) |
| | at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) |
| | at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) |
| | at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) |
| | at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) |
| | at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) |
| | at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) |
| | at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) |
| | at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) |
| | at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) |
| | at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) |
| | at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) |
| | at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) |
| | at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) |
| | at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) |
| | at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) |
| | at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) |
| | at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) |
| | at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) |
| | at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) |
| | at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) |
| | at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) |
| | at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) |
| | at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) |
| | at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) |
| | at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) |
| | at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) |
| | at java.lang.Thread.run(Thread.java:833)
```
| https://github.com/elastic/elasticsearch/issues/82840 | https://github.com/elastic/elasticsearch/pull/82953 | 9be18cb6b449c7c768936c47d88f022215b37bef | 3f723a451a57465e8a8d68538e1123d98fb3399c | "2022-01-20T03:43:13Z" | java | "2022-01-25T06:23:55Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,832 | ["rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/tsdb/10_settings.yml", "server/src/main/java/org/elasticsearch/index/IndexMode.java", "server/src/main/java/org/elasticsearch/index/IndexSettings.java", "server/src/test/java/org/elasticsearch/index/TimeSeriesModeTests.java"] | TSDB: Confusing error message for start/end dates | If I want to have a single TSDB index it would be reasonable for me to create an index with a broad time range that would look something like this:
```
PUT test
{
"settings": {
"index.mode": "time_series",
"index.routing_path": "key",
"index.time_series.start_time": "1970-01-01T00:00:00Z",
"index.time_series.end_time": "9999-12-31T23:59:59.999Z"
},
"mappings": {
"properties": {
"key": {
"type": "keyword",
"time_series_dimension": true
},
"val": {
"type": "double"
}
}
}
}
```
This command is generating the error:
```
{
"error" : {
"root_cause" : [
{
"type" : "illegal_argument_exception",
"reason" : "[index.mode=time_series] requires [index.time_series.start_time]"
}
],
"type" : "illegal_argument_exception",
"reason" : "[index.mode=time_series] requires [index.time_series.start_time]"
},
"status" : 400
}
```
Analysis: both `index.time_series.start_time` and `index.time_series.end_time` are there, they just happened to be equal to default values for this setting, which is cause the code think that the settings don't exist and report incorrect error message. Since we require this setting, I don't think we need a default for it.
| https://github.com/elastic/elasticsearch/issues/82832 | https://github.com/elastic/elasticsearch/pull/83236 | 294c49c29f7e44838a4cae7159e3c0680431419b | ca3363f163c47a367b9d9b87ed052de36e2a7f8e | "2022-01-19T23:43:47Z" | java | "2022-02-07T21:54:02Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,818 | ["docs/reference/mapping/types/parent-join.asciidoc"] | [DOCS] Make multi-level `join` field warning more prominent | The [`join` field type docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/parent-join.html#_multiple_levels_of_parent_join) contain a warning against creating multiple levels of parent/child relations:
> Using multiple levels of relations to replicate a relational model is not recommended. Each level of relation adds an overhead at query time in terms of memory and computation. You should de-normalize your data if you care about performance.
However, this warning is in the last section of the page. We should move this content higher up on the page so users are aware before they start mapping their data. | https://github.com/elastic/elasticsearch/issues/82818 | https://github.com/elastic/elasticsearch/pull/82976 | 7f81877ce0ca6b2995bdb988b73609fdee0f82d6 | d3fb0149144945d58429e141fd375201612606d9 | "2022-01-19T17:46:10Z" | java | "2022-01-25T18:51:42Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,797 | ["x-pack/plugin/watcher/src/internalClusterTest/java/org/elasticsearch/xpack/watcher/transport/action/activate/ActivateWatchTests.java"] | [CI] ActivateWatchTests testDeactivateAndActivate failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/6xjhol7yd4dge/tests/:x-pack:plugin:watcher:internalClusterTest/org.elasticsearch.xpack.watcher.transport.action.activate.ActivateWatchTests/testDeactivateAndActivate
**Reproduction line:**
`./gradlew ':x-pack:plugin:watcher:internalClusterTest' --tests "org.elasticsearch.xpack.watcher.transport.action.activate.ActivateWatchTests.testDeactivateAndActivate" -Dtests.seed=C05B271BF15F2E7C -Dtests.locale=ar-IQ -Dtests.timezone=America/Iqaluit -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.watcher.transport.action.activate.ActivateWatchTests&tests.test=testDeactivateAndActivate
**Failure excerpt:**
```
java.lang.IllegalArgumentException: index [.ds-.watcher-history-14-2022.01.19-000001] is the write index for data stream [.watcher-history-14] and cannot be deleted
at __randomizedtesting.SeedInfo.seed([C05B271BF15F2E7C:60035FE63E06F800]:0)
at org.elasticsearch.cluster.metadata.MetadataDeleteIndexService.deleteIndices(MetadataDeleteIndexService.java:92)
at org.elasticsearch.cluster.metadata.MetadataDeleteIndexService$1.execute(MetadataDeleteIndexService.java:69)
at org.elasticsearch.cluster.ClusterStateTaskExecutor$1.execute(ClusterStateTaskExecutor.java:161)
at org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:817)
at org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:392)
at org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:232)
at org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:164)
at org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:152)
at org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:208)
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:716)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:260)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:223)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/82797 | https://github.com/elastic/elasticsearch/pull/93560 | d52b6f93fe5599669ba99af9208760be5904a316 | 1bd29289598aaa25992746bec35bf32ac87df4c3 | "2022-01-19T13:17:31Z" | java | "2023-02-07T15:28:47Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,777 | ["docs/changelog/83693.yaml", "libs/core/src/main/java/org/elasticsearch/core/MemoizedSupplier.java", "server/src/main/java/org/elasticsearch/search/lookup/SourceLookup.java", "server/src/test/java/org/elasticsearch/search/lookup/SourceLookupTests.java"] | Performance degradation for new HitContext constructor when only pulling docvalues | **Elasticsearch version** (`bin/elasticsearch --version`): `7.14.2`
**Plugins installed**: []
**JVM version** (`java -version`): `openjdk version "16" 2021-03-16`
**OS version** (`uname -a` if on a Unix-like system):
**Description of the problem including expected versus actual behavior**:
In my production environment, I pull only docvalues from es cluster by setting `_source=false` and `stored_fields=_none_` in scroll query for SQL query computed in my own SQL query engine(like presto). In my scenario, the CPU is the performance bottleneck.
In 7.14.2 es version, #65292 PR will cause each `HitContext`(one doc) to initialize the `FieldsIndexReader` called in `setSegmentAndDocument()` function at least once, and the FieldsIndexReader is not actually used, resulting in a `performance drop` of about `30%`(in my case) compared to 7.10.1 es version. The analysis results of async-profiler are shown in the following figure.
7.14.2

7.10.1

**Steps to reproduce**:
In my environment, there is 25 es data nodes (32C64G,3TB disk), 3 es master node; and there is 20 nodes(16C32G) in my SQL query engine(like presto).
But the problem can be reproduced by following steps.
1. create a 7.14.2 es cluster (can only one data node)
2. create a index
`PUT test_column
{
"mappings" : {
"_meta" : {
"vers" : "v4"
},
"date_detection" : false,
"numeric_detection" : false,
"properties" : {
"__TIMESTAMP__" : {
"type" : "long"
},
"http_param" : {
"type" : "text",
"fields" : {
"raw" : {
"type" : "keyword"
}
},
"analyzer" : "keyword"
},
"request_id" : {
"type" : "text",
"fields" : {
"raw" : {
"type" : "keyword"
}
},
"analyzer" : "keyword"
},
"time" : {
"type" : "text",
"fields" : {
"raw" : {
"type" : "keyword"
}
}
}
}
},
"settings" : {
"index" : {
"number_of_replicas" : "0",
"number_of_shards" : "1"
}
}
}`
3. insert 1 billion logs to the index test_column
4. scroll search
`POST test_column/_search?scroll=1h&preference=_shards:0
{
"size": 10000,
"timeout": "55s",
"query": {
"match_all":{}
},
"_source": false,
"stored_fields": "_none_",
"docvalue_fields": [
{
"field": "http_param.raw"
},
{
"field": "request_id.raw"
},
{
"field": "time.raw"
}
],
"sort": [
{
"_doc": {
"order": "asc"
}
}
]
}`
then scroll
`POST _search/scroll?scroll=1min
{
"scroll_id" : "xxx"
}`
**Provide logs (if relevant)**:
| https://github.com/elastic/elasticsearch/issues/82777 | https://github.com/elastic/elasticsearch/pull/83693 | 21533cc4308b48dd7fc4514e8ac10fbdefe50073 | 4e28da43b9c26a1dfea5ddc28294b0ed69728dbf | "2022-01-19T04:03:36Z" | java | "2022-02-09T19:20:14Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,702 | ["docs/changelog/82974.yaml", "modules/repository-gcs/src/main/java/org/elasticsearch/repositories/gcs/GoogleCloudStorageService.java"] | SearchableSnapshot: GKE Workload Identity and GCS repository plugin | It's possible to use GKE Workload Identity to automatically setup the credentials for the GCS repository plugin _(instead of creating a JSON service account file)_.
It works fine as long as snapshots are created or restored "manually" (through the `_snapshot/` API).
It is however no more the case when the bucket must be read from the `SearchableSnapshot` code, for example in the context of a `frozen` or cold `tier`. In this case it fails with the following error:
```json
{
"type": "server",
"timestamp": "2022-01-17T16:09:49,963Z",
"level": "WARN",
"component": "o.e.r.g.GoogleCloudStorageService",
"cluster.name": "elasticsearch-sample",
"node.name": "elasticsearch-sample-es-cold-1",
"message": "failed to load default project id",
"cluster.uuid": "lKo5VXDGRGeIg6aQAIEZ5g",
"node.id": "lC0hhssQRfW9fdow0zYZJg",
"stacktrace": ["java.security.AccessControlException: access denied (\"java.lang.RuntimePermission\" \"accessDeclaredMembers\")",
"at java.security.AccessControlContext.checkPermission(AccessControlContext.java:485) ~[?:?]",
"...",
"at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobContainer.readBlob(GoogleCloudStorageBlobContainer.java:63) [repository-gcs-7.16.1.jar:7.16.1]",
"at org.elasticsearch.common.blobstore.support.FilterBlobContainer.readBlob(FilterBlobContainer.java:48) [elasticsearch-7.16.1.jar:7.16.1]",
"at org.elasticsearch.xpack.searchablesnapshots.store.SearchableSnapshotDirectory$RateLimitingBlobContainer.readBlob(SearchableSnapshotDirectory.java:763) [searchable-snapshots-7.16.1.jar:7.16.1]"
]
}
```
See the following ECK issue for more context: https://github.com/elastic/cloud-on-k8s/issues/5230
I would be happy to help/contribute but I'm not familiar with how the security manager is used in this part of the code.
Thanks | https://github.com/elastic/elasticsearch/issues/82702 | https://github.com/elastic/elasticsearch/pull/82974 | 30b8cdc18409baf46cb4996ec11d8c6f5418d64e | 706281aa78a528f319da05aef5e6086b94dd8184 | "2022-01-18T07:21:31Z" | java | "2022-01-26T08:58:32Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,679 | ["docs/reference/ccr/index.asciidoc"] | [DOCS] Improve documentation on CCR alias replication | https://github.com/elastic/elasticsearch/pull/41815 introduced replication for aliases in the CCR context. Replication of the write aliases is skipped, however, for reason explained in the PR, but this is not explained in the [docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/xpack-ccr.html#ccr-update-leader-index) and could lead to deployment design misunderstandings. | https://github.com/elastic/elasticsearch/issues/82679 | https://github.com/elastic/elasticsearch/pull/82997 | e7ba03e0a6f7149de645b99b3c44b9e86dfc7a1d | 33b72f34e26c9c676044919ad36f3f885d1e65df | "2022-01-17T14:57:53Z" | java | "2022-01-28T18:24:53Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,671 | ["docs/changelog/85042.yaml", "docs/reference/indices/resolve.asciidoc", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/indices.resolve_index/20_resolve_system_index.yml", "server/src/main/java/org/elasticsearch/action/admin/indices/resolve/ResolveIndexAction.java", "server/src/test/java/org/elasticsearch/action/admin/indices/resolve/ResolveIndexTests.java"] | GET /_resolve/index should identify system indices | **Elasticsearch version** 8.1
**Kibana version**: 8.1
When creating an SLM policy, kibana currently calls the `GET /_resolve/index` to allow the users to select which indices they want to backup (this API includes system indices). It seems that there's no way right now of making this API resolve only non-system indices. And if a user were to select one of these system indices the following error would be returned from ES:
```
the [indices] parameter includes system indices [.kibana_8.1.0_001]; to include or exclude system indices from a snapshot, use the [include_global_state] or [feature_states] parameters
```
<details>
<summary>API calls for testing</summary>
```
# create repository
PUT /_snapshot/my_backup
{
"type": "fs",
"settings": {
"location": "/tmp/es-backups",
"chunk_size": "10mb"
}
}
# create policy
PUT _slm/policy/test-policy
{
"name": "test-snapshot",
"schedule": "0 30 1 * * ?",
"repository": "my_backup",
"config": {
"indices": [
".kibana_8.1.0_001",
"kibana_sample_data_flights"
]
}
}
# executing the previous policy should fail
POST _slm/policy/test-policy/_execute
GET _slm/policy/test-policy
```
</details> | https://github.com/elastic/elasticsearch/issues/82671 | https://github.com/elastic/elasticsearch/pull/85042 | 3e6bd7f53806a944d7594654596e20b3f3df67c9 | 03985f1953df4c8341dcbc3aaa6233b42135f7d5 | "2022-01-17T13:22:03Z" | java | "2022-03-22T15:40:42Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,660 | ["rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.allocation/10_basic.yml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.indices/10_basic.yml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.indices/20_hidden.yml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.shards/10_basic.yml"] | "Test cat indices output for dot-hidden index and dot-prefixed pattern" fails on master | **Build scan**:
https://gradle-enterprise.elastic.co/s/cme7huijunvdg
**Repro line**:
```
REPRODUCE WITH: ./gradlew ':rest-api-spec:yamlRestTest' --tests "org.elasticsearch.test.rest.ClientYamlTestSuiteIT" \
-Dtests.method="test {yaml=cat.indices/20_hidden/Test cat indices output for dot-hidden index and dot-prefixed pattern}" \
-Dtests.seed=A19AD8C02AD3D7B4 \
-Dtests.locale=pl-PL \
-Dtests.timezone=Asia/Singapore \
-Druntime.java=17
REPRODUCE WITH: ./gradlew ':rest-api-spec:yamlRestTest' --tests "org.elasticsearch.test.rest.ClientYamlTestSuiteIT" \
-Dtests.method="test {yaml=cat.indices/20_hidden/Test cat indices output for dot-hidden index and dot-prefixed pattern}" \
-Dtests.seed=A19AD8C02AD3D7B4 \
-Dtests.locale=pl-PL \
-Dtests.timezone=Asia/Singapore \
-Druntime.java=17
```
**Reproduces locally?**:
No
**Applicable branches**:
`master`
**Failure history**:
This is the first failure of this test since July 2021
**Failure excerpt**:
```
11:39:28 Caused by:
11:39:28 java.lang.AssertionError: field [$body] was expected to match the provided regex but didn't
11:39:28 Expected: ^(green \s+
11:39:28 open \s+
11:39:28 \.index1 \s+
11:39:28 ([a-zA-Z0-9=/_+]|[\\\-]){22} \s+
11:39:28 1 \s+
11:39:28 0 \s+
11:39:28 0 \s+
11:39:28 0 \s+
11:39:28 (\d+|\d+[.]\d+)(kb|b) \s+
11:39:28 (\d+|\d+[.]\d+)(kb|b) \s*
11:39:28 )
11:39:28 $
11:39:28 but: was "green open .index1 qxYUkTocRnqz27Ix1xgxVQ 1 0 0 0 225b 225b\ngreen open .tasks HRmCS8fTRVqa0m1RBS486g 1 0 0 0 225b 225b\n"
11:39:28 at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
11:39:28 at org.junit.Assert.assertThat(Assert.java:956)
11:39:28 at org.elasticsearch.test.rest.yaml.section.MatchAssertion.doAssert(MatchAssertion.java:64)
11:39:28 at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65)
11:39:28 at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:478)
11:39:28 ... 38 more
```
| https://github.com/elastic/elasticsearch/issues/82660 | https://github.com/elastic/elasticsearch/pull/84539 | 8a1632235daa140f3904cfe46f8215537c75ded3 | c4b1f18f32aa337253664d1295bc1b59233b3d44 | "2022-01-17T11:15:51Z" | java | "2022-03-24T19:08:51Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,647 | ["rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.allocation/10_basic.yml"] | [CI] ClientYamlTestSuiteIT test {yaml=cat.allocation/10_basic/Empty cluster} failing | This happened on my PR build (#81977). It does not reproduce locally. But the error message looks suspicious enough for an issue.
**Build scan:**
https://gradle-enterprise.elastic.co/s/qgz25m26irnys/tests/:rest-api-spec:yamlRestTest/org.elasticsearch.test.rest.ClientYamlTestSuiteIT/test%20%7Byaml=cat.allocation%2F10_basic%2FEmpty%20cluster%7D
**Reproduction line:**
`./gradlew ':rest-api-spec:yamlRestTest' --tests "org.elasticsearch.test.rest.ClientYamlTestSuiteIT" -Dtests.method="test {yaml=cat.allocation/10_basic/Empty cluster}" -Dtests.seed=25000F3EF0E94521 -Dtests.locale=hi-IN -Dtests.timezone=America/Fort_Wayne -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.test.rest.ClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dcat.allocation/10_basic/Empty%20cluster%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [cat.allocation/10_basic:26]: field [$body] was expected to match the provided regex but didn't
Expected: ^
( 0 \s+
0b \s+
\d+(\.\d+)?[kmgt]?b \s+
(\d+(\.\d+)?[kmgt]b \s+)? #no value from client nodes
(\d+(\.\d+)?[kmgt]b \s+)? #no value from client nodes
(\d+ \s+)? #no value from client nodes
[-\w.]+ \s+
\d+(\.\d+){3} \s+
[-\w.]+
\n
)+
$
but: was "1 225b 7.4gb 39.6gb 47gb 15 127.0.0.1 127.0.0.1 yamlRestTest-0\n"
at __randomizedtesting.SeedInfo.seed([25000F3EF0E94521:AD5430E45E1528D9]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:489)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.AssertionError: field [$body] was expected to match the provided regex but didn't
Expected: ^
( 0 \s+
0b \s+
\d+(\.\d+)?[kmgt]?b \s+
(\d+(\.\d+)?[kmgt]b \s+)? #no value from client nodes
(\d+(\.\d+)?[kmgt]b \s+)? #no value from client nodes
(\d+ \s+)? #no value from client nodes
[-\w.]+ \s+
\d+(\.\d+){3} \s+
[-\w.]+
\n
)+
$
but: was "1 225b 7.4gb 39.6gb 47gb 15 127.0.0.1 127.0.0.1 yamlRestTest-0\n"
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.elasticsearch.test.rest.yaml.section.MatchAssertion.doAssert(MatchAssertion.java:64)
at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:478)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/82647 | https://github.com/elastic/elasticsearch/pull/83277 | 763b3f36230b4733dd2b7f29584fdfa43eda8bc5 | 4b456255bee3dd177abd55a8f6edd3e879b386c9 | "2022-01-17T01:56:51Z" | java | "2022-02-03T16:41:24Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,641 | ["docs/reference/mapping/dynamic/templates.asciidoc"] | Contradicting note for dynamic field mapping [Documentation bug] | <!--
GitHub is reserved for bug reports and feature requests; it is not the place
for general questions. If you have a question or an unconfirmed bug , please
visit the [forums](https://discuss.elastic.co/c/elasticsearch). Please also
check your OS is [supported](https://www.elastic.co/support/matrix#show_os).
If it is not, the issue is likely to be closed.
For security vulnerabilities please only send reports to [email protected].
See https://www.elastic.co/community/security for more information.
Please fill in the following details to help us reproduce the bug:
-->
7.16
**Plugins installed**: []
**JVM version** (`java -version`):
**OS version** (`uname -a` if on a Unix-like system):
**Description of the problem including expected versus actual behavior**:
**Steps to reproduce**:
Please include a *minimal* but *complete* recreation of the problem,
including (e.g.) index creation, mappings, settings, query etc. The easier
you make for us to reproduce it, the more likely that somebody will take the
time to look at it.
1. Go to dynamic mapping documentation https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic-templates.html
2. See the first important which says `
Dynamic field mappings are only added when a field contains a concrete value — not null or an empty array.`
3. Now, go to null value documentation https://www.elastic.co/guide/en/elasticsearch/reference/7.13/null-value.html, which says in the beginning `A null value cannot be indexed or searched. When a field is set to null, (or an empty array or an array of null values) it is treated as though that field has no values.`
4. Basically empty array value is not indexed by default as mentioned correctly in the null_value documentation but in the dynamic template documentation, I guess there is a typo when its mentioned dynamic field mapping is added on not null or an empty array, instead of the non-empty array.
**Provide logs (if relevant)**:
| https://github.com/elastic/elasticsearch/issues/82641 | https://github.com/elastic/elasticsearch/pull/82769 | 2c925c3363767c04146496d4d3e328cf3bc52e90 | d8229ddd5be53497279083d61d289e38fb2df8e4 | "2022-01-16T11:20:48Z" | java | "2022-01-19T14:08:36Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,634 | ["docs/reference/cluster/update-settings.asciidoc", "docs/reference/setup/configuration.asciidoc"] | [Docs] Elasticsearch Cluster Settings Precedence No Longer Documented | <!--
GitHub is reserved for bug reports and feature requests; it is not the place
for general questions. If you have a question or an unconfirmed bug , please
visit the [forums](https://discuss.elastic.co/c/elasticsearch). Please also
check your OS is [supported](https://www.elastic.co/support/matrix#show_os).
If it is not, the issue is likely to be closed.
For security vulnerabilities please only send reports to [email protected].
See https://www.elastic.co/community/security for more information.
Please fill in the following details to help us reproduce the bug:
-->
**Elasticsearch version** (`bin/elasticsearch --version`): 7.16.2
**Plugins installed**: N/A
**JVM version** (`java -version`): N/A
**OS version** (`uname -a` if on a Unix-like system): N/A
**Description of the problem including expected versus actual behavior**:
In the <7.15 docs, Elasticsearch cluster precedence was [documented](https://www.elastic.co/guide/en/elasticsearch/reference/7.14/cluster-update-settings.html#cluster-update-settings-api-desc):
>The order of precedence for cluster settings is:
1. transient cluster settings
2. persistent cluster settings
3. settings in the elasticsearch.yml configuration file.
In 7.15+ docs this is no longer documented: https://www.elastic.co/guide/en/elasticsearch/reference/7.15/cluster-update-settings.html#_order_of_precedence)
- I checked 7.15, 7.16, 7.17, 8.0, master docs all of which are missing this information | https://github.com/elastic/elasticsearch/issues/82634 | https://github.com/elastic/elasticsearch/pull/82738 | fc5a820da9d9b8ad4c885c6d90ce72363632088a | e21a9a071121396487d66d3a632cf58106e2ebc2 | "2022-01-14T19:59:24Z" | java | "2022-01-18T17:32:43Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,569 | ["qa/repository-multi-version/src/test/java/org/elasticsearch/upgrades/MultiVersionRepositoryAccessIT.java"] | [CI] MultiVersionRepositoryAccessIT testReadOnlyRepo failing | These BWC tests are failing on `master` and `8.0` branches against all versions < 7.12.0.
**Build scan:**
https://gradle-enterprise.elastic.co/s/xft7ykc5jn6bc/tests/:qa:repository-multi-version:v7.9.1%23Step1OldClusterTest/org.elasticsearch.upgrades.MultiVersionRepositoryAccessIT/testReadOnlyRepo
**Reproduction line:**
`./gradlew ':qa:repository-multi-version:v7.9.1#Step1OldClusterTest' -Dtests.class="org.elasticsearch.upgrades.MultiVersionRepositoryAccessIT" -Dtests.method="testReadOnlyRepo" -Dtests.seed=F3B2FAB325C3D4EC -Dtests.bwc=true -Dtests.locale=tr-TR -Dtests.timezone=Asia/Shanghai -Druntime.java=17`
**Applicable branches:**
master, 8.0
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.upgrades.MultiVersionRepositoryAccessIT&tests.test=testReadOnlyRepo
**Failure excerpt:**
```
java.lang.AssertionError: Expected no templates after deletions, but found .logstash-management
at __randomizedtesting.SeedInfo.seed([F3B2FAB325C3D4EC:B1BE857AA586C556]:0)
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.elasticsearch.test.rest.ESRestTestCase.checkForUnexpectedlyRecreatedObjects(ESRestTestCase.java:819)
at org.elasticsearch.test.rest.ESRestTestCase.cleanUpCluster(ESRestTestCase.java:386)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:1004)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/82569 | https://github.com/elastic/elasticsearch/pull/86358 | 4af21dfc4951ed4882b2298321c068efdcb250aa | 434f600493de94910cf260c627c050a482c97362 | "2022-01-13T18:46:58Z" | java | "2022-05-09T08:58:57Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,560 | ["x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/transform/transforms/NullRetentionPolicyConfig.java", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/transform/transforms/TransformConfigUpdate.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/transform/AbstractSerializingTransformTestCase.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/transform/action/AbstractWireSerializingTransformTestCase.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/transform/transforms/TransformConfigUpdateTests.java", "x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/transform/transforms_update.yml"] | [Transform] ability to remove retention_policy | The `retention_policy` can be changed using `_update`, however it is not possible to remove it completely by e.g. specifying `{}` or `null`. We should allow the API to remove the `retention_policy`. | https://github.com/elastic/elasticsearch/issues/82560 | https://github.com/elastic/elasticsearch/pull/82703 | 6687a28e4e800c97df9e7580cf8fea0ac1d51f0a | 7efce30ed25db3095c9a33564cfb5ea4e0e02a08 | "2022-01-13T15:29:26Z" | java | "2022-01-25T09:17:29Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,502 | ["modules/lang-mustache/src/yamlRestTest/resources/rest-api-spec/test/lang_mustache/60_typed_keys.yml"] | [CI] LangMustacheClientYamlTestSuiteIT test {yaml=lang_mustache/60_typed_keys/Search template with typed_keys parameter} failing | Started failing today and reproduced for me.
**Build scan:**
https://gradle-enterprise.elastic.co/s/jl7hle3lqrp62/tests/:modules:lang-mustache:yamlRestTest/org.elasticsearch.script.mustache.LangMustacheClientYamlTestSuiteIT/test%20%7Byaml=lang_mustache%2F60_typed_keys%2FSearch%20template%20with%20typed_keys%20parameter%7D
**Reproduction line:**
`./gradlew ':modules:lang-mustache:yamlRestTest' --tests "org.elasticsearch.script.mustache.LangMustacheClientYamlTestSuiteIT.test {yaml=lang_mustache/60_typed_keys/Search template with typed_keys parameter}" -Dtests.seed=3811270DB5F7D815 -Dtests.locale=nb -Dtests.timezone=Asia/Tel_Aviv -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.script.mustache.LangMustacheClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dlang_mustache/60_typed_keys/Search%20template%20with%20typed_keys%20parameter%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [lang_mustache/60_typed_keys:22]: got unexpected warning header [
299 Elasticsearch-8.1.0-SNAPSHOT-de4c15c9017a6d11f23d719e52711932b6ed2b7e "index [test-1] matches multiple legacy templates [global, index_template], composable templates will only match a single template"
]
at __randomizedtesting.SeedInfo.seed([3811270DB5F7D815:B04518D71B0BB5ED]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:489)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:453)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.AssertionError: got unexpected warning header [
299 Elasticsearch-8.1.0-SNAPSHOT-de4c15c9017a6d11f23d719e52711932b6ed2b7e "index [test-1] matches multiple legacy templates [global, index_template], composable templates will only match a single template"
]
at org.junit.Assert.fail(Assert.java:88)
at org.elasticsearch.test.rest.yaml.section.DoSection.checkWarningHeaders(DoSection.java:487)
at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:370)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:478)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:453)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/82502 | https://github.com/elastic/elasticsearch/pull/83737 | 3d2c33307c608ee4ea016c1824561e75da4a6b81 | 3b6e223ff194c4d6e7cc8ddb9986551a6f99f831 | "2022-01-12T23:08:22Z" | java | "2022-02-09T22:41:18Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,470 | ["x-pack/plugin/searchable-snapshots/src/internalClusterTest/java/org/elasticsearch/xpack/searchablesnapshots/cache/blob/SearchableSnapshotsBlobStoreCacheIntegTests.java"] | [CI] SearchableSnapshotsBlobStoreCacheIntegTests testBlobStoreCache failing | **Build scan**:
https://gradle-enterprise.elastic.co/s/nyqgoqzxp3xxw
**Repro line**:
`./gradlew ':x-pack:plugin:searchable-snapshots:internalClusterTest' --tests "org.elasticsearch.xpack.searchablesnapshots.cache.blob.SearchableSnapshotsBlobStoreCacheIntegTests.testBlobStoreCache" -Dtests.seed=52F02EBD9CEAF1F4 -Dtests.locale=es-PE -Dtests.timezone=US/East-Indiana -Druntime.java=17`
**Reproduces locally?**:
No
**Applicable branches**:
`master`
**Failure history**:
https://gradle-enterprise.elastic.co/scans/tests?search.relativeStartTime=P7D&search.timeZoneId=Europe/Berlin&tests.container=org.elasticsearch.xpack.searchablesnapshots.cache.blob.SearchableSnapshotsBlobStoreCacheIntegTests&tests.sortField=FAILED&tests.test=testBlobStoreCache&tests.unstableOnly=true
**Failure excerpt**:
```
java.lang.AssertionError: {"file_ext":"cfs","num_files":7,"open_count":12,"close_count":5,"size":{"total_in_bytes":1763710,"min_in_bytes":5327,"max_in_bytes":942865,"average_in_bytes":251959},"contiguous_bytes_read":{"count":162,"sum":78532,"min":13,"max":1024},"non_contiguous_bytes_read":{"count":35,"sum":560,"min":16,"max":16},"cached_bytes_read":{"count":31,"sum":12702,"min":13,"max":1024},"index_cache_bytes_read":{"count":166,"sum":66621,"min":16,"max":1242},"cached_bytes_written":{"count":167,"sum":63732,"min":16,"max":1242,"time_in_nanos":15875426},"direct_bytes_read":{"count":0,"sum":0,"min":0,"max":0,"time_in_nanos":0},"optimized_bytes_read":{"count":0,"sum":0,"min":0,"max":0,"time_in_nanos":0},"forward_seeks":{"small":{"count":47,"sum":3617707,"min":34,"max":941825},"large":{"count":0,"sum":0,"min":0,"max":0}},"backward_seeks":{"small":{"count":17,"sum":7242,"min":17,"max":969},"large":{"count":0,"sum":0,"min":0,"max":0}},"blob_store_bytes_requested":{"count":1,"sum":839,"min":839,"max":839},"lucene_bytes_read":{"count":209,"sum":79284,"min":13,"max":1024},"current_index_cache_fills":0}
Expected: <0L>
but: was <1L>
```
Also in the logs:
```
java.lang.reflect.InaccessibleObjectException: Unable to make field private int java.io.FileDescriptor.fd accessible: module java.base does not "opens java.io" to unnamed module @27ce24aa
at java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354) ~[?:?]
at java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) ~[?:?]
at java.lang.reflect.Field.checkCanSetAccessible(Field.java:178) ~[?:?]
at java.lang.reflect.Field.setAccessible(Field.java:172) ~[?:?]
at org.elasticsearch.xpack.searchablesnapshots.preallocate.Preallocate$FileDescriptorFieldAction.run(Preallocate.java:105) ~[preallocate-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT]
at org.elasticsearch.xpack.searchablesnapshots.preallocate.Preallocate$FileDescriptorFieldAction.run(Preallocate.java:91) ~[preallocate-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT]
at java.security.AccessController.doPrivileged(AccessController.java:569) ~[?:?]
at org.elasticsearch.xpack.searchablesnapshots.preallocate.Preallocate.preallocate(Preallocate.java:49) [preallocate-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT]
at org.elasticsearch.xpack.searchablesnapshots.preallocate.Preallocate.preallocate(Preallocate.java:32) [preallocate-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT]
at org.elasticsearch.xpack.searchablesnapshots.cache.shared.SharedBytes.<init>(SharedBytes.java:62) [main/:?]
at org.elasticsearch.xpack.searchablesnapshots.cache.shared.FrozenCacheService.<init>(FrozenCacheService.java:294) [main/:?]
at org.elasticsearch.xpack.searchablesnapshots.SearchableSnapshots.createComponents(SearchableSnapshots.java:341) [main/:?]
at org.elasticsearch.xpack.core.LocalStateCompositeXPackPlugin.lambda$createComponents$0(LocalStateCompositeXPackPlugin.java:218) [x-pack-core-test-artifacts-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT]
```
| https://github.com/elastic/elasticsearch/issues/82470 | https://github.com/elastic/elasticsearch/pull/82623 | d9b49e086f540e2245785b919f91759d4a1983bc | 74a1bd1c4d9933f533201de26741da1502438612 | "2022-01-12T12:27:02Z" | java | "2022-01-17T08:30:40Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,462 | ["x-pack/docs/en/security/authentication/built-in-users.asciidoc", "x-pack/docs/en/security/authorization/built-in-roles.asciidoc", "x-pack/docs/en/security/operator-privileges/index.asciidoc"] | Clarify Operator Privileges implications for roles | 1. Add a new paragraph to https://www.elastic.co/guide/en/elasticsearch/reference/current/operator-privileges.html that is a little more explicit about ESS/ECE that says something like
> When running Elasticsearch on Elastic Cloud (or Elastic Cloud Enterprise) Operator Privileges are enabled, which means that some infrastructure management functionality is restricted and cannot be accessed by your administrative users. This protects your cluster from unintended infrastructure changes.
2. Add a small note at the top of the builtin users page that refers to the main operator privileges docs
> When running on Elastic Cloud, ["operator privileges"](https://www.elastic.co/guide/en/elasticsearch/reference/current/operator-privileges.html) are enabled, and some infrastructure management functionality is restricted even if a role would otherwise permit the user to perform that task.
3. Add a very small comment in `superuser` like
> Note: On Elastic Cloud, all standard users, including those with `superuser` are restricted from performing [operator-only](https://www.elastic.co/guide/en/elasticsearch/reference/current/operator-privileges.html) actions
Maybe that's too much, but I think it's manageable, and it explicit about the behaviour where it is most likely to be read.
_Originally posted by @tvernum in https://github.com/elastic/elasticsearch/pull/82110#discussion_r781727835_ | https://github.com/elastic/elasticsearch/issues/82462 | https://github.com/elastic/elasticsearch/pull/82893 | 124ef4b41cc4273807c826f7a4f7155f03dff1e9 | 024d2fc042ec7f1aa962008ecb88ff847fc56118 | "2022-01-12T10:53:23Z" | java | "2022-01-27T17:38:16Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,458 | ["docs/changelog/85815.yaml", "server/src/main/java/org/elasticsearch/search/fetch/subphase/highlight/FastVectorHighlighter.java", "server/src/main/java/org/elasticsearch/search/fetch/subphase/highlight/SourceScoreOrderFragmentsBuilder.java", "server/src/main/java/org/elasticsearch/search/fetch/subphase/highlight/SourceSimpleFragmentsBuilder.java", "server/src/main/java/org/elasticsearch/search/lookup/SourceLookup.java", "server/src/test/java/org/elasticsearch/search/fetch/subphase/highlight/FastVectorHighlighterTests.java", "test/framework/src/main/java/org/elasticsearch/search/fetch/HighlighterTestCase.java"] | Percolate query, FVH highlighter does not work on subfields | <!--
GitHub is reserved for bug reports and feature requests; it is not the place
for general questions. If you have a question or an unconfirmed bug , please
visit the [forums](https://discuss.elastic.co/c/elasticsearch). Please also
check your OS is [supported](https://www.elastic.co/support/matrix#show_os).
If it is not, the issue is likely to be closed.
For security vulnerabilities please only send reports to [email protected].
See https://www.elastic.co/community/security for more information.
Please fill in the following details to help us reproduce the bug:
-->
**Elasticsearch version** (`bin/elasticsearch --version`): 7.16.2
**Plugins installed**: []
**JVM version** (`java -version`):
**OS version** (`uname -a` if on a Unix-like system):
**Description of the problem including expected versus actual behavior**:
Percolated queries no longer highlight subfields with FVH higlighter. I expect them to be highlighted as in the previous version of ES.
**Steps to reproduce**:
Index mappings with a field and subfield with identical analysis, both have term vectors with positions offsets.
```
PUT /test
{
"mappings": {
"properties": {
"query": {
"type": "percolator"
},
"userinput": {
"type": "text",
"analyzer": "standard",
"term_vector": "with_positions_offsets",
"fields": {
"another": {
"type": "text",
"analyzer": "standard",
"term_vector": "with_positions_offsets"
}
}
}
}
}
}
```
A couple of test documents:
```
PUT /test/_doc/1?refresh=true
{
"query": {
"match_phrase": {
"userinput": {
"query": "kimchi"
}
}
}
}
PUT /test/_doc/2?refresh=true
{
"query": {
"match_phrase": {
"userinput.another": {
"query": "kimchi"
}
}
}
}
```
The actual search query:
```
GET /test/_search
{
"query": {
"percolate": {
"field": "query",
"document": {
"userinput": "kimchi"
}
}
},
"highlight": {
"type": "fvh",
"fields": {
"*": {}
}
}
}
```
This sequence would respond with the following on 7.16.2, notice that the second document contains no highlighting.
```json
{
"took": 3,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 2,
"relation": "eq"
},
"max_score": 0.13076457,
"hits": [
{
"_index": "test",
"_type": "_doc",
"_id": "1",
"_score": 0.13076457,
"_source": {
"query": {
"match_phrase": {
"userinput": {
"query": "kimchi"
}
}
}
},
"fields": {
"_percolator_document_slot": [0]
},
"highlight": {
"userinput": ["<em>kimchi</em>"]
}
},
{
"_index": "test",
"_type": "_doc",
"_id": "2",
"_score": 0.13076457,
"_source": {
"query": {
"match_phrase": {
"userinput.another": {
"query": "kimchi"
}
}
}
},
"fields": {
"_percolator_document_slot": [0]
}
}
]
}
}
```
Executing the same sequence on 7.9.3 highlights both of the results:
```json
{
"took": 2,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 2,
"relation": "eq"
},
"max_score": 0.13076457,
"hits": [
{
"_index": "test",
"_type": "_doc",
"_id": "1",
"_score": 0.13076457,
"_source": {
"query": {
"match_phrase": {
"userinput": {
"query": "kimchi"
}
}
}
},
"fields": {
"_percolator_document_slot": [0]
},
"highlight": {
"userinput": ["<em>kimchi</em>"]
}
},
{
"_index": "test",
"_type": "_doc",
"_id": "2",
"_score": 0.13076457,
"_source": {
"query": {
"match_phrase": {
"userinput.another": {
"query": "kimchi"
}
}
}
},
"fields": {
"_percolator_document_slot": [0]
},
"highlight": {
"userinput.another": ["<em>kimchi</em>"]
}
}
]
}
}
```
**Provide logs (if relevant)**:
| https://github.com/elastic/elasticsearch/issues/82458 | https://github.com/elastic/elasticsearch/pull/85815 | cce3d924754a06634a8e353fa227be3af2eeca62 | a69cdd0ff3c23df49b19c35b258b99fc18794476 | "2022-01-12T08:42:59Z" | java | "2022-04-12T14:19:36Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,456 | ["server/src/internalClusterTest/java/org/elasticsearch/gateway/GatewayServiceIT.java", "server/src/main/java/org/elasticsearch/gateway/GatewayService.java", "server/src/test/java/org/elasticsearch/gateway/GatewayServiceTests.java", "test/framework/src/main/java/org/elasticsearch/cluster/coordination/AbstractCoordinatorTestCase.java"] | Persistent Settings Takes Effect After RecoverStateUpdateTask's Reroute | RecoverStateUpdateTask execute Reroute before persistent settings takes effect, this may cause the logic about `AllocationService#reroute` execute in an unexpected way.
` class RecoverStateUpdateTask extends ClusterStateUpdateTask {
@Override
public ClusterState execute(final ClusterState currentState) {
if (currentState.blocks().hasGlobalBlock(STATE_NOT_RECOVERED_BLOCK) == false) {
logger.debug("cluster is already recovered");
return currentState;
}
final ClusterState newState = Function.<ClusterState>identity()
.andThen(ClusterStateUpdaters::updateRoutingTable)
.andThen(ClusterStateUpdaters::removeStateNotRecoveredBlock)
.apply(currentState);
return allocationService.reroute(newState, "state recovered");
}
....
`
The place where the persistent settings is applied in master is after clusterstate publish .
| https://github.com/elastic/elasticsearch/issues/82456 | https://github.com/elastic/elasticsearch/pull/82856 | af93c9aea7126290d2022b35cc151a9f61ff72a6 | edf07f5471164bbf6ad0de03666bceb32d73289b | "2022-01-12T07:39:06Z" | java | "2022-01-26T09:50:23Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,406 | ["x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/datafeed/extractor/aggregation/AbstractAggregationDataExtractor.java", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/datafeed/extractor/chunked/ChunkedDataExtractor.java", "x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/datafeed/extractor/aggregation/AggregationDataExtractorTests.java"] | [ML] Slow performance for datafeeds with aggs when there are long periods without data | When a datafeed is performing a lookback of a long time period, it could be that there are long time windows
that contain no data. Currently, datafeeds with aggs will perform many searches during such empty time windows where
all those searches will return empty. These searches take time. For scrolling datafeeds there is an optimization in place where such no-data periods are skipped. That optimization should also apply for datafeeds with aggs. | https://github.com/elastic/elasticsearch/issues/82406 | https://github.com/elastic/elasticsearch/pull/82488 | 5994224edfe0adb5d5453949cd90a8b4d0dd31f2 | 0bcd8176aff0451da362f763c5b146be9551c330 | "2022-01-11T10:01:13Z" | java | "2022-01-13T11:38:19Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,384 | ["docs/changelog/83751.yaml", "server/src/main/java/org/elasticsearch/common/Rounding.java", "server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/QueryToFilterAdapter.java", "server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregator.java", "server/src/test/java/org/elasticsearch/search/aggregations/bucket/filter/FiltersAggregatorTests.java"] | Use filter by filter if top level query is a bool wrapping a match all | Right now filter aggregations run in "compatible" mode if the top level query is `bool: {filter: { match_all: {}}}}` - but this really just just `match_all` in disguise. We should just run in filter-by-filter mode here. | https://github.com/elastic/elasticsearch/issues/82384 | https://github.com/elastic/elasticsearch/pull/83751 | bbae949559af09bfc08eb78f18904e0139e27246 | 7bda7d1a8daecb8e34ebd56a3a74ad837e5485de | "2022-01-10T20:02:39Z" | java | "2022-02-28T21:35:37Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,342 | ["docs/changelog/86405.yaml", "server/src/main/java/org/elasticsearch/action/ActionModule.java", "server/src/main/java/org/elasticsearch/action/admin/cluster/settings/ClusterGetSettingsAction.java", "server/src/main/java/org/elasticsearch/action/admin/cluster/settings/TransportClusterGetSettingsAction.java", "server/src/main/java/org/elasticsearch/rest/action/admin/cluster/RestClusterGetSettingsAction.java", "server/src/test/java/org/elasticsearch/action/admin/cluster/settings/ClusterGetSettingsSerializationTests.java", "server/src/test/java/org/elasticsearch/action/admin/cluster/settings/ClusterGetSettingsTests.java", "server/src/test/java/org/elasticsearch/rest/action/admin/cluster/RestClusterGetSettingsActionTests.java", "x-pack/plugin/security/qa/operator-privileges-tests/src/javaRestTest/java/org/elasticsearch/xpack/security/operator/Constants.java"] | `RestClusterGetSettingsAction` Requests the Full Metadata from Master | Similar issue as solved in https://github.com/elastic/elasticsearch/pull/78829.
This API is surprisingly expensive because it requests the full metadata via get cluster state request from master when called only to return just the settings from it to the user. This can mean requesting tens or hundreds of MB from master in a large cluster unexpectedly.
We should adjust this to not require fetching the full cluster state. One option would be to add a dedicate master node action for returning just the settings.
Relates #77466 | https://github.com/elastic/elasticsearch/issues/82342 | https://github.com/elastic/elasticsearch/pull/86405 | 15ea957df687417f16c97711b584f5c0bbb6586c | 4b536c699d41cff3969743ee7ba1539e8c4da5e1 | "2022-01-07T17:48:26Z" | java | "2022-05-09T10:45:44Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,340 | ["x-pack/plugin/enrich/src/internalClusterTest/java/org/elasticsearch/xpack/enrich/EnrichProcessorIT.java", "x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/AbstractEnrichProcessor.java", "x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/EnrichCache.java", "x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/EnrichProcessorFactory.java", "x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/GeoMatchProcessor.java", "x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/MatchProcessor.java", "x-pack/plugin/enrich/src/test/java/org/elasticsearch/xpack/enrich/EnrichCacheTests.java", "x-pack/plugin/enrich/src/test/java/org/elasticsearch/xpack/enrich/GeoMatchProcessorTests.java", "x-pack/plugin/enrich/src/test/java/org/elasticsearch/xpack/enrich/MatchProcessorTests.java"] | Enrich Processor Cache can be Corrupted by Processors that Mutate a Document (E.g. Rename) | Using the enrich processor in a pipeline with a rename or other processor that mutates the mutable maps backing an ingest document can corrupt the caches in the enrich processor.
An easy reproducer for this goes as follows:
have the following enrich policy:
```
PUT /_enrich/policy/device-enrich-policy
{
"match": {
"indices": "devices-idx",
"match_field": "host.ip",
"enrich_fields": [
"device.name",
"host.ip"
]
}
}
```
add a document to the backing index as such:
```
POST devices-idx/_doc
{
"host": {
"ip": "10.151.80.8"
},
"device": {
"name": "bla"
}
}
```
... then execute the enrich policy.
... and finally execute following pipeline simulation:
```
POST _ingest/pipeline/_simulate
{
"pipeline": {
"processors": [
{
"enrich": {
"policy_name": "device-enrich-policy",
"field": "host.ip",
"target_field": "_tmp.device",
}
},
{
"rename" : {
"field" : "_tmp.device.device.name",
"target_field" : "device.name",
}
}
]
},
"docs": [
{
"_source": {
"host": {
"ip": "10.151.80.8"
}
}
}
]
}
```
this will show the expected result of having the device name added under `_tmp.device`.
Now adjust to a simpler pipeline:
```
POST _ingest/pipeline/_simulate
{
"pipeline": {
"processors": [
{
"enrich": {
"policy_name": "device-enrich-policy",
"field": "host.ip",
"target_field": "_tmp"
}
}
]
},
"docs": [
{
"_source": {
"host": {
"ip": "10.151.80.8"
}
}
}
]
}
```
which you would expect to show the same result because `device.name` would just be copied under `_tmp`.
What you do get instead is:
```
{
"docs" : [
{
"doc" : {
"_index" : "_index",
"_type" : "_doc",
"_id" : "_id",
"_source" : {
"host" : {
"ip" : "10.151.80.8"
},
"_tmp" : {
"host" : {
"ip" : "10.151.80.8"
},
"device" : { }
}
},
"_ingest" : {
"timestamp" : "2022-01-07T16:21:55.868673023Z"
}
}
}
]
}
```
This is explained by the fact that the rename processor mutates the map that it works with. It removes and adds a field to a document. This map though is also referenced by: `org.elasticsearch.search.SearchHit#sourceAsMap` which is cached.
-> rename processor mutates that map by mutating the ingest document from the first run -> cache is corrupted.
This was observed in a complicated to debug user issue where a pipeline would randomly fail during simulate like this for no apparent reason. Digging through the diags it turned out that the same enrich policy was used in another pipeline followed by the rename processor in the way described above, thus corrupting the policy's cache repeatedly. | https://github.com/elastic/elasticsearch/issues/82340 | https://github.com/elastic/elasticsearch/pull/82441 | 0bcc07c591e57f45879f596c5e6867eca46cfeec | 69696542be7dc1be560b8b48a3a9e4c874972819 | "2022-01-07T16:51:04Z" | java | "2022-01-13T10:17:07Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,337 | ["docs/changelog/82685.yaml", "server/src/main/java/org/elasticsearch/action/support/NodeResponseTracker.java", "server/src/main/java/org/elasticsearch/action/support/broadcast/node/TransportBroadcastByNodeAction.java", "server/src/main/java/org/elasticsearch/action/support/nodes/TransportNodesAction.java", "server/src/main/java/org/elasticsearch/tasks/CancellableTask.java", "server/src/test/java/org/elasticsearch/action/admin/cluster/node/tasks/CancellableTasksTests.java", "server/src/test/java/org/elasticsearch/action/support/NodeResponseTrackerTests.java", "server/src/test/java/org/elasticsearch/action/support/broadcast/node/TransportBroadcastByNodeActionTests.java", "server/src/test/java/org/elasticsearch/action/support/nodes/TransportNodesActionTests.java"] | Stats actions should discard intermediate state on cancellation | Most stats actions fan out to various nodes in the cluster and collect per-node responses which are then aggregated into the final result. The per-node responses may sometimes be many MBs in size. If the client cancels the request by closing its connection then we broadcast the cancellation to all the target nodes and wait for them to respond with a `TaskCancelledException` before discarding the intermediate results. It's possible for one of the target nodes to take many minutes to respond to the cancellation if, for instance, it is overwhelmed by GC activity. In that case we retain many MBs of unnecessary intermediate state for many minutes.
We should instead react to the cancellation by immediately discarding the intermediate results and dropping any further results that arrive to free up this unnecessary memory usage. One possible way to do this would be to allow a `CancellableTask` to accumulate listeners which are completed by `CancellableTask#onCancelled()`.
Relates https://github.com/elastic/elasticsearch/issues/55550#issuecomment-785848328 which contains a list of some of the more important cases of this to address. | https://github.com/elastic/elasticsearch/issues/82337 | https://github.com/elastic/elasticsearch/pull/82685 | d4caeea1f7b494036251e87d3caa5ce40788441c | d4655e880185e1ca277d0b097dcfbdb6c669b89f | "2022-01-07T11:29:18Z" | java | "2022-02-10T10:58:10Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 82,224 | ["docs/changelog/82228.yaml", "modules/lang-painless/src/main/java/org/elasticsearch/painless/symbol/SemanticScope.java", "modules/lang-painless/src/test/java/org/elasticsearch/painless/UserFunctionTests.java"] | Calling user-defined methods within an if/else block in a lambda causes a failure | It appears the "this" pointer doesn't get propagated into sub-scopes within a lambda causing a failure.
Reproduce:
```
int test1() {
return 1;
}
void test(Map params) {
int i = 0;
params.forEach( (k, v) -> {
if (i == 0) {
test1()
} else {
test1()
}
} )
}
test(params)
```
Error:
```no 'this' pointer within static method```
Workaround:
Use control-flow logic such as if/else, for, and while to replace the lambda causing an issue.
After https://github.com/elastic/elasticsearch/pull/74268, all user functions are instance methods, so the `this` reference needs to be propagated. | https://github.com/elastic/elasticsearch/issues/82224 | https://github.com/elastic/elasticsearch/pull/82228 | fe7f0c5f5d0bbe6e06fac884817c0293b131c97f | 57ac810951a4309bfddddcc9892531366d8769c3 | "2022-01-04T18:20:48Z" | java | "2022-01-04T21:14:51Z" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.