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 | 98,700 | ["x-pack/plugin/ilm/src/internalClusterTest/java/org/elasticsearch/xpack/ilm/DataStreamAndIndexLifecycleMixingTests.java"] | [CI] DataAndIndexLifecycleMixingTests testUpdateIndexTemplateFromILMtoBothILMAndDLM failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/um3hmnoqxhbbu/tests/:x-pack:plugin:ilm:internalClusterTest/org.elasticsearch.xpack.ilm.DataAndIndexLifecycleMixingTests/testUpdateIndexTemplateFromILMtoBothILMAndDLM
**Reproduction line:**
```
./gradlew ':x-pack:plugin:ilm:internalClusterTest' --tests "org.elasticsearch.xpack.ilm.DataAndIndexLifecycleMixingTests.testUpdateIndexTemplateFromILMtoBothILMAndDLM" -Dtests.seed=6CA280320E5660DD -Dtests.locale=es-AR -Dtests.timezone=Asia/Jayapura -Druntime.java=20
```
**Applicable branches:**
8.9
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.ilm.DataAndIndexLifecycleMixingTests&tests.test=testUpdateIndexTemplateFromILMtoBothILMAndDLM
**Failure excerpt:**
```
java.util.concurrent.ExecutionException: [.ds-datastream-nklrqotqskgq-2023.08.22-000001] org.elasticsearch.index.IndexNotFoundException: no such index [.ds-datastream-nklrqotqskgq-2023.08.22-000001]
at __randomizedtesting.SeedInfo.seed([6CA280320E5660DD:14D7078B77D91C70]:0)
at org.elasticsearch.action.support.PlainActionFuture$Sync.getValue(PlainActionFuture.java:340)
at org.elasticsearch.action.support.PlainActionFuture$Sync.get(PlainActionFuture.java:327)
at org.elasticsearch.action.support.PlainActionFuture.get(PlainActionFuture.java:95)
at org.elasticsearch.xpack.ilm.DataAndIndexLifecycleMixingTests.lambda$testUpdateIndexTemplateFromILMtoBothILMAndDLM$7(DataAndIndexLifecycleMixingTests.java:309)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1160)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1145)
at org.elasticsearch.xpack.ilm.DataAndIndexLifecycleMixingTests.testUpdateIndexTemplateFromILMtoBothILMAndDLM(DataAndIndexLifecycleMixingTests.java:305)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: org.elasticsearch.index.IndexNotFoundException: no such index [.ds-datastream-nklrqotqskgq-2023.08.22-000001]
at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver.notFoundException(IndexNameExpressionResolver.java:449)
at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver$ExplicitResourceNameFilter.ensureAliasOrIndexExists(IndexNameExpressionResolver.java:1575)
at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver$ExplicitResourceNameFilter.filterUnavailable(IndexNameExpressionResolver.java:1555)
at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver.resolveExpressions(IndexNameExpressionResolver.java:262)
at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver.concreteIndices(IndexNameExpressionResolver.java:337)
at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver.concreteIndexNames(IndexNameExpressionResolver.java:328)
at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver.concreteIndexNames(IndexNameExpressionResolver.java:87)
at org.elasticsearch.action.support.master.info.TransportClusterInfoAction.checkBlock(TransportClusterInfoAction.java:53)
at org.elasticsearch.action.support.master.info.TransportClusterInfoAction.checkBlock(TransportClusterInfoAction.java:24)
at org.elasticsearch.action.support.master.TransportMasterNodeAction.checkBlockIfStateRecovered(TransportMasterNodeAction.java:135)
at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.doStart(TransportMasterNodeAction.java:199)
at org.elasticsearch.action.support.master.TransportMasterNodeAction.doExecute(TransportMasterNodeAction.java:171)
at org.elasticsearch.action.support.master.TransportMasterNodeAction.doExecute(TransportMasterNodeAction.java:53)
at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:86)
at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:61)
at org.elasticsearch.tasks.TaskManager.registerAndExecute(TaskManager.java:199)
at org.elasticsearch.client.internal.node.NodeClient.executeLocally(NodeClient.java:112)
at org.elasticsearch.client.internal.node.NodeClient.doExecute(NodeClient.java:90)
at org.elasticsearch.client.internal.support.AbstractClient.execute(AbstractClient.java:379)
at org.elasticsearch.client.internal.FilterClient.doExecute(FilterClient.java:57)
at org.elasticsearch.client.internal.support.AbstractClient.execute(AbstractClient.java:379)
at org.elasticsearch.client.internal.support.AbstractClient.execute(AbstractClient.java:365)
at org.elasticsearch.xpack.ilm.DataAndIndexLifecycleMixingTests.lambda$testUpdateIndexTemplateFromILMtoBothILMAndDLM$7(DataAndIndexLifecycleMixingTests.java:309)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1160)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1145)
at org.elasticsearch.xpack.ilm.DataAndIndexLifecycleMixingTests.testUpdateIndexTemplateFromILMtoBothILMAndDLM(DataAndIndexLifecycleMixingTests.java:305)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/98700 | https://github.com/elastic/elasticsearch/pull/98816 | 9bcefc3ddf66fbdd5a73215a2df8277526779679 | 71539c6ec27c185fbdcf5849bc849bfa395934de | "2023-08-22T00:39:09Z" | java | "2023-08-23T22:01:30Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 98,695 | ["modules/kibana/src/main/java/org/elasticsearch/kibana/KibanaPlugin.java", "modules/reindex/src/internalClusterTest/java/org/elasticsearch/migration/AbstractFeatureMigrationIntegTest.java", "modules/reindex/src/internalClusterTest/java/org/elasticsearch/migration/FeatureMigrationIT.java", "server/src/main/java/org/elasticsearch/indices/SystemIndexDescriptor.java", "server/src/main/java/org/elasticsearch/upgrades/SystemIndexMigrator.java"] | Ignore user templates on Kibana system indices | ### Elasticsearch Version
8.11.0
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
Darwin Kernel Version 22.6.0
### Problem Description
User templates affect Kibana system indices. This is contrary to most system indices https://github.com/elastic/elasticsearch/pull/87933 and causes issues where settings or mappings from the template interfere with the correct working of Kibana.
Based on the description in https://github.com/elastic/elasticsearch/pull/87933 it sounds like the behaviour is intentionally different for Kibana's system indices. Most likely because Kibana used to rely on templates for the user session index. However, it looks like there was maybe a mis-communication because in 8.4.0 Kibana changed this behaviour to no longer rely on templates https://github.com/elastic/kibana/pull/134900 so this should no longer be necessary
### Steps to Reproduce
```
# Based on a real issue a customer faced on ESS
# Create a data stream template matching system indices
curl -X PUT "elastic:changeme@localhost:9200/_index_template/my-ds-template?pretty" -H 'Content-Type: application/json' -d'
{
"index_patterns": [".*"],
"data_stream": { },
"priority": 9000,
"_meta": {
"description": "Template for my time series data",
"my-custom-meta-field": "More arbitrary metadata"
}
}
'
# Create a user able to create Kibana system indices
curl -X PUT "elastic:changeme@localhost:9200/_security/role/grant_kibana_system_indices" -H 'Content-Type: application/json' -d'
{
"indices": [
{
"names": [
".kibana*"
],
"privileges": [
"all"
],
"allow_restricted_indices": true
}
]
}
'
curl -X POST "elastic:changeme@localhost:9200/_security/user/superduperuser" -H 'Content-Type: application/json' -d'
{
"password" : "changeme",
"roles" : [ "superuser", "grant_kibana_system_indices" ]
}
'
# Attempt to create a Kibana system index:
curl -X PUT "superduperuser:changeme@localhost:9200/.kibana_8.11.0_001" -H 'Content-Type: application/json' -d'
{}
'
```
> {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"cannot create index with name [.kibana_8.11.0_001], because it matches with template [my-ds-template] that creates data streams only, use create data stream api instead"}],"type":"illegal_argument_exception","reason":"cannot create index with name [.kibana_8.11.0_001], because it matches with template [my-ds-template] that creates data streams only, use create data stream api instead"},"status":400}
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/98695 | https://github.com/elastic/elasticsearch/pull/98696 | 5b8e42f4827e14c3924eb0453802c2914b0cf6e6 | 22393215e7c2d049b0325b74f258f070150d5551 | "2023-08-21T19:52:27Z" | java | "2023-08-23T10:07:00Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 98,636 | ["docs/changelog/98809.yaml", "server/src/main/java/org/elasticsearch/action/admin/cluster/coordination/MasterHistoryAction.java", "server/src/main/java/org/elasticsearch/cluster/coordination/MasterHistory.java", "server/src/test/java/org/elasticsearch/cluster/coordination/CoordinationDiagnosticsServiceTests.java", "server/src/test/java/org/elasticsearch/cluster/coordination/MasterHistoryTests.java", "server/src/test/java/org/elasticsearch/cluster/coordination/StableMasterHealthIndicatorServiceTests.java"] | Stable master health indicator reports problems even on planned master failovers | Today the stable-master health indicator reports `yellow` health if it sees the elected master change 4 times in 30 minutes. However, this could be caused by planned activity such as a rolling restart, and in that case we should not consider a sequence of master failovers as a sign of ill health.
I think we can solve this by refining this check to disregard master nodes that have restarted since they were master, or are no longer in the cluster at all. Restarting the master will always trigger a failover, and the stable-master indicator need not worry about whether the node restart was planned or not; separately, unplanned node restarts are definitely a sign of ill health, but that applies whether the node was the elected master or not. Similarly, if a node is no longer in the cluster then either it is no longer running (again, whether that's planned or not is irrelevant to the stable-master indicator) or else it is running and failing to join the cluster (and hence reporting its own ill health). | https://github.com/elastic/elasticsearch/issues/98636 | https://github.com/elastic/elasticsearch/pull/98809 | 5f2fe57d5ee9c76b5190201d1cd2dccba453b5dd | e47138eab6ccfb84ae7fb4a21295f1f45948d94e | "2023-08-18T08:08:34Z" | java | "2023-08-24T12:54:52Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 98,611 | ["rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/80_dense_vector_indexed_by_default.yml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search/330_fetch_fields.yml", "server/src/main/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapper.java", "server/src/test/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapperTests.java"] | [CI] MixedClusterClientYamlTestSuiteIT test {p0=search.vectors/80_dense_vector_indexed_by_default/Indexed by default with cosine similarity} failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/otrqgkuwfpm52/tests/:qa:mixed-cluster:v8.10.0%23mixedClusterTest/org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT/test%20%7Bp0=search.vectors%2F80_dense_vector_indexed_by_default%2FIndexed%20by%20default%20with%20cosine%20similarity%7D
**Reproduction line:**
```
./gradlew ':qa:mixed-cluster:v8.10.0#mixedClusterTest' -Dtests.class="org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT" -Dtests.method="test {p0=search.vectors/80_dense_vector_indexed_by_default/Indexed by default with cosine similarity}" -Dtests.seed=B8BB676FAEBC899C -Dtests.bwc=true -Dtests.locale=es-CL -Dtests.timezone=Europe/Belfast -Druntime.java=20
```
**Applicable branches:**
main
**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.vectors/80_dense_vector_indexed_by_default/Indexed%20by%20default%20with%20cosine%20similarity%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [search.vectors/80_dense_vector_indexed_by_default:24]: Expected a map containing
mappings: a map containing
properties: a map containing
vector: a map containing
dims: <5>
similarity: expected "cosine" but was <missing>
index: expected <true> but was <missing>
type: "dense_vector"
at __randomizedtesting.SeedInfo.seed([B8BB676FAEBC899C:30EF58B50040E464]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:571)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:523)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.AssertionError: Expected a map containing
mappings: a map containing
properties: a map containing
vector: a map containing
dims: <5>
similarity: expected "cosine" but was <missing>
index: expected <true> but was <missing>
type: "dense_vector"
at org.elasticsearch.test.MapMatcher.assertMap(MapMatcher.java:82)
at org.elasticsearch.test.MapMatcher.assertMap(MapMatcher.java:65)
at org.elasticsearch.test.rest.yaml.section.MatchAssertion.doAssert(MatchAssertion.java:94)
at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:551)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:523)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/98611 | https://github.com/elastic/elasticsearch/pull/98621 | 29dec0d26dca093a3a5f1366be3114cd071b564d | 34c5bbc52deed9b25a0379f8ac6d595d440e33d3 | "2023-08-17T16:06:43Z" | java | "2023-08-17T20:08:55Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 98,606 | ["docs/changelog/98653.yaml", "server/src/main/java/org/elasticsearch/gateway/GatewayService.java"] | AtomicRegisterCoordinatorTests.testClusterRecoversAfterExceptionDuringSerialization failure | The following test fails reproducibly in current `main` (af071ccc314a0975a9b6e1b6ce7d2a9f92d75a09):
./gradlew ':server:test' --tests "org.elasticsearch.cluster.coordination.AtomicRegisterCoordinatorTests.testClusterRecoversAfterExceptionDuringSerialization" -Dtests.seed=E6F4C7552A14BE28 | https://github.com/elastic/elasticsearch/issues/98606 | https://github.com/elastic/elasticsearch/pull/98653 | 6c4c388bd9858c013ccf848859687b2a19d94b1e | 2df0e68512823d50282df87b7f373300ff2a524e | "2023-08-17T15:01:31Z" | java | "2023-08-22T13:34:05Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 98,604 | ["x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plugin/TransportEsqlStatsAction.java"] | Rolling upgrade test failure related to ESQL | ### CI Link
https://gradle-enterprise.elastic.co/s/t3fre2k6cszyc
### Repro line
`gradlew :x-pack:qa:rolling-upgrade:v8.10.0#twoThirdsUpgradedTest -Dtests.class="org.elasticsearch.upgrades.UpgradeClusterClientYamlTestSuiteIT" -Dtests.method="test {p0=mixed_cluster/90_ml_data_frame_analytics_crud/Get old classification job stats}" -Dtests.seed=D34AC6B8F4DE1F2F -Dtests.bwc=true -Dtests.locale=es-GT -Dtests.timezone=Africa/El_Aaiun -Druntime.java=20`
### Does it reproduce?
Yes
### Applicable branches
main
### Failure history
_No response_
### Failure excerpt
This fails on my machine but in a different way. What I noticed in the CI logs though is an error related to ESQL that _might_ be the reason for the failure, but I didn't dig into specifics:
```
» [2023-08-17T13:33:07,928][WARN ][o.e.t.TcpTransport ] [v8.10.0-2] exception caught on transport layer [Netty4TcpChannel{localAddress=/127.0.0.1:42469, remoteAddress=/127.0.0.1:54238, profile=default}], closing connection java.lang.Exception: java.lang.AssertionError: cluster:monitor/xpack/esql/stats/dist[n]
» at org.elasticsearch.transport.netty4@8.10.0-SNAPSHOT/org.elasticsearch.transport.netty4.Netty4MessageInboundHandler.exceptionCaught(Netty4MessageInboundHandler.java:74)
» at io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeExceptionCaught(AbstractChannelHandlerContext.java:346)
» at io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:447)
» at io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
» at io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
» at io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
» at io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
» at io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
» at io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
» at io.netty.handler@4.1.94.Final/io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1383)
» at io.netty.handler@4.1.94.Final/io.netty.handler.ssl.SslHandler.decodeJdkCompatible(SslHandler.java:1246)
» at io.netty.handler@4.1.94.Final/io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1295)
» at io.netty.codec@4.1.94.Final/io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:529)
» at io.netty.codec@4.1.94.Final/io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:468)
» at io.netty.codec@4.1.94.Final/io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290)
» at io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
» at io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
» at io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
» at io.netty.transport@4.1.94.Final/io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
» at io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)
» at io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
» at io.netty.transport@4.1.94.Final/io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
» at io.netty.transport@4.1.94.Final/io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
» at io.netty.transport@4.1.94.Final/io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788)
» at io.netty.transport@4.1.94.Final/io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:689)
» at io.netty.transport@4.1.94.Final/io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:652)
» at io.netty.transport@4.1.94.Final/io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
» at io.netty.common@4.1.94.Final/io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
» at io.netty.common@4.1.94.Final/io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
» at java.base/java.lang.Thread.run(Thread.java:1623)
» Caused by: java.lang.AssertionError: cluster:monitor/xpack/esql/stats/dist[n]
» at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.transport.InboundAggregator.lambda$new$0(InboundAggregator.java:46)
» at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.transport.InboundAggregator.initializeRequestState(InboundAggregator.java:197)
» at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.transport.InboundAggregator.headerReceived(InboundAggregator.java:66)
» at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.transport.InboundPipeline.forwardFragments(InboundPipeline.java:136)
» at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.transport.InboundPipeline.doHandleBytes(InboundPipeline.java:119)
» at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.transport.InboundPipeline.handleBytes(InboundPipeline.java:84)
» at org.elasticsearch.transport.netty4@8.10.0-SNAPSHOT/org.elasticsearch.transport.netty4.Netty4MessageInboundHandler.channelRead(Netty4MessageInboundHandler.java:62)
» at io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
» ... 27 more
``` | https://github.com/elastic/elasticsearch/issues/98604 | https://github.com/elastic/elasticsearch/pull/98617 | e2b0d7bff8fe2635591cf0cbcf45244e01d58cc6 | 6019f38033ccb12bbd3ef01986d59fd6b200ee3d | "2023-08-17T14:50:29Z" | java | "2023-08-17T21:07:54Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 98,580 | ["docs/reference/indices/shard-stores.asciidoc"] | [CI] DocsClientYamlTestSuiteIT test {yaml=reference/indices/shard-stores/line_150} failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/pobq7lo4czwjm/tests/:docs:yamlRestTest/org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT/test%20%7Byaml=reference%2Findices%2Fshard-stores%2Fline_150%7D
**Reproduction line:**
```
./gradlew ':docs:yamlRestTest' --tests "org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT.test {yaml=reference/indices/shard-stores/line_150}" -Dtests.seed=2C094F05992FEEB2 -Dtests.locale=ar-OM -Dtests.timezone=Eire -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dreference/indices/shard-stores/line_150%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [reference/indices/shard-stores:145]: Expected a map containing
indices: a map containing
my-index-000001: a map containing
shards: a map containing
0: a map containing
stores: a list containing
0: a map containing
KLjGCcqWTjmHruAOkl3VUg: a map containing
transport_address: "127.0.0.1:38081"
roles: a list containing
0: "data"
1: "data_cold"
2: "data_content"
3: "data_frozen"
4: "data_hot"
5: "data_warm"
6: "ingest"
7: "master"
8: "ml"
9: "remote_cluster_client"
10: "transform"
name: "node-0"
min_index_version: <7000099>
external_id: "node-0"
attributes: a map containing
ml.allocated_processors_double: "32.0"
testattr: "test"
transform.config_version: "10.0.0"
xpack.installed: "true"
ml.allocated_processors: "32"
ml.max_jvm_size: "536870912"
ml.config_version: "10.0.0"
ml.machine_memory: "101259079680"
max_index_version: expected <8100099> but was <8110099>
ephemeral_id: "xz_18EB5Tc-30qqn5lvsAQ"
version: "8.11.0"
allocation: "primary"
allocation_id: "6vLq-yF0ScK8H6OU7bL3Eg"
at __randomizedtesting.SeedInfo.seed([2C094F05992FEEB2:A45D70DF37D3834A]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:571)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:523)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.AssertionError: Expected a map containing
indices: a map containing
my-index-000001: a map containing
shards: a map containing
0: a map containing
stores: a list containing
0: a map containing
KLjGCcqWTjmHruAOkl3VUg: a map containing
transport_address: "127.0.0.1:38081"
roles: a list containing
0: "data"
1: "data_cold"
2: "data_content"
3: "data_frozen"
4: "data_hot"
5: "data_warm"
6: "ingest"
7: "master"
8: "ml"
9: "remote_cluster_client"
10: "transform"
name: "node-0"
min_index_version: <7000099>
external_id: "node-0"
attributes: a map containing
ml.allocated_processors_double: "32.0"
testattr: "test"
transform.config_version: "10.0.0"
xpack.installed: "true"
ml.allocated_processors: "32"
ml.max_jvm_size: "536870912"
ml.config_version: "10.0.0"
ml.machine_memory: "101259079680"
max_index_version: expected <8100099> but was <8110099>
ephemeral_id: "xz_18EB5Tc-30qqn5lvsAQ"
version: "8.11.0"
allocation: "primary"
allocation_id: "6vLq-yF0ScK8H6OU7bL3Eg"
at org.elasticsearch.test.MapMatcher.assertMap(MapMatcher.java:82)
at org.elasticsearch.test.MapMatcher.assertMap(MapMatcher.java:65)
at org.elasticsearch.test.rest.yaml.section.MatchAssertion.doAssert(MatchAssertion.java:94)
at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:551)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:523)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/98580 | https://github.com/elastic/elasticsearch/pull/98581 | 6b8cb583edc579b596fca347d8a98929a1d12ff2 | 9538208fb75f8b036905f228bd9bd6e6cb26c8f9 | "2023-08-17T09:29:42Z" | java | "2023-08-17T10:38:31Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 98,526 | ["x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/operator/DriverTaskRunner.java", "x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/operator/exchange/ExchangeService.java", "x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/operator/exchange/ExchangeServiceTests.java", "x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/enrich/EnrichLookupService.java", "x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plugin/ComputeService.java", "x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plugin/EsqlPlugin.java", "x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plugin/TransportEsqlQueryAction.java"] | Examine usage of transport_worker threads by ESQL | Performing any long running task or CPU intensive work on transport_worker threads is problematic. This is typically very bad for cluster stability.
This issue has been filed to examine the usage of transport_worked threads by ESQL, with the intention of "offloading" as much as possible, including deserialising large(ish) amounts of data. | https://github.com/elastic/elasticsearch/issues/98526 | https://github.com/elastic/elasticsearch/pull/98637 | 4f81f1414fde5f83a14fef45e6d0de6aab4f6147 | dbc839bce4bb1a02fa37804e04f1d9d0ced81cb0 | "2023-08-16T09:21:40Z" | java | "2023-08-21T13:40:36Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 98,509 | ["x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/optimizer/LogicalPlanOptimizer.java", "x-pack/plugin/ql/src/main/java/org/elasticsearch/xpack/ql/plan/QueryPlan.java", "x-pack/plugin/ql/src/test/java/org/elasticsearch/xpack/ql/plan/QueryPlanTests.java"] | QL: add more utility methods on QueryPlan | ### Description
As we have more rules doing analysis across plans, a number of methods are useful to add to the `QueryPlan` class itself, mainly around expressions:
```
- expressions() - return the expressions declared by this plan
- references() - return the references from the expressions above
``` | https://github.com/elastic/elasticsearch/issues/98509 | https://github.com/elastic/elasticsearch/pull/98633 | 98ea54370b7dfce2d24eb7ef8052c51db383a03c | 6d474bf4eceda5d068ea591a15e3fd155b017000 | "2023-08-15T19:29:46Z" | java | "2023-08-21T22:26:49Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 98,504 | ["server/src/internalClusterTest/java/org/elasticsearch/indices/TestSystemIndexDescriptor.java", "server/src/main/java/org/elasticsearch/cluster/ClusterState.java", "server/src/main/java/org/elasticsearch/indices/SystemIndexMappingUpdateService.java", "server/src/test/java/org/elasticsearch/cluster/ClusterStateTests.java", "server/src/test/java/org/elasticsearch/indices/SystemIndexMappingUpdateServiceTests.java"] | Use system index mappings version number in SystemIndexMappingUpdateService | Once https://github.com/elastic/elasticsearch/issues/98503 is done, we can use our minimum version numbers in the SystemIndexMappingUpdate service instead of the old `Version` types. Mappings will be updated for a system index when all nodes have a matching descriptor mappings version for a system index, but this version is greater than what's stored in the mappings metadata. | https://github.com/elastic/elasticsearch/issues/98504 | https://github.com/elastic/elasticsearch/pull/99668 | 25a2aa57cf94f87879ec063f2ddc279ba37d372f | 1e5f4a360d69b08c83c748719e02ba3ff8c54c31 | "2023-08-15T18:44:25Z" | java | "2023-09-20T18:28:48Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 98,482 | ["x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/optimizer/LogicalPlanOptimizer.java", "x-pack/plugin/ql/src/main/java/org/elasticsearch/xpack/ql/expression/AttributeMap.java", "x-pack/plugin/ql/src/main/java/org/elasticsearch/xpack/ql/expression/AttributeSet.java", "x-pack/plugin/ql/src/test/java/org/elasticsearch/xpack/ql/expression/AttributeMapTests.java"] | Security privileges for ESQL Enrich |
Filing this issue to track a question/comment that was raised by @ywangd here https://github.com/elastic/elasticsearch/pull/98309#discussion_r1294115440
One question I do have is why we chose to [execute the LookupRequest with the enrich origin](https://github.com/elastic/elasticsearch/blob/2e4440ff1c0decf79f8a40688566411f7d518aa7/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/enrich/EnrichLookupService.java#L141C2-L141C2). It means the following query works when the user has access to only the playlist index without access to either the songs enrich policy or its associated index.
```
FROM playlist | ENRICH songs ON song_id
```
It feels a bit weird to me that we have no control on who can use what enrich process. That said, we don't have a good story around enrich and ingest pipeline either, i.e. we have no control over who can use what pipeline where a pipeline can contain an enrich processor. There have been quite a few complaints from users and we have an https://github.com/elastic/elasticsearch/issues/57586 for it. I wonder whether we should not repeat the problem here with ES|QL. On the surface, it might be easier to tackle compared to ingest pipelines since ES|QL is read-only and has no "bulk" operations. What do you think? | https://github.com/elastic/elasticsearch/issues/98482 | https://github.com/elastic/elasticsearch/pull/98641 | 2e13a9f2f86e9ea07b40badf693f957a1fde017a | 9562fb29fce674ae689d614623b78ce55229dea8 | "2023-08-15T10:06:45Z" | java | "2023-08-21T14:59:37Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 98,463 | ["docs/changelog/98518.yaml", "docs/reference/data-streams/set-up-tsds.asciidoc", "docs/reference/data-streams/tsds-index-settings.asciidoc", "docs/reference/data-streams/tsds.asciidoc", "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/main/java/org/elasticsearch/datastreams/DataStreamsPlugin.java", "modules/data-streams/src/test/java/org/elasticsearch/datastreams/DataStreamIndexSettingsProviderTests.java", "modules/data-streams/src/test/java/org/elasticsearch/datastreams/LookAHeadTimeTests.java"] | Add index.look_back_time setting for tsdb data streams | Currently the `index.look_ahead_time` index setting controls the `index.time_series_end_time` index setting when rolling over a tsdb data stream. The `index.look_ahead_time` setting default to 2 hours, which means the by default the `index.time_series_end_time` index setting of the new backing index will be 2 hours later than the `index.time_series.start_time` index setting. The the `index.time_series.start_time` and `index.time_series_end_time` index settings control what `@timestamp` are allowed to be indexed.
Additionally the `index.look_ahead_time` setting is used to generate the `index.time_series.start_time` and `index.time_series_end_time` index settings when creating a new data stream for the first backing index. Based on the defaults of `index.look_ahead_time` setting, the `index.time_series.start_time` index is set to current time - 2 hours and the `index.time_series_end_time` index setting is set to current time + 2 hours.
However for indexing the initial data setting the `index.time_series.start_time` index setting to 2 hours in the past sometimes creates too small time window. For example because data gets indexed starting from midnight that day.
The idea is to add a `index.look_back_time` setting that controls how to generate the `index.time_series.start_time` index setting when creating the data stream (for the first backing index). This allows for creating a first backing index that accepts data that is earlier then current time - $index.look_ahead_time, without affecting how `index.time_series.start_time` and `index.time_series_end_time` index settings are generated during rollover.
I think a good default for the `index.look_back_time` setting would be 24 hours. Meaning that by default the `index.time_series.start_time` index setting for the first backing index of a new data stream would be current time - 24 hours.
Relates to elastic/integrations#7345 | https://github.com/elastic/elasticsearch/issues/98463 | https://github.com/elastic/elasticsearch/pull/98518 | d507295cb2deaa9f5db8e26064b419c9ed923a65 | 3e3ee42589ea16cb44bb4eb4be7b3e5189336da3 | "2023-08-15T02:10:34Z" | java | "2023-09-08T09:11:43Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 98,432 | ["server/src/internalClusterTest/java/org/elasticsearch/versioning/ConcurrentSeqNoVersioningIT.java", "server/src/test/java/org/elasticsearch/cluster/coordination/LinearizabilityCheckerTests.java", "test/framework/src/main/java/org/elasticsearch/cluster/coordination/AbstractCoordinatorTestCase.java", "test/framework/src/main/java/org/elasticsearch/cluster/coordination/LinearizabilityChecker.java"] | OOME in tests due to LinearizabilityChecker overload | The following invocation seems to stabilise very well, generating overwhelmingly many events for the linearizability checker to check, leading to an OOME:
`./gradlew ':server:test' --tests "org.elasticsearch.cluster.coordination.AtomicRegisterCoordinatorTests.testAppliesNoMasterBlockAllIfConfigured" -Dtests.seed=9BFB03AB5780EC10`
Seen on a recent commit to `main`, 1fef466f50d9936b6cfe8295e943f1a6c3f6f2f2. | https://github.com/elastic/elasticsearch/issues/98432 | https://github.com/elastic/elasticsearch/pull/101357 | bf2921fab717c4fc5364c29aadfbb2d73e980198 | 6d9d5469eb1ec2b7432af1b24d10c82c332c3f95 | "2023-08-14T06:51:26Z" | java | "2023-10-30T12:30:26Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 98,423 | ["server/src/test/java/org/elasticsearch/cluster/coordination/AtomicRegisterCoordinatorTests.java", "test/framework/src/main/java/org/elasticsearch/cluster/coordination/AbstractCoordinatorTestCase.java"] | Investigate & fix election scheduling with atomic-register coordinator | #98420 verifies that the election scheduler is not running when a cluster is stable, but this assertion does not hold in the `AtomicRegisterCoordinatorTests` suite. This issue tracks the work to investigate and fix up the problem. | https://github.com/elastic/elasticsearch/issues/98423 | https://github.com/elastic/elasticsearch/pull/98499 | a9b79752b36528eb96740cb594cd6f76ed82a45a | b2552e1efd850c5de292a228e252612528278178 | "2023-08-13T10:48:36Z" | java | "2023-08-15T16:35:43Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 98,404 | ["docs/changelog/98759.yaml", "x-pack/plugin/esql/qa/testFixtures/src/main/resources/keep.csv-spec", "x-pack/plugin/esql/qa/testFixtures/src/main/resources/stats.csv-spec", "x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action/EsqlActionIT.java", "x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/optimizer/PhysicalPlanOptimizer.java", "x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plan/physical/FragmentExec.java", "x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/planner/PlannerUtils.java", "x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/CsvTests.java", "x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/optimizer/PhysicalPlanOptimizerTests.java"] | ESQL: NPE when keeping an eval literal, but nothing from the index itself | ### Description
`from employees | eval x = 1 | keep x` results in
```
Caused by: java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because the return value of "org.elasticsearch.xpack.esql.planner.Layout.getChannel(org.elasticsearch.xpack.ql.expression.NameId)" is null
at org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner.alignPageToAttributes(LocalExecutionPlanner.java:281)
at org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner.planExchangeSink(LocalExecutionPlanner.java:305)
at org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner.plan(LocalExecutionPlanner.java:199)
at org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner.plan(LocalExecutionPlanner.java:146)
at org.elasticsearch.xpack.esql.plugin.ComputeService.runCompute(ComputeService.java:246)
at org.elasticsearch.xpack.esql.plugin.ComputeService$DataNodeRequestHandler.lambda$messageReceived$5(ComputeService.java:415)
at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:177)
at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListener.completeWith(ActionListener.java:305)
at org.elasticsearch.xpack.esql.plugin.ComputeService.lambda$acquireSearchContexts$13(ComputeService.java:280)
at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.index.shard.IndexShard.ensureShardSearchActive(IndexShard.java:3911)
at org.elasticsearch.xpack.esql.plugin.ComputeService.acquireSearchContexts(ComputeService.java:278)
at org.elasticsearch.xpack.esql.plugin.ComputeService$DataNodeRequestHandler.messageReceived(ComputeService.java:413)
at org.elasticsearch.xpack.esql.plugin.ComputeService$DataNodeRequestHandler.messageReceived(ComputeService.java:405)
at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:74)
at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:1023)
at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983)
at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:33)
at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983)
at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/98404 | https://github.com/elastic/elasticsearch/pull/98759 | 2dfffbc47c1daefbcf7b12d44db5d422f49c84a8 | 9de793e02a186928ac498f3672d2c0ca7780533e | "2023-08-11T15:22:55Z" | java | "2023-08-23T19:30:08Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 98,327 | ["docs/changelog/98332.yaml", "server/src/main/java/org/elasticsearch/index/mapper/ContentPath.java", "server/src/test/java/org/elasticsearch/index/mapper/ContentPathTests.java"] | Wrong behaviour in `ContentPath` while calling `remove()` | `ContentPath` class maintains a variable `index` that has the next available index to write path to. In fact to add a path we did `path[index++] = name;` so we write at index position and increment it afterwards. To remove last path we are doing `path[index--] = null;` this would set to null the next available index position (that is already null) and later subtract 1 from index. This was masked by the fact that when retrieving a path we loop from 0 up until `i < index`, therefore masking the fact that there could have being 'removed' but not null path existing at `index`.
_Originally posted by @piergm in https://github.com/elastic/elasticsearch/pull/97972#discussion_r1287055169_
| https://github.com/elastic/elasticsearch/issues/98327 | https://github.com/elastic/elasticsearch/pull/98332 | 8e5eddf44aee3a91e6828475f080d22ed8adbede | 333b0f6c70f4cdf09227aab65672b7e5372eddd3 | "2023-08-09T15:04:49Z" | java | "2023-08-22T07:07:40Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 98,163 | ["x-pack/plugin/core/src/javaRestTest/java/org/elasticsearch/xpack/core/StackTemplatesRestIT.java", "x-pack/qa/core-rest-tests-with-security/src/yamlRestTest/resources/rest-api-spec/test/stack/10_stack.yml"] | [CI] CoreWithSecurityClientYamlTestSuiteIT test {yaml=stack/10_stack/Stack templates can be disabled} failing | In the logging I indeed do not see the logs template being installed:
```
[2023-08-03T15:23:41,215][INFO ][o.e.c.m.MetadataIndexTemplateService] [test-cluster-0] adding index template [.slm-history] for index patterns [.slm-history-5*]
[2023-08-03T15:23:41,361][INFO ][o.e.c.m.MetadataIndexTemplateService] [test-cluster-0] adding index template [metrics] for index patterns [metrics-*-*]
[2023-08-03T15:23:41,401][INFO ][o.e.c.m.MetadataIndexTemplateService] [test-cluster-0] adding index template [synthetics] for index patterns [synthetics-*-*]
```
Since the code is sequential I would have expected a logging line with the logs template before we start logging about the index lifecycle policies.
**Build scan:**
https://gradle-enterprise.elastic.co/s/yxon3w6xaxt76/tests/:x-pack:qa:core-rest-tests-with-security:yamlRestTest/org.elasticsearch.xpack.security.CoreWithSecurityClientYamlTestSuiteIT/test%20%7Byaml=stack%2F10_stack%2FStack%20templates%20can%20be%20disabled%7D
**Reproduction line:**
```
./gradlew ':x-pack:qa:core-rest-tests-with-security:yamlRestTest' --tests "org.elasticsearch.xpack.security.CoreWithSecurityClientYamlTestSuiteIT.test {yaml=stack/10_stack/Stack templates can be disabled}" -Dtests.seed=BA809E751B00E4BE -Dtests.jvm.argline="-Des.concurrent_search=true" -Dtests.locale=he -Dtests.timezone=Asia/Hong_Kong -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.security.CoreWithSecurityClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dstack/10_stack/Stack%20templates%20can%20be%20disabled%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [stack/10_stack:8]: expected [2xx] status code but api [indices.get_index_template] returned [404 Not Found] [{"error":{"root_cause":[{"type":"resource_not_found_exception","reason":"index template matching [logs] not found","stack_trace":"org.elasticsearch.ResourceNotFoundException: index template matching [logs] not found\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.admin.indices.template.get.TransportGetComposableIndexTemplateAction.masterOperation(TransportGetComposableIndexTemplateAction.java:89)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.admin.indices.template.get.TransportGetComposableIndexTemplateAction.masterOperation(TransportGetComposableIndexTemplateAction.java:32)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.master.TransportMasterNodeAction.executeMasterOperation(TransportMasterNodeAction.java:125)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.lambda$doStart$3(TransportMasterNodeAction.java:235)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionRunnable$3.doRun(ActionRunnable.java:72)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.EsExecutors$DirectExecutorService.execute(EsExecutors.java:238)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.doStart(TransportMasterNodeAction.java:235)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.master.TransportMasterNodeAction.doExecute(TransportMasterNodeAction.java:172)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.master.TransportMasterNodeAction.doExecute(TransportMasterNodeAction.java:54)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:86)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$applyInternal$3(SecurityActionFilter.java:163)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$DelegatingFailureActionListener.onResponse(ActionListenerImplementations.java:212)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.AuthorizationService.lambda$authorizeAction$8(AuthorizationService.java:455)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.AuthorizationService$AuthorizationResultListener.onResponse(AuthorizationService.java:1015)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.AuthorizationService$AuthorizationResultListener.onResponse(AuthorizationService.java:981)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:32)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.AuthorizationService.lambda$authorizeAction$9(AuthorizationService.java:469)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$ResponseWrappingActionListener.onResponse(ActionListenerImplementations.java:236)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.RBACEngine.authorizeClusterAction(RBACEngine.java:185)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.AuthorizationService.authorizeAction(AuthorizationService.java:459)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.AuthorizationService.maybeAuthorizeRunAs(AuthorizationService.java:435)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.AuthorizationService.lambda$authorize$3(AuthorizationService.java:322)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:177)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:32)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.RBACEngine.lambda$resolveAuthorizationInfo$0(RBACEngine.java:150)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$ResponseWrappingActionListener.onResponse(ActionListenerImplementations.java:236)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.lambda$getRoles$4(CompositeRolesStore.java:194)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$ResponseWrappingActionListener.onResponse(ActionListenerImplementations.java:236)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.lambda$getRole$5(CompositeRolesStore.java:212)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$ResponseWrappingActionListener.onResponse(ActionListenerImplementations.java:236)\n\tat org.elasticsearch.xcore@8.10.0-SNAPSHOT/org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.lambda$buildRole$0(RoleReferenceIntersection.java:49)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$ResponseWrappingActionListener.onResponse(ActionListenerImplementations.java:236)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.GroupedActionListener.onResponse(GroupedActionListener.java:56)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.buildRoleFromRoleReference(CompositeRolesStore.java:292)\n\tat org.elasticsearch.xcore@8.10.0-SNAPSHOT/org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.lambda$buildRole$1(RoleReferenceIntersection.java:53)\n\tat java.base/java.lang.Iterable.forEach(Iterable.java:75)\n\tat org.elasticsearch.xcore@8.10.0-SNAPSHOT/org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.buildRole(RoleReferenceIntersection.java:53)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.getRole(CompositeRolesStore.java:210)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.getRoles(CompositeRolesStore.java:187)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.RBACEngine.resolveAuthorizationInfo(RBACEngine.java:146)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.AuthorizationService.authorize(AuthorizationService.java:338)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$applyInternal$4(SecurityActionFilter.java:159)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$ResponseWrappingActionListener.onResponse(ActionListenerImplementations.java:236)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$MappedActionListener.onResponse(ActionListenerImplementations.java:95)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authc.AuthenticatorChain.authenticateAsync(AuthenticatorChain.java:94)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:261)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:171)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.applyInternal(SecurityActionFilter.java:155)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.apply(SecurityActionFilter.java:114)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:84)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:61)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.tasks.TaskManager.registerAndExecute(TaskManager.java:199)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.client.internal.node.NodeClient.executeLocally(NodeClient.java:113)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.client.internal.node.NodeClient.doExecute(NodeClient.java:91)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.client.internal.support.AbstractClient.execute(AbstractClient.java:379)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.rest.action.admin.indices.RestGetComposableIndexTemplateAction.lambda$prepareRequest$0(RestGetComposableIndexTemplateAction.java:59)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:103)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.rest.SecurityRestFilter.doHandleRequest(SecurityRestFilter.java:107)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.rest.SecurityRestFilter.lambda$handleRequest$0(SecurityRestFilter.java:98)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:177)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authc.support.SecondaryAuthenticator.lambda$authenticateAndAttachToContext$3(SecondaryAuthenticator.java:99)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$ResponseWrappingActionListener.onResponse(ActionListenerImplementations.java:236)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authc.support.SecondaryAuthenticator.authenticate(SecondaryAuthenticator.java:109)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authc.support.SecondaryAuthenticator.authenticateAndAttachToContext(SecondaryAuthenticator.java:90)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.rest.SecurityRestFilter.handleRequest(SecurityRestFilter.java:93)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:415)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.rest.RestController.tryAllHandlers(RestController.java:544)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:317)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:453)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.http.AbstractHttpServerTransport.handleIncomingRequest(AbstractHttpServerTransport.java:549)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.http.AbstractHttpServerTransport.incomingRequest(AbstractHttpServerTransport.java:426)\n\tat org.elasticsearch.transport.netty4@8.10.0-SNAPSHOT/org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.handlePipelinedRequest(Netty4HttpPipeliningHandler.java:128)\n\tat org.elasticsearch.transport.netty4@8.10.0-SNAPSHOT/org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.channelRead(Netty4HttpPipeliningHandler.java:118)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat org.elasticsearch.transport.netty4@8.10.0-SNAPSHOT/org.elasticsearch.http.netty4.Netty4HttpHeaderValidator.forwardData(Netty4HttpHeaderValidator.java:194)\n\tat org.elasticsearch.transport.netty4@8.10.0-SNAPSHOT/org.elasticsearch.http.netty4.Netty4HttpHeaderValidator.forwardFullRequest(Netty4HttpHeaderValidator.java:137)\n\tat org.elasticsearch.transport.netty4@8.10.0-SNAPSHOT/org.elasticsearch.http.netty4.Netty4HttpHeaderValidator.lambda$requestStart$1(Netty4HttpHeaderValidator.java:120)\n\tat io.netty.common@4.1.94.Final/io.netty.util.concurrent.PromiseTask.runTask(PromiseTask.java:98)\n\tat io.netty.common@4.1.94.Final/io.netty.util.concurrent.PromiseTask.run(PromiseTask.java:106)\n\tat io.netty.common@4.1.94.Final/io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174)\n\tat io.netty.common@4.1.94.Final/io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167)\n\tat io.netty.common@4.1.94.Final/io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:566)\n\tat io.netty.common@4.1.94.Final/io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)\n\tat io.netty.common@4.1.94.Final/io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\n"}],"type":"resource_not_found_exception","reason":"index template matching [logs] not found","stack_trace":"org.elasticsearch.ResourceNotFoundException: index template matching [logs] not found\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.admin.indices.template.get.TransportGetComposableIndexTemplateAction.masterOperation(TransportGetComposableIndexTemplateAction.java:89)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.admin.indices.template.get.TransportGetComposableIndexTemplateAction.masterOperation(TransportGetComposableIndexTemplateAction.java:32)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.master.TransportMasterNodeAction.executeMasterOperation(TransportMasterNodeAction.java:125)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.lambda$doStart$3(TransportMasterNodeAction.java:235)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionRunnable$3.doRun(ActionRunnable.java:72)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.EsExecutors$DirectExecutorService.execute(EsExecutors.java:238)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.doStart(TransportMasterNodeAction.java:235)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.master.TransportMasterNodeAction.doExecute(TransportMasterNodeAction.java:172)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.master.TransportMasterNodeAction.doExecute(TransportMasterNodeAction.java:54)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:86)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$applyInternal$3(SecurityActionFilter.java:163)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$DelegatingFailureActionListener.onResponse(ActionListenerImplementations.java:212)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.AuthorizationService.lambda$authorizeAction$8(AuthorizationService.java:455)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.AuthorizationService$AuthorizationResultListener.onResponse(AuthorizationService.java:1015)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.AuthorizationService$AuthorizationResultListener.onResponse(AuthorizationService.java:981)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:32)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.AuthorizationService.lambda$authorizeAction$9(AuthorizationService.java:469)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$ResponseWrappingActionListener.onResponse(ActionListenerImplementations.java:236)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.RBACEngine.authorizeClusterAction(RBACEngine.java:185)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.AuthorizationService.authorizeAction(AuthorizationService.java:459)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.AuthorizationService.maybeAuthorizeRunAs(AuthorizationService.java:435)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.AuthorizationService.lambda$authorize$3(AuthorizationService.java:322)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:177)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:32)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.RBACEngine.lambda$resolveAuthorizationInfo$0(RBACEngine.java:150)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$ResponseWrappingActionListener.onResponse(ActionListenerImplementations.java:236)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.lambda$getRoles$4(CompositeRolesStore.java:194)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$ResponseWrappingActionListener.onResponse(ActionListenerImplementations.java:236)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.lambda$getRole$5(CompositeRolesStore.java:212)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$ResponseWrappingActionListener.onResponse(ActionListenerImplementations.java:236)\n\tat org.elasticsearch.xcore@8.10.0-SNAPSHOT/org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.lambda$buildRole$0(RoleReferenceIntersection.java:49)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$ResponseWrappingActionListener.onResponse(ActionListenerImplementations.java:236)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.GroupedActionListener.onResponse(GroupedActionListener.java:56)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.buildRoleFromRoleReference(CompositeRolesStore.java:292)\n\tat org.elasticsearch.xcore@8.10.0-SNAPSHOT/org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.lambda$buildRole$1(RoleReferenceIntersection.java:53)\n\tat java.base/java.lang.Iterable.forEach(Iterable.java:75)\n\tat org.elasticsearch.xcore@8.10.0-SNAPSHOT/org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.buildRole(RoleReferenceIntersection.java:53)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.getRole(CompositeRolesStore.java:210)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.getRoles(CompositeRolesStore.java:187)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.RBACEngine.resolveAuthorizationInfo(RBACEngine.java:146)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.AuthorizationService.authorize(AuthorizationService.java:338)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$applyInternal$4(SecurityActionFilter.java:159)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$ResponseWrappingActionListener.onResponse(ActionListenerImplementations.java:236)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$MappedActionListener.onResponse(ActionListenerImplementations.java:95)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authc.AuthenticatorChain.authenticateAsync(AuthenticatorChain.java:94)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:261)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:171)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.applyInternal(SecurityActionFilter.java:155)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.apply(SecurityActionFilter.java:114)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:84)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:61)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.tasks.TaskManager.registerAndExecute(TaskManager.java:199)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.client.internal.node.NodeClient.executeLocally(NodeClient.java:113)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.client.internal.node.NodeClient.doExecute(NodeClient.java:91)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.client.internal.support.AbstractClient.execute(AbstractClient.java:379)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.rest.action.admin.indices.RestGetComposableIndexTemplateAction.lambda$prepareRequest$0(RestGetComposableIndexTemplateAction.java:59)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:103)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.rest.SecurityRestFilter.doHandleRequest(SecurityRestFilter.java:107)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.rest.SecurityRestFilter.lambda$handleRequest$0(SecurityRestFilter.java:98)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:177)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authc.support.SecondaryAuthenticator.lambda$authenticateAndAttachToContext$3(SecondaryAuthenticator.java:99)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$ResponseWrappingActionListener.onResponse(ActionListenerImplementations.java:236)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authc.support.SecondaryAuthenticator.authenticate(SecondaryAuthenticator.java:109)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authc.support.SecondaryAuthenticator.authenticateAndAttachToContext(SecondaryAuthenticator.java:90)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.rest.SecurityRestFilter.handleRequest(SecurityRestFilter.java:93)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:415)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.rest.RestController.tryAllHandlers(RestController.java:544)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:317)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:453)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.http.AbstractHttpServerTransport.handleIncomingRequest(AbstractHttpServerTransport.java:549)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.http.AbstractHttpServerTransport.incomingRequest(AbstractHttpServerTransport.java:426)\n\tat org.elasticsearch.transport.netty4@8.10.0-SNAPSHOT/org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.handlePipelinedRequest(Netty4HttpPipeliningHandler.java:128)\n\tat org.elasticsearch.transport.netty4@8.10.0-SNAPSHOT/org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.channelRead(Netty4HttpPipeliningHandler.java:118)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat org.elasticsearch.transport.netty4@8.10.0-SNAPSHOT/org.elasticsearch.http.netty4.Netty4HttpHeaderValidator.forwardData(Netty4HttpHeaderValidator.java:194)\n\tat org.elasticsearch.transport.netty4@8.10.0-SNAPSHOT/org.elasticsearch.http.netty4.Netty4HttpHeaderValidator.forwardFullRequest(Netty4HttpHeaderValidator.java:137)\n\tat org.elasticsearch.transport.netty4@8.10.0-SNAPSHOT/org.elasticsearch.http.netty4.Netty4HttpHeaderValidator.lambda$requestStart$1(Netty4HttpHeaderValidator.java:120)\n\tat io.netty.common@4.1.94.Final/io.netty.util.concurrent.PromiseTask.runTask(PromiseTask.java:98)\n\tat io.netty.common@4.1.94.Final/io.netty.util.concurrent.PromiseTask.run(PromiseTask.java:106)\n\tat io.netty.common@4.1.94.Final/io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174)\n\tat io.netty.common@4.1.94.Final/io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167)\n\tat io.netty.common@4.1.94.Final/io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:566)\n\tat io.netty.common@4.1.94.Final/io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)\n\tat io.netty.common@4.1.94.Final/io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\n"},"status":404}]
at __randomizedtesting.SeedInfo.seed([BA809E751B00E4BE:32D4A1AFB5FC8946]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:571)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:523)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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.elasticsearch.test.cluster.DefaultElasticsearchCluster$1.evaluate(DefaultElasticsearchCluster.java:37)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.AssertionError: expected [2xx] status code but api [indices.get_index_template] returned [404 Not Found] [{"error":{"root_cause":[{"type":"resource_not_found_exception","reason":"index template matching [logs] not found","stack_trace":"org.elasticsearch.ResourceNotFoundException: index template matching [logs] not found\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.admin.indices.template.get.TransportGetComposableIndexTemplateAction.masterOperation(TransportGetComposableIndexTemplateAction.java:89)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.admin.indices.template.get.TransportGetComposableIndexTemplateAction.masterOperation(TransportGetComposableIndexTemplateAction.java:32)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.master.TransportMasterNodeAction.executeMasterOperation(TransportMasterNodeAction.java:125)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.lambda$doStart$3(TransportMasterNodeAction.java:235)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionRunnable$3.doRun(ActionRunnable.java:72)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.EsExecutors$DirectExecutorService.execute(EsExecutors.java:238)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.doStart(TransportMasterNodeAction.java:235)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.master.TransportMasterNodeAction.doExecute(TransportMasterNodeAction.java:172)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.master.TransportMasterNodeAction.doExecute(TransportMasterNodeAction.java:54)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:86)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$applyInternal$3(SecurityActionFilter.java:163)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$DelegatingFailureActionListener.onResponse(ActionListenerImplementations.java:212)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.AuthorizationService.lambda$authorizeAction$8(AuthorizationService.java:455)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.AuthorizationService$AuthorizationResultListener.onResponse(AuthorizationService.java:1015)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.AuthorizationService$AuthorizationResultListener.onResponse(AuthorizationService.java:981)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:32)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.AuthorizationService.lambda$authorizeAction$9(AuthorizationService.java:469)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$ResponseWrappingActionListener.onResponse(ActionListenerImplementations.java:236)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.RBACEngine.authorizeClusterAction(RBACEngine.java:185)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.AuthorizationService.authorizeAction(AuthorizationService.java:459)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.AuthorizationService.maybeAuthorizeRunAs(AuthorizationService.java:435)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.AuthorizationService.lambda$authorize$3(AuthorizationService.java:322)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:177)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:32)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.RBACEngine.lambda$resolveAuthorizationInfo$0(RBACEngine.java:150)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$ResponseWrappingActionListener.onResponse(ActionListenerImplementations.java:236)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.lambda$getRoles$4(CompositeRolesStore.java:194)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$ResponseWrappingActionListener.onResponse(ActionListenerImplementations.java:236)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.lambda$getRole$5(CompositeRolesStore.java:212)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$ResponseWrappingActionListener.onResponse(ActionListenerImplementations.java:236)\n\tat org.elasticsearch.xcore@8.10.0-SNAPSHOT/org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.lambda$buildRole$0(RoleReferenceIntersection.java:49)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$ResponseWrappingActionListener.onResponse(ActionListenerImplementations.java:236)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.GroupedActionListener.onResponse(GroupedActionListener.java:56)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.buildRoleFromRoleReference(CompositeRolesStore.java:292)\n\tat org.elasticsearch.xcore@8.10.0-SNAPSHOT/org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.lambda$buildRole$1(RoleReferenceIntersection.java:53)\n\tat java.base/java.lang.Iterable.forEach(Iterable.java:75)\n\tat org.elasticsearch.xcore@8.10.0-SNAPSHOT/org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.buildRole(RoleReferenceIntersection.java:53)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.getRole(CompositeRolesStore.java:210)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.getRoles(CompositeRolesStore.java:187)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.RBACEngine.resolveAuthorizationInfo(RBACEngine.java:146)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authz.AuthorizationService.authorize(AuthorizationService.java:338)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$applyInternal$4(SecurityActionFilter.java:159)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$ResponseWrappingActionListener.onResponse(ActionListenerImplementations.java:236)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$MappedActionListener.onResponse(ActionListenerImplementations.java:95)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authc.AuthenticatorChain.authenticateAsync(AuthenticatorChain.java:94)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:261)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:171)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.applyInternal(SecurityActionFilter.java:155)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.apply(SecurityActionFilter.java:114)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:84)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:61)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.tasks.TaskManager.registerAndExecute(TaskManager.java:199)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.client.internal.node.NodeClient.executeLocally(NodeClient.java:113)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.client.internal.node.NodeClient.doExecute(NodeClient.java:91)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.client.internal.support.AbstractClient.execute(AbstractClient.java:379)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.rest.action.admin.indices.RestGetComposableIndexTemplateAction.lambda$prepareRequest$0(RestGetComposableIndexTemplateAction.java:59)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:103)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.rest.SecurityRestFilter.doHandleRequest(SecurityRestFilter.java:107)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.rest.SecurityRestFilter.lambda$handleRequest$0(SecurityRestFilter.java:98)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:177)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authc.support.SecondaryAuthenticator.lambda$authenticateAndAttachToContext$3(SecondaryAuthenticator.java:99)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$ResponseWrappingActionListener.onResponse(ActionListenerImplementations.java:236)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authc.support.SecondaryAuthenticator.authenticate(SecondaryAuthenticator.java:109)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.authc.support.SecondaryAuthenticator.authenticateAndAttachToContext(SecondaryAuthenticator.java:90)\n\tat org.elasticsearch.security@8.10.0-SNAPSHOT/org.elasticsearch.xpack.security.rest.SecurityRestFilter.handleRequest(SecurityRestFilter.java:93)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:415)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.rest.RestController.tryAllHandlers(RestController.java:544)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:317)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:453)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.http.AbstractHttpServerTransport.handleIncomingRequest(AbstractHttpServerTransport.java:549)\n\tat org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.http.AbstractHttpServerTransport.incomingRequest(AbstractHttpServerTransport.java:426)\n\tat org.elasticsearch.transport.netty4@8.10.0-SNAPSHOT/org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.handlePipelinedRequest(Netty4HttpPipeliningHandler.java:128)\n\tat org.elasticsearch.transport.netty4@8.10.0-SNAPSHOT/org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.channelRead(Netty4HttpPipeliningHandler.java:118)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat org.elasticsearch.transport.netty4@8.10.0-SNAPSHOT/org.elasticsearch.http.netty4.Netty4HttpHeaderValidator.forwardData(Netty4HttpHeaderValidator.java:194)\n\tat org.elasticsearch.transport.netty4@8.10.0-SNAPSHOT/org.elasticsearch.http.netty4.Netty4HttpHeaderVal...
``` | https://github.com/elastic/elasticsearch/issues/98163 | https://github.com/elastic/elasticsearch/pull/99978 | 0ef8232da92adf513ad2542c7fad1791d10712a3 | d106fece41feb58c5f224c9eb52ec90f2de7755a | "2023-08-03T09:24:43Z" | java | "2023-09-28T08:45:51Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 98,142 | ["x-pack/plugin/security/build.gradle"] | [CI] DataStreamLifecycleServiceRuntimeSecurityIT testRolloverAndRetentionAuthorized failing | The security module needs to require the dlm feature flag
**Build scan:**
https://gradle-enterprise.elastic.co/s/7t4tdv3la7ig6/tests/:x-pack:plugin:security:internalClusterTest/org.elasticsearch.integration.DataStreamLifecycleServiceRuntimeSecurityIT/testRolloverAndRetentionAuthorized
**Reproduction line:**
```
./gradlew ':x-pack:plugin:security:internalClusterTest' --tests "org.elasticsearch.integration.DataStreamLifecycleServiceRuntimeSecurityIT.testRolloverAndRetentionAuthorized" -Dtests.seed=B20A82B8968A1C1A -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=pl-PL -Dtests.timezone=Europe/Bratislava -Druntime.java=20
```
**Applicable branches:**
8.9, main
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.integration.DataStreamLifecycleServiceRuntimeSecurityIT&tests.test=testRolloverAndRetentionAuthorized
**Failure excerpt:**
```
java.lang.IllegalArgumentException: unknown setting [data_streams.lifecycle.poll_interval] did you mean [indices.lifecycle.poll_interval]?
at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:575)
at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:521)
at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:491)
at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:461)
at org.elasticsearch.common.settings.SettingsModule.<init>(SettingsModule.java:150)
at org.elasticsearch.common.settings.SettingsModule.<init>(SettingsModule.java:55)
at org.elasticsearch.node.Node.<init>(Node.java:484)
at org.elasticsearch.node.MockNode.<init>(MockNode.java:106)
at org.elasticsearch.node.MockNode.<init>(MockNode.java:89)
at org.elasticsearch.test.InternalTestCluster.buildNode(InternalTestCluster.java:768)
at org.elasticsearch.test.InternalTestCluster.reset(InternalTestCluster.java:1190)
at org.elasticsearch.test.InternalTestCluster.beforeTest(InternalTestCluster.java:1087)
at org.elasticsearch.test.ESIntegTestCase.lambda$beforeInternal$0(ESIntegTestCase.java:365)
at com.carrotsearch.randomizedtesting.RandomizedContext.runWithPrivateRandomness(RandomizedContext.java:187)
at com.carrotsearch.randomizedtesting.RandomizedContext.runWithPrivateRandomness(RandomizedContext.java:211)
at org.elasticsearch.test.ESIntegTestCase.beforeInternal(ESIntegTestCase.java:374)
at org.elasticsearch.test.ESIntegTestCase.setupTestCluster(ESIntegTestCase.java:2265)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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 org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/98142 | https://github.com/elastic/elasticsearch/pull/98143 | efc0cb542211f7daf0fec987cde31efd75e5c481 | c297086eb6d05abc62aa05537c94eb1ddf2b7c13 | "2023-08-02T14:46:45Z" | java | "2023-08-03T08:44:53Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 98,122 | ["x-pack/plugin/ml-package-loader/src/main/java/org/elasticsearch/xpack/ml/packageloader/action/TransportLoadTrainedModelPackage.java"] | ML Model import fails when APM is enabled | ### Elasticsearch Version
8.10 SNAPSHOT
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
Darwin Kernel Version 22.6.0: root:xnu-8796.141.3~6/RELEASE_ARM64_T6000 arm64
### Problem Description
When APM is enabled, importing a model (e.g. via /_ml/trained_models/.elser_model_1) fails to complete. The model is stuck in a "downloading" state (per the UI), and the task runs indefinitely.
### Steps to Reproduce
The error is surfaced to the user on the first request as follows:
```
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "value for key [apm.local.context] already present"
}
],
"type": "illegal_argument_exception",
"reason": "value for key [apm.local.context] already present"
},
"status": 400
}
```
Following invocations to the API return the model as if it was installed, but it never completes the import.
### Logs (if relevant)
<details>
<summary>Logs</summary>
```
│ info [o.e.c.m.MetadataCreateIndexService] [Darios-MacBook-Pro-2.local] [.ml-inference-000005] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
│ info [o.e.c.r.a.AllocationService] [Darios-MacBook-Pro-2.local] updating number_of_replicas to [0] for indices [.ml-inference-000005]
│ info [o.e.i.m.MapperService] [Darios-MacBook-Pro-2.local] [.ml-inference-000005] reloading search analyzers
│ info [o.e.c.m.MetadataCreateIndexService] [Darios-MacBook-Pro-2.local] [.ml-annotations-000001] creating index, cause [api], templates [], shards [1]/[1]
│ info [o.e.c.r.a.AllocationService] [Darios-MacBook-Pro-2.local] updating number_of_replicas to [0] for indices [.ml-annotations-000001]
│ info [o.e.i.m.MapperService] [Darios-MacBook-Pro-2.local] [.ml-annotations-000001] reloading search analyzers
│ info [o.e.r.AbstractRestChannel] [Darios-MacBook-Pro-2.local] channel handling [/_ml/trained_models/.elser_model_1] reused
│ info [r.suppressed] [Darios-MacBook-Pro-2.local] path: /_ml/trained_models/.elser_model_1, params: {model_id=.elser_model_1} java.lang.IllegalStateException: Channel is already closed
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.rest.RestController$ResourceHandlingHttpChannel.close(RestController.java:775)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.rest.RestController$ResourceHandlingHttpChannel.sendResponse(RestController.java:762)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.rest.action.RestResponseListener.processResponse(RestResponseListener.java:26)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.rest.action.RestActionListener.onResponse(RestActionListener.java:38)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.client.internal.node.NodeClient$SafelyWrappedActionListener.onResponse(NodeClient.java:161)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.tasks.TaskManager$1.onResponse(TaskManager.java:205)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.tasks.TaskManager$1.onResponse(TaskManager.java:199)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:32)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$MappedActionListener.onResponse(ActionListenerImplementations.java:95)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$DelegatingResponseActionListener.onResponse(ActionListenerImplementations.java:182)
│ at org.elasticsearch.ml@8.10.0-SNAPSHOT/org.elasticsearch.xpack.ml.action.TransportPutTrainedModelAction.lambda$masterOperation$0(TransportPutTrainedModelAction.java:248)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:177)
│ at org.elasticsearch.ml@8.10.0-SNAPSHOT/org.elasticsearch.xpack.ml.action.TransportPutTrainedModelAction.triggerModelFetchIfNecessary(TransportPutTrainedModelAction.java:401)
│ at org.elasticsearch.ml@8.10.0-SNAPSHOT/org.elasticsearch.xpack.ml.action.TransportPutTrainedModelAction.lambda$masterOperation$1(TransportPutTrainedModelAction.java:243)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:177)
│ at org.elasticsearch.ml@8.10.0-SNAPSHOT/org.elasticsearch.xpack.ml.inference.persistence.TrainedModelProvider.lambda$storeTrainedModelConfig$0(TrainedModelProvider.java:211)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:177)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:32)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.client.internal.node.NodeClient$SafelyWrappedActionListener.onResponse(NodeClient.java:161)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.tasks.TaskManager$1.onResponse(TaskManager.java:205)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.tasks.TaskManager$1.onResponse(TaskManager.java:199)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:32)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$MappedActionListener.onResponse(ActionListenerImplementations.java:95)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.bulk.TransportBulkAction.lambda$unwrappingSingleItemBulkResponse$0(TransportBulkAction.java:184)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$ResponseWrappingActionListener.onResponse(ActionListenerImplementations.java:236)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:32)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$MappedActionListener.onResponse(ActionListenerImplementations.java:95)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$RunBeforeActionListener.onResponse(ActionListenerImplementations.java:298)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.bulk.TransportBulkAction$BulkOperation$1.finishHim(TransportBulkAction.java:630)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.bulk.TransportBulkAction$BulkOperation$1.onResponse(TransportBulkAction.java:611)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.bulk.TransportBulkAction$BulkOperation$1.onResponse(TransportBulkAction.java:600)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.client.internal.node.NodeClient$SafelyWrappedActionListener.onResponse(NodeClient.java:161)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.tasks.TaskManager$1.onResponse(TaskManager.java:205)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.tasks.TaskManager$1.onResponse(TaskManager.java:199)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:32)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$MappedActionListener.onResponse(ActionListenerImplementations.java:95)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase.finishOnSuccess(TransportReplicationAction.java:1041)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase$1.handleResponse(TransportReplicationAction.java:953)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase$1.handleResponse(TransportReplicationAction.java:944)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleResponse(TransportService.java:1411)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.transport.TransportService$DirectResponseChannel.processResponse(TransportService.java:1510)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1481)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:42)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.ChannelActionListener.lambda$onResponse$0(ChannelActionListener.java:31)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListener.run(ActionListener.java:368)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.ChannelActionListener.onResponse(ChannelActionListener.java:31)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.ChannelActionListener.onResponse(ChannelActionListener.java:19)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$RunBeforeActionListener.onResponse(ActionListenerImplementations.java:298)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.TransportReplicationAction$AsyncPrimaryAction.lambda$runWithPrimaryShardReference$3(TransportReplicationAction.java:489)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:177)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$MappedActionListener.onResponse(ActionListenerImplementations.java:95)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.ReplicationOperation.finish(ReplicationO
│ info peration.java:474)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.ReplicationOperation.decPendingAndFinishIfNeeded(ReplicationOperation.java:460)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.ReplicationOperation$1.lambda$onResponse$0(ReplicationOperation.java:182)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.ReplicationOperation.updateCheckPoints(ReplicationOperation.java:361)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.ReplicationOperation$1.onResponse(ReplicationOperation.java:178)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.ReplicationOperation$1.onResponse(ReplicationOperation.java:173)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.TransportWriteAction$WritePrimaryResult$1.onSuccess(TransportWriteAction.java:311)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.TransportWriteAction$AsyncAfterWriteAction.maybeFinish(TransportWriteAction.java:468)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.TransportWriteAction$AsyncAfterWriteAction.lambda$run$0(TransportWriteAction.java:520)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.AsyncIOProcessor.notifyList(AsyncIOProcessor.java:111)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.AsyncIOProcessor.drainAndProcessAndRelease(AsyncIOProcessor.java:89)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.AsyncIOProcessor.put(AsyncIOProcessor.java:73)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.index.engine.InternalEngine.asyncEnsureTranslogSynced(InternalEngine.java:667)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.index.shard.IndexShard.syncAfterWrite(IndexShard.java:3665)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.TransportWriteAction$AsyncAfterWriteAction.run(TransportWriteAction.java:518)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.TransportWriteAction$WritePrimaryResult.runPostReplicationActions(TransportWriteAction.java:318)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.ReplicationOperation.handlePrimaryResult(ReplicationOperation.java:173)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:177)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListener.completeWith(ActionListener.java:305)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.bulk.TransportShardBulkAction$2.finishRequest(TransportShardBulkAction.java:273)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.bulk.TransportShardBulkAction$2.doRun(TransportShardBulkAction.java:235)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.bulk.TransportShardBulkAction.performOnPrimary(TransportShardBulkAction.java:286)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.bulk.TransportShardBulkAction.dispatchedShardOperationOnPrimary(TransportShardBulkAction.java:137)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.bulk.TransportShardBulkAction.dispatchedShardOperationOnPrimary(TransportShardBulkAction.java:74)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.TransportWriteAction$1.doRun(TransportWriteAction.java:215)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:33)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
│ at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
│ at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
│ at java.base/java.lang.Thread.run(Thread.java:1623)
│ info [o.e.r.a.RestResponseListener] [Darios-MacBook-Pro-2.local] failed to send failure response java.lang.IllegalStateException: Channel is already closed
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.rest.RestController$ResourceHandlingHttpChannel.close(RestController.java:775)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.rest.RestController$ResourceHandlingHttpChannel.sendResponse(RestController.java:762)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.rest.action.RestActionListener.onFailure(RestActionListener.java:55)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.rest.action.RestActionListener.onResponse(RestActionListener.java:40)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.client.internal.node.NodeClient$SafelyWrappedActionListener.onResponse(NodeClient.java:161)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.tasks.TaskManager$1.onResponse(TaskManager.java:205)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.tasks.TaskManager$1.onResponse(TaskManager.java:199)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:32)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$MappedActionListener.onResponse(ActionListenerImplementations.java:95)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$DelegatingResponseActionListener.onResponse(ActionListenerImplementations.java:182)
│ at org.elasticsearch.ml@8.10.0-SNAPSHOT/org.elasticsearch.xpack.ml.action.TransportPutTrainedModelAction.lambda$masterOperation$0(TransportPutTrainedModelAction.java:248)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:177)
│ at org.elasticsearch.ml@8.10.0-SNAPSHOT/org.elasticsearch.xpack.ml.action.TransportPutTrainedModelAction.triggerModelFetchIfNecessary(TransportPutTrainedModelAction.java:401)
│ at org.elasticsearch.ml@8.10.0-SNAPSHOT/org.elasticsearch.xpack.ml.action.TransportPutTrainedModelAction.lambda$masterOperation$1(TransportPutTrainedModelAction.java:243)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:177)
│ at org.elasticsearch.ml@8.10.0-SNAPSHOT/org.elasticsearch.xpack.ml.inference.persistence.TrainedModelProvider.lambda$storeTrainedModelConfig$0(TrainedModelProvider.java:211)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:177)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:32)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.client.internal.node.NodeClient$SafelyWrappedActionListener.onResponse(NodeClient.java:161)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.tasks.TaskManager$1.onResponse(TaskManager.java:205)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.tasks.TaskManager$1.onResponse(TaskManager.java:199)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:32)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$MappedActionListener.onResponse(ActionListenerImplementations.java:95)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.bulk.TransportBulkAction.lambda$unwrappingSingleItemBulkResponse$0(TransportBulkAction.java:184)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$ResponseWrappingActionListener.onResponse(ActionListenerImplementations.java:236)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:32)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$MappedActionListener.onResponse(ActionListenerImplementations.java:95)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$RunBeforeActionListener.onResponse(ActionListenerImplementations.java:298)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.bulk.TransportBulkAction$BulkOperation$1.finishHim(TransportBulkAction.java:630)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.bulk.TransportBulkAction$BulkOperation$1.onResponse(TransportBulkAction.java:611)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.bulk.TransportBulkAction$BulkOperation$1.onResponse(TransportBulkAction.java:600)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.client.internal.node.NodeClient$SafelyWrappedActionListener.onResponse(NodeClient.java:161)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.tasks.TaskManager$1.onResponse(TaskManager.java:205)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.tasks.TaskManager$1.onResponse(TaskManager.java:199)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:32)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$MappedActionListener.onResponse(ActionListenerImplementations.java:95)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase.finishOnSuccess(TransportReplicationAction.java:1041)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase$1.handleResponse(TransportReplicationAction.java:953)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase$1.handleResponse(TransportReplicationAction.java:944)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleResponse(TransportService.java:1411)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.transport.TransportService$DirectResponseChannel.processResponse(TransportService.java:1510)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1481)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:42)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.ChannelActionListener.lambda$onResponse$0(ChannelActionListener.java:31)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListener.run(ActionListener.java:368)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.ChannelActionListener.onResponse(ChannelActionListener.java:31)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.ChannelActionListener.onResponse(ChannelActionListener.java:19)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$RunBeforeActionListener.onResponse(ActionListenerImplementations.java:298)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.TransportReplicationAction$AsyncPrimaryAction.lambda$runWithPrimaryShardReference$3(TransportReplicationAction.java:489)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:177)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListenerImplementations$MappedActionListener.onResponse(ActionListenerImplementations.java:95)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.ReplicationOperation.finish(ReplicationOperation.java:474)
│ at org.elasticsearch.server@8.1
│ info 0.0-SNAPSHOT/org.elasticsearch.action.support.replication.ReplicationOperation.decPendingAndFinishIfNeeded(ReplicationOperation.java:460)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.ReplicationOperation$1.lambda$onResponse$0(ReplicationOperation.java:182)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.ReplicationOperation.updateCheckPoints(ReplicationOperation.java:361)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.ReplicationOperation$1.onResponse(ReplicationOperation.java:178)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.ReplicationOperation$1.onResponse(ReplicationOperation.java:173)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.TransportWriteAction$WritePrimaryResult$1.onSuccess(TransportWriteAction.java:311)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.TransportWriteAction$AsyncAfterWriteAction.maybeFinish(TransportWriteAction.java:468)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.TransportWriteAction$AsyncAfterWriteAction.lambda$run$0(TransportWriteAction.java:520)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.AsyncIOProcessor.notifyList(AsyncIOProcessor.java:111)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.AsyncIOProcessor.drainAndProcessAndRelease(AsyncIOProcessor.java:89)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.AsyncIOProcessor.put(AsyncIOProcessor.java:73)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.index.engine.InternalEngine.asyncEnsureTranslogSynced(InternalEngine.java:667)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.index.shard.IndexShard.syncAfterWrite(IndexShard.java:3665)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.TransportWriteAction$AsyncAfterWriteAction.run(TransportWriteAction.java:518)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.TransportWriteAction$WritePrimaryResult.runPostReplicationActions(TransportWriteAction.java:318)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.ReplicationOperation.handlePrimaryResult(ReplicationOperation.java:173)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:177)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.ActionListener.completeWith(ActionListener.java:305)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.bulk.TransportShardBulkAction$2.finishRequest(TransportShardBulkAction.java:273)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.bulk.TransportShardBulkAction$2.doRun(TransportShardBulkAction.java:235)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.bulk.TransportShardBulkAction.performOnPrimary(TransportShardBulkAction.java:286)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.bulk.TransportShardBulkAction.dispatchedShardOperationOnPrimary(TransportShardBulkAction.java:137)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.bulk.TransportShardBulkAction.dispatchedShardOperationOnPrimary(TransportShardBulkAction.java:74)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.action.support.replication.TransportWriteAction$1.doRun(TransportWriteAction.java:215)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:33)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
│ at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
│ at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
│ at java.base/java.lang.Thread.run(Thread.java:1623)
│ Suppressed: java.lang.IllegalStateException: Channel is already closed
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.rest.RestController$ResourceHandlingHttpChannel.close(RestController.java:775)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.rest.RestController$ResourceHandlingHttpChannel.sendResponse(RestController.java:762)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.rest.action.RestResponseListener.processResponse(RestResponseListener.java:26)
│ at org.elasticsearch.server@8.10.0-SNAPSHOT/org.elasticsearch.rest.action.RestActionListener.onResponse(RestActionListener.java:38)
│ ... 80 more
```
</details> | https://github.com/elastic/elasticsearch/issues/98122 | https://github.com/elastic/elasticsearch/pull/98140 | 5ba98c569e0b6b636496ab4602c305d497d9ebc5 | d2d24cdb7a84bf99a84f2edb90270c2703a82366 | "2023-08-02T07:11:28Z" | java | "2023-08-02T15:09:31Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 98,057 | ["server/src/test/java/org/elasticsearch/action/admin/cluster/configuration/TransportAddVotingConfigExclusionsActionTests.java", "server/src/test/java/org/elasticsearch/action/admin/cluster/configuration/TransportClearVotingConfigExclusionsActionTests.java"] | Clean up Transport*VotingConfigExclusionsActionTests | These tests are ok but could be modernised a bit
- use `safeAwait` instead of awaiting the latch directly
- move assertions into handler, avoiding the need for `responseHolder`
- would it be better to use an `ActionListenerResponseHandler` rather than a raw `TransportResponseHandler`? | https://github.com/elastic/elasticsearch/issues/98057 | https://github.com/elastic/elasticsearch/pull/98146 | 174ea9645c5b121f399079676feec7b09af42b9b | 29059e68c0cd45d64ae649183b2fa388438e2c8c | "2023-07-31T11:30:14Z" | java | "2023-08-06T10:36:36Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 98,050 | ["x-pack/plugin/build.gradle"] | [CI] XPackRestIT test {p0=dlm/10_usage/Test data stream lifecycle usage stats} failing | Unable to reproduce locally. Getting:
```
* What went wrong:
Could not determine the dependencies of task ':x-pack:plugin:yamlRestTest'.
> Could not resolve all dependencies for configuration ':x-pack:plugin:yamlRestTestRuntimeClasspath'.
> Could not create task ':x-pack:plugin:core:processResources'.
> Property license.key must be set for release build
```
**Build scan:**
https://gradle-enterprise.elastic.co/s/acudzmu2x5doc/tests/:x-pack:plugin:yamlRestTest/org.elasticsearch.xpack.test.rest.XPackRestIT/test%20%7Bp0=dlm%2F10_usage%2FTest%20data%20stream%20lifecycle%20usage%20stats%7D
**Reproduction line:**
```
./gradlew ':x-pack:plugin:yamlRestTest' --tests "org.elasticsearch.xpack.test.rest.XPackRestIT.test {p0=dlm/10_usage/Test data stream lifecycle usage stats}" -Dtests.seed=4AC84FE06ACCAA3E -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=es -Dtests.timezone=Asia/Qatar -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.test.rest.XPackRestIT&tests.test=test%20%7Bp0%3Ddlm/10_usage/Test%20data%20stream%20lifecycle%20usage%20stats%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [dlm/10_usage:12]:
Expected: <true>
but: was <false>
at __randomizedtesting.SeedInfo.seed([4AC84FE06ACCAA3E:C29C703AC430C7C6]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:571)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:523)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.AssertionError:
Expected: <true>
but: was <false>
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:551)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:523)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/98050 | https://github.com/elastic/elasticsearch/pull/98133 | 5ed31c3109945c29b4dc3056b494b239b00138b2 | 42840e02764318e490e24347dad97328db066194 | "2023-07-31T08:07:45Z" | java | "2023-08-02T15:58:05Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 98,049 | ["x-pack/docs/en/rest-api/security/get-builtin-privileges.asciidoc"] | [CI] XDocsClientYamlTestSuiteIT test {yaml=en/rest-api/security/get-builtin-privileges/line_55} failing | Failed 16 times in the past 7 days.
If I tried the reproduction line I am getting the following error:
```
* What went wrong:
Could not determine the dependencies of task ':x-pack:docs:yamlRestTest'.
> Could not resolve all dependencies for configuration ':x-pack:docs:yamlRestTestRuntimeClasspath'.
> Could not create task ':x-pack:plugin:core:processResources'.
> Property license.key must be set for release build
````
It may be related to #95210.
**Build scan:**
https://gradle-enterprise.elastic.co/s/acudzmu2x5doc/tests/:x-pack:docs:yamlRestTest/org.elasticsearch.smoketest.XDocsClientYamlTestSuiteIT/test%20%7Byaml=en%2Frest-api%2Fsecurity%2Fget-builtin-privileges%2Fline_55%7D
**Reproduction line:**
```
./gradlew ':x-pack:docs:yamlRestTest' --tests "org.elasticsearch.smoketest.XDocsClientYamlTestSuiteIT.test {yaml=en/rest-api/security/get-builtin-privileges/line_55}" -Dtests.seed=4AC84FE06ACCAA3E -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=zh-Hant-HK -Dtests.timezone=Asia/Atyrau -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.smoketest.XDocsClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Den/rest-api/security/get-builtin-privileges/line_55%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [en/rest-api/security/get-builtin-privileges:15]: Expected a map containing
cluster: a list containing
0: "all"
1: "cancel_task"
2: "create_snapshot"
3: "delegate_pki"
4: "grant_api_key"
5: "manage"
6: "manage_api_key"
7: "manage_autoscaling"
8: "manage_behavioral_analytics"
9: "manage_ccr"
10: "manage_data_frame_transforms"
11: "manage_enrich"
12: "manage_ilm"
13: "manage_index_templates"
14: "manage_ingest_pipelines"
15: "manage_logstash_pipelines"
16: "manage_ml"
17: "manage_oidc"
18: "manage_own_api_key"
19: "manage_pipeline"
20: "manage_rollup"
21: "manage_saml"
22: "manage_search_application"
23: expected "manage_query_rules" but was "manage_search_query_rules"
24: expected "manage_security" but was "manage_search_synonyms"
25: expected "manage_service_account" but was "manage_security"
26: expected "manage_slm" but was "manage_service_account"
27: expected "manage_token" but was "manage_slm"
28: expected "manage_transform" but was "manage_token"
29: expected "manage_user_profile" but was "manage_transform"
30: expected "manage_watcher" but was "manage_user_profile"
31: expected "monitor" but was "manage_watcher"
32: expected "monitor_data_frame_transforms" but was "monitor"
33: expected "monitor_ml" but was "monitor_data_frame_transforms"
34: expected "monitor_rollup" but was "monitor_ml"
35: expected "monitor_snapshot" but was "monitor_rollup"
36: expected "monitor_text_structure" but was "monitor_snapshot"
37: expected "monitor_transform" but was "monitor_text_structure"
38: expected "monitor_watcher" but was "monitor_transform"
39: expected "none" but was "monitor_watcher"
40: expected "post_behavioral_analytics_event" but was "none"
41: expected "read_ccr" but was "post_behavioral_analytics_event"
42: expected "read_ilm" but was "read_ccr"
43: expected "read_pipeline" but was "read_ilm"
44: expected "read_security" but was "read_pipeline"
45: expected "read_slm" but was "read_security"
46: expected "transport_client" but was "read_slm"
47: <unexpected> but was "transport_client"
index: a list containing
0: "all"
1: "auto_configure"
2: "create"
3: "create_doc"
4: "create_index"
5: "delete"
6: "delete_index"
7: "index"
8: "maintenance"
9: "manage"
10: "manage_follow_index"
11: "manage_ilm"
12: "manage_leader_index"
13: "monitor"
14: "none"
15: "read"
16: "read_cross_cluster"
17: "view_index_metadata"
18: "write"
at __randomizedtesting.SeedInfo.seed([4AC84FE06ACCAA3E:C29C703AC430C7C6]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:571)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:523)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.AssertionError: Expected a map containing
cluster: a list containing
0: "all"
1: "cancel_task"
2: "create_snapshot"
3: "delegate_pki"
4: "grant_api_key"
5: "manage"
6: "manage_api_key"
7: "manage_autoscaling"
8: "manage_behavioral_analytics"
9: "manage_ccr"
10: "manage_data_frame_transforms"
11: "manage_enrich"
12: "manage_ilm"
13: "manage_index_templates"
14: "manage_ingest_pipelines"
15: "manage_logstash_pipelines"
16: "manage_ml"
17: "manage_oidc"
18: "manage_own_api_key"
19: "manage_pipeline"
20: "manage_rollup"
21: "manage_saml"
22: "manage_search_application"
23: expected "manage_query_rules" but was "manage_search_query_rules"
24: expected "manage_security" but was "manage_search_synonyms"
25: expected "manage_service_account" but was "manage_security"
26: expected "manage_slm" but was "manage_service_account"
27: expected "manage_token" but was "manage_slm"
28: expected "manage_transform" but was "manage_token"
29: expected "manage_user_profile" but was "manage_transform"
30: expected "manage_watcher" but was "manage_user_profile"
31: expected "monitor" but was "manage_watcher"
32: expected "monitor_data_frame_transforms" but was "monitor"
33: expected "monitor_ml" but was "monitor_data_frame_transforms"
34: expected "monitor_rollup" but was "monitor_ml"
35: expected "monitor_snapshot" but was "monitor_rollup"
36: expected "monitor_text_structure" but was "monitor_snapshot"
37: expected "monitor_transform" but was "monitor_text_structure"
38: expected "monitor_watcher" but was "monitor_transform"
39: expected "none" but was "monitor_watcher"
40: expected "post_behavioral_analytics_event" but was "none"
41: expected "read_ccr" but was "post_behavioral_analytics_event"
42: expected "read_ilm" but was "read_ccr"
43: expected "read_pipeline" but was "read_ilm"
44: expected "read_security" but was "read_pipeline"
45: expected "read_slm" but was "read_security"
46: expected "transport_client" but was "read_slm"
47: <unexpected> but was "transport_client"
index: a list containing
0: "all"
1: "auto_configure"
2: "create"
3: "create_doc"
4: "create_index"
5: "delete"
6: "delete_index"
7: "index"
8: "maintenance"
9: "manage"
10: "manage_follow_index"
11: "manage_ilm"
12: "manage_leader_index"
13: "monitor"
14: "none"
15: "read"
16: "read_cross_cluster"
17: "view_index_metadata"
18: "write"
at org.elasticsearch.test.MapMatcher.assertMap(MapMatcher.java:82)
at org.elasticsearch.test.MapMatcher.assertMap(MapMatcher.java:65)
at org.elasticsearch.test.rest.yaml.section.MatchAssertion.doAssert(MatchAssertion.java:94)
at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:551)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:523)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/98049 | https://github.com/elastic/elasticsearch/pull/98203 | c26f88d66b60a8016e98b9b7ba7bae6c7c852213 | ad2b68c81568788a80b1e807d1aa873797e9ffee | "2023-07-31T07:52:40Z" | java | "2023-08-04T13:26:23Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 98,019 | ["docs/changelog/98038.yaml", "server/src/main/java/org/elasticsearch/index/mapper/MapperService.java", "x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/EnrichPlugin.java", "x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/EnrichPolicyExecutor.java", "x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/EnrichPolicyRunner.java", "x-pack/plugin/enrich/src/test/java/org/elasticsearch/xpack/enrich/EnrichPolicyExecutorTests.java", "x-pack/plugin/enrich/src/test/java/org/elasticsearch/xpack/enrich/EnrichPolicyRunnerTests.java"] | Enrich policy execution fails when enrich fields contain mapping types without index parameter | As of 8.9.0, a bug was introduced to the enrich policy execution code that does not allow policy execution to complete successfully if an enrich policy's `enrich_fields` contains a reference to a field in the source index that is a type that does not support [disabling indexing](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-index.html). The most common example of this kind of bug is to reference an object field, which does not support the `index: false` mapping parameter:
```
// Index with object in it
PUT jamestest-enrich-object/_doc/1
{
"key": "1",
"info": {
"firstname": "James",
"lastname": "Baiera"
}
}
// An enrich index that references the object field in its enrich_fields property
PUT _enrich/policy/jamestest-enrich-object
{
"match": {
"indices": "jamestest-enrich-object",
"match_field": "key",
"enrich_fields": ["info"]
}
}
```
The policy will be created, but any attempts to execute the policy will be met with the following error message:
```
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "Mapping definition for [info] has unsupported parameters: [index : false]"
}
],
"type": "mapper_parsing_exception",
"reason": "Failed to parse mapping: Mapping definition for [info] has unsupported parameters: [index : false]",
"caused_by": {
"type": "mapper_parsing_exception",
"reason": "Mapping definition for [info] has unsupported parameters: [index : false]"
}
},
"status": 400
}
```
This occurs for fields other than `object` type fields. Any fields from a source index that do not support the `index` parameter such as `binary` or `histogram` will not complete the enrich execution as described above.
This bug seems to have been introduced in 8.9.0 via https://github.com/elastic/elasticsearch/pull/96056.
Workarounds:
A work around for this issue when working with object fields is to update enrich policies to reference each desired field from an object by their full name. For instance, the above example with a firstname and lastname field would need to be referenced as such:
```
PUT _enrich/policy/jamestest-enrich-object-children
{
"match": {
"indices": "jamestest-enrich-object",
"match_field": "key",
"enrich_fields": ["info.firstname", "info.lastname"]
}
}
```
Unfortunately, no workaround exists for enrich policies that make use of fields like `binary` or `histogram` which do not support the [`index` mapping parameter](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-index.html). | https://github.com/elastic/elasticsearch/issues/98019 | https://github.com/elastic/elasticsearch/pull/98038 | 4cd7f4071281e7b4173aa6d474b885132c15297a | e3ec8f1d849d16fc628971c84bd9a0978d59827a | "2023-07-27T21:08:51Z" | java | "2023-08-28T17:10:06Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,998 | [".ci/packer_cache.ps1"] | Windows packaging tests - runbld failing to parse git commit messages | ### CI Link
https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+8.8+multijob+packaging-tests-windows/os=windows-2012-r2/412/console
### Repro line
n/a
### Does it reproduce?
Didn't try
### Applicable branches
8.8
### Failure history
https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+8.8+multijob+packaging-tests-windows/os=windows-2012-r2/
### Failure excerpt
```
runbld>>> Platform: windows
09:03:38 commit 85b40b7eb5b9f9905a70610545660d062daedf6f
09:03:38 tree 7a2dfc44bea3fd862535c6e4a15239f6eb9f0cda
09:03:38 parent 6186b18c2f4583c01f9d0d9aea607592131195ca
09:03:38 author Ryan Ernst <ryan@iernst.net> 1690308912 -0700
09:03:38 committer Ryan Ernst <ryan@iernst.net> 1690309455 -0700
09:03:38 gpgsig -----BEGIN SSH SIGNATURE-----
09:03:38 U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgp/BfveRrtVUWiRB5wn8/tegbGr
09:03:38 DscD3xPgUWJBV1oV8AAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5
09:03:38 AAAAQACS4OfJMk2Wu4fmPBm6EOJuaB/xkHwyjaQyWgIs3BOiCWT94R+YPPSrjFvVqRFIW7
09:03:38 kOQh+BHdIofsjRl1WU/AA=
09:03:38 -----END SSH SIGNATURE-----
09:03:38
09:03:38 Bump versions after 7.17.12 release
09:03:38
09:03:38 runbld>>> Sending debug log to infra-root+runbld-debug@e***.co
09:03:38 Exception in thread "main" clojure.lang.ExceptionInfo: throw+: {:res Parse error at line 6, column 8:
09:03:38 gpgsig -----BEGIN SSH SIGNATURE-----
09:03:38 ^
09:03:38 Expected:
09:03:38 "-----BEGIN PGP SIGNATURE-----"
09:03:38 , :commit "commit 85b40b7eb5b9f9905a70610545660d062daedf6f\ntree 7a2dfc44bea3fd862535c6e4a15239f6eb9f0cda\nparent 6186b18c2f4583c01f9d0d9aea607592131195ca\nauthor Ryan Ernst <ryan@iernst.net> 1690308912 -0700\ncommitter Ryan Ernst <ryan@iernst.net> 1690309455 -0700\ngpgsig -----BEGIN SSH SIGNATURE-----\n U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgp/BfveRrtVUWiRB5wn8/tegbGr\n DscD3xPgUWJBV1oV8AAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5\n AAAAQACS4OfJMk2Wu4fmPBm6EOJuaB/xkHwyjaQyWgIs3BOiCWT94R+YPPSrjFvVqRFIW7\n kOQh+BHdIofsjRl1WU/AA=\n -----END SSH SIGNATURE-----\n\n Bump versions after 7.17.12 release\n"} {:res Parse error at line 6, column 8:
09:03:38 gpgsig -----BEGIN SSH SIGNATURE-----
09:03:38 ^
09:03:38 Expected:
09:03:38 "-----BEGIN PGP SIGNATURE-----"
09:03:38 , :commit "commit 85b40b7eb5b9f9905a70610545660d062daedf6f\ntree 7a2dfc44bea3fd862535c6e4a15239f6eb9f0cda\nparent 6186b18c2f4583c01f9d0d9aea607592131195ca\nauthor Ryan Ernst <ryan@iernst.net> 1690308912 -0700\ncommitter Ryan Ernst <ryan@iernst.net> 1690309455 -0700\ngpgsig -----BEGIN SSH SIGNATURE-----\n U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgp/BfveRrtVUWiRB5wn8/tegbGr\n DscD3xPgUWJBV1oV8AAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5\n AAAAQACS4OfJMk2Wu4fmPBm6EOJuaB/xkHwyjaQyWgIs3BOiCWT94R+YPPSrjFvVqRFIW7\n kOQh+BHdIofsjRl1WU/AA=\n -----END SSH SIGNATURE-----\n\n Bump versions after 7.17.12 release\n"}
09:03:38 at slingshot.support$stack_trace.invoke(support.clj:201)
09:03:38 at runbld.util.debug$with_debug_logging.invokeStatic(debug.clj:93)
09:03:38 at runbld.util.debug$with_debug_logging.invoke(debug.clj:77)
09:03:38 at runbld.main$fn__13281$fn__13282.invoke(main.clj:73)
09:03:38 at runbld.main$fn__13274$fn__13275.invoke(main.clj:72)
09:03:38 at runbld.main$_main.invokeStatic(main.clj:106)
09:03:38 at runbld.main$_main.doInvoke(main.clj:95)
09:03:38 at clojure.lang.RestFn.applyTo(RestFn.java:137)
09:03:38 at runbld.main.main(Unknown Source)
09:03:38 Caused by: clojure.lang.ExceptionInfo: parse failure {:res Parse error at line 6, column 8:
09:03:38 gpgsig -----BEGIN SSH SIGNATURE-----
09:03:38 ^
09:03:38 Expected:
09:03:38 "-----BEGIN PGP SIGNATURE-----"
09:03:38 , :commit "commit 85b40b7eb5b9f9905a70610545660d062daedf6f\ntree 7a2dfc44bea3fd862535c6e4a15239f6eb9f0cda\nparent 6186b18c2f4583c01f9d0d9aea607592131195ca\nauthor Ryan Ernst <ryan@iernst.net> 1690308912 -0700\ncommitter Ryan Ernst <ryan@iernst.net> 1690309455 -0700\ngpgsig -----BEGIN SSH SIGNATURE-----\n U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgp/BfveRrtVUWiRB5wn8/tegbGr\n DscD3xPgUWJBV1oV8AAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5\n AAAAQACS4OfJMk2Wu4fmPBm6EOJuaB/xkHwyjaQyWgIs3BOiCWT94R+YPPSrjFvVqRFIW7\n kOQh+BHdIofsjRl1WU/AA=\n -----END SSH SIGNATURE-----\n\n Bump versions after 7.17.12 release\n"}
09:03:38 at clj_git.core$parse_raw_commit.invokeStatic(core.clj:180)
09:03:38 at clj_git.core$parse_raw_commit.invoke(core.clj:175)
09:03:38 at clj_git.core$git_log_commit.invokeStatic(core.clj:189)
09:03:38 at clj_git.core$git_log_commit.invoke(core.clj:184)
09:03:38 at runbld.vcs.git$head_commit.invokeStatic(git.clj:90)
09:03:38 at runbld.vcs.git$head_commit.invoke(git.clj:87)
09:03:38 at runbld.vcs.git$fn__7783$log_latest__7788$fn__7789.invoke(git.clj:135)
09:03:38 at runbld.vcs.git$fn__7783$log_latest__7788.invoke(git.clj:133)
09:03:38 at runbld.vcs$fn__6872$G__6859__6877.invoke(vcs.clj:3)
09:03:38 at runbld.vcs.middleware$fn__7937$add_vcs_info__7942$fn__7943.invoke(middleware.clj:48)
09:03:38 at runbld.vcs.middleware$fn__7937$add_vcs_info__7942.invoke(middleware.clj:41)
09:03:38 at runbld.main$fn__13343$fn__13344.invoke(main.clj:82)
09:03:38 at runbld.main$fn__13336$fn__13337.invoke(main.clj:81)
09:03:38 at runbld.main$fn__13329$fn__13330.invoke(main.clj:80)
09:03:38 at runbld.main$fn__13322$fn__13323.invoke(main.clj:79)
09:03:38 at runbld.main$fn__13315$fn__13316.invoke(main.clj:78)
09:03:38 at runbld.main$fn__13308$fn__13309.invoke(main.clj:77)
09:03:38 at runbld.main$fn__13301$fn__13302.invoke(main.clj:76)
09:03:38 at runbld.main$fn__13294$fn__13295.invoke(main.clj:75)
09:03:38 at runbld.main$fn__13287$fn__13288.invoke(main.clj:74)
09:03:38 at runbld.util.debug$with_debug_logging.invokeStatic(debug.clj:82)
09:03:38 ... 7 more
09:04:38
```
Has been failing for a couple of days now. | https://github.com/elastic/elasticsearch/issues/97998 | https://github.com/elastic/elasticsearch/pull/98887 | cd62bc84d70245e44de2f1939cc71ca7bc0c6b0f | 4c2d253b7f26d9e62dd7a4585489789a782e9d9d | "2023-07-27T08:31:06Z" | java | "2023-08-25T18:20:56Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,995 | ["docs/changelog/98259.yaml", "server/src/main/java/org/elasticsearch/TransportVersion.java", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/apikey/GetApiKeyRequest.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/action/apikey/GetApiKeyRequestTests.java", "x-pack/plugin/security/qa/security-trial/src/javaRestTest/java/org/elasticsearch/xpack/security/apikey/GetApiKeysRestIT.java", "x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/action/apikey/TransportGetApiKeyAction.java", "x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/ApiKeyService.java", "x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/rest/action/apikey/RestGetApiKeyAction.java", "x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/ApiKeyServiceTests.java"] | GET API Key API filter out expired and/or invalidated API keys | ### Description
The [Get API key information API](https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-get-api-key.html) can currently filter the returned keys by:
* key id/name
* keys owned by the calling user
* keys owned by other users, by `realm_name` and `username`
Irrespective of the filtering used, both invalidated and expired (but not yet deleted) keys will be included in the response.
In the response, keys have the `invalidated` boolean property, as well as the `expiration` property that contains the UNIX timestamp past of which the key is no longer valid for authentication.
I propose we introduce a way for the API to support retrieving:
* only valid API keys (not return invalidated keys) - using a boolean request parameter
* keys not expired before a certain timestamp - using a timestamp parameter that defaults to "now" - also note that keys' experiation date is always checked against the local node's clock | https://github.com/elastic/elasticsearch/issues/97995 | https://github.com/elastic/elasticsearch/pull/98259 | 11e62154f7ec1f69d820cd1adf4d2f881fbd39ac | edf47d29b6e8df11b1af9b3f4959f3bd4c64c2a9 | "2023-07-27T06:48:09Z" | java | "2023-08-09T09:59:27Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,953 | ["qa/mixed-cluster/build.gradle"] | [CI] MixedClusterClientYamlTestSuiteIT test {p0=indices.get_index_template/10_basic/Add data stream lifecycle} failing | This is BWC failure. Old nodes do not seem to understand `lifecycle` which causes a bunch of failures.
**Build scan:**
https://gradle-enterprise.elastic.co/s/jptzkwzdqsdoo/tests/:qa:mixed-cluster:v8.9.0%23mixedClusterTest/org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT/test%20%7Bp0=indices.get_index_template%2F10_basic%2FAdd%20data%20stream%20lifecycle%7D
**Reproduction line:**
```
./gradlew ':qa:mixed-cluster:v8.9.0#mixedClusterTest' -Dtests.class="org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT" -Dtests.method="test {p0=indices.get_index_template/10_basic/Add data stream lifecycle}" -Dtests.seed=F07902701D3B8650 -Dtests.bwc=true -Dtests.locale=ar-DZ -Dtests.timezone=Europe/Volgograd -Druntime.java=20
```
**Applicable branches:**
8.9
**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%3Dindices.get_index_template/10_basic/Add%20data%20stream%20lifecycle%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [indices.get_index_template/10_basic:114]: expected [2xx] status code but api [indices.put_index_template] returned [400 Bad Request] [{"error":{"root_cause":[{"type":"x_content_parse_exception","reason":"[1:14] [template] unknown field [lifecycle]","stack_trace":"org.elasticsearch.ElasticsearchException$1: [1:14] [template] unknown field [lifecycle]\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.ElasticsearchException.guessRootCauses(ElasticsearchException.java:667)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.ElasticsearchException.guessRootCauses(ElasticsearchException.java:663)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.ElasticsearchException.generateFailureXContent(ElasticsearchException.java:595)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestResponse.build(RestResponse.java:176)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestResponse.<init>(RestResponse.java:124)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestResponse.<init>(RestResponse.java:103)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:421)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestController.tryAllHandlers(RestController.java:548)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:314)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:419)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.http.AbstractHttpServerTransport.handleIncomingRequest(AbstractHttpServerTransport.java:517)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.http.AbstractHttpServerTransport.incomingRequest(AbstractHttpServerTransport.java:392)\n\tat org.elasticsearch.transport.netty4@8.9.0/org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.handlePipelinedRequest(Netty4HttpPipeliningHandler.java:128)\n\tat org.elasticsearch.transport.netty4@8.9.0/org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.channelRead(Netty4HttpPipeliningHandler.java:118)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:346)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:318)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:689)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:652)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)\n\tat io.netty.common@4.1.94.Final/io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)\n\tat io.netty.common@4.1.94.Final/io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\nCaused by: org.elasticsearch.xcontent.XContentParseException: [1:14] [template] unknown field [lifecycle]\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.lambda$errorOnUnknown$2(ObjectParser.java:105)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:299)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ConstructingObjectParser.parse(ConstructingObjectParser.java:166)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.lambda$declareField$10(ObjectParser.java:431)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:609)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:629)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:315)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ConstructingObjectParser.parse(ConstructingObjectParser.java:166)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.metadata.ComposableIndexTemplate.parse(ComposableIndexTemplate.java:104)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.action.admin.indices.RestPutComposableIndexTemplateAction.prepareRequest(RestPutComposableIndexTemplateAction.java:46)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:80)\n\tat org.elasticsearch.security@8.9.0/org.elasticsearch.xpack.security.rest.SecurityRestFilter.doHandleRequest(SecurityRestFilter.java:107)\n\tat org.elasticsearch.security@8.9.0/org.elasticsearch.xpack.security.rest.SecurityRestFilter.handleRequest(SecurityRestFilter.java:87)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:419)\n\t... 44 more\n"}],"type":"x_content_parse_exception","reason":"[1:26] [index_template] failed to parse field [template]","caused_by":{"type":"x_content_parse_exception","reason":"[1:14] [template] unknown field [lifecycle]","stack_trace":"org.elasticsearch.xcontent.XContentParseException: [1:14] [template] unknown field [lifecycle]\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.lambda$errorOnUnknown$2(ObjectParser.java:105)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:299)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ConstructingObjectParser.parse(ConstructingObjectParser.java:166)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.lambda$declareField$10(ObjectParser.java:431)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:609)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:629)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:315)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ConstructingObjectParser.parse(ConstructingObjectParser.java:166)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.metadata.ComposableIndexTemplate.parse(ComposableIndexTemplate.java:104)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.action.admin.indices.RestPutComposableIndexTemplateAction.prepareRequest(RestPutComposableIndexTemplateAction.java:46)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:80)\n\tat org.elasticsearch.security@8.9.0/org.elasticsearch.xpack.security.rest.SecurityRestFilter.doHandleRequest(SecurityRestFilter.java:107)\n\tat org.elasticsearch.security@8.9.0/org.elasticsearch.xpack.security.rest.SecurityRestFilter.handleRequest(SecurityRestFilter.java:87)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:419)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestController.tryAllHandlers(RestController.java:548)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:314)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:419)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.http.AbstractHttpServerTransport.handleIncomingRequest(AbstractHttpServerTransport.java:517)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.http.AbstractHttpServerTransport.incomingRequest(AbstractHttpServerTransport.java:392)\n\tat org.elasticsearch.transport.netty4@8.9.0/org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.handlePipelinedRequest(Netty4HttpPipeliningHandler.java:128)\n\tat org.elasticsearch.transport.netty4@8.9.0/org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.channelRead(Netty4HttpPipeliningHandler.java:118)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:346)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:318)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:689)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:652)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)\n\tat io.netty.common@4.1.94.Final/io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)\n\tat io.netty.common@4.1.94.Final/io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\n"},"stack_trace":"org.elasticsearch.xcontent.XContentParseException: [1:26] [index_template] failed to parse field [template]\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.throwFailedToParse(ObjectParser.java:616)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:611)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:629)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:315)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ConstructingObjectParser.parse(ConstructingObjectParser.java:166)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.metadata.ComposableIndexTemplate.parse(ComposableIndexTemplate.java:104)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.action.admin.indices.RestPutComposableIndexTemplateAction.prepareRequest(RestPutComposableIndexTemplateAction.java:46)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:80)\n\tat org.elasticsearch.security@8.9.0/org.elasticsearch.xpack.security.rest.SecurityRestFilter.doHandleRequest(SecurityRestFilter.java:107)\n\tat org.elasticsearch.security@8.9.0/org.elasticsearch.xpack.security.rest.SecurityRestFilter.handleRequest(SecurityRestFilter.java:87)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:419)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestController.tryAllHandlers(RestController.java:548)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:314)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:419)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.http.AbstractHttpServerTransport.handleIncomingRequest(AbstractHttpServerTransport.java:517)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.http.AbstractHttpServerTransport.incomingRequest(AbstractHttpServerTransport.java:392)\n\tat org.elasticsearch.transport.netty4@8.9.0/org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.handlePipelinedRequest(Netty4HttpPipeliningHandler.java:128)\n\tat org.elasticsearch.transport.netty4@8.9.0/org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.channelRead(Netty4HttpPipeliningHandler.java:118)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:346)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:318)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:689)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:652)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)\n\tat io.netty.common@4.1.94.Final/io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)\n\tat io.netty.common@4.1.94.Final/io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\nCaused by: org.elasticsearch.xcontent.XContentParseException: [1:14] [template] unknown field [lifecycle]\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.lambda$errorOnUnknown$2(ObjectParser.java:105)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:299)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ConstructingObjectParser.parse(ConstructingObjectParser.java:166)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.lambda$declareField$10(ObjectParser.java:431)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:609)\n\t... 53 more\n"},"status":400}]
at __randomizedtesting.SeedInfo.seed([F07902701D3B8650:782D3DAAB3C7EBA8]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:571)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:523)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.AssertionError: expected [2xx] status code but api [indices.put_index_template] returned [400 Bad Request] [{"error":{"root_cause":[{"type":"x_content_parse_exception","reason":"[1:14] [template] unknown field [lifecycle]","stack_trace":"org.elasticsearch.ElasticsearchException$1: [1:14] [template] unknown field [lifecycle]\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.ElasticsearchException.guessRootCauses(ElasticsearchException.java:667)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.ElasticsearchException.guessRootCauses(ElasticsearchException.java:663)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.ElasticsearchException.generateFailureXContent(ElasticsearchException.java:595)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestResponse.build(RestResponse.java:176)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestResponse.<init>(RestResponse.java:124)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestResponse.<init>(RestResponse.java:103)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:421)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestController.tryAllHandlers(RestController.java:548)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:314)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:419)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.http.AbstractHttpServerTransport.handleIncomingRequest(AbstractHttpServerTransport.java:517)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.http.AbstractHttpServerTransport.incomingRequest(AbstractHttpServerTransport.java:392)\n\tat org.elasticsearch.transport.netty4@8.9.0/org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.handlePipelinedRequest(Netty4HttpPipeliningHandler.java:128)\n\tat org.elasticsearch.transport.netty4@8.9.0/org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.channelRead(Netty4HttpPipeliningHandler.java:118)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:346)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:318)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:689)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:652)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)\n\tat io.netty.common@4.1.94.Final/io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)\n\tat io.netty.common@4.1.94.Final/io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\nCaused by: org.elasticsearch.xcontent.XContentParseException: [1:14] [template] unknown field [lifecycle]\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.lambda$errorOnUnknown$2(ObjectParser.java:105)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:299)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ConstructingObjectParser.parse(ConstructingObjectParser.java:166)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.lambda$declareField$10(ObjectParser.java:431)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:609)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:629)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:315)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ConstructingObjectParser.parse(ConstructingObjectParser.java:166)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.metadata.ComposableIndexTemplate.parse(ComposableIndexTemplate.java:104)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.action.admin.indices.RestPutComposableIndexTemplateAction.prepareRequest(RestPutComposableIndexTemplateAction.java:46)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:80)\n\tat org.elasticsearch.security@8.9.0/org.elasticsearch.xpack.security.rest.SecurityRestFilter.doHandleRequest(SecurityRestFilter.java:107)\n\tat org.elasticsearch.security@8.9.0/org.elasticsearch.xpack.security.rest.SecurityRestFilter.handleRequest(SecurityRestFilter.java:87)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:419)\n\t... 44 more\n"}],"type":"x_content_parse_exception","reason":"[1:26] [index_template] failed to parse field [template]","caused_by":{"type":"x_content_parse_exception","reason":"[1:14] [template] unknown field [lifecycle]","stack_trace":"org.elasticsearch.xcontent.XContentParseException: [1:14] [template] unknown field [lifecycle]\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.lambda$errorOnUnknown$2(ObjectParser.java:105)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:299)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ConstructingObjectParser.parse(ConstructingObjectParser.java:166)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.lambda$declareField$10(ObjectParser.java:431)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:609)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:629)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:315)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ConstructingObjectParser.parse(ConstructingObjectParser.java:166)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.metadata.ComposableIndexTemplate.parse(ComposableIndexTemplate.java:104)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.action.admin.indices.RestPutComposableIndexTemplateAction.prepareRequest(RestPutComposableIndexTemplateAction.java:46)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:80)\n\tat org.elasticsearch.security@8.9.0/org.elasticsearch.xpack.security.rest.SecurityRestFilter.doHandleRequest(SecurityRestFilter.java:107)\n\tat org.elasticsearch.security@8.9.0/org.elasticsearch.xpack.security.rest.SecurityRestFilter.handleRequest(SecurityRestFilter.java:87)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:419)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestController.tryAllHandlers(RestController.java:548)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:314)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:419)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.http.AbstractHttpServerTransport.handleIncomingRequest(AbstractHttpServerTransport.java:517)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.http.AbstractHttpServerTransport.incomingRequest(AbstractHttpServerTransport.java:392)\n\tat org.elasticsearch.transport.netty4@8.9.0/org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.handlePipelinedRequest(Netty4HttpPipeliningHandler.java:128)\n\tat org.elasticsearch.transport.netty4@8.9.0/org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.channelRead(Netty4HttpPipeliningHandler.java:118)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:346)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:318)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:689)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:652)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)\n\tat io.netty.common@4.1.94.Final/io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)\n\tat io.netty.common@4.1.94.Final/io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\n"},"stack_trace":"org.elasticsearch.xcontent.XContentParseException: [1:26] [index_template] failed to parse field [template]\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.throwFailedToParse(ObjectParser.java:616)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:611)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:629)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:315)\n\tat org.elasticsearch.xcontent@8.9.0/org.elasticsearch.xcontent.ConstructingObjectParser.parse(ConstructingObjectParser.java:166)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.metadata.ComposableIndexTemplate.parse(ComposableIndexTemplate.java:104)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.action.admin.indices.RestPutComposableIndexTemplateAction.prepareRequest(RestPutComposableIndexTemplateAction.java:46)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:80)\n\tat org.elasticsearch.security@8.9.0/org.elasticsearch.xpack.security.rest.SecurityRestFilter.doHandleRequest(SecurityRestFilter.java:107)\n\tat org.elasticsearch.security@8.9.0/org.elasticsearch.xpack.security.rest.SecurityRestFilter.handleRequest(SecurityRestFilter.java:87)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:419)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestController.tryAllHandlers(RestController.java:548)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:314)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:419)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.http.AbstractHttpServerTransport.handleIncomingRequest(AbstractHttpServerTransport.java:517)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.http.AbstractHttpServerTransport.incomingRequest(AbstractHttpServerTransport.java:392)\n\tat org.elasticsearch.transport.netty4@8.9.0/org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.handlePipelinedRequest(Netty4HttpPipeliningHandler.java:128)\n\tat org.elasticsearch.transport.netty4@8.9.0/org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.channelRead(Netty4HttpPipeliningHandler.java:118)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.codec@4.1.94.Final/...
``` | https://github.com/elastic/elasticsearch/issues/97953 | https://github.com/elastic/elasticsearch/pull/98022 | b9f05cb1aa6db52ab0503fcf89cd835fbea5deae | 49ad2d53658c7db816d982a18060f5ade1b40db8 | "2023-07-26T05:42:42Z" | java | "2023-07-28T08:40:21Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,917 | ["docs/changelog/98167.yaml", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/nlp/QuestionAnsweringProcessor.java", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/nlp/tokenizers/TokenizationResult.java", "x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/inference/nlp/QuestionAnsweringProcessorTests.java"] | [ML] Error using long context with Question Answering | ### Elasticsearch Version
8.9.0
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
any
### Problem Description
If the context text supplied to the Question Answering task is longer than the model's `max_sequence_length` and `truncate` is set to `none` then inference on the model fails with the message:
```
status_exception: question answering result has invalid dimension, expected 2 found [6]
```
<img width="1438" alt="Screenshot 2023-07-25 at 08 21 37" src="https://github.com/elastic/elasticsearch/assets/2353640/12d296f6-03b2-4cda-89ce-7399348c4104">
### Steps to Reproduce
Use long input text to the question answering task
### Work Aroundf
The fix is to truncate the context which unfortunately may remove the part of the document containing the answer. For reference the call is documented here
```
POST _ml/trained_models/distilbert-base-cased-distilled-squad/deployment/_infer
{
"docs":[{ "text_field": "question answering context"}],
"inference_config": {
"question_answering": {
"question": "The question to ask",
"tokenization": {
"bert": {
"truncate": "second",
"span": -1
}
}
}
}
}
````
| https://github.com/elastic/elasticsearch/issues/97917 | https://github.com/elastic/elasticsearch/pull/98167 | 076ff6c64bfaba4f2b3f17eca972063208ab4de6 | 51f1a989ccb7d61e1c99b625d6e0940ed9fbb13f | "2023-07-25T07:22:33Z" | java | "2023-08-07T13:03:06Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,914 | ["docs/changelog/97920.yaml", "server/src/main/java/org/elasticsearch/action/admin/indices/forcemerge/TransportForceMergeAction.java", "server/src/main/java/org/elasticsearch/action/admin/indices/stats/ShardStats.java", "server/src/main/java/org/elasticsearch/action/admin/indices/stats/TransportFieldUsageAction.java", "server/src/main/java/org/elasticsearch/action/support/broadcast/node/TransportBroadcastByNodeAction.java", "server/src/test/java/org/elasticsearch/action/support/broadcast/node/TransportBroadcastByNodeActionTests.java"] | TransportBroadcastByNodeAction does O(#shards) work on transport worker thread | Three interrelated issues here:
- [ ] `TransportBroadcastByNodeAction` derivatives are typically executed via `NodeClient` which bypasses the `TransportService` and therefore does not respect (or even know about) the `executor` parameter which would fork. This means that the coordination work, including grouping all the shards by node, happens on the calling thread. When executed from the REST layer, that's a transport worker. This is #97916, but until that's fixed we need a workaround.
- [ ] The node-level responses are deserialised and processed on the receiving transport worker too.
- [ ] Several of these actions use `SAME` for their executor, bypassing the forking that _does_ exist today.
Relates #77466 | https://github.com/elastic/elasticsearch/issues/97914 | https://github.com/elastic/elasticsearch/pull/97920 | 057f3f23584a9a11a6f409f8cf53abed745a3012 | 3a2a1c2c38bb98244f76b2dae553b68c8a266e06 | "2023-07-25T06:48:41Z" | java | "2023-07-27T11:18:39Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,912 | ["x-pack/plugin/core/template-resources/src/main/resources/fleet-agents.json"] | [Fleet Plugin] Add upgrade details field to `.fleet-agents` index | ### Description
Future versions of Fleet will be able to show users details about an ongoing Agent upgrade. Agents will communicate these details to Fleet Server which will, in turn, persist them in the Agent's document in the `.fleet-agents` index. This will allow the Fleet UI to read the same details and present them to the user.
This issue is the elasticsearch mapping changes required for the new agent upgrade fields.
The proposed structure of the upgrade details field is:
```json
{
"upgrade_details": { // new field; present when upgrade is in progress
"target_version": "8.12.0", // version being upgraded to; always present
"action_id": "xxxxxxxx", // ID of the UPGRADE action
"state": "UPG_*",
"metadata": {
"scheduled_at": "2023-08-09T10:11:12Z", // when state == "UPG_SCHEDULED"
"download_percent": 16.4, // when state == "UPG_DOWNLOADING"
"failed_state": "UPG_*" // when state == "UPG_FAILED"
"error_msg": "" // when state == "UPG_FAILED"
}
}
}
```
Where `upgrade_details.state` is expected to hold one of the following values:
| State | Meaning |
| -- | -- |
| `UPG_REQUESTED` | Upgrade requested by user |
| `UPG_SCHEDULED` | Upgrade scheduled for <date/time> |
| `UPG_DOWNLOADING` | Downloading new Agent artifact version <version> |
| `UPG_EXTRACTING` | Extracting new Agent artifact version <version> |
| `UPG_REPLACING` | Replacing old Agent artifact version <version> with new one version <version> |
| `UPG_RESTARTING` | Starting new Agent version <version> |
| `UPG_WATCHING` | Monitoring new Agent version <version> |
| `UPG_ROLLBACK` | Upgrade unsuccessful; rolling back to Agent version <version> |
| `UPG_FAILED` | Upgrade failed due to error <error> from state <state> |
| https://github.com/elastic/elasticsearch/issues/97912 | https://github.com/elastic/elasticsearch/pull/98680 | ae52a06a51064fff8c1b202e5624668197993afd | 105e0c8a3bc09acf69ca68dcca0bc3130603758a | "2023-07-25T00:07:40Z" | java | "2023-08-22T17:20:15Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,909 | ["docs/changelog/98354.yaml", "server/src/main/java/org/elasticsearch/cluster/coordination/Coordinator.java", "server/src/test/java/org/elasticsearch/cluster/coordination/CoordinatorTests.java", "test/framework/src/main/java/org/elasticsearch/cluster/coordination/AbstractCoordinatorTestCase.java"] | Election scheduler should not reset before publication complete | Today we close the election scheduler when the coordinator leaves mode `CANDIDATE`, before even starting the publication that establishes the election winner as the cluster master. If this publication subsequently fails then we start a new election scheduler with the original, short, timeout, and do not back off. With very high numbers of master-eligible nodes this can lead to constant election clashes that never resolve. We must count such failed publications as failed election attempts for election scheduling and backoff purposes.
More precisely, I think a node in mode `LEADER` should not count an election as truly successful until we've received join votes from all nodes in the cluster (see `org.elasticsearch.cluster.coordination.CoordinationState#containsJoinVoteFor`) at the end of a fully-acked publication. That should be equivalent to `currentTerm() == maxTermSeen` at the end of a fully-acked publication, since we increase `maxTermSeen` on a missing join vote.
I'm not sure how a node in mode `FOLLOWER` should detect that the cluster is completely stable. The master could broadcast another message when it decides things are stable perhaps? Or maybe it would be good enough to base it on elapsed time (i.e. if we've been `FOLLOWER` in the same term for 60s)?
---
### Workaround
The simplest workaround is not to have so many master-eligible nodes. See [these docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/high-availability-cluster-small-clusters.html#high-availability-cluster-design-three-plus-nodes) for more information:
> However, it is good practice to limit the number of master-eligible nodes in the cluster to three. Master nodes do not scale like other node types since the cluster always elects just one of them as the master of the cluster. If there are too many master-eligible nodes then master elections may take a longer time to complete. | https://github.com/elastic/elasticsearch/issues/97909 | https://github.com/elastic/elasticsearch/pull/98354 | 9c2790e48fff37bfa44331beadd43f144e6d42b3 | ef5077011bfb7f2a9a3f1a3b31506c412d3f34ee | "2023-07-24T20:37:13Z" | java | "2023-08-14T14:42:50Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,879 | ["server/src/main/java/org/elasticsearch/action/support/HandledTransportAction.java", "server/src/main/java/org/elasticsearch/action/support/broadcast/unpromotable/TransportBroadcastUnpromotableAction.java", "server/src/main/java/org/elasticsearch/action/support/master/TransportMasterNodeAction.java", "server/src/main/java/org/elasticsearch/action/support/nodes/TransportNodesAction.java"] | Make transportService.registerRequestHandler take an executor instead of its name | Similarly to https://github.com/elastic/elasticsearch/pull/97873 but for request handlers: let's stop passing around strings and looking these things up by name on each request when we could just pass around the `Executor` itself. | https://github.com/elastic/elasticsearch/issues/97879 | https://github.com/elastic/elasticsearch/pull/99928 | f1c4fb2c781b11191e3cb8d01e3c754ef39db9c8 | c3f164a863870a91faeb85d4ff34116d4ed2cb89 | "2023-07-24T09:34:57Z" | java | "2023-09-26T19:40:53Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,871 | ["x-pack/docs/build.gradle"] | [CI] XDocsClientYamlTestSuiteIT test {yaml=en/rest-api/security/create-cross-cluster-api-key/line_102} failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/oxjuphkxkqfmi/tests/:x-pack:docs:yamlRestTest/org.elasticsearch.smoketest.XDocsClientYamlTestSuiteIT/test%20%7Byaml=en%2Frest-api%2Fsecurity%2Fcreate-cross-cluster-api-key%2Fline_102%7D
**Reproduction line:**
```
./gradlew ':x-pack:docs:yamlRestTest' --tests "org.elasticsearch.smoketest.XDocsClientYamlTestSuiteIT.test {yaml=en/rest-api/security/create-cross-cluster-api-key/line_102}" -Dtests.seed=891205240589B337 -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=und -Dtests.timezone=America/Denver -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.smoketest.XDocsClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Den/rest-api/security/create-cross-cluster-api-key/line_102%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [en/rest-api/security/create-cross-cluster-api-key:10]: expected [2xx] status code but api [raw[method=POST path=_security/cross_cluster/api_key]] returned [400 Bad Request] [{"error":"no handler found for uri [/_security/cross_cluster/api_key?error_trace=true] and method [POST]"}]
at __randomizedtesting.SeedInfo.seed([891205240589B337:1463AFEAB75DECF]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:571)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:523)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.AssertionError: expected [2xx] status code but api [raw[method=POST path=_security/cross_cluster/api_key]] returned [400 Bad Request] [{"error":"no handler found for uri [/_security/cross_cluster/api_key?error_trace=true] and method [POST]"}]
at org.junit.Assert.fail(Assert.java:88)
at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:372)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:551)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:523)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/97871 | https://github.com/elastic/elasticsearch/pull/97872 | 84698831984c86ccbc5be239349425c93ba36cef | 169a9b2388f70dc4ce1869595fca33f3d16726ae | "2023-07-24T07:33:16Z" | java | "2023-07-24T08:51:38Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,798 | ["docs/changelog/97840.yaml", "server/src/main/java/org/elasticsearch/cluster/coordination/Coordinator.java", "server/src/main/java/org/elasticsearch/cluster/coordination/stateless/StoreHeartbeatService.java"] | [CI] AtomicRegisterCoordinatorTests testCanUpdateClusterStateAfterStabilisation failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/fvgpibi5f6nt6/tests/:server:test/org.elasticsearch.cluster.coordination.AtomicRegisterCoordinatorTests/testCanUpdateClusterStateAfterStabilisation
**Reproduction line:**
```
./gradlew ':server:test' --tests "org.elasticsearch.cluster.coordination.AtomicRegisterCoordinatorTests.testCanUpdateClusterStateAfterStabilisation" -Dtests.seed=31B7E3DD1AAEDE3F -Dtests.locale=fr-CH -Dtests.timezone=Europe/Rome -Druntime.java=21
```
**Applicable branches:**
8.9
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.cluster.coordination.AtomicRegisterCoordinatorTests&tests.test=testCanUpdateClusterStateAfterStabilisation
**Failure excerpt:**
```
java.lang.AssertionError: node3 has no NO_MASTER_BLOCK
Expected: <false>
but: was <true>
at __randomizedtesting.SeedInfo.seed([31B7E3DD1AAEDE3F:A970AF1DDCBD4E4F]:0)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.elasticsearch.cluster.coordination.AbstractCoordinatorTestCase$Cluster.stabilise(AbstractCoordinatorTestCase.java:593)
at org.elasticsearch.cluster.coordination.AbstractCoordinatorTestCase$Cluster.stabilise(AbstractCoordinatorTestCase.java:554)
at org.elasticsearch.cluster.coordination.CoordinatorTests.testCanUpdateClusterStateAfterStabilisation(CoordinatorTests.java:97)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.lang.reflect.Method.invoke(Method.java:580)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1583)
``` | https://github.com/elastic/elasticsearch/issues/97798 | https://github.com/elastic/elasticsearch/pull/97840 | 629c442c365e12c2f91ff59596b5caee087f02b0 | 52565a35749589c29f5e29335b357b9b13ba0063 | "2023-07-19T09:20:34Z" | java | "2023-07-20T15:38:49Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,795 | ["modules/data-streams/src/javaRestTest/java/org/elasticsearch/datastreams/EcsLogsDataStreamIT.java", "modules/data-streams/src/javaRestTest/java/org/elasticsearch/datastreams/LogsDataStreamIT.java", "modules/data-streams/src/javaRestTest/resources/ecs-logs/es-agent-ecs-log.json", "modules/data-streams/src/yamlRestTest/java/org/elasticsearch/datastreams/DataStreamsClientYamlTestSuiteIT.java", "modules/data-streams/src/yamlRestTest/resources/rest-api-spec/test/data_stream/230_logs_message_pipeline.yml", "modules/data-streams/src/yamlRestTest/resources/rest-api-spec/test/data_stream/240_logs_ecs_mappings.yml", "modules/data-streams/src/yamlRestTest/resources/rest-api-spec/test/data_stream/250_logs_no_subobjects.yml", "modules/data-streams/src/yamlRestTest/resources/rest-api-spec/test/data_stream/lifecycle/20_basic.yml"] | [CI] DataStreamsClientYamlTestSuiteIT test {p0=data_stream/240_logs_ecs_mappings/Test Elastic Agent log ECS mappings} failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/56ydgs7cr5vyc/tests/:modules:data-streams:yamlRestTest/org.elasticsearch.datastreams.DataStreamsClientYamlTestSuiteIT/test%20%7Bp0=data_stream%2F240_logs_ecs_mappings%2FTest%20Elastic%20Agent%20log%20ECS%20mappings%7D
**Reproduction line:**
```
./gradlew ':modules:data-streams:yamlRestTest' --tests "org.elasticsearch.datastreams.DataStreamsClientYamlTestSuiteIT.test {p0=data_stream/240_logs_ecs_mappings/Test Elastic Agent log ECS mappings}" -Dtests.seed=C0FDAA9DB5113BE3 -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=es-UY -Dtests.timezone=AET -Druntime.java=20
```
**Applicable branches:**
8.9
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.datastreams.DataStreamsClientYamlTestSuiteIT&tests.test=test%20%7Bp0%3Ddata_stream/240_logs_ecs_mappings/Test%20Elastic%20Agent%20log%20ECS%20mappings%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [data_stream/240_logs_ecs_mappings:18]: expected [2xx] status code but api [indices.create_data_stream] returned [400 Bad Request] [{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"no matching index template found for data stream [logs-generic-default]","stack_trace":"org.elasticsearch.ElasticsearchException$1: no matching index template found for data stream [logs-generic-default]\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.ElasticsearchException.guessRootCauses(ElasticsearchException.java:667)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.ElasticsearchException.generateFailureXContent(ElasticsearchException.java:595)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestResponse.build(RestResponse.java:176)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestResponse.<init>(RestResponse.java:124)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestResponse.<init>(RestResponse.java:103)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.action.RestActionListener.onFailure(RestActionListener.java:55)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.client.internal.node.NodeClient$SafelyWrappedActionListener.onFailure(NodeClient.java:170)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.tasks.TaskManager$1.onFailure(TaskManager.java:217)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:60)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:72)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.support.ContextPreservingActionListener.onFailure(ContextPreservingActionListener.java:39)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:60)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:72)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.lambda$doStart$2(TransportMasterNodeAction.java:231)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.ActionListenerImplementations$DelegatingResponseActionListener.acceptException(ActionListenerImplementations.java:127)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:60)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.ActionListenerImplementations$DelegatingResponseActionListener.onFailure(ActionListenerImplementations.java:132)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:60)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:72)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.lambda$notifyListenerFailed$1(AllocationActionListener.java:52)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.executeInContext(AllocationActionListener.java:58)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.notifyListenerFailed(AllocationActionListener.java:52)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener$1.onFailure(AllocationActionListener.java:84)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.AckedClusterStateUpdateTask.onFailure(AckedClusterStateUpdateTask.java:75)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService$ExecutionResult.notifyFailure(MasterService.java:975)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService$ExecutionResult.onClusterStateUnchanged(MasterService.java:938)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService.executeAndPublishBatch(MasterService.java:245)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.lambda$run$2(MasterService.java:1622)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.ActionListener.run(ActionListener.java:382)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.run(MasterService.java:1619)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService$5.lambda$doRun$0(MasterService.java:1237)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.ActionListener.run(ActionListener.java:382)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService$5.doRun(MasterService.java:1216)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\nCaused by: java.lang.IllegalArgumentException: no matching index template found for data stream [logs-generic-default]\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.metadata.MetadataCreateDataStreamService.lookupTemplateForDataStream(MetadataCreateDataStreamService.java:307)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.metadata.MetadataCreateDataStreamService.createDataStream(MetadataCreateDataStreamService.java:221)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.metadata.MetadataCreateDataStreamService.createDataStream(MetadataCreateDataStreamService.java:168)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.metadata.MetadataCreateDataStreamService$1.execute(MetadataCreateDataStreamService.java:90)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService$UnbatchedExecutor.execute(MasterService.java:550)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService.innerExecuteTasks(MasterService.java:1039)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:1004)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService.executeAndPublishBatch(MasterService.java:232)\n\t... 11 more\n"}],"type":"illegal_argument_exception","reason":"no matching index template found for data stream [logs-generic-default]","stack_trace":"java.lang.IllegalArgumentException: no matching index template found for data stream [logs-generic-default]\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.metadata.MetadataCreateDataStreamService.lookupTemplateForDataStream(MetadataCreateDataStreamService.java:307)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.metadata.MetadataCreateDataStreamService.createDataStream(MetadataCreateDataStreamService.java:221)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.metadata.MetadataCreateDataStreamService.createDataStream(MetadataCreateDataStreamService.java:168)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.metadata.MetadataCreateDataStreamService$1.execute(MetadataCreateDataStreamService.java:90)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService$UnbatchedExecutor.execute(MasterService.java:550)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService.innerExecuteTasks(MasterService.java:1039)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:1004)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService.executeAndPublishBatch(MasterService.java:232)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.lambda$run$2(MasterService.java:1622)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.ActionListener.run(ActionListener.java:382)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.run(MasterService.java:1619)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService$5.lambda$doRun$0(MasterService.java:1237)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.ActionListener.run(ActionListener.java:382)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService$5.doRun(MasterService.java:1216)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\n"},"status":400}]
at __randomizedtesting.SeedInfo.seed([C0FDAA9DB5113BE3:48A995471BED561B]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:572)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:515)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.AssertionError: expected [2xx] status code but api [indices.create_data_stream] returned [400 Bad Request] [{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"no matching index template found for data stream [logs-generic-default]","stack_trace":"org.elasticsearch.ElasticsearchException$1: no matching index template found for data stream [logs-generic-default]\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.ElasticsearchException.guessRootCauses(ElasticsearchException.java:667)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.ElasticsearchException.generateFailureXContent(ElasticsearchException.java:595)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestResponse.build(RestResponse.java:176)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestResponse.<init>(RestResponse.java:124)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.RestResponse.<init>(RestResponse.java:103)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.rest.action.RestActionListener.onFailure(RestActionListener.java:55)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.client.internal.node.NodeClient$SafelyWrappedActionListener.onFailure(NodeClient.java:170)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.tasks.TaskManager$1.onFailure(TaskManager.java:217)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:60)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:72)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.support.ContextPreservingActionListener.onFailure(ContextPreservingActionListener.java:39)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:60)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:72)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.lambda$doStart$2(TransportMasterNodeAction.java:231)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.ActionListenerImplementations$DelegatingResponseActionListener.acceptException(ActionListenerImplementations.java:127)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:60)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.ActionListenerImplementations$DelegatingResponseActionListener.onFailure(ActionListenerImplementations.java:132)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:60)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:72)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.lambda$notifyListenerFailed$1(AllocationActionListener.java:52)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.executeInContext(AllocationActionListener.java:58)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.notifyListenerFailed(AllocationActionListener.java:52)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener$1.onFailure(AllocationActionListener.java:84)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.AckedClusterStateUpdateTask.onFailure(AckedClusterStateUpdateTask.java:75)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService$ExecutionResult.notifyFailure(MasterService.java:975)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService$ExecutionResult.onClusterStateUnchanged(MasterService.java:938)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService.executeAndPublishBatch(MasterService.java:245)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.lambda$run$2(MasterService.java:1622)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.ActionListener.run(ActionListener.java:382)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.run(MasterService.java:1619)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService$5.lambda$doRun$0(MasterService.java:1237)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.ActionListener.run(ActionListener.java:382)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService$5.doRun(MasterService.java:1216)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\nCaused by: java.lang.IllegalArgumentException: no matching index template found for data stream [logs-generic-default]\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.metadata.MetadataCreateDataStreamService.lookupTemplateForDataStream(MetadataCreateDataStreamService.java:307)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.metadata.MetadataCreateDataStreamService.createDataStream(MetadataCreateDataStreamService.java:221)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.metadata.MetadataCreateDataStreamService.createDataStream(MetadataCreateDataStreamService.java:168)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.metadata.MetadataCreateDataStreamService$1.execute(MetadataCreateDataStreamService.java:90)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService$UnbatchedExecutor.execute(MasterService.java:550)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService.innerExecuteTasks(MasterService.java:1039)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:1004)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService.executeAndPublishBatch(MasterService.java:232)\n\t... 11 more\n"}],"type":"illegal_argument_exception","reason":"no matching index template found for data stream [logs-generic-default]","stack_trace":"java.lang.IllegalArgumentException: no matching index template found for data stream [logs-generic-default]\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.metadata.MetadataCreateDataStreamService.lookupTemplateForDataStream(MetadataCreateDataStreamService.java:307)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.metadata.MetadataCreateDataStreamService.createDataStream(MetadataCreateDataStreamService.java:221)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.metadata.MetadataCreateDataStreamService.createDataStream(MetadataCreateDataStreamService.java:168)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.metadata.MetadataCreateDataStreamService$1.execute(MetadataCreateDataStreamService.java:90)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService$UnbatchedExecutor.execute(MasterService.java:550)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService.innerExecuteTasks(MasterService.java:1039)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:1004)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService.executeAndPublishBatch(MasterService.java:232)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.lambda$run$2(MasterService.java:1622)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.ActionListener.run(ActionListener.java:382)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.run(MasterService.java:1619)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService$5.lambda$doRun$0(MasterService.java:1237)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.action.ActionListener.run(ActionListener.java:382)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.service.MasterService$5.doRun(MasterService.java:1216)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983)\n\tat org.elasticsearch.server@8.9.0/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\n"},"status":400}]
at org.junit.Assert.fail(Assert.java:88)
at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:372)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:552)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:515)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/97795 | https://github.com/elastic/elasticsearch/pull/100407 | c4e55ab14c9335c0fff343e94895fa0447e663d9 | 5dc7cccf1368061d27689f0335d3cfa17ab1f57c | "2023-07-19T09:17:51Z" | java | "2023-10-11T09:00:52Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,712 | ["x-pack/docs/en/rest-api/security/get-api-keys.asciidoc"] | [DOCS] User with manage_own_api_key cannot view its own api_key even though it is documented | ### Elasticsearch Version
8.8
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
N/A
### Problem Description
There's a mismatch between documentation and the API results.
Despite [being documented](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-api-key.html), a user with the `manage_own_api_keys` cannot view (in general cannot successfully run `GET _security/api_key`).
### Steps to Reproduce
1. Create apikey with only `manage_own_api_key` role:
```
POST /_security/api_key
{
"name": "manage_own_api_key_role2",
"expiration": "1d",
"role_descriptors": {
"manage_own_api_key_role": {
"cluster": [
"manage_own_api_key"
],
"indices": [],
"applications": [],
"run_as": [],
"metadata": {},
"transient_metadata": {
"enabled": true
}
}
}
}
```
2. Then run `curl -X GET "https://xxxx/_security/api_key?owner=true" -H "Authorization: ApiKey xxxx"`
3. You'll get `this action is granted by the cluster privileges [read_security,manage_api_key,manage_security,all]"}`
### Might be related
- https://github.com/elastic/elasticsearch/pull/93606
- https://github.com/elastic/elasticsearch/issues/75205
- https://github.com/elastic/elasticsearch/issues/97459 | https://github.com/elastic/elasticsearch/issues/97712 | https://github.com/elastic/elasticsearch/pull/98065 | d594bd5226bb18b10643b6a94e096a7ad2bd6f15 | 263673511b7a7fd9c86217a739b4b7250871c7fc | "2023-07-17T08:22:17Z" | java | "2023-08-01T08:47:19Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,684 | ["docs/changelog/97987.yaml", "server/src/main/java/org/elasticsearch/search/fetch/subphase/FieldFetcher.java", "server/src/main/java/org/elasticsearch/search/fetch/subphase/UnmappedFieldFetcher.java", "server/src/test/java/org/elasticsearch/search/fetch/subphase/FieldFetcherTests.java"] | Fields API can throw `string_index_out_of_bounds_exception` | ### Elasticsearch Version
8.8.2
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
Mac OS X
### Problem Description
Under certain conditions, fetching a particular field value using the "fields" API can lead to `string_index_out_of_bounds_exception`.
The queried field needs to be inside a "nested" object and in addition to the field name, all fields need to be queries as well (`*`).
Both fields requested also need to be requested with `"include_unmapped": true`.
### Steps to Reproduce
```
DELETE testindex
PUT testindex
{
"mappings": {
"dynamic": "false",
"properties": {
"nested_field": {
"type": "nested",
"properties": {
"file": {
"type": "keyword"
}
}
}
}
}
}
POST testindex/_doc
{
"nested_field": {
"file": "somefile.txt"
}
}
GET testindex/_search
{
"_source": false,
"fields": [
{
"field": "file",
"include_unmapped": true
},
{
"field": "*",
"include_unmapped": true
}
],
"query": {
"match_all" : {}
}
}
```
This gives the following error:
```
{
"error": {
[...],
"caused_by": {
"type": "string_index_out_of_bounds_exception",
"reason": "Range [13, 4) out of bounds for length 4",
"caused_by": {
"type": "string_index_out_of_bounds_exception",
"reason": "Range [13, 4) out of bounds for length 4"
}
}
},
"status": 500
}
```
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/97684 | https://github.com/elastic/elasticsearch/pull/97987 | 45e056ba04748aa37551a57fbd4dda955db44828 | a4c0d38c243ce0ed8f5c7a239a22309db8218fa0 | "2023-07-14T10:12:40Z" | java | "2023-07-27T10:36:59Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,653 | ["docs/changelog/97703.yaml", "docs/reference/search/search-your-data/collapse-search-results.asciidoc", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search/111_field_collapsing_with_max_score.yml", "server/src/main/java/org/elasticsearch/search/query/TopDocsCollectorManagerFactory.java", "x-pack/qa/runtime-fields/build.gradle"] | hits max_score is null when collapse field is used even when track_scores is set to true | ### Elasticsearch Version
8.8.2
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
MacOS
### Problem Description
Adding the collapse field option
```
"collapse": {
"field": "age"
},
```
to a query results in the max_score being returned as null. This is true even if you set `"track_scores": true`. It is reported that this used to work in older versions of Elasticsearch (v5.3 was the version report where it worked - not sure when it stopped working).
Fix: The max_score field should be set when a collapse clause is added to a search and `"track_scores": true`.
The [end user docs for collapse](https://www.elastic.co/guide/en/elasticsearch/reference/current/collapse-search-results.html) do not provide any guidance on this issue and do not discuss the `track_scores` setting, so that document should also be updated as part of this ticket.
### Steps to Reproduce
```
# Create empty index
PUT /new_index
# Insert some data
POST /new_index/_doc
{
"name": "test 1",
"age": 20
}
POST /new_index/_doc
{
"name": "test 2",
"age": 20
}
POST /new_index/_doc
{
"name": "test 3",
"age": 30
}
GET /new_index/_search
{
"query": {
"match": {
"name": "test"
}
},
"collapse": {
"field": "age"
},
"track_scores": true
}
```
Result of query shows that hits.max_score is null:
```
{
"took": 41,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 3,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "new_index",
"_id": "2EpIT4kBcNLTHWis0ZCU",
"_score": 0.13353139,
"_source": {
"name": "test 1",
"age": 20
},
"fields": {
"age": [
20
]
}
},
{
"_index": "new_index",
"_id": "2kpIT4kBcNLTHWis3JCu",
"_score": 0.13353139,
"_source": {
"name": "test 3",
"age": 30
},
"fields": {
"age": [
30
]
}
}
]
}
}
```
If you run without the collapse/field entry in the query, the max_score is not null.
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/97653 | https://github.com/elastic/elasticsearch/pull/97703 | 6c76c5053d36b8b79dddb74d1b8577b8125c35fe | f8c626f7922728e9305cc8d413d9d0e5e4642878 | "2023-07-13T12:52:01Z" | java | "2023-07-17T10:48:00Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,646 | ["docs/reference/eql/eql.asciidoc"] | [CI] DocsClientYamlTestSuiteIT test {yaml=reference/eql/eql/line_338} failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/mqwa6noxp4frm/tests/:docs:yamlRestTest/org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT/test%20%7Byaml=reference%2Feql%2Feql%2Fline_338%7D
**Reproduction line:**
```
./gradlew ':docs:yamlRestTest' --tests "org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT.test {yaml=reference/eql/eql/line_338}" -Dtests.seed=2EF434B504E76653 -Dtests.locale=it-CH -Dtests.timezone=Europe/Istanbul -Druntime.java=20
```
**Applicable branches:**
8.8
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dreference/eql/eql/line_338%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [reference/eql/eql:747]: Expected a map containing
hits: a map containing
total: a map containing
value: <2>
relation: "eq"
sequences: a list containing
0: a map containing
join_keys: a list containing
0: "doom"
events: a list containing
0: a map containing
_index: "my-index-000001"
_source: a map containing
@timestamp: "1234567897"
@timestamp_pretty: "17-12-2022"
event_type: "failure"
bool: <true>
os: "redhat"
port: <1234>
missing_keyword: "yyy"
host: "doom"
id: <17>
version: "20.2.0"
uptime: <15>
_id: "7"
1: a map containing
_index: "my-index-000001"
_source: a map containing
@timestamp: expected "1234567891" but was "1234568896"
@timestamp_pretty: expected "12-12-2022" but was "17-12-2022"
type_test: expected "abc" but was <missing>
event_type: "alert"
os: expected "win10" but was "redhat"
port: expected <1234> but was <65123>
missing_keyword: expected "test" but was <missing>
ip: expected "10.0.0.1" but was <missing>
host: "doom"
id: expected <11> but was <16>
version: expected "1.0.0" but was "20.10.0"
uptime: expected <0> but was <missing>
bool: <unexpected> but was <true>
_id: expected "1" but was "6"
2: a map containing
_index: expected "my-index-000001" but was "my-index-000002"
_source: a map containing
@timestamp: expected "1234568896" but was "1234568996"
@timestamp_pretty: expected "17-12-2022" but was "2022-12-17"
event_type: "alert"
bool: <true>
os: expected "redhat" but was <missing>
port: <65123>
host: "doom"
id: expected <16> but was <26>
version: expected "20.10.0" but was <missing>
ip: <unexpected> but was "10.0.0.5"
op_sys: <unexpected> but was "redhat"
_id: "6"
1: a map containing
join_keys: a list containing
0: "farcry"
events: a list containing
0: a map containing
_index: "my-index-000001"
_source: a map containing
@timestamp: "1234567893"
@timestamp_pretty: "12-12-2022"
event_type: "alert"
type_test: "abc"
bool: <false>
os: "win10"
port: <1234>
host: "farcry"
id: <13>
version: "2.0.0"
uptime: <1>
_id: "3"
1: a map containing
_index: "my-index-000001"
_source: a map containing
@timestamp: "1234567893"
event_type: "alert"
bool: <true>
os: "win10"
port: <1234>
missing_keyword: null
ip: "10.0.0.5"
host: "farcry"
id: <110>
version: "1.2.3"
uptime: <1>
_id: "10"
2: a map containing
_index: "my-index-000003"
_source: a map containing
@timestamp: "1334567893"
event_type: "alert"
bool: <true>
os: "win10"
host: "farcry"
id: <33>
_id: "3"
is_running: <false>
took: <403>
is_partial: <false>
timed_out: <false>
at __randomizedtesting.SeedInfo.seed([2EF434B504E76653:A6A00B6FAA1B0BAB]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:572)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:524)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.AssertionError: Expected a map containing
hits: a map containing
total: a map containing
value: <2>
relation: "eq"
sequences: a list containing
0: a map containing
join_keys: a list containing
0: "doom"
events: a list containing
0: a map containing
_index: "my-index-000001"
_source: a map containing
@timestamp: "1234567897"
@timestamp_pretty: "17-12-2022"
event_type: "failure"
bool: <true>
os: "redhat"
port: <1234>
missing_keyword: "yyy"
host: "doom"
id: <17>
version: "20.2.0"
uptime: <15>
_id: "7"
1: a map containing
_index: "my-index-000001"
_source: a map containing
@timestamp: expected "1234567891" but was "1234568896"
@timestamp_pretty: expected "12-12-2022" but was "17-12-2022"
type_test: expected "abc" but was <missing>
event_type: "alert"
os: expected "win10" but was "redhat"
port: expected <1234> but was <65123>
missing_keyword: expected "test" but was <missing>
ip: expected "10.0.0.1" but was <missing>
host: "doom"
id: expected <11> but was <16>
version: expected "1.0.0" but was "20.10.0"
uptime: expected <0> but was <missing>
bool: <unexpected> but was <true>
_id: expected "1" but was "6"
2: a map containing
_index: expected "my-index-000001" but was "my-index-000002"
_source: a map containing
@timestamp: expected "1234568896" but was "1234568996"
@timestamp_pretty: expected "17-12-2022" but was "2022-12-17"
event_type: "alert"
bool: <true>
os: expected "redhat" but was <missing>
port: <65123>
host: "doom"
id: expected <16> but was <26>
version: expected "20.10.0" but was <missing>
ip: <unexpected> but was "10.0.0.5"
op_sys: <unexpected> but was "redhat"
_id: "6"
1: a map containing
join_keys: a list containing
0: "farcry"
events: a list containing
0: a map containing
_index: "my-index-000001"
_source: a map containing
@timestamp: "1234567893"
@timestamp_pretty: "12-12-2022"
event_type: "alert"
type_test: "abc"
bool: <false>
os: "win10"
port: <1234>
host: "farcry"
id: <13>
version: "2.0.0"
uptime: <1>
_id: "3"
1: a map containing
_index: "my-index-000001"
_source: a map containing
@timestamp: "1234567893"
event_type: "alert"
bool: <true>
os: "win10"
port: <1234>
missing_keyword: null
ip: "10.0.0.5"
host: "farcry"
id: <110>
version: "1.2.3"
uptime: <1>
_id: "10"
2: a map containing
_index: "my-index-000003"
_source: a map containing
@timestamp: "1334567893"
event_type: "alert"
bool: <true>
os: "win10"
host: "farcry"
id: <33>
_id: "3"
is_running: <false>
took: <403>
is_partial: <false>
timed_out: <false>
at org.elasticsearch.test.MapMatcher.assertMap(MapMatcher.java:82)
at org.elasticsearch.test.MapMatcher.assertMap(MapMatcher.java:65)
at org.elasticsearch.test.rest.yaml.section.MatchAssertion.doAssert(MatchAssertion.java:94)
at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:552)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:524)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/97646 | https://github.com/elastic/elasticsearch/pull/98112 | 644536ff9909decf891539e383d8f7a5687484eb | 5ba98c569e0b6b636496ab4602c305d497d9ebc5 | "2023-07-13T11:41:06Z" | java | "2023-08-02T13:58:52Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,638 | ["x-pack/plugin/searchable-snapshots/src/internalClusterTest/java/org/elasticsearch/xpack/searchablesnapshots/BaseFrozenSearchableSnapshotsIntegTestCase.java", "x-pack/plugin/searchable-snapshots/src/test/java/org/elasticsearch/xpack/searchablesnapshots/store/input/FrozenIndexInputTests.java"] | [CI] NodesCachesStatsIntegTests classMethod failing | The error message:
```
java.nio.file.AccessDeniedException: C:\Users\jenkins\workspace\platform-support\967\x-pack\plugin\searchable-snapshots\build\testrun\internalClusterTest\temp\org.elasticsearch.xpack.searchablesnapshots.cache.shared.NodesCachesStatsIntegTests_66A855EB9B2E60DD-001\tempDir-002\node_s2\shared_snapshot_cache
```
makes this appear related to https://github.com/elastic/elasticsearch/issues/97626
**Build scan:**
https://gradle-enterprise.elastic.co/s/mvpzkmjvxthjw/tests/:x-pack:plugin:searchable-snapshots:internalClusterTest/org.elasticsearch.xpack.searchablesnapshots.cache.shared.NodesCachesStatsIntegTests
**Reproduction line:**
```
null
```
**Applicable branches:**
main
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.searchablesnapshots.cache.shared.NodesCachesStatsIntegTests&tests.test=classMethod
**Failure excerpt:**
```
java.io.IOException: Could not remove the following files (in the order of attempts):
C:\Users\jenkins\workspace\platform-support\967\x-pack\plugin\searchable-snapshots\build\testrun\internalClusterTest\temp\org.elasticsearch.xpack.searchablesnapshots.cache.shared.NodesCachesStatsIntegTests_66A855EB9B2E60DD-001\tempDir-002\node_s2\shared_snapshot_cache: java.nio.file.AccessDeniedException: C:\Users\jenkins\workspace\platform-support\967\x-pack\plugin\searchable-snapshots\build\testrun\internalClusterTest\temp\org.elasticsearch.xpack.searchablesnapshots.cache.shared.NodesCachesStatsIntegTests_66A855EB9B2E60DD-001\tempDir-002\node_s2\shared_snapshot_cache
C:\Users\jenkins\workspace\platform-support\967\x-pack\plugin\searchable-snapshots\build\testrun\internalClusterTest\temp\org.elasticsearch.xpack.searchablesnapshots.cache.shared.NodesCachesStatsIntegTests_66A855EB9B2E60DD-001\tempDir-002\node_s2: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\967\x-pack\plugin\searchable-snapshots\build\testrun\internalClusterTest\temp\org.elasticsearch.xpack.searchablesnapshots.cache.shared.NodesCachesStatsIntegTests_66A855EB9B2E60DD-001\tempDir-002\node_s2
C:\Users\jenkins\workspace\platform-support\967\x-pack\plugin\searchable-snapshots\build\testrun\internalClusterTest\temp\org.elasticsearch.xpack.searchablesnapshots.cache.shared.NodesCachesStatsIntegTests_66A855EB9B2E60DD-001\tempDir-002: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\967\x-pack\plugin\searchable-snapshots\build\testrun\internalClusterTest\temp\org.elasticsearch.xpack.searchablesnapshots.cache.shared.NodesCachesStatsIntegTests_66A855EB9B2E60DD-001\tempDir-002
C:\Users\jenkins\workspace\platform-support\967\x-pack\plugin\searchable-snapshots\build\testrun\internalClusterTest\temp\org.elasticsearch.xpack.searchablesnapshots.cache.shared.NodesCachesStatsIntegTests_66A855EB9B2E60DD-001: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\967\x-pack\plugin\searchable-snapshots\build\testrun\internalClusterTest\temp\org.elasticsearch.xpack.searchablesnapshots.cache.shared.NodesCachesStatsIntegTests_66A855EB9B2E60DD-001
at __randomizedtesting.SeedInfo.seed([66A855EB9B2E60DD]:0)
at org.apache.lucene.util.IOUtils.rm(IOUtils.java:341)
at org.apache.lucene.tests.util.TestRuleTemporaryFilesCleanup.afterAlways(TestRuleTemporaryFilesCleanup.java:209)
at com.carrotsearch.randomizedtesting.rules.TestRuleAdapter$1.afterAlways(TestRuleAdapter.java:31)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:43)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/97638 | https://github.com/elastic/elasticsearch/pull/97639 | a9b3d7ada7b06dbc76ee6e76193e84992ac93555 | c1ac7d495eecd48830ad0c3fa9d072fbbed4f7e6 | "2023-07-13T09:14:20Z" | java | "2023-07-13T09:54:44Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,626 | ["x-pack/plugin/searchable-snapshots/src/internalClusterTest/java/org/elasticsearch/xpack/searchablesnapshots/BaseFrozenSearchableSnapshotsIntegTestCase.java", "x-pack/plugin/searchable-snapshots/src/test/java/org/elasticsearch/xpack/searchablesnapshots/store/input/FrozenIndexInputTests.java"] | [CI] SharedBytesTests testReleasesFileCorrectly failing | https://gradle-enterprise.elastic.co/s/dzmuhdmaew3t4/tests/:x-pack:plugin:blob-cache:test/org.elasticsearch.blobcache.shared.SharedBytesTests/testReleasesFileCorrectly?top-execution=1
Does not reproduce on MacOS, but this is a Windows test, so that is not surprising.
**Build scan:**
https://gradle-enterprise.elastic.co/s/dzmuhdmaew3t4/tests/:x-pack:plugin:blob-cache:test/org.elasticsearch.blobcache.shared.SharedBytesTests/testReleasesFileCorrectly
**Reproduction line:**
```
gradlew ':x-pack:plugin:blob-cache:test' --tests "org.elasticsearch.blobcache.shared.SharedBytesTests.testReleasesFileCorrectly" -Dtests.seed=4304E94D00142100 -Dtests.locale=ar-OM -Dtests.timezone=Cuba -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.blobcache.shared.SharedBytesTests&tests.test=testReleasesFileCorrectly
**Failure excerpt:**
```
java.lang.AssertionError: (No message provided)
at __randomizedtesting.SeedInfo.seed([4304E94D00142100:A8E3F1E55E401319]:0)
at org.junit.Assert.fail(Assert.java:86)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.junit.Assert.assertFalse(Assert.java:64)
at org.junit.Assert.assertFalse(Assert.java:74)
at org.elasticsearch.blobcache.shared.SharedBytesTests.testReleasesFileCorrectly(SharedBytesTests.java:50)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/97626 | https://github.com/elastic/elasticsearch/pull/97639 | a9b3d7ada7b06dbc76ee6e76193e84992ac93555 | c1ac7d495eecd48830ad0c3fa9d072fbbed4f7e6 | "2023-07-12T21:01:29Z" | java | "2023-07-13T09:54:44Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,612 | ["docs/changelog/97619.yaml", "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/VectorTileUtils.java", "x-pack/plugin/vector-tile/src/test/java/org/elasticsearch/xpack/vectortile/rest/VectorTileUtilTests.java"] | Vector tiles API might drop fields with unsupported field types | The [vector tile protobuf](https://github.com/mapbox/vector-tile-spec/blob/master/2.1/vector_tile.proto) definition contains support for a limited subset of datatypes:
```
// Variant type encoding
// The use of values is described in section 4.1 of the specification
message Value {
// Exactly one of these values must be present in a valid message
optional string string_value = 1;
optional float float_value = 2;
optional double double_value = 3;
optional int64 int_value = 4;
optional uint64 uint_value = 5;
optional sint64 sint_value = 6;
optional bool bool_value = 7;
extensions 8 to max;
}
```
That means that data types like byte or short are not supported. The current behaviour of the library we are using for building vector tiles is to silently drop those values. This is not correct, we should either cast those values to an integer (preferred) or throwing an exception.
| https://github.com/elastic/elasticsearch/issues/97612 | https://github.com/elastic/elasticsearch/pull/97619 | 1f4db652bed0a778a0eed4e6443f13e167b2f577 | 4cffcc0d29c957b345690880d4aa1b70afb6a8d6 | "2023-07-12T12:28:05Z" | java | "2023-07-14T00:36:27Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,606 | ["docs/changelog/100776.yaml", "server/src/main/java/org/elasticsearch/cluster/routing/allocation/ShardsAvailabilityHealthIndicatorService.java", "server/src/main/java/org/elasticsearch/snapshots/SearchableSnapshotsSettings.java", "server/src/test/java/org/elasticsearch/cluster/routing/allocation/ShardsAvailabilityHealthIndicatorServiceTests.java", "x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/SearchableSnapshots.java"] | Health Report API should not return RED for unassigned cold/frozen shards of ILM moves | ### Elasticsearch Version
8.8.1+ but probably all versions
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
cloud
### Problem Description
This is a follow-up of [#97370](https://github.com/elastic/elasticsearch/issues/97370).
In a case where disk spaces are reaching limits, if ILM suddenly tries to move a lot of hot shards to cold/frozen shards, it can tip the cluster health to RED because a lot of cold/frozen shards may be created and stay unassigned as long as there is not enough disk space. However, this is not a suitable indicator for service unavailability, since the data is still safely in the respective hot shards that are becoming cold/frozen, and will remain there until the cold/frozen shards are assigned so that searches can still search them.
Thus the [Health Report API](https://www.elastic.co/guide/en/elasticsearch/reference/8.8/health-api.html) should not return RED for unassigned cold/frozen shards of ILM moves.
### Steps to Reproduce
In a case where disk spaces are reaching limits, if ILM suddenly tries to move a lot of hot shards to cold/frozen shards, it can tip the cluster health to RED because a lot of cold/frozen shards may be created and stay unassigned (as long as there is not enough disk space).
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/97606 | https://github.com/elastic/elasticsearch/pull/100776 | c7c7eee3b5ad161ff7af3ac59a01133c06e91ae5 | eb937267ce02818678cb8da8ebc4516359a11f53 | "2023-07-12T10:03:29Z" | java | "2023-10-19T06:38:35Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,577 | ["server/src/internalClusterTest/java/org/elasticsearch/search/aggregations/metrics/MedianAbsoluteDeviationIT.java"] | [CI] org.elasticsearch.search.aggregations.metrics.MedianAbsoluteDeviationIT testAsSubAggregation | ### CI Link
https://gradle-enterprise.elastic.co/s/pwrwtjb2rq6p6/tests/:server:internalClusterTest/org.elasticsearch.search.aggregations.metrics.MedianAbsoluteDeviationIT/testAsSubAggregation?expanded-stacktrace=WyIwIl0&top-execution=1
### Repro line
./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.search.aggregations.metrics.MedianAbsoluteDeviationIT.testAsSubAggregation" -Dtests.seed=949133CBE00FFB18 -Dtests.locale=uk -Dtests.timezone=Asia/Jakarta -Druntime.java=20
### Does it reproduce?
Yes
### Applicable branches
main
### Failure history
https://gradle-enterprise.elastic.co/scans/tests?search.startTimeMax=1689086155974&search.startTimeMin=1688418000000&search.timeZoneId=Europe/Bucharest&tests.container=org.elasticsearch.search.aggregations.metrics.MedianAbsoluteDeviationIT&tests.test=testAsSubAggregation
### Failure excerpt
Only failed once in the past 7 days.
```
java.lang.AssertionError: |
| Expected: within <10.0> percent of <273574.0> |
| but: was <229045.6480914681>
```
| https://github.com/elastic/elasticsearch/issues/97577 | https://github.com/elastic/elasticsearch/pull/97680 | 4a09f8b9053568f85411cce6556569874ce34e8e | ad1ab4b71be072d9005d3fb1f68ccac03fcee4a6 | "2023-07-11T14:44:33Z" | java | "2023-07-14T08:41:38Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,570 | ["modules/data-streams/build.gradle"] | [CI] DataStreamLifecycleServiceTests | ### CI Link
[Build Scan™ for 'elasticsearch' today at 09:10:21 EEST | Gradle Enterprise](https://gradle-enterprise.elastic.co/s/cv3sgpbwgaowe/tests/:modules:data-streams:test/org.elasticsearch.datastreams.lifecycle.DataStreamLifecycleServiceTests/testDataStreamsWithoutLifecycleAreSkipped?top-execution=1)
### Repro line
./gradlew ':modules:data-streams:test' --tests "org.elasticsearch.datastreams.lifecycle.DataStreamLifecycleServiceTests.testForceMergeDedup" -Dtests.seed=D8A4B58C934EFB56 -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=zh-CN -Dtests.timezone=America/Havana -Druntime.java=20
### Does it reproduce?
Yes
### Applicable branches
main
### Failure history
https://gradle-enterprise.elastic.co/scans/tests?search.startTimeMax=1689081987180&search.startTimeMin=1688418000000&search.timeZoneId=Europe/Bucharest&tests.container=org.elasticsearch.datastreams.lifecycle.DataStreamLifecycleServiceTests
### Failure excerpt
From what I can tell the error trace for all the tests in `DataStreamLifecycleServiceTests` is:
```
2> java.lang.IllegalArgumentException: setting cluster.lifecycle.default.rollover has not been registered
at org.elasticsearch.common.settings.AbstractScopedSettings.get(AbstractScopedSettings.java:743)
at org.elasticsearch.datastreams.lifecycle.DataStreamLifecycleService.<init>(DataStreamLifecycleService.java:167)
at org.elasticsearch.datastreams.lifecycle.DataStreamLifecycleServiceTests.setupServices(DataStreamLifecycleServiceTests.java:114)
```
| https://github.com/elastic/elasticsearch/issues/97570 | https://github.com/elastic/elasticsearch/pull/97596 | 2a691be6db924b5b053f9e7ca8d7def9895d6f35 | 25fc81e8512746a51c0d8cc0a16428890eede6e7 | "2023-07-11T13:30:48Z" | java | "2023-07-12T08:11:53Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,544 | ["docs/changelog/98360.yaml", "server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FilterByFilterAggregator.java", "server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FiltersAggregator.java", "server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/QueryToFilterAdapter.java"] | Implement competitiveIterator() on FilterAggregator | ### Description
We have had this longstanding issue that running a top-level `filter` aggregation is often (not always, e.g. not if you need the total hit count too) a performance bug, as Elasticsearch would iterate over docs that match the `query` and would then check each of these docs against the filter of the `filter` aggregation. It's usually a better idea to put the filter directly into the query, where it can be used to drive iteration if appropriate.
We could do this automatically by implementing the `LeafCollector#competitiveIterator` API that was introduced for dynamic pruning, in order to automatically start intersecting the query with the filter of the `filter` aggregator once enough hits have been counted. | https://github.com/elastic/elasticsearch/issues/97544 | https://github.com/elastic/elasticsearch/pull/98360 | 0421c4fe9b3f06b25d6f2d5b2666aebb14d91420 | 8af9b4af1f5b1e85c51c8c26fe72fddd2a025240 | "2023-07-11T02:15:47Z" | java | "2023-09-05T13:53:32Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,532 | ["docs/changelog/98512.yaml", "docs/reference/mapping/types/dense-vector.asciidoc", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/60_dense_vector_dynamic_mapping.yml", "server/src/internalClusterTest/java/org/elasticsearch/index/mapper/DynamicMappingIT.java", "server/src/main/java/org/elasticsearch/index/mapper/DocumentParser.java", "server/src/main/java/org/elasticsearch/index/mapper/DocumentParserContext.java", "server/src/main/java/org/elasticsearch/index/mapper/DynamicFieldsBuilder.java", "server/src/main/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapper.java", "server/src/test/java/org/elasticsearch/index/mapper/DynamicMappingTests.java", "server/src/test/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapperTests.java"] | Add default dynamic mappings for `dense_vector` | ### Description
Dynamic mappings can greatly help the getting started experience but they currently don't apply to all types, one example is `dense_vector`.
It's been suggested to automatically map float arrays as dense vectors when there are more than 100 values, or a heuristic along these lines. | https://github.com/elastic/elasticsearch/issues/97532 | https://github.com/elastic/elasticsearch/pull/98512 | 19257125b19ff05a6b014f37693f9417ca579626 | 258d0cb0be8d6e590be4ab8981a718b6bd5ad5d1 | "2023-07-10T15:08:32Z" | java | "2023-09-06T20:06:29Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,459 | ["docs/reference/commands/keystore.asciidoc"] | [DOCS] elasticsearch-keystore add-file example should use regular text file | We use a `.json` file in the example command:
```
bin/elasticsearch-keystore add-file the.setting.name.to.set /path/example-file.json
```
However, no secure setting in Elasticsearch is going to have a JSON value. If the contents of `example-file.json` was something like:
```JSON
{ "foo" : "bar" }
```
Then the above command would create a keystore entry of `the.setting.name.to.set : { "foo" : "bar" }`.
It'd be better to have a plain `.txt` file in the example and show the contents so users understand the expected format.
```
cat example-file.txt
changeme
```
```
bin/elasticsearch-keystore add-file the.setting.name.to.set /path/example-file.txt
```
| https://github.com/elastic/elasticsearch/issues/97459 | https://github.com/elastic/elasticsearch/pull/97474 | f087ff88f3cd711b15d1e643e634f01d2d94f984 | 6d45c57b8fc6d504fdc28f355c6db22ac811e629 | "2023-07-07T15:21:20Z" | java | "2023-07-07T22:44:16Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,441 | ["docs/reference/query-dsl/match-query.asciidoc"] | [DOCS] boost missing from match/multi_match | As reported by @andreidiaconescu in https://github.com/elastic/elasticsearch/issues/40091#issuecomment-1623847715 :
- this issue is about "Multi Match Query documentation" and that "boosting documentation points to a dead end";
- this issue is still true today:
- in the Multi Match documentation: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html it is written more than once: "Also, accepts analyzer, boost, lenient and zero_terms_query as explained in [Match](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query.html)" but the Match documentation does not mention boost at all | https://github.com/elastic/elasticsearch/issues/97441 | https://github.com/elastic/elasticsearch/pull/98108 | 0f6fd0fe03aa158d97c4994b0d012dd2d7693b6e | 8ac9fef3b776e742d340d5a6ec3fbbe078947200 | "2023-07-07T08:03:17Z" | java | "2023-08-09T12:28:27Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,429 | ["docs/changelog/98586.yaml", "server/src/main/java/org/elasticsearch/index/mapper/DocumentMapper.java", "server/src/main/java/org/elasticsearch/index/mapper/MapperService.java", "server/src/main/java/org/elasticsearch/index/mapper/SourceFieldMapper.java", "server/src/test/java/org/elasticsearch/index/mapper/DocumentMapperTests.java", "server/src/test/java/org/elasticsearch/index/mapper/DocumentParserTests.java", "server/src/test/java/org/elasticsearch/index/mapper/SourceFieldMapperTests.java"] | Synthetic source is on by default for TSDS but does not appear in mappings | ### Elasticsearch Version
8.7
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
any
### Problem Description
As of 8.7 the default `_source` behaviour linked to `index.mode: time_series` was changed. Prior to 8.7, `_source` was explicitly stored, from this version onward it became synthetics.
This change cannot be easily visualised by users, as the corresponding setting (`"_source": {"mode": "synthetic"}`) doesn't appear in the resulting indices.
Moreover, if a user sets this by hand in a template, indices created don't have the setting. It is as if the setting is ignored by Elasticsearch upon index creation. This is extremely confusing for users.
In general, this behaviour is misleading, since there is no clear indication to the user that the `_source` isn't fully stored. Some customers also explicitly require their `_source` not to be tampered with, for legal and auditing reasons.
This behaviour (if intended) needs to be clearly documented in the [TSDS](https://www.elastic.co/guide/en/elasticsearch/reference/current/tsds.html) or [`_source`](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-source-field.html#synthetic-source) documentation page.
We further propose that any mapping or setting explicitly written in a template should be explicitly written in any index that is instantiated from it. Anything else is too misleading.
It is also somewhat of a concern that there now appear to be two separate sources of truth for `"mode": "synthetic"`: one in mappings and another hidden somewhere in our code.
### Steps to Reproduce
This can be reproduced by running the following (notice the change of behaviour pre/post 8.7):
```
PUT /_index_template/test
{
"index_patterns": [
"foobar*"
],
"template": {
"settings": {
"index": {
"mode": "time_series",
"routing_path": [
"host.name"
]
}
},
"mappings": {
"_source": {
"mode": "synthetic"
}
}
},
"composed_of": [
],
"priority": 500,
"data_stream": {
}
}
POST /_index_template/_simulate/test
```
Gives the following on 8.6.x:
```
"mappings": {
"_source": {
"mode": "synthetic"
}
},
```
This very section disappears on 8.7.x, while synthetic source remains activated.
| https://github.com/elastic/elasticsearch/issues/97429 | https://github.com/elastic/elasticsearch/pull/98586 | 5f43a150ce63e55a1e89fa9464b51bfc4771ad41 | 56abb86044d415284b607ea8490f7dc007141692 | "2023-07-06T16:11:32Z" | java | "2023-08-23T09:30:49Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,399 | ["modules/data-streams/src/internalClusterTest/java/org/elasticsearch/datastreams/lifecycle/DataStreamLifecycleServiceIT.java"] | [CI] DataLifecycleServiceIT testDataLifecycleServiceConfiguresTheMergePolicy failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/2p5qyrcuzi35i/tests/:modules:data-streams:internalClusterTest/org.elasticsearch.datastreams.lifecycle.DataLifecycleServiceIT/testDataLifecycleServiceConfiguresTheMergePolicy
**Reproduction line:**
```
gradlew ':modules:data-streams:internalClusterTest' --tests "org.elasticsearch.datastreams.lifecycle.DataLifecycleServiceIT.testDataLifecycleServiceConfiguresTheMergePolicy" -Dtests.seed=E37829DCD2B52CAC -Dtests.locale=sr-Latn-ME -Dtests.timezone=Australia/Adelaide -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.datastreams.lifecycle.DataLifecycleServiceIT&tests.test=testDataLifecycleServiceConfiguresTheMergePolicy
**Failure excerpt:**
```
java.lang.AssertionError:
Expected: is "5"
but: was "16"
at __randomizedtesting.SeedInfo.seed([E37829DCD2B52CAC:78854EF4EC3C97D0]:0)
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.datastreams.lifecycle.DataLifecycleServiceIT.lambda$testDataLifecycleServiceConfiguresTheMergePolicy$16(DataLifecycleServiceIT.java:628)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1172)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1145)
at org.elasticsearch.datastreams.lifecycle.DataLifecycleServiceIT.testDataLifecycleServiceConfiguresTheMergePolicy(DataLifecycleServiceIT.java:625)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/97399 | https://github.com/elastic/elasticsearch/pull/97415 | 55561588f5e5dd6e1d14a7e4e32c1bfe2dcfdb1d | cbedfbaea06b900d3e1c3a187ead7ce69cbfa2f1 | "2023-07-05T13:50:34Z" | java | "2023-07-06T11:02:29Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,377 | ["docs/changelog/101051.yaml", "modules/percolator/src/test/java/org/elasticsearch/percolator/PercolatorFieldMapperTests.java", "server/src/main/java/org/elasticsearch/index/mapper/DotExpandingXContentParser.java", "server/src/test/java/org/elasticsearch/index/mapper/DotExpandingXContentParserTests.java"] | Using script query on percolator fails to parse after upgrade to 8.6 because of subobjects parsing | ### Elasticsearch Version
8.6 and above
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
Unix
### Problem Description
While trying to run a script query on an index with a percolator type field but running into error
```
"type": "document_parsing_exception",
"reason": "[10:39] failed to parse: [10:39] [bool] failed to parse field [filter]"
```
This worked in 7.17.0 but does not work in 8.6 (also on current main )
### Steps to Reproduce
1. Create index with percolator field
```
PUT /debug-index-01
{
"mappings": {
"properties": {
"query": {
"type": "percolator"
}
}
}
}
```
2. Run POST with script on index
```
POST /debug-index-01/_doc
{
"query": {
"bool": {
"filter": [
{
"script": {
"script": {
"source": "return params.x ? true : false",
"lang": "painless",
"params": {
"x": true
}
}
}
}
]
}
}
}
```
On 7.17 it says creates the document.
On 8.8.2 it gives the response below:
```
{
"error": {
"root_cause": [
{
"type": "document_parsing_exception",
"reason": "[10:39] failed to parse: [10:39] [bool] failed to parse field [filter]"
}
],
"type": "document_parsing_exception",
"reason": "[10:39] failed to parse: [10:39] [bool] failed to parse field [filter]",
"caused_by": {
"type": "x_content_parse_exception",
"reason": "[10:39] [bool] failed to parse field [filter]",
"caused_by": {
"type": "x_content_parse_exception",
"reason": "[10:39] [script] failed to parse field [params]",
"caused_by": {
"type": "unsupported_operation_exception",
"reason": null
}
}
}
},
"status": 400
}
```
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/97377 | https://github.com/elastic/elasticsearch/pull/101051 | aa30dad01faa03b5134ec395247bdf2a8a412b86 | b07feb507d30a0ca4700bde180dc664e84b42ff7 | "2023-07-04T20:59:01Z" | java | "2023-10-24T09:03:28Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,320 | ["docs/changelog/97355.yaml", "modules/mapper-extras/src/yamlRestTest/resources/rest-api-spec/test/match_only_text/10_basic.yml", "server/src/main/java/org/elasticsearch/index/IndexMode.java", "server/src/main/java/org/elasticsearch/index/mapper/MappingParser.java"] | Fields of type 'match_only_text' in tsdb indices are missing in the _source | If tsdb is enabled and the mapping contains fields of type `match_only_text` then these fields are not visible in the _source
in the search response.
Reproduction of this issue:
```
PUT _index_template/my-weather-sensor-index-template
{
"index_patterns": [
"metrics-weather_sensors-*"
],
"data_stream": {},
"template": {
"settings": {
"index.mode": "time_series",
"index.routing_path": [
"sensor_id",
"location"
],
"index.look_ahead_time": "3h"
},
"mappings": {
"properties": {
"sensor_id": {
"type": "keyword",
"time_series_dimension": true
},
"location": {
"type": "keyword",
"time_series_dimension": true
},
"temperature": {
"type": "half_float",
"time_series_metric": "gauge"
},
"humidity": {
"type": "half_float",
"time_series_metric": "gauge"
},
"@timestamp": {
"type": "date",
"format": "strict_date_optional_time"
},
"message": {
"type": "match_only_text"
}
}
}
},
"priority": 500,
"_meta": {
"description": "Template for my weather sensor data"
}
}
DELETE _data_stream/metrics-weather_sensors-dev
POST /metrics-weather_sensors-dev/_doc
{
"@timestamp": "2023-07-04T11:21:15.000Z",
"sensor_id": "HAL-000001",
"location": "plains",
"temperature": 26.7,
"humidity": 49.9,
"message": "hey"
}
POST /metrics-weather_sensors-dev/_doc
{
"@timestamp": "2023-07-04T11:25:42.000Z",
"sensor_id": "SYKENET-000001",
"location": "swamp",
"temperature": 32.4,
"humidity": 88.9,
"message": "you"
}
GET /metrics-weather_sensors-dev/_search
```
The search response will not contain the `message` field in the `_source` and this field should exist. | https://github.com/elastic/elasticsearch/issues/97320 | https://github.com/elastic/elasticsearch/pull/97355 | 816c857b4621a53c9f7315c9020051162a326577 | 55561588f5e5dd6e1d14a7e4e32c1bfe2dcfdb1d | "2023-07-03T12:13:09Z" | java | "2023-07-06T10:42:14Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,313 | ["server/src/main/java/org/elasticsearch/cluster/coordination/Coordinator.java", "server/src/main/java/org/elasticsearch/cluster/coordination/JoinValidationService.java", "server/src/test/java/org/elasticsearch/cluster/coordination/JoinValidationServiceTests.java"] | Avoid getStateForMasterService during join validation | https://github.com/elastic/elasticsearch/pull/97304 removes several places that might do an expensive rebuild of the cluster state via `getStateForMasterService`. There's one other call we should be able to remove, in `JoinValidationService`, but it's a little tricky since we rely on seeing the last-accepted state for the cluster UUID validation, and it's not obviously ok to expose the last-accepted state without the no-master block.
This is a fairly minor issue because we do not do this join validation during elections, only if we're the elected master, and in that case `getStateForMasterService` is cheap. But that's not guaranteed, and we should strengthen this to avoid the that expensive step whenever possible. | https://github.com/elastic/elasticsearch/issues/97313 | https://github.com/elastic/elasticsearch/pull/97527 | 2ee4bd422609f81734a4358e1ea89c4fe515af10 | 2f5d8da13d3e4ede21d56e210c6340c1b2fc91ad | "2023-07-03T07:59:06Z" | java | "2023-07-18T16:48:59Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,311 | ["docs/changelog/97509.yaml", "x-pack/plugin/spatial/src/main/java/org/elasticsearch/xpack/spatial/search/aggregations/InternalGeoLine.java", "x-pack/plugin/spatial/src/test/java/org/elasticsearch/xpack/spatial/search/aggregations/MergedGeoLinesTests.java"] | [CI] XPackRestIT test {p0=spatial/60_geo_line/Test geo_line on multiple indices by grouping with filters} failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/lgpairouke6h2/tests/:x-pack:plugin:yamlRestTest/org.elasticsearch.xpack.test.rest.XPackRestIT/test%20%7Bp0=spatial%2F60_geo_line%2FTest%20geo_line%20on%20multiple%20indices%20by%20grouping%20with%20filters%7D
**Reproduction line:**
```
./gradlew ':x-pack:plugin:yamlRestTest' --tests "org.elasticsearch.xpack.test.rest.XPackRestIT.test {p0=spatial/60_geo_line/Test geo_line on multiple indices by grouping with filters}" -Dtests.seed=2EBFE55E6DB17592 -Dtests.locale=es-AR -Dtests.timezone=Europe/Kaliningrad -Druntime.java=20
```
**Applicable branches:**
8.9
**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%3Dspatial/60_geo_line/Test%20geo_line%20on%20multiple%20indices%20by%20grouping%20with%20filters%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [spatial/60_geo_line:329]: Expected a list containing
0: <0.13>
1: expected <51.4> but was <51.5>
at __randomizedtesting.SeedInfo.seed([2EBFE55E6DB17592:A6EBDA84C34D186A]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:572)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:524)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.AssertionError: Expected a list containing
0: <0.13>
1: expected <51.4> but was <51.5>
at org.elasticsearch.test.MapMatcher.assertMap(MapMatcher.java:82)
at org.elasticsearch.test.MapMatcher.assertMap(MapMatcher.java:65)
at org.elasticsearch.test.rest.yaml.section.MatchAssertion.doAssert(MatchAssertion.java:97)
at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:552)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:524)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/97311 | https://github.com/elastic/elasticsearch/pull/97509 | 6dd1841dbc2c754a7e9037dad6e42eba8f40c0cf | fdf980c8d0292673fe714d2f5ec33f3ed52dba38 | "2023-07-03T07:35:33Z" | java | "2023-07-10T23:54:44Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,307 | ["server/src/main/java/org/elasticsearch/cluster/routing/allocation/decider/FilterAllocationDecider.java"] | Allocation Explanation message for the filter allocation decider is missing the match word. | Hello,
One of the return message for the cluster allocation explain API is missing the word _match_ on the _explanation_ field.
Currently in the code we have this:
```
if (clusterIncludeFilters != null) {
if (clusterIncludeFilters.match(node) == false) {
return allocation.decision(
Decision.NO,
NAME,
"node does not cluster setting [%s] filters [%s]",
CLUSTER_ROUTING_INCLUDE_GROUP_PREFIX,
clusterIncludeFilters
);
}
}
```
If a node does not match one of the filters for the setting `cluster.routing.allocation.include` it will return something like this:
```
{
"decider" : "filter",
"decision" : "NO",
"explanation" : "node does not cluster setting [cluster.routing.allocation.include] filters [_ip:"ip-address"]"
}
```
The word _match_ is missing in the explanation and this can lead to some confusion.
The message should be `node does not match cluster setting`, as it is in the similar decider on the Index level.
Since this seems to be just a cosmetic quick fix I can submit a quick PR. | https://github.com/elastic/elasticsearch/issues/97307 | https://github.com/elastic/elasticsearch/pull/97308 | b6a4a7cded439c39f5354e61a52cd355ebaa1eff | 3ecb7e729d78bd24febf24296ff7f67bb7317b8f | "2023-07-02T13:29:08Z" | java | "2023-07-04T12:46:43Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,270 | ["server/src/main/java/org/elasticsearch/search/internal/ContextIndexSearcher.java", "server/src/test/java/org/elasticsearch/search/internal/ContextIndexSearcherTests.java"] | Overwrite IndexSearcher#slices(...) method for multi threaded search | In order to implement multi threaded search we need to adjust the logic that creates the slices.
The new slice logic should take the following into account:
- A minimum doc count per slice. In order to avoid a number of aggregations to produce in-accurate results, a slice should at least contain 10% of the total documents in the Lucene index.
- A maximum number of slices. The number of slices that a shard level search creates should be capped. To avoid creating more slices than available search threads. | https://github.com/elastic/elasticsearch/issues/97270 | https://github.com/elastic/elasticsearch/pull/97378 | 8e2f40c8a0263b8e64af55868bf012239b9a08b0 | 2b237363a6e5e657e1469316ec5208482f2a1eb5 | "2023-06-30T08:21:54Z" | java | "2023-07-11T06:59:14Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,269 | ["docs/changelog/97540.yaml", "docs/reference/search/search-your-data/search-your-data.asciidoc", "server/src/main/java/org/elasticsearch/search/query/QueryPhaseCollector.java", "server/src/test/java/org/elasticsearch/search/query/NonCountingTermQuery.java", "server/src/test/java/org/elasticsearch/search/query/QueryPhaseCollectorTests.java", "server/src/test/java/org/elasticsearch/search/query/QueryPhaseTests.java"] | Terminate after causes needless collection after early termination | As part of #97030, some interesting behaviour surfaced about the terminate_after functionality: there are situations in which the actual collection early terminates (throws `CollectionTerminatedException`), both in the case where only top docs are collected as well as when aggs and top docs are collected. In this scenario, if `terminate_after` was provided in the search request, we keep on collecting documents, with the only purpose of counting and setting `early_terminated` to true once the threshold is reached.
This may be perceived as a change in behaviour, because there are cases where we will not return `early_terminated` set to `true` while we previously would. In reality, we should clarify expectations and perhaps update the docs to indicate that `terminate_after` will terminate the actual collection of documents, but there are situations in which the collection either does not happen (because doc count is retrieved from the index statistics through `Weight#count`) or early terminates in which `terminate_after` cannot be honoured. This is fine, as the purpose of the functionality is to stop doing work early, and we should not cause additional work (the needless counting) to honour the functionality.
There are 5 TODOs in different places where `CollectionTerminatedException` is thrown in `QueryPhaseCollector`, that begin with:
> // TODO we keep on collecting although we have nothing to collect
The goal of this issue is to remove those TODOs and adjust the code to unconditionally rethrow `CollectionTerminatedException` when the collection has terminated. In the case of top docs collection without aggs, this should lead to a further simplification around removing null checks for the underlying leaf collector. There are some tests that will fail in `QueryPhaseTests` which need to have their expectations adjusted. | https://github.com/elastic/elasticsearch/issues/97269 | https://github.com/elastic/elasticsearch/pull/97540 | bd7c0f55e5f5a233439ff56e1075450d65b20915 | 7df388df64197ab616fc6d59190de73fc3c77402 | "2023-06-30T07:27:37Z" | java | "2023-07-11T08:14:12Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,261 | ["server/src/main/java/org/elasticsearch/repositories/ShardGenerations.java"] | [CI] ConcurrentSnapshotsIT testConcurrentOperationsLimit failing | Note this failed on a FIPS CI. But I am not sure it is related to FIPS
**Build scan:**
https://gradle-enterprise.elastic.co/s/67tz5rwik3wry/tests/:server:internalClusterTest/org.elasticsearch.snapshots.ConcurrentSnapshotsIT/testConcurrentOperationsLimit
**Reproduction line:**
```
./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.snapshots.ConcurrentSnapshotsIT.testConcurrentOperationsLimit" -Dtests.seed=9645A50DFEC8779B -Dtests.locale=ro-RO -Dtests.timezone=America/Curacao -Druntime.java=20 -Dtests.fips.enabled=true
```
**Applicable branches:**
7.17
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.snapshots.ConcurrentSnapshotsIT&tests.test=testConcurrentOperationsLimit
**Failure excerpt:**
```
java.util.concurrent.ExecutionException: RemoteTransportException[[node_t0][127.0.0.1:23201][cluster:admin/snapshot/create]]; nested: SnapshotException[[test-repo:snap-szxtaaaaqaccoitsaaaaaa-2/lGgpKLshR26zVEt0aeOYzw] failed to update snapshot in repository]; nested: IllegalStateException[Duplicate key index-test (attempted merging values [index-test/2OzWbDLWSGaZuR5_SBztBA] and [index-test/kumAsfLLR9eDZTLLsFbFrw])];
at __randomizedtesting.SeedInfo.seed([9645A50DFEC8779B:9477D8DEA9D9526B]:0)
at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.getValue(BaseFuture.java:257)
at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.get(BaseFuture.java:244)
at org.elasticsearch.common.util.concurrent.BaseFuture.get(BaseFuture.java:75)
at org.elasticsearch.snapshots.AbstractSnapshotIntegTestCase.createNSnapshots(AbstractSnapshotIntegTestCase.java:711)
at org.elasticsearch.snapshots.AbstractSnapshotIntegTestCase.createNSnapshots(AbstractSnapshotIntegTestCase.java:686)
at org.elasticsearch.snapshots.ConcurrentSnapshotsIT.testConcurrentOperationsLimit(ConcurrentSnapshotsIT.java:1241)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:49)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:48)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:45)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:41)
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.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:54)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: org.elasticsearch.transport.RemoteTransportException: [node_t0][127.0.0.1:23201][cluster:admin/snapshot/create]
Caused by: org.elasticsearch.snapshots.SnapshotException: [test-repo:snap-szxtaaaaqaccoitsaaaaaa-2/lGgpKLshR26zVEt0aeOYzw] failed to update snapshot in repository
at org.elasticsearch.repositories.blobstore.BlobStoreRepository.lambda$finalizeSnapshot$43(BlobStoreRepository.java:1387)
at org.elasticsearch.action.ActionListener$1.onFailure(ActionListener.java:144)
at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:138)
at org.elasticsearch.action.support.GroupedActionListener.onResponse(GroupedActionListener.java:55)
at org.elasticsearch.action.ActionRunnable$1.doRun(ActionRunnable.java:35)
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:777)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.IllegalStateException: Duplicate key index-test (attempted merging values [index-test/2OzWbDLWSGaZuR5_SBztBA] and [index-test/kumAsfLLR9eDZTLLsFbFrw])
at java.util.stream.Collectors.duplicateKeyException(Collectors.java:135)
at java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Collectors.java:182)
at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
at java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1715)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at org.elasticsearch.repositories.RepositoryData.<init>(RepositoryData.java:141)
at org.elasticsearch.repositories.RepositoryData.addSnapshot(RepositoryData.java:431)
at org.elasticsearch.repositories.blobstore.BlobStoreRepository.lambda$finalizeSnapshot$45(BlobStoreRepository.java:1433)
at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136)
at org.elasticsearch.action.support.GroupedActionListener.onResponse(GroupedActionListener.java:55)
at org.elasticsearch.action.ActionRunnable$1.doRun(ActionRunnable.java:35)
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:777)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/97261 | https://github.com/elastic/elasticsearch/pull/101389 | 5ef9f76b8134036b607515914d949081f32fbaed | 8475a7a105e6e42790dfba132a187a03d083e48e | "2023-06-29T23:41:13Z" | java | "2023-11-08T09:18:38Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,236 | ["rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/mget/40_routing.yml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/mget/60_realtime_refresh.yml"] | [CI] MixedClusterClientYamlTestSuiteIT test {p0=mget/40_routing/routing} failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/swnivae2temwm/tests/:qa:mixed-cluster:v8.6.0%23mixedClusterTest/org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT/test%20%7Bp0=mget%2F40_routing%2Frouting%7D
**Reproduction line:**
```
./gradlew ':qa:mixed-cluster:v8.6.0#mixedClusterTest' -Dtests.class="org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT" -Dtests.method="test {p0=mget/40_routing/routing}" -Dtests.seed=DACF9407D5FF0D41 -Dtests.bwc=true -Dtests.locale=nb-NO -Dtests.timezone=Europe/Volgograd -Druntime.java=20
```
**Applicable branches:**
main
**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%3Dmget/40_routing/routing%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [mget/40_routing:13]: expected [2xx] status code but api [cluster.health] returned [408 Request Timeout] [{"cluster_name":"v8.6.0","status":"yellow","timed_out":true,"number_of_nodes":4,"number_of_data_nodes":4,"active_primary_shards":5,"active_shards":9,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":1,"delayed_unassigned_shards":0,"number_of_pending_tasks":0,"number_of_in_flight_fetch":0,"task_max_waiting_in_queue_millis":0,"active_shards_percent_as_number":90.0}]
at __randomizedtesting.SeedInfo.seed([DACF9407D5FF0D41:529BABDD7B0360B9]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:572)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:524)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.AssertionError: expected [2xx] status code but api [cluster.health] returned [408 Request Timeout] [{"cluster_name":"v8.6.0","status":"yellow","timed_out":true,"number_of_nodes":4,"number_of_data_nodes":4,"active_primary_shards":5,"active_shards":9,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":1,"delayed_unassigned_shards":0,"number_of_pending_tasks":0,"number_of_in_flight_fetch":0,"task_max_waiting_in_queue_millis":0,"active_shards_percent_as_number":90.0}]
at org.junit.Assert.fail(Assert.java:88)
at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:372)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:552)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:524)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/97236 | https://github.com/elastic/elasticsearch/pull/97427 | 0781e60b19ffd967fca52a4146bd3a5054561be6 | 34eb74fa238d13432dca8974f7d79ee03a673f8e | "2023-06-29T12:28:51Z" | java | "2023-07-07T12:44:36Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,207 | ["docs/changelog/98824.yaml", "server/src/main/java/org/elasticsearch/cluster/metadata/SingleNodeShutdownMetadata.java", "server/src/main/java/org/elasticsearch/cluster/node/DiscoveryNodes.java", "x-pack/plugin/autoscaling/src/main/java/org/elasticsearch/xpack/autoscaling/storage/ReactiveStorageDeciderService.java", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/cluster/routing/allocation/DataTierAllocationDecider.java", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/DataTierMigrationRoutedStep.java", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/WaitForDataTierStep.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/cluster/routing/allocation/DataTierAllocationDeciderTests.java"] | DataTierAllocationDecider should be shutdown aware | Given a cluster with two hot nodes:
```
GET _cat/nodes?s=name
10.42.8.0 66 63 0 2.74 1.59 1.27 himrst * instance-0000000000
10.42.10.202 26 63 4 0.79 0.79 0.97 himrst - instance-0000000001
10.42.13.123 57 97 0 3.18 3.34 3.44 mv - tiebreaker-0000000002
```
I create an index with a `_tier_preference` like this:
```
PUT tweets-1
{
"settings": {
"index.routing.allocation.include._tier_preference": "data_warm,data_hot"
}
}
```
The shards are allocated to the hot nodes (they would love most to be allocated to warm nodes, but there aren't any, luckily they're not picky):
```
GET _cat/shards/tweets*?s=index,shard,prirep
tweets-1 0 p STARTED 0 225b 10.42.10.202 instance-0000000001
tweets-1 0 r STARTED 0 225b 10.42.8.0 instance-0000000000
```
I size up my cluster, adding some warm nodes. It now looks like this:
```
GET _cat/nodes?s=name
10.42.8.0 70 63 2 1.79 1.41 1.25 himrst * instance-0000000000
10.42.10.202 20 63 2 1.81 0.99 0.95 himrst - instance-0000000001
10.42.4.1 10 61 1 1.24 0.86 0.71 rw - instance-0000000003
10.42.255.41 38 61 1 2.32 2.61 2.46 rw - instance-0000000004
10.42.13.123 36 97 0 1.89 2.88 3.21 mv - tiebreaker-0000000002
```
My shards have also moved themselves onto the new warm nodes, in accordance with their `_tier_preference`[:](https://camo.githubusercontent.com/f112d98914158f9c0c2b94f9aeeab2739f040f86faae45262ab426f018dd156a/68747470733a2f2f7777772e6d656d6563726561746f722e636f6d2f7374617469632f696d616765732f6d656d65732f3335303837302e6a7067)
```
GET _cat/nodes?s=name
tweets-1 0 p STARTED 0 247b 10.42.255.41 instance-0000000004
tweets-1 0 r STARTED 0 225b 10.42.4.1 instance-0000000003
```
Time passes, and I realize I'm not using my warm nodes as much as I'd planned to, so I issue two [`shutdown`](https://www.elastic.co/guide/en/elasticsearch/reference/8.8/put-shutdown.html) requests to tell the cluster that the warm nodes are going to go away. Those requests probably look a lot like this, but please don't get too hung up on this particular detail:
```
PUT /_nodes/_6IelXFtSPqIX7u3jfOFVQ/shutdown
{
"type": "remove",
"reason": "..."
}
PUT /_nodes/F77A6HAPTdKTu0ImysCxiA/shutdown
{
"type": "remove",
"reason": "..."
}
```
Given that Elasticsearch was able to automatically expand from hot-only to hot and warm, my desire as a user of Elasticsearch is that the same flexibility would be applied in reverse when I want to shrink my cluster. However, it doesn't seem like that's the case (unfortunately). Let's look at `GET _cluster/allocation/explain` to see why.
Here's my request:
```
GET _cluster/allocation/explain
{
"index": "tweets-1",
"shard": 0,
"primary": true
}
```
And here's the response:
```
{
"index": "tweets-1",
"shard": 0,
"primary": true,
"current_state": "started",
"current_node": {
"id": "F77A6HAPTdKTu0ImysCxiA",
"name": "instance-0000000004",
"transport_address": "10.42.255.41:19994",
"attributes": {
"data": "warm",
"xpack.installed": "true",
"logical_availability_zone": "zone-1",
"availability_zone": "us-central1-c",
"region": "unknown-region",
"instance_configuration": "gcp.es.datawarm.n2.68x10x190",
"server_name": "instance-0000000004.0987d9fba82e49d08dd780dec13b6798"
}
},
"can_remain_on_current_node": "no",
"can_remain_decisions": [
{
"decider": "node_shutdown",
"decision": "NO",
"explanation": "node [F77A6HAPTdKTu0ImysCxiA] is preparing to be removed from the cluster"
}
],
"can_move_to_other_node": "no",
"move_explanation": "This shard may not remain on its current node, but Elasticsearch isn't allowed to move it to another node. Choose a node to which you expect this shard to be allocated, find this node in the node-by-node explanation, and address the reasons which prevent Elasticsearch from allocating this shard there.",
"node_allocation_decisions": [
{
"node_id": "_6IelXFtSPqIX7u3jfOFVQ",
"node_name": "instance-0000000003",
"transport_address": "10.42.4.1:19849",
"node_attributes": {
"data": "warm",
"xpack.installed": "true",
"logical_availability_zone": "zone-0",
"availability_zone": "us-central1-a",
"region": "unknown-region",
"instance_configuration": "gcp.es.datawarm.n2.68x10x190",
"server_name": "instance-0000000003.0987d9fba82e49d08dd780dec13b6798"
},
"node_decision": "no",
"weight_ranking": 1,
"deciders": [
{
"decider": "node_shutdown",
"decision": "NO",
"explanation": "node [_6IelXFtSPqIX7u3jfOFVQ] is preparing to be removed from the cluster"
},
{
"decider": "same_shard",
"decision": "NO",
"explanation": "a copy of this shard is already allocated to this node [[tweets-1][0], node[_6IelXFtSPqIX7u3jfOFVQ], [R], s[STARTED], a[id=pVXsE91AQRCBUGy8j_fE1w], failed_attempts[0]]"
},
{
"decider": "awareness",
"decision": "NO",
"explanation": "there are [2] copies of this shard and [2] values for attribute [logical_availability_zone] ([zone-0, zone-1] from nodes in the cluster and no forced awareness) so there may be at most [1] copies of this shard allocated to nodes with each value, but (including this copy) there would be [2] copies allocated to nodes with [node.attr.logical_availability_zone: zone-0]"
}
]
},
{
"node_id": "EVzA2lslS1eNPFoVEO3tJQ",
"node_name": "instance-0000000001",
"transport_address": "10.42.10.202:19393",
"node_attributes": {
"data": "hot",
"xpack.installed": "true",
"logical_availability_zone": "zone-1",
"availability_zone": "us-central1-c",
"region": "unknown-region",
"instance_configuration": "gcp.es.datahot.n2.68x10x45",
"server_name": "instance-0000000001.0987d9fba82e49d08dd780dec13b6798"
},
"node_decision": "no",
"weight_ranking": 2,
"deciders": [
{
"decider": "data_tier",
"decision": "NO",
"explanation": "index has a preference for tiers [data_warm,data_hot] and node does not meet the required [data_warm] tier"
}
]
},
{
"node_id": "FMcDYr1GTqWsji0KeR1s6A",
"node_name": "instance-0000000000",
"transport_address": "10.42.8.0:19993",
"node_attributes": {
"data": "hot",
"xpack.installed": "true",
"logical_availability_zone": "zone-0",
"availability_zone": "us-central1-b",
"region": "unknown-region",
"instance_configuration": "gcp.es.datahot.n2.68x10x45",
"server_name": "instance-0000000000.0987d9fba82e49d08dd780dec13b6798"
},
"node_decision": "no",
"weight_ranking": 3,
"deciders": [
{
"decider": "awareness",
"decision": "NO",
"explanation": "there are [2] copies of this shard and [2] values for attribute [logical_availability_zone] ([zone-0, zone-1] from nodes in the cluster and no forced awareness) so there may be at most [1] copies of this shard allocated to nodes with each value, but (including this copy) there would be [2] copies allocated to nodes with [node.attr.logical_availability_zone: zone-0]"
},
{
"decider": "data_tier",
"decision": "NO",
"explanation": "index has a preference for tiers [data_warm,data_hot] and node does not meet the required [data_warm] tier"
}
]
}
]
}
```
That's a bit of a json splat, so I'll sum up the decisions for you:
| node_name | node_id | hot/warm | outcome
| --- | --- | --- | --- |
| `instance-0000000000` | `FMcDYr1GTqWsji0KeR1s6A` | hot | `"[...] there would be [2] copies allocated to nodes with [node.attr.logical_availability_zone: zone-0]` (okay, yeah, I see this one) |
| `instance-0000000001` | `EVzA2lslS1eNPFoVEO3tJQ` | hot | Wait a minute! This is where it could go, one would think! See below. |
| `instance-0000000003` | `_6IelXFtSPqIX7u3jfOFVQ` | warm | `"explanation": "node [_6IelXFtSPqIX7u3jfOFVQ] is preparing to be removed from the cluster"` (fair, I agree completely) |
| `instance-0000000004` | `F77A6HAPTdKTu0ImysCxiA` | warm | `"can_remain_on_current_node": "no",` (also fair, also agree) |
So the crucial decision is related to `instance-0000000001`, and the decision there is:
```
{
"node_id": "EVzA2lslS1eNPFoVEO3tJQ",
"node_name": "instance-0000000001",
"transport_address": "10.42.10.202:19393",
"node_attributes": {
"data": "hot",
"xpack.installed": "true",
"logical_availability_zone": "zone-1",
"availability_zone": "us-central1-c",
"region": "unknown-region",
"instance_configuration": "gcp.es.datahot.n2.68x10x45",
"server_name": "instance-0000000001.0987d9fba82e49d08dd780dec13b6798"
},
"node_decision": "no",
"weight_ranking": 2,
"deciders": [
{
"decider": "data_tier",
"decision": "NO",
"explanation": "index has a preference for tiers [data_warm,data_hot] and node does not meet the required [data_warm] tier"
}
]
},
```
Which is to say, the DataTierAllocationDecider doesn't realize I'm shutting down all my warm nodes and IMHO it should.
/cc @dakrone @bczifra | https://github.com/elastic/elasticsearch/issues/97207 | https://github.com/elastic/elasticsearch/pull/98824 | 1ca66bde9109bcc716a692be4a3531c0418299e8 | f669a1ff95e58decea54b0a346d70958f85190f5 | "2023-06-28T18:38:07Z" | java | "2023-08-31T21:55:57Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,155 | ["modules/data-streams/src/yamlRestTest/resources/rest-api-spec/test/data_stream/250_logs_no_subobjects.yml"] | [CI] DataStreamsClientYamlTestSuiteIT test {p0=data_stream/250_logs_no_subobjects/Test flattened document with subobjects-false} failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/ulcxth2whexcg/tests/:modules:data-streams:yamlRestTest/org.elasticsearch.datastreams.DataStreamsClientYamlTestSuiteIT/test%20%7Bp0=data_stream%2F250_logs_no_subobjects%2FTest%20flattened%20document%20with%20subobjects-false%7D
**Reproduction line:**
```
./gradlew ':modules:data-streams:yamlRestTest' --tests "org.elasticsearch.datastreams.DataStreamsClientYamlTestSuiteIT.test {p0=data_stream/250_logs_no_subobjects/Test flattened document with subobjects-false}" -Dtests.seed=6A8DB27272757BDF -Dtests.locale=es-PY -Dtests.timezone=Europe/Astrakhan -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.datastreams.DataStreamsClientYamlTestSuiteIT&tests.test=test%20%7Bp0%3Ddata_stream/250_logs_no_subobjects/Test%20flattened%20document%20with%20subobjects-false%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [data_stream/250_logs_no_subobjects:24]: got unexpected warning header [
299 Elasticsearch-8.10.0-SNAPSHOT-d9b6c5ae29b1bbadfa8c5552a093fcf8ce956922 "index template [logs-ecs-test-template] has index patterns [logs-*-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logs-ecs-test-template] will take precedence during new index creation"
]
at __randomizedtesting.SeedInfo.seed([6A8DB27272757BDF:E2D98DA8DC891627]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:572)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:524)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.AssertionError: got unexpected warning header [
299 Elasticsearch-8.10.0-SNAPSHOT-d9b6c5ae29b1bbadfa8c5552a093fcf8ce956922 "index template [logs-ecs-test-template] has index patterns [logs-*-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logs-ecs-test-template] will take precedence during new index creation"
]
at org.junit.Assert.fail(Assert.java:88)
at org.elasticsearch.test.rest.yaml.section.DoSection.checkWarningHeaders(DoSection.java:509)
at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:368)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:552)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:524)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/97155 | https://github.com/elastic/elasticsearch/pull/97324 | dd8ac7856e24bdddf73ba54765e4328b678ec594 | c6c31f918ad008e71d0037f8b4b623ab5e3ea0c1 | "2023-06-27T16:38:47Z" | java | "2023-07-03T15:17:26Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,150 | ["x-pack/plugin/downsample/qa/rest/src/yamlRestTest/resources/rest-api-spec/test/downsample/60_settings.yml"] | [CI] RollupRestIT test {p0=rollup/60_settings/Downsample datastream with tier preference} failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/i7afgcpnciifg/tests/:x-pack:plugin:rollup:qa:rest:yamlRestTest/org.elasticsearch.xpack.rollup.v2.RollupRestIT/test%20%7Bp0=rollup%2F60_settings%2FDownsample%20datastream%20with%20tier%20preference%7D
**Reproduction line:**
```
./gradlew ':x-pack:plugin:rollup:qa:rest:yamlRestTest' --tests "org.elasticsearch.xpack.rollup.v2.RollupRestIT.test {p0=rollup/60_settings/Downsample datastream with tier preference}" -Dtests.seed=BA4E17F4B33A83B8 -Dtests.locale=de-DE -Dtests.timezone=Africa/Algiers -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.rollup.v2.RollupRestIT&tests.test=test%20%7Bp0%3Drollup/60_settings/Downsample%20datastream%20with%20tier%20preference%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [rollup/60_settings:100]: got unexpected warning header [
299 Elasticsearch-8.10.0-SNAPSHOT-f65029d8be66a38e841350dbba19b4bfa8dff317 "index template [downsampling-template] has index patterns [test-datastream-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [downsampling-template] will take precedence during new index creation"
]
at __randomizedtesting.SeedInfo.seed([BA4E17F4B33A83B8:321A282E1DC6EE40]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:572)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:524)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.AssertionError: got unexpected warning header [
299 Elasticsearch-8.10.0-SNAPSHOT-f65029d8be66a38e841350dbba19b4bfa8dff317 "index template [downsampling-template] has index patterns [test-datastream-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [downsampling-template] will take precedence during new index creation"
]
at org.junit.Assert.fail(Assert.java:88)
at org.elasticsearch.test.rest.yaml.section.DoSection.checkWarningHeaders(DoSection.java:509)
at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:368)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:552)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:524)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/97150 | https://github.com/elastic/elasticsearch/pull/100946 | 24332b2ee8ed2d83275cc1102fa7fa424d89a914 | 75d959edcf52bf3944706ae22e4ed64deb33e29e | "2023-06-27T15:11:37Z" | java | "2023-11-16T13:22:30Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,101 | ["docs/changelog/97992.yaml", "x-pack/plugin/transform/qa/single-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/transform/integration/TransformPivotRestIT.java", "x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/transforms/pivot/CompositeBucketsChangeCollector.java", "x-pack/plugin/transform/src/test/java/org/elasticsearch/xpack/transform/transforms/pivot/CompositeBucketsChangeCollectorTests.java", "x-pack/plugin/transform/src/test/java/org/elasticsearch/xpack/transform/transforms/pivot/DateHistogramFieldCollectorTests.java"] | Transform incorrectly calculates date bucket after updating older data | ### Elasticsearch Version
8.6.2
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
Linux 20.04.2-Ubuntu
### Problem Description
Continuous tranform giving invalid result when date_histogram is used in pivot
### Steps to Reproduce
// Step 1 Add ingest pipeline
PUT /_ingest/pipeline/es-timeadd_1?pretty
{
"processors": [
{
"set": {
"field": "_source.es_timestamp",
"value": "{{_ingest.timestamp}}"
}
}
]
}
// Step2 Create index using above pipeline
PUT /test
{
"settings": {
"index.default_pipeline" : "es-timeadd"
}
}
// Step3 Insert two documents
PUT /test/_doc/1
{
"id" : "ritesh",
"gen_timestamp_min" : "2023-06-21T15:54:00.000Z",
"flow_count" : 5
}
PUT /test/_doc/2
{
"id" : "ritesh",
"gen_timestamp_min" : "2023-06-21T15:55:00.000Z",
"flow_count" : 5
}
// Step4 - Create transform
PUT /_transform/test-transform
{
"source": {
"index": "test"
},
"dest" : {
"index" : "test-transformed-index"
},
"sync": {
"time": {
"field": "es_timestamp",
"delay": "0s"
}
},
"pivot": {
"group_by": {
"gen_timestamp_hour": {
"date_histogram": {
"field": "gen_timestamp_min",
"fixed_interval": "1h"
}
},
"asset": {
"terms": {
"field": "id.keyword"
}
}
},
"aggregations": {
"flow_count": {
"sum": {
"field": "flow_count"
}
}
}
}
}
// Step 5 - Start Transform
POST /_transform/test-transform/_start
// Wait for few seconds
// Step6 - Check data in destination index
GET test-transformed-index/_search
{
}
We get below output, In which sum of flow counts is 10 which is valid
{
"took": 0,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 1,
"relation": "eq"
},
"max_score": 1,
"hits": [
{
"_index": "test-transformed-index",
"_id": "cgAnWNlrvx_jB6WvSZa9f0n5AAAAAAAA",
"_score": 1,
"_source": {
"gen_timestamp_hour": "2023-06-21T15:00:00.000Z",
"flow_countNAME": 10,
"asset": "ritesh"
}
}
]
}
}
// Step 7 Update document in source index with id 1, as below
PUT /test/_doc/1
{
"id" : "ritesh",
"gen_timestamp_min" : "2023-06-21T15:54:00.000Z",
"flow_count" : 6
}
// Step 8 Check data in output index, Total flow count should be 11, instead we see only 6 as below
GET test-transformed-index/_search
{
}
{
"took" : 2,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 1,
"relation" : "eq"
},
"max_score" : 1.0,
"hits" : [
{
"_index" : "test-transformed-index",
"_type" : "_doc",
"_id" : "cgAnWNlrvx_jB6WvSZa9f0n5AAAAAAAA",
"_score" : 1.0,
"_source" : {
"gen_timestamp_hour" : "2023-06-21T15:00:00.000Z",
"flow_countNAME" : 6.0,
"asset" : "ritesh"
}
}
]
}
}
Root Cause - Which reprocessing in continuous tranform, It picks data upto gen_timestamp_min of modified document, It should process all the data in given group by.
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/97101 | https://github.com/elastic/elasticsearch/pull/97992 | 4367c3f31c8ae7a7c4a791fa42a2e67a21026dbb | 1395273c82410aad0123c5fc4754cb47c7d9d18f | "2023-06-26T10:58:55Z" | java | "2023-08-07T15:05:01Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,085 | ["client/test/build.gradle", "gradle/verification-metadata.xml", "server/src/test/java/org/elasticsearch/action/admin/indices/template/reservedstate/ReservedComposableIndexTemplateActionTests.java", "test/framework/build.gradle"] | [CI] RoleReferenceIntersectionTests testBuildRoleForListOfRoleReferences failing | Seems that that problem from #93395 came back again. (mockito version needs to be updated?)
Fails regularly since June 20th so I will mute the test for now.
**Build scan:**
https://gradle-enterprise.elastic.co/s/pgqrjtsjap53o/tests/:x-pack:plugin:core:test/org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersectionTests/testBuildRoleForListOfRoleReferences
**Reproduction line:**
```
./gradlew ':x-pack:plugin:core:test' --tests "org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersectionTests.testBuildRoleForListOfRoleReferences" -Dtests.seed=E48653C010F39548 -Dtests.locale=no-NO -Dtests.timezone=Brazil/West -Druntime.java=21
```
**Applicable branches:**
main, 8.9
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersectionTests&tests.test=testBuildRoleForListOfRoleReferences
**Failure excerpt:**
```
org.mockito.exceptions.base.MockitoException:
Cannot call abstract real method on java object!
Calling real methods is only possible when mocking non abstract method.
//correct example:
when(mockOfConcreteClass.nonAbstractMethod()).thenCallRealMethod();
at __randomizedtesting.SeedInfo.seed([E48653C010F39548:DB4390F4402AE4F6]:0)
at org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.lambda$buildRole$0(RoleReferenceIntersection.java:47)
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:169)
at org.elasticsearch.action.support.GroupedActionListener.onResponse(GroupedActionListener.java:56)
at org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersectionTests.lambda$testBuildRoleForListOfRoleReferences$1(RoleReferenceIntersectionTests.java:62)
at org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.lambda$buildRole$1(RoleReferenceIntersection.java:53)
at java.util.ArrayList.forEach(ArrayList.java:1593)
at org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.buildRole(RoleReferenceIntersection.java:53)
at org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersectionTests.testBuildRoleForListOfRoleReferences(RoleReferenceIntersectionTests.java:66)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.lang.reflect.Method.invoke(Method.java:580)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1583)
``` | https://github.com/elastic/elasticsearch/issues/97085 | https://github.com/elastic/elasticsearch/pull/97285 | 659d662f9274975debbda18edd1356f4f89871f3 | ccd9efb807b6b663d6719f5d3f5b52f197dcf4f7 | "2023-06-26T08:49:00Z" | java | "2023-06-30T17:27:47Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,050 | ["CONTRIBUTING.md"] | Add information on transport versions to user docs (CONTRIBUTING etc) | We need to add information on how to do transport version upgrades to user-facing docs in the repo | https://github.com/elastic/elasticsearch/issues/97050 | https://github.com/elastic/elasticsearch/pull/97449 | d60e698f0de88cf1acaf7f29fd2f0a6afbee4970 | 71c4789d61739c40f4499688c4d6f1a4e568ee51 | "2023-06-23T14:49:14Z" | java | "2023-07-10T07:23:41Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 97,022 | ["docs/changelog/97062.yaml", "gradle.properties", "modules/lang-painless/src/main/java/org/elasticsearch/painless/lookup/PainlessLookup.java"] | Java 21 breaks painless lookups on java.util.List | Java 21 [#96932](https://github.com/elastic/elasticsearch/pull/96932) (`-Druntime.java=21`) breaks `java.util.List` lookups in Painless scripts.
```
invalid foreach loop: method [java.util.List, iterator/0] not found
member method [java.util.List, add/1] not found
member method [java.util.List, asCollection/0] not found
member method [java.util.List, asList/0] not found
member method [java.util.List, isEmpty/0] not found
member method [java.util.List, size/0] not found
member method [java.util.List, stream/0] not found
```
`:modules:lang-painless:test` (57 failures): https://gradle-enterprise.elastic.co/s/dkpi5pcitruwy
`:modules:lang-painless:yamlRestTest` (6 failures) https://gradle-enterprise.elastic.co/s/rsf3522r44ilc
```
java -version
openjdk version "21-ea" 2023-09-19
OpenJDK Runtime Environment (build 21-ea+27-2343)
OpenJDK 64-Bit Server VM (build 21-ea+27-2343, mixed mode, sharing)
```
Refs: https://github.com/elastic/elasticsearch/issues/96997 | https://github.com/elastic/elasticsearch/issues/97022 | https://github.com/elastic/elasticsearch/pull/97062 | 6e6fd925ecabe5aa9f0b4b4bc7ed28c314d4891b | 16b45575c3cdec226d9dcc62096711d3192f5846 | "2023-06-22T15:49:41Z" | java | "2023-06-24T01:28:13Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,983 | ["docs/changelog/96953.yaml", "server/src/main/java/org/elasticsearch/TransportVersion.java", "x-pack/plugin/spatial/src/main/java/org/elasticsearch/xpack/spatial/search/aggregations/GeoLineAggregator.java", "x-pack/plugin/spatial/src/main/java/org/elasticsearch/xpack/spatial/search/aggregations/GeoLineBucketedSort.java", "x-pack/plugin/spatial/src/main/java/org/elasticsearch/xpack/spatial/search/aggregations/InternalGeoLine.java", "x-pack/plugin/spatial/src/main/java/org/elasticsearch/xpack/spatial/search/aggregations/MergedGeoLines.java", "x-pack/plugin/spatial/src/main/java/org/elasticsearch/xpack/spatial/search/aggregations/TimeSeriesGeoLineBuckets.java", "x-pack/plugin/spatial/src/test/java/org/elasticsearch/xpack/spatial/search/aggregations/GeoLineAggregatorTests.java", "x-pack/plugin/spatial/src/test/java/org/elasticsearch/xpack/spatial/search/aggregations/InternalGeoLineTests.java", "x-pack/plugin/spatial/src/test/java/org/elasticsearch/xpack/spatial/search/aggregations/MergedGeoLinesTests.java"] | geo_line does not use simplify algorithm or capped memory for time-series | ### Elasticsearch Version
8.9.0
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
all
### Problem Description
In https://github.com/elastic/elasticsearch/pull/96953 we added support for a much more memory efficient algorithm that relies on the time-ordering and grouping provided by the time-series aggregation in TSDB. However, this work only covered the data nodes, and the reduce phase in the coordinating nodes that merges geo_lines does not take this into account, leading to unexpected truncation of long geo_lines.
### Steps to Reproduce
Easiest to reproduce by setting the shard size small, loading very long geolines that will be composed of many data points over many shards, and then setting the geo_line aggregation size to a small size. The final lines will not include the two end points as they should, but be truncated.
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/96983 | https://github.com/elastic/elasticsearch/pull/96953 | bdd38c6876f6470e363c097949f4929da3d2eefc | df59704a6457698e128c5e2ca70b9875c9015907 | "2023-06-21T14:11:25Z" | java | "2023-06-22T11:13:18Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,939 | ["docs/changelog/96941.yaml", "modules/ingest-common/src/main/java/org/elasticsearch/ingest/common/RerouteProcessor.java", "modules/ingest-common/src/test/java/org/elasticsearch/ingest/common/RerouteProcessorTests.java"] | Reroute Processor variable syntax too strict | ### Elasticsearch Version
8.8.1
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
ESS
### Problem Description
The `reroute` processor allows to specific Mustache like syntax for field references. In contrast to other processors (.e.g `set` or `rename`) the variable does not allow to include spaces between the field name and the curly brackets.
This doesn't work:
```
"dataset": "{{ _reroute.dataset }}"
```
while this does:
```
"dataset": "{{_reroute.dataset}}"
```
### Steps to Reproduce
```
PUT _ingest/pipeline/reroute_example
{
"processors": [
{
"reroute": {
"tag": "example",
"dataset": "{{ _reroute.dataset }}"
}
}
]
}
POST logs-test.original-default/_doc?pipeline=reroute_example
{
"_reroute": {
"dataset": "test.reroute"
},
"@timestamp": "2023-06-20"
}
```
Notice how the target Data Stream is `logs-test.original-default` instead of `logs-test.reroute-default`
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/96939 | https://github.com/elastic/elasticsearch/pull/96941 | 0bd18030970790f0123158b46fc12bd32ed21f22 | f69094f343c917c07eb692281a8d2c913e42bbe9 | "2023-06-20T07:37:17Z" | java | "2023-06-20T16:22:51Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,874 | ["docs/changelog/96895.yaml", "server/src/main/java/org/elasticsearch/cluster/coordination/ClusterBootstrapService.java", "server/src/test/java/org/elasticsearch/cluster/coordination/ClusterBootstrapServiceTests.java"] | Cluster bootstrap warning incorrectly emitted for `discovery.type: single-node` | In #86101 we added a warning if bootstrapping was incorrectly configured (and in #92744 we changed it to be emitted every 12h). The logic introduced doesn't take account of `discovery.type: single-node`, so explicitly-single-node clusters will always emit this warning even though they are correctly configured.
Relates https://github.com/elastic/elasticsearch/issues/58393. | https://github.com/elastic/elasticsearch/issues/96874 | https://github.com/elastic/elasticsearch/pull/96895 | 7625fa56eab685b074970f1c9d986240795a9678 | 37c242b26af735721e792d7f01e4c68735d98d23 | "2023-06-15T14:01:11Z" | java | "2023-06-26T07:22:00Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,761 | ["server/src/main/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapper.java", "server/src/test/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapperTests.java", "test/framework/src/main/java/org/elasticsearch/index/mapper/MapperTestCase.java"] | Improve `dense_vector` mapper tests | null | https://github.com/elastic/elasticsearch/issues/96761 | https://github.com/elastic/elasticsearch/pull/96762 | 65fc5e5696e5b0c6f15f9ae364f78762a87c448f | 641e331a9e7e721af5c18610a009d3f2edf9321e | "2023-06-12T11:13:35Z" | java | "2023-06-12T21:00:08Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,758 | ["docs/changelog/96821.yaml", "x-pack/plugin/rollup/src/main/java/org/elasticsearch/xpack/downsample/TransportDownsampleIndexerAction.java", "x-pack/plugin/rollup/src/main/java/org/elasticsearch/xpack/rollup/Rollup.java", "x-pack/plugin/rollup/src/test/java/org/elasticsearch/xpack/downsample/DownsampleActionSingleNodeTests.java"] | Downsampling transport level thread pool capacity increase | ### Description
This is related to #96757.
Right now downsampling uses a thread pool with a single running thread (disallowing concurrent downsampling operations at the transport level) and an unbounded queue of waiting threads, queueing and waiting to be executed. We need to explore options around using multiple running threads here. | https://github.com/elastic/elasticsearch/issues/96758 | https://github.com/elastic/elasticsearch/pull/96821 | 7770938dd9af28d8d5cf1433ccf7c528b4e9894a | 76b30eb62f6994a856846fbdcc68f92253ea62b1 | "2023-06-12T08:27:18Z" | java | "2023-06-19T09:14:08Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,742 | ["plugins/mapper-murmur3/src/main/java/org/elasticsearch/index/mapper/murmur3/Murmur3FieldMapper.java", "plugins/mapper-murmur3/src/test/java/org/elasticsearch/index/mapper/murmur3/Murmur3FieldMapperTests.java", "plugins/mapper-murmur3/src/yamlRestTest/resources/rest-api-spec/test/mapper_murmur3/10_basic.yml"] | Add `murmur3` randomized field test | null | https://github.com/elastic/elasticsearch/issues/96742 | https://github.com/elastic/elasticsearch/pull/96745 | 62dcd1325024715c57116a6c6cb60f29ca86b2b4 | 8b52d85a37db5b30dd4864913be414e8dd149379 | "2023-06-09T13:52:12Z" | java | "2023-06-13T13:21:37Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,736 | ["docs/community-clients/index.asciidoc"] | Add ElasticsearchClient.jl to community-clients docs | Hi there! I have written Elasticsearch client implementation on Julia and registered it as package. I think it would be a good decision to add reference to this package on community-clients page to help people find needed solution.
Here repository: https://github.com/OpenSesame/ElasticsearchClient.jl | https://github.com/elastic/elasticsearch/issues/96736 | https://github.com/elastic/elasticsearch/pull/98048 | 5b2917c8769a16e4c493d3a18be080912c3f8a6b | 62b75c71719bdebf4e47d8e48d10fb995f30e2ef | "2023-06-09T10:53:31Z" | java | "2023-10-03T08:18:31Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,713 | [".buildkite/pipelines/ecs-dynamic-template-tests.yml", "x-pack/plugin/core/template-resources/src/main/resources/ecs-dynamic-mappings.json", "x-pack/plugin/stack/build.gradle", "x-pack/plugin/stack/src/javaRestTest/java/org/elasticsearch/xpack/stack/EcsDynamicTemplatesIT.java"] | [CI] Add ECS-mappings compatibility tests | https://github.com/elastic/elasticsearch/pull/96171 added dynamic templates that cover all ECS mappings.
Those were enhanced by https://github.com/elastic/elasticsearch/pull/96712 to be applicable with `subobjects: false` as well.
@P1llus wrote a [test](https://github.com/P1llus/testecs) that scans [ECS mapping artifact](https://github.com/elastic/ecs/blob/462b9e5ba80a38d48e5a4a5e14d65726956e512d/usage-example/generated/ecs/ecs_flat.yml#L4), creates a document with all ECS-matching fields, indexes it and verifies that all mappings are as expected.
We want to add this to CI so that it runs on a weekly basis, thus tests regressions in our ECS templates as well as notifying us when ECS gets updated in such a way that requires modification of the dynamic templates.
cc @felixbarny @ruflin | https://github.com/elastic/elasticsearch/issues/96713 | https://github.com/elastic/elasticsearch/pull/97901 | 9f126587484b99140e87d934ce67ea303dbfd00e | c43f83d88c573356c23b66512faee2e19dc662a0 | "2023-06-08T15:57:40Z" | java | "2023-09-11T15:26:26Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,710 | ["docs/changelog/96716.yaml", "server/src/main/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapper.java", "server/src/main/java/org/elasticsearch/index/mapper/vectors/VectorEncoderDecoder.java", "server/src/main/java/org/elasticsearch/script/field/vectors/BinaryDenseVectorDocValuesField.java", "server/src/test/java/org/elasticsearch/index/mapper/vectors/BinaryDenseVectorScriptDocValuesTests.java", "server/src/test/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapperTests.java", "server/src/test/java/org/elasticsearch/index/mapper/vectors/VectorEncoderDecoderTests.java"] | Improve KNN Bruteforce float decoding | ### Description
When storing vectors outside of Lucene's HNSW structure, we take advantage of binary fields.
Currently, we store floats with big endianness. But, if we would instead store them little endian, we get a nice reduction in decoding latency when reading the bytes again for later comparisons.
Here are some benchmark results. Note how Little Endian (LE) and `decodeFloatBufferBulk` is twice as fast as `decodeByteBufferDirectRead` (LE or BE)
```
Benchmark (byteOrderString) (floatArraySizes) Mode Cnt Score Error Units
ByteBufferFloatDecodeLatencyBenchmark.decodeByteBufferDirectRead LE 2048 avgt 5 68325739.360 ± 465582.836 ns/op
ByteBufferFloatDecodeLatencyBenchmark.decodeByteBufferDirectRead BE 2048 avgt 5 74776992.386 ± 823331.552 ns/op
ByteBufferFloatDecodeLatencyBenchmark.decodeByteBufferIteration LE 2048 avgt 5 117525705.067 ± 1458961.093 ns/op
ByteBufferFloatDecodeLatencyBenchmark.decodeByteBufferIteration BE 2048 avgt 5 123655802.233 ± 4235944.321 ns/op
ByteBufferFloatDecodeLatencyBenchmark.decodeFloatBufferBulk LE 2048 avgt 5 34669449.786 ± 160521.025 ns/op
ByteBufferFloatDecodeLatencyBenchmark.decodeFloatBufferBulk BE 2048 avgt 5 110294944.298 ± 2603621.064 ns/op
ByteBufferFloatDecodeLatencyBenchmark.decodeFloatBufferDirectRead LE 2048 avgt 5 68806487.680 ± 3232644.206 ns/op
ByteBufferFloatDecodeLatencyBenchmark.decodeFloatBufferDirectRead BE 2048 avgt 5 69113588.627 ± 206808.093 ns/op
ByteBufferFloatDecodeLatencyBenchmark.decodeFloatBufferIteration LE 2048 avgt 5 106361490.140 ± 1621399.226 ns/op
ByteBufferFloatDecodeLatencyBenchmark.decodeFloatBufferIteration BE 2048 avgt 5 110686951.689 ± 3408080.477 ns/op
```
To make this change, however, requires knowing the version of the index storing the field value. | https://github.com/elastic/elasticsearch/issues/96710 | https://github.com/elastic/elasticsearch/pull/96716 | 8b52d85a37db5b30dd4864913be414e8dd149379 | 5d93a4226e6a918596196ffaaf0351b04b5ac035 | "2023-06-08T14:40:16Z" | java | "2023-06-13T13:44:50Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,614 | ["server/src/main/java/org/elasticsearch/index/store/Store.java", "server/src/main/java/org/elasticsearch/index/store/VerifyingIndexOutput.java", "server/src/test/java/org/elasticsearch/index/store/StoreTests.java", "server/src/test/java/org/elasticsearch/index/store/VerifyingIndexOutputTests.java"] | Optimisation opportunities in LuceneVerifyingIndexOutput | As mentioned in https://github.com/elastic/elasticsearch/pull/96216, `LuceneVerifyingIndexOutput` always copies the last chunk byte-by-byte. This might be a pretty big chunk. We should be able to copy all the bytes up to the start of the checksum in bulk (and then I guess bulk-copy the checksum too not that this matters so much).
In the same area, `LuceneVerifyingIndexOutput` is the only subclass of `VerifyingIndexOutput` and there's no need for it to be an inner class of `Store`. `VerifyingIndexInput` also doesn't need to be an inner class. | https://github.com/elastic/elasticsearch/issues/96614 | https://github.com/elastic/elasticsearch/pull/96975 | e00d581b40751728ffb89a33569be61990b189dc | f0fb6ca3d69c26654fcab329158f8ffde7ad7be5 | "2023-06-06T13:23:19Z" | java | "2023-06-22T07:05:48Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,578 | ["docs/changelog/100610.yaml", "server/src/internalClusterTest/java/org/elasticsearch/indices/recovery/IndexRecoveryIT.java", "server/src/main/java/org/elasticsearch/indices/recovery/RecoverySourceHandler.java", "test/framework/src/main/java/org/elasticsearch/test/ESTestCase.java"] | [CI] CreateIndexIT testCreateAndDeleteIndexConcurrently failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/dxnvahurwubcu/tests/:server:internalClusterTest/org.elasticsearch.action.admin.indices.create.CreateIndexIT/testCreateAndDeleteIndexConcurrently
**Reproduction line:**
```
./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.action.admin.indices.create.CreateIndexIT.testCreateAndDeleteIndexConcurrently" -Dtests.seed=3ED3285ADA7A0152 -Dtests.locale=is -Dtests.timezone=Africa/Tunis -Druntime.java=20
```
**Applicable branches:**
main, 8.8
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.action.admin.indices.create.CreateIndexIT&tests.test=testCreateAndDeleteIndexConcurrently
**Failure excerpt:**
```
java.lang.Exception: Test abandoned because suite timeout was reached.
at __randomizedtesting.SeedInfo.seed([3ED3285ADA7A0152]:0)
``` | https://github.com/elastic/elasticsearch/issues/96578 | https://github.com/elastic/elasticsearch/pull/100610 | 29e3d2829b365e011346271ceaa7d5f2746318fe | c4e55ab14c9335c0fff343e94895fa0447e663d9 | "2023-06-05T14:26:33Z" | java | "2023-10-11T08:54:09Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,572 | ["docs/changelog/97488.yaml", "docs/reference/search/terms-enum.asciidoc", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/termsenum/action/TermsEnumRequest.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/termsenum/TermsEnumRequestTests.java"] | The _terms_enum endpoint has no limits on the size of its prefix | ### Elasticsearch Version
8.8
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
all
### Problem Description
`_terms_enum` queries against a `keyword` field build automata out of their prefix string, to be intersected with the terms dictionary on the relevant field. We don't have a limit on the size of this prefix, meaning that if somebody (either accidentally or maliciously) passes a very large string here, we can run out of memory.
### Steps to Reproduce
Send a very large string as part of a `_terms_enum` request against a keyword field.
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/96572 | https://github.com/elastic/elasticsearch/pull/97488 | c9c2f76d7953e002acb529a04ee097139d5115dd | 192597d795fa5940e5c86e5d32289d34cb2fe7e0 | "2023-06-05T13:13:56Z" | java | "2023-07-10T10:21:07Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,569 | ["docs/changelog/97251.yaml", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/action/GetLifecycleAction.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/action/GetLifecycleResponseTests.java", "x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm/action/RestGetLifecycleAction.java"] | Chunk the GET _ilm/policy response | ### Description
Clusters can have thousands of ILM policies.
`GET _ilm/policy` returns all of them and runs on the master node.
This proposes we chunk the response for better memory usage and clients experience.
Relates to https://github.com/elastic/elasticsearch/issues/96568 | https://github.com/elastic/elasticsearch/issues/96569 | https://github.com/elastic/elasticsearch/pull/97251 | 81aee669259b2debd3eb1705df204a5ff05916c9 | d13a3d8f6f9cb00bae510195840f9786620beaa4 | "2023-06-05T12:09:11Z" | java | "2023-07-03T08:55:59Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,544 | ["server/src/main/java/org/elasticsearch/action/admin/cluster/health/TransportClusterHealthAction.java"] | Cluster health computation sometimes runs on applier thread | In https://github.com/elastic/elasticsearch/pull/90621 we moved most usages of the cluster health API onto a `MANAGEMENT` thread because it's too expensive to run on `SAME` in a large cluster. However, if the request includes any `wait_for_*` option then we set up a cluster state observer, which supplies its responses on the cluster applier thread. We need to fork those computations onto a `MANAGEMENT` thread too. | https://github.com/elastic/elasticsearch/issues/96544 | https://github.com/elastic/elasticsearch/pull/98904 | 6caf9c1f60ba0b993dbb3d6cf97768275e9975fc | fa0f5310ed067fd191467fbe6277193a36c2fec8 | "2023-06-03T08:28:48Z" | java | "2023-08-29T12:26:58Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,537 | ["x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/dlm/10_usage.yml"] | [CI] XPackRestIT test {p0=dlm/10_usage/Test DLM usage stats} failing | Missing warning header for global template
**Build scan:**
https://gradle-enterprise.elastic.co/s/3rl7mfmqkm2we/tests/:x-pack:plugin:yamlRestTest/org.elasticsearch.xpack.test.rest.XPackRestIT/test%20%7Bp0=dlm%2F10_usage%2FTest%20DLM%20usage%20stats%7D
**Reproduction line:**
```
./gradlew ':x-pack:plugin:yamlRestTest' --tests "org.elasticsearch.xpack.test.rest.XPackRestIT.test {p0=dlm/10_usage/Test DLM usage stats}" -Dtests.seed=3FED5BAD4A8A4B5F -Dtests.locale=es-UY -Dtests.timezone=Australia/Adelaide -Druntime.java=20
```
**Applicable branches:**
main
**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%3Ddlm/10_usage/Test%20DLM%20usage%20stats%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [dlm/10_usage:18]: got unexpected warning header [
299 Elasticsearch-8.9.0-SNAPSHOT-871f9637c6c42b050bcd2589ccbb3dc2764b882f "index template [my-template-1] has index patterns [foo-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [my-template-1] will take precedence during new index creation"
]
at __randomizedtesting.SeedInfo.seed([3FED5BAD4A8A4B5F:B7B96477E47626A7]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:572)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:524)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.AssertionError: got unexpected warning header [
299 Elasticsearch-8.9.0-SNAPSHOT-871f9637c6c42b050bcd2589ccbb3dc2764b882f "index template [my-template-1] has index patterns [foo-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [my-template-1] will take precedence during new index creation"
]
at org.junit.Assert.fail(Assert.java:88)
at org.elasticsearch.test.rest.yaml.section.DoSection.checkWarningHeaders(DoSection.java:509)
at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:368)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:552)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:524)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/96537 | https://github.com/elastic/elasticsearch/pull/96538 | 114cd7b6f88827e54db1a47ead81eb43fd1ed191 | 6179ae84f0cda5e2cb9e8070bcd88ce5ae699b9d | "2023-06-02T19:49:55Z" | java | "2023-06-03T12:04:47Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,509 | ["docs/changelog/96540.yaml", "x-pack/plugin/ql/src/main/java/org/elasticsearch/xpack/ql/planner/ExpressionTranslators.java", "x-pack/plugin/sql/qa/server/src/main/resources/version.csv-spec"] | SQL: pushing down Version type fails | ### Description
Something like `select * from apps where version > '1.2.3'::version` fails with:
```
Caused by: java.lang.IllegalArgumentException: Illegal value type: class org.elasticsearch.xpack.versionfield.Version, value: 1.2.3
at org.elasticsearch.xpack.versionfield.VersionStringFieldMapper$VersionStringFieldType.indexedValueForSearch(VersionStringFieldMapper.java:287)
at org.elasticsearch.xpack.versionfield.VersionStringFieldMapper$VersionStringFieldType.rangeQuery(VersionStringFieldMapper.java:320)
at org.elasticsearch.server@8.9.0-SNAPSHOT/org.elasticsearch.index.mapper.SimpleMappedFieldType.rangeQuery(SimpleMappedFieldType.java:52)
at org.elasticsearch.server@8.9.0-SNAPSHOT/org.elasticsearch.index.query.RangeQueryBuilder.doToQuery(RangeQueryBuilder.java:539)
at org.elasticsearch.server@8.9.0-SNAPSHOT/org.elasticsearch.index.query.AbstractQueryBuilder.toQuery(AbstractQueryBuilder.java:115)
at org.elasticsearch.server@8.9.0-SNAPSHOT/org.elasticsearch.index.query.SearchExecutionContext.lambda$toQuery$4(SearchExecutionContext.java:486)
at org.elasticsearch.server@8.9.0-SNAPSHOT/org.elasticsearch.index.query.SearchExecutionContext.toQuery(SearchExecutionContext.java:498)
... 15 more
``` | https://github.com/elastic/elasticsearch/issues/96509 | https://github.com/elastic/elasticsearch/pull/96540 | 69f15f574ea469a4ddfa74b488db0a6b6dfc1d7c | a3c29667a8b4612cace47f8c55479cea5bc7243c | "2023-06-01T20:27:01Z" | java | "2023-06-05T12:44:57Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,478 | ["docs/changelog/96494.yaml", "x-pack/plugin/rollup/qa/rest/build.gradle", "x-pack/plugin/rollup/qa/rest/src/yamlRestTest/resources/rest-api-spec/test/rollup/60_settings.yml", "x-pack/plugin/rollup/src/main/java/org/elasticsearch/xpack/downsample/TransportDownsampleAction.java"] | Prevent downsample indices to inherit pipeline-related index settings | ### Elasticsearch Version
8.7
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
All
### Problem Description
When downsampling a source index into a target index, the target index is created copying some settings from the source index. Among the settings we copy there are two of them `index.default_pipeline` and `index.final_pipeline` which control execution of ingest pipelines for the (target) index. As a result of the transformation we apply to the target (downsampled) index, including aggregation of metric fields, it is possible that the pipeline script execution fails because some metric fields are converted to `aggregate_metric_double` fields. These fields are not accessible in the same way as the original ones since they are of different type and because they just include aggregate metrics (sum, min, max and value_count).
We need to skip copying the two settings, `index.default_pipeline` and `index.final_pipeline`, from the source index to the target index in order to avoid pipeline processing to be applied to the target (downsampled) index.
NOTE: the two settings might be inherited by a source index that is part of a data stream
### Steps to Reproduce
Try to downsample a source index that has the following two settings `index.default_pipeline` and `index.final_pipeline`. The target index will include the same settings. That should not be the case.
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/96478 | https://github.com/elastic/elasticsearch/pull/96494 | c777925450354d0b3f8972ac5320ba91892236c5 | 75ee1fc775d233f795ed38391ceff51c3b29971e | "2023-06-01T09:15:52Z" | java | "2023-06-01T15:03:46Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,471 | ["docs/reference/rest-api/usage.asciidoc"] | [CI] DocsClientYamlTestSuiteIT test {yaml=reference/rest-api/usage/line_38} failing | It looks like there is some issue with the response format.
**Build scan:**
https://gradle-enterprise.elastic.co/s/fgywlwd2jzobe/tests/:docs:yamlRestTest/org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT/test%20%7Byaml=reference%2Frest-api%2Fusage%2Fline_38%7D
**Reproduction line:**
```
./gradlew ':docs:yamlRestTest' --tests "org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT.test {yaml=reference/rest-api/usage/line_38}" -Dtests.seed=A2E9F58B9E81A215 -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=zh-CN -Dtests.timezone=Etc/UTC -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dreference/rest-api/usage/line_38%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [reference/rest-api/usage:16]: Expected a map containing
eql: a map containing
available: <true>
enabled: <true>
features: a map containing
joins: a map containing
join_queries_three: <0>
join_queries_two: <0>
join_until: <0>
join_queries_five_or_more: <0>
join_queries_four: <0>
sequence: <4>
keys: a map containing
join_keys_two: <0>
join_keys_one: <3>
join_keys_three: <0>
join_keys_five_or_more: <0>
join_keys_four: <0>
join: <0>
sequences: a map containing
sequence_queries_three: <1>
sequence_queries_four: <0>
sequence_queries_two: <3>
sequence_until: <0>
sequence_maxspan: <2>
sequence_queries_five_or_more: <0>
event: <8>
pipes: a map containing
pipe_tail: <9>
pipe_head: <0>
queries: a map containing
all: a map containing
total: <12>
failed: <0>
_all: a map containing
total: <12>
failed: <0>
frozen_indices: a map containing
indices_count: <0>
available: <true>
enabled: <true>
sql: a map containing
features: a map containing
having: <1>
subselect: <0>
limit: <1>
orderby: <7>
where: <3>
join: <0>
groupby: <1>
command: <0>
local: <0>
available: <true>
queries: a map containing
rest: a map containing
total: <10>
paging: <1>
failed: <0>
cli: a map containing
total: <0>
paging: <0>
failed: <0>
canvas: a map containing
total: <0>
paging: <0>
failed: <0>
odbc: a map containing
total: <0>
paging: <0>
failed: <0>
jdbc: a map containing
total: <0>
paging: <0>
failed: <0>
odbc32: a map containing
total: <0>
paging: <0>
failed: <0>
odbc64: a map containing
total: <0>
paging: <0>
failed: <0>
_all: a map containing
total: <10>
paging: <1>
failed: <0>
translate: a map containing
count: <1>
enabled: <true>
rollup: a map containing
available: <true>
enabled: <true>
searchable_snapshots: a map containing
shared_cache_indices_count: <0>
indices_count: <0>
available: <true>
full_copy_indices_count: <0>
enabled: <true>
analytics: a map containing
stats: a map containing
rate_usage: <2>
normalize_usage: <0>
boxplot_usage: <3>
top_metrics_usage: <4>
multi_terms_usage: <1>
cumulative_cardinality_usage: <0>
string_stats_usage: <1>
moving_percentiles_usage: <0>
t_test_usage: <1>
available: <true>
enabled: <true>
logstash: a map containing
available: <true>
enabled: <true>
security: a map containing
available: <true>
enabled: <false>
transform: a map containing
available: <true>
enabled: <true>
ccr: a map containing
auto_follow_patterns_count: <0>
available: <true>
follower_indices_count: <0>
enabled: <true>
health_api: a map containing
available: <true>
enabled: <true>
statuses: a map containing
green: <5>
values: a list containing
0: "green"
invocations: a map containing
total: <5>
verbose_true: <5>
spatial: a map containing
available: <true>
enabled: <true>
ml: a map containing
inference: a map containing
deployments: a map containing
time_ms: a map containing
avg: <0.0>
count: <0>
model_sizes_bytes: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
inference_counts: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
trained_models: a map containing
model_size_bytes: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
estimated_operations: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
count: a map containing
total: <1>
prepackaged: <1>
other: <0>
_all: a map containing
count: <1>
ingest_processors: a map containing
_all: a map containing
pipelines: a map containing
count: <0>
time_ms: a map containing
min: <0>
max: <0>
sum: <0>
num_docs_processed: a map containing
min: <0>
max: <0>
sum: <0>
num_failures: a map containing
min: <0>
max: <0>
sum: <0>
data_frame_analytics_jobs: a map containing
memory_usage: a map containing
peak_usage_bytes: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
_all: a map containing
count: <0>
analysis_counts: an empty map
jobs: a map containing
_all: a map containing
count: <0>
detectors: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
created_by: an empty map
model_size: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
forecasts: a map containing
total: <0>
forecasted_jobs: <0>
available: <true>
datafeeds: a map containing
_all: a map containing
count: <0>
node_count: <1>
enabled: <true>
watcher: a map containing
execution: a map containing
actions: a map containing
_all: a map containing
total: <0>
total_time_in_ms: <0>
watch: a map containing
input: a map containing
_all: a map containing
total: <0>
active: <0>
trigger: a map containing
_all: a map containing
total: <0>
active: <0>
available: <true>
count: a map containing
total: <0>
active: <0>
enabled: <true>
enterprise_search: a map containing
search_applications: a map containing
count: <0>
analytics_collections: a map containing
count: <0>
available: <true>
enabled: <true>
archive: a map containing
indices_count: <0>
available: <true>
enabled: <true>
ilm: a map containing
policy_count: <17>
policy_stats: a list containing
0: a map containing
phases: a map containing
warm: a map containing
min_age: <172800000>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
cold: a map containing
min_age: <2592000000L>
actions: a list containing
0: "migrate"
configurations: an empty map
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <7776000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
1: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "3d"
max_age_millis: <259200000>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <345600000>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
2: a map containing
phases: a map containing
warm: a map containing
min_age: <172800000>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <2592000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
3: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
indices_managed: <0>
4: a map containing
phases: a map containing
warm: a map containing
min_age: <0>
actions: a list containing
0: "forcemerge"
1: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "3d"
max_age_millis: <259200000>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <259200000>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
5: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <7776000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
6: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_size: "300gb"
max_size_bytes: <322122547200L>
delete: a map containing
min_age: <7776000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
7: a map containing
phases: a map containing
warm: a map containing
min_age: <172800000>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
cold: a map containing
min_age: <2592000000L>
actions: a list containing
0: "migrate"
configurations: an empty map
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <31536000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
8: a map containing
phases: a map containing
warm: a map containing
min_age: <172800000>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "7d"
max_age_millis: <604800000>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <604800000>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
9: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "10gb"
max_primary_shard_size_bytes: <10737418240L>
delete: a map containing
min_age: <2592000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
10: a map containing
phases: a map containing
warm: a map containing
min_age: <172800000>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
cold: a map containing
min_age: <2592000000L>
actions: a list containing
0: "migrate"
configurations: an empty map
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <15552000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
11: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
indices_managed: <0>
12: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
indices_managed: <0>
13: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "7d"
max_age_millis: <604800000>
max_size: "10gb"
max_size_bytes: <10737418240L>
delete: a map containing
min_age: <604800000>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
14: a map containing
phases: a map containing
warm: a map containing
min_age: <172800000>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
cold: a map containing
min_age: <2592000000L>
actions: a list containing
0: "migrate"
configurations: an empty map
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <15552000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
15: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
indices_managed: <0>
16: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_size: "10gb"
max_size_bytes: <10737418240L>
delete: a map containing
min_age: <7776000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
monitoring: a map containing
collection_enabled: <false>
available: <true>
enabled_exporters: a map containing
local: <1>
enabled: <true>
graph: a map containing
available: <true>
enabled: <true>
aggregate_metric: a map containing
available: <true>
enabled: <true>
data_tiers: a map containing
data_warm: a map containing
primary_shard_size_median_bytes: <0>
primary_shard_count: <0>
doc_count: <0>
primary_shard_size_avg_bytes: <0>
primary_size_bytes: <0>
total_size_bytes: <0>
total_shard_count: <0>
primary_shard_size_mad_bytes: <0>
node_count: <1>
index_count: <0>
data_frozen: a map containing
primary_shard_size_median_bytes: <0>
primary_shard_count: <0>
doc_count: <0>
primary_shard_size_avg_bytes: <0>
primary_size_bytes: <0>
total_size_bytes: <0>
total_shard_count: <0>
primary_shard_size_mad_bytes: <0>
node_count: <1>
index_count: <0>
data_cold: a map containing
primary_shard_size_median_bytes: <0>
primary_shard_count: <0>
doc_count: <0>
primary_shard_size_avg_bytes: <0>
primary_size_bytes: <0>
total_size_bytes: <0>
total_shard_count: <0>
primary_shard_size_mad_bytes: <0>
node_count: <1>
index_count: <0>
available: <true>
data_content: a map containing
primary_shard_size_median_bytes: <0>
primary_shard_count: <0>
doc_count: <0>
primary_shard_size_avg_bytes: <0>
primary_size_bytes: <0>
total_size_bytes: <0>
total_shard_count: <0>
primary_shard_size_mad_bytes: <0>
node_count: <1>
index_count: <0>
enabled: <true>
data_hot: a map containing
primary_shard_size_median_bytes: <0>
primary_shard_count: <0>
doc_count: <0>
primary_shard_size_avg_bytes: <0>
primary_size_bytes: <0>
total_size_bytes: <0>
total_shard_count: <0>
primary_shard_size_mad_bytes: <0>
node_count: <1>
index_count: <0>
slm: a map containing
available: <true>
enabled: <true>
policy_count: <0>
policy_stats: a map containing
retention_runs: <0>
retention_failed: <0>
retention_timed_out: <0>
retention_deletion_time: "0s"
retention_deletion_time_millis: <0>
total_snapshots_taken: <0>
total_snapshots_failed: <0>
total_snapshots_deleted: <0>
total_snapshot_deletion_failures: <0>
policy_stats: an empty list
voting_only: a map containing
available: <true>
enabled: <true>
data_streams: a map containing
indices_count: <0>
available: <true>
data_streams: <0>
enabled: <true>
data_lifecycle: a map containing
lifecycle: expected a map but was <missing>
available: <true>
enabled: <true>
count: <unexpected> but was <0>
default_rollover_used: <unexpected> but was <true>
retention: <unexpected> but was <{minimum_millis=0, maximum_millis=0, average_millis=0.0}>
at __randomizedtesting.SeedInfo.seed([A2E9F58B9E81A215:2ABDCA51307DCFED]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:572)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:524)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.AssertionError: Expected a map containing
eql: a map containing
available: <true>
enabled: <true>
features: a map containing
joins: a map containing
join_queries_three: <0>
join_queries_two: <0>
join_until: <0>
join_queries_five_or_more: <0>
join_queries_four: <0>
sequence: <4>
keys: a map containing
join_keys_two: <0>
join_keys_one: <3>
join_keys_three: <0>
join_keys_five_or_more: <0>
join_keys_four: <0>
join: <0>
sequences: a map containing
sequence_queries_three: <1>
sequence_queries_four: <0>
sequence_queries_two: <3>
sequence_until: <0>
sequence_maxspan: <2>
sequence_queries_five_or_more: <0>
event: <8>
pipes: a map containing
pipe_tail: <9>
pipe_head: <0>
queries: a map containing
all: a map containing
total: <12>
failed: <0>
_all: a map containing
total: <12>
failed: <0>
frozen_indices: a map containing
indices_count: <0>
available: <true>
enabled: <true>
sql: a map containing
features: a map containing
having: <1>
subselect: <0>
limit: <1>
orderby: <7>
where: <3>
join: <0>
groupby: <1>
command: <0>
local: <0>
available: <true>
queries: a map containing
rest: a map containing
total: <10>
paging: <1>
failed: <0>
cli: a map containing
total: <0>
paging: <0>
failed: <0>
canvas: a map containing
total: <0>
paging: <0>
failed: <0>
odbc: a map containing
total: <0>
paging: <0>
failed: <0>
jdbc: a map containing
total: <0>
paging: <0>
failed: <0>
odbc32: a map containing
total: <0>
paging: <0>
failed: <0>
odbc64: a map containing
total: <0>
paging: <0>
failed: <0>
_all: a map containing
total: <10>
paging: <1>
failed: <0>
translate: a map containing
count: <1>
enabled: <true>
rollup: a map containing
available: <true>
enabled: <true>
searchable_snapshots: a map containing
shared_cache_indices_count: <0>
indices_count: <0>
available: <true>
full_copy_indices_count: <0>
enabled: <true>
analytics: a map containing
stats: a map containing
rate_usage: <2>
normalize_usage: <0>
boxplot_usage: <3>
top_metrics_usage: <4>
multi_terms_usage: <1>
cumulative_cardinality_usage: <0>
string_stats_usage: <1>
moving_percentiles_usage: <0>
t_test_usage: <1>
available: <true>
enabled: <true>
logstash: a map containing
available: <true>
enabled: <true>
security: a map containing
available: <true>
enabled: <false>
transform: a map containing
available: <true>
enabled: <true>
ccr: a map containing
auto_follow_patterns_count: <0>
available: <true>
follower_indices_count: <0>
enabled: <true>
health_api: a map containing
available: <true>
enabled: <true>
statuses: a map containing
green: <5>
values: a list containing
0: "green"
invocations: a map containing
total: <5>
verbose_true: <5>
spatial: a map containing
available: <true>
enabled: <true>
ml: a map containing
inference: a map containing
deployments: a map containing
time_ms: a map containing
avg: <0.0>
count: <0>
model_sizes_bytes: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
inference_counts: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
trained_models: a map containing
model_size_bytes: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
estimated_operations: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
count: a map containing
total: <1>
prepackaged: <1>
other: <0>
_all: a map containing
count: <1>
ingest_processors: a map containing
_all: a map containing
pipelines: a map containing
count: <0>
time_ms: a map containing
min: <0>
max: <0>
sum: <0>
num_docs_processed: a map containing
min: <0>
max: <0>
sum: <0>
num_failures: a map containing
min: <0>
max: <0>
sum: <0>
data_frame_analytics_jobs: a map containing
memory_usage: a map containing
peak_usage_bytes: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
_all: a map containing
count: <0>
analysis_counts: an empty map
jobs: a map containing
_all: a map containing
count: <0>
detectors: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
created_by: an empty map
model_size: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
forecasts: a map containing
total: <0>
forecasted_jobs: <0>
available: <true>
datafeeds: a map containing
_all: a map containing
count: <0>
node_count: <1>
enabled: <true>
watcher: a map containing
execution: a map containing
actions: a map containing
_all: a map containing
total: <0>
total_time_in_ms: <0>
watch: a map containing
input: a map containing
_all: a map containing
total: <0>
active: <0>
trigger: a map containing
_all: a map containing
...
``` | https://github.com/elastic/elasticsearch/issues/96471 | https://github.com/elastic/elasticsearch/pull/96484 | ef7a6e87524fb87ab8be75b5c533077d80cdb415 | 8bcdaa9d62339ad0f575bdc3c55f53fb14814f00 | "2023-06-01T06:59:49Z" | java | "2023-06-01T12:33:26Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,465 | ["docs/changelog/96479.yaml", "x-pack/plugin/security/src/internalClusterTest/java/org/elasticsearch/xpack/security/authz/store/NativePrivilegeStoreSingleNodeTests.java", "x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/Security.java", "x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authz/store/NativePrivilegeStore.java", "x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authz/store/NativePrivilegeStoreTests.java"] | search.allow_expensive_queries + wildcard application privs can fail authorization | ### Elasticsearch Version
Tested against 8.6.0
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
Ubuntu
### Problem Description
When `search.allow_expensive_queries` is set to `false` some queries may fail since they are considered expensive. Typically there is an obvious connection between the action you are performing and any errors raised due to expensive queries. For example, if you explicitly issue a [prefix query](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-prefix-query.html) and `search.allow_expensive_queries` is set to `false` there is a natural correlation between your request and the error.
It has been found that when the following conditions are met
* The API key or role has application level privileges
* One of the application level privileges has a trailing wildcard in the application name (i.e. `myapp*`)
* The API key or role is not cached
then authentication will fail due to an error [1] related to the expensive query. This because internally the code issues a prefix query to for the application name. The end result is the API key can longer be used for authentication for any action.
Workaround include :
* set `search.allow_expensive_queries` is set to `true`
* remove the `*` from the application privilege name
It is also possible to set `search.allow_expensive_queries` to `true` make a call with the API key or user with the role so that it gets cached, then set `search.allow_expensive_queries` back to `false` . That will cause the API key or role to be cached, and it will work after that, but it can also start to fail again at what would seem a random time if ever evicted from the cache or the node gets restarted. For this reason, that work around is not suggested.
[1] Example exception. Note - other similar exceptions can occur but they all reference `search.allow_expensive_queries` and the `.security-*` index
```
Caused by: [.security-7/9mbNjDCNRzSzrDtj2YEeKQ] org.elasticsearch.index.query.QueryShardException: failed to create query: [prefix] queries cannot be executed when 'search.allow_expensive_queries' is set to false. For optimised prefix queries on text fields please enable [index_prefixes].
at org.elasticsearch.index.query.SearchExecutionContext.toQuery(SearchExecutionContext.java:548)
at org.elasticsearch.index.query.SearchExecutionContext.toQuery(SearchExecutionContext.java:531)
at org.elasticsearch.search.SearchService.parseSource(SearchService.java:1174)
at org.elasticsearch.search.SearchService.createContext(SearchService.java:986)
at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:630)
at org.elasticsearch.search.SearchService.lambda$executeQueryPhase$2(SearchService.java:495)
at org.elasticsearch.action.ActionRunnable$2.accept(ActionRunnable.java:50)
at org.elasticsearch.action.ActionRunnable$2.accept(ActionRunnable.java:47)
at org.elasticsearch.action.ActionRunnable$3.doRun(ActionRunnable.java:72)
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:917)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.lang.Thread.run(Thread.java:1589)
```
### Steps to Reproduce
```
PUT _cluster/settings
{
"persistent": {
"search.allow_expensive_queries": "false"
}
}
POST _security/api_key
{
"name": "my_api_key",
"role_descriptors": {
"role1": {
"cluster": ["all"],
"indices": [
{
"names": ["test"],
"privileges": ["write"]
}
],
"applications": [
{
"application": "app*",
"privileges": ["read", "write"],
"resources": ["*"]
}
]
}
},
"expiration": "1d"
}
using API key just created...
POST _bulk
{ "index" : { "_index" : "test", "_id" : "4" } }
{ "field1" : "value1" }
```
EDIT: Updated text to suggest this can happen with an API key or a custom role | https://github.com/elastic/elasticsearch/issues/96465 | https://github.com/elastic/elasticsearch/pull/96479 | cc0777535b91674954bd4ecbb73e761b9fcc4e3c | deba7723448415e943b441fa33647d2a5df96fea | "2023-05-31T17:45:10Z" | java | "2023-06-05T23:07:35Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,449 | ["test/framework/src/main/java/org/elasticsearch/common/util/concurrent/DeterministicTaskQueue.java"] | [CI] SnapshotResiliencyTests testConcurrentSnapshotDeleteAndDeleteIndex failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/6u2mspnlx5m56/tests/:server:test/org.elasticsearch.snapshots.SnapshotResiliencyTests/testConcurrentSnapshotDeleteAndDeleteIndex
**Reproduction line:**
```
./gradlew ':server:test' --tests "org.elasticsearch.snapshots.SnapshotResiliencyTests.testConcurrentSnapshotDeleteAndDeleteIndex" -Dtests.seed=A5148D4F4A8D82B8 -Dtests.locale=ko -Dtests.timezone=Asia/Yakutsk -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.snapshots.SnapshotResiliencyTests&tests.test=testConcurrentSnapshotDeleteAndDeleteIndex
**Failure excerpt:**
```
java.lang.Exception: Test abandoned because suite timeout was reached.
at __randomizedtesting.SeedInfo.seed([A5148D4F4A8D82B8]:0)
``` | https://github.com/elastic/elasticsearch/issues/96449 | https://github.com/elastic/elasticsearch/pull/96658 | 67007413b15c5555e292cb2290f4a2bdddc671fe | 2345873611760731d0819052e169d7153723ce58 | "2023-05-31T08:58:18Z" | java | "2023-06-07T13:10:11Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,445 | ["docs/changelog/96956.yaml", "modules/aggregations/src/yamlRestTest/resources/rest-api-spec/test/aggregations/time_series.yml", "server/src/main/java/org/elasticsearch/index/mapper/SourceFieldMapper.java"] | Enabling TSDB and disabling source gives a funny error message | ### Elasticsearch Version
8.7.0
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
whatever
### Problem Description
Enable TSDB and disable source.
### Steps to Reproduce
```
curl -uelastic:password -HContent-Type:application/json -XPUT localhost:9200/test?pretty -d'{
"settings": {
"mode": "time_series",
"routing_path": "foo"
},
"mappings": {
"_source": {
"enabled": false
}
}
}'
```
The error message you get is `Cannot set both [mode] and [enabled] parameters` but we never tried to set `mode`. I think maybe we want `time series indices only support synthetic source` like we give if you try to disable _source in tsdb.
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/96445 | https://github.com/elastic/elasticsearch/pull/96956 | 524ecc75bd6f90f22979a1735d4b783108d0f7a1 | 0bd18030970790f0123158b46fc12bd32ed21f22 | "2023-05-30T19:41:57Z" | java | "2023-06-20T15:48:58Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,438 | ["docs/changelog/96777.yaml", "modules/ingest-geoip/src/main/java/org/elasticsearch/ingest/geoip/stats/GeoIpDownloaderStatsAction.java", "modules/ingest-geoip/src/test/java/org/elasticsearch/ingest/geoip/stats/GeoIpDownloaderStatsActionNodeResponseTests.java"] | [CI] GeoIpDownloaderIT testUseGeoIpProcessorWithDownloadedDBs failing with Message not fully read | I could not see any changes in the geoIP serialisaiton. It does not reproduce locally too
```
1> [2023-05-30T11:46:28,117][WARN ][o.e.t.TcpTransport ] [node_s0] exception caught on transport layer [Netty4TcpChannel{localAddress=/127.0.0.1:35964, remoteAddress=127.0.0.1/127.0.0.1:19541, profile=default}], closing connection
1> java.lang.Exception: java.lang.AssertionError: java.lang.IllegalStateException: Message not fully read (response) for requestId [192], handler [org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler/org.elasticsearch.action.ActionListenerResponseHandler@94f41f2/org.elasticsearch.action.ActionListenerImplementations$RunAfterActionListener/notifyOnce[[cluster:monitor/ingest/geoip/stats][{node_s1}{MYbBzhJ9SD6YeT3etp8llQ}{uPItn9j_Qv-nonD-byDXBw}{node_s1}{127.0.0.1}{127.0.0.1:19541}{cdfhilrstw}{8.9.0}]]/release[refCounted[org.elasticsearch.action.support.CancellableFanOut$$Lambda$3163/0x00000008019064e8@b3aa1b5]]], error [false]; resetting
1> at org.elasticsearch.transport.netty4.Netty4MessageInboundHandler.exceptionCaught(Netty4MessageInboundHandler.java:75) ~[transport-netty4-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at io.netty.channel.AbstractChannelHandlerContext.invokeExceptionCaught(AbstractChannelHandlerContext.java:346) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:447) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) ~[netty-codec-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:689) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:652) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[netty-common-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.92.Final.jar:4.1.92.Final]
1> at java.lang.Thread.run(Thread.java:1623) ~[?:?]
1> Caused by: java.lang.AssertionError: java.lang.IllegalStateException: Message not fully read (response) for requestId [192], handler [org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler/org.elasticsearch.action.ActionListenerResponseHandler@94f41f2/org.elasticsearch.action.ActionListenerImplementations$RunAfterActionListener/notifyOnce[[cluster:monitor/ingest/geoip/stats][{node_s1}{MYbBzhJ9SD6YeT3etp8llQ}{uPItn9j_Qv-nonD-byDXBw}{node_s1}{127.0.0.1}{127.0.0.1:19541}{cdfhilrstw}{8.9.0}]]/release[refCounted[org.elasticsearch.action.support.CancellableFanOut$$Lambda$3163/0x00000008019064e8@b3aa1b5]]], error [false]; resetting
1> at __randomizedtesting.SeedInfo.seed([BC7DEB88A745D747]:0) ~[?:?]
1> at org.elasticsearch.transport.InboundHandler.verifyResponseReadFully(InboundHandler.java:190) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.InboundHandler.doHandleResponse(InboundHandler.java:418) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.InboundHandler.handleResponse(InboundHandler.java:368) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.InboundHandler.messageReceived(InboundHandler.java:142) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.InboundHandler.inboundMessage(InboundHandler.java:95) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.TcpTransport.inboundMessage(TcpTransport.java:821) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.InboundPipeline.forwardFragments(InboundPipeline.java:150) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.InboundPipeline.doHandleBytes(InboundPipeline.java:121) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.InboundPipeline.handleBytes(InboundPipeline.java:86) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.netty4.Netty4MessageInboundHandler.channelRead(Netty4MessageInboundHandler.java:63) ~[transport-netty4-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> ... 18 more
1> Caused by: java.lang.IllegalStateException: Message not fully read (response) for requestId [192], handler [org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler/org.elasticsearch.action.ActionListenerResponseHandler@94f41f2/org.elasticsearch.action.ActionListenerImplementations$RunAfterActionListener/notifyOnce[[cluster:monitor/ingest/geoip/stats][{node_s1}{MYbBzhJ9SD6YeT3etp8llQ}{uPItn9j_Qv-nonD-byDXBw}{node_s1}{127.0.0.1}{127.0.0.1:19541}{cdfhilrstw}{8.9.0}]]/release[refCounted[org.elasticsearch.action.support.CancellableFanOut$$Lambda$3163/0x00000008019064e8@b3aa1b5]]], error [false]; resetting
1> at org.elasticsearch.transport.InboundHandler.verifyResponseReadFully(InboundHandler.java:187) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.InboundHandler.doHandleResponse(InboundHandler.java:418) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.InboundHandler.handleResponse(InboundHandler.java:368) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.InboundHandler.messageReceived(InboundHandler.java:142) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.InboundHandler.inboundMessage(InboundHandler.java:95) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.TcpTransport.inboundMessage(TcpTransport.java:821) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.InboundPipeline.forwardFragments(InboundPipeline.java:150) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.InboundPipeline.doHandleBytes(InboundPipeline.java:121) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.InboundPipeline.handleBytes(InboundPipeline.java:86) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.netty4.Netty4MessageInboundHandler.channelRead(Netty4MessageInboun 1> dHandler.java:63) ~[transport-netty4-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> ... 18 more
```
**Build scan:**
https://gradle-enterprise.elastic.co/s/2vgcyit5yqwwa/tests/:modules:ingest-geoip:internalClusterTest/org.elasticsearch.ingest.geoip.GeoIpDownloaderIT/testUseGeoIpProcessorWithDownloadedDBs
**Reproduction line:**
```
./gradlew ':modules:ingest-geoip:internalClusterTest' --tests "org.elasticsearch.ingest.geoip.GeoIpDownloaderIT.testUseGeoIpProcessorWithDownloadedDBs" -Dtests.seed=BC7DEB88A745D747 -Dtests.locale=da -Dtests.timezone=America/Araguaina -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.ingest.geoip.GeoIpDownloaderIT&tests.test=testUseGeoIpProcessorWithDownloadedDBs
**Failure excerpt:**
```
java.lang.Exception: Test abandoned because suite timeout was reached.
at __randomizedtesting.SeedInfo.seed([BC7DEB88A745D747]:0)
``` | https://github.com/elastic/elasticsearch/issues/96438 | https://github.com/elastic/elasticsearch/pull/96777 | 2be97132fc9c3fd0fb5de45b5533b11fbcdc79d5 | 65fc5e5696e5b0c6f15f9ae364f78762a87c448f | "2023-05-30T15:46:53Z" | java | "2023-06-12T19:58:48Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,425 | ["docs/changelog/96662.yaml", "server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/restore/RestoreClusterStateListener.java"] | [CI] SharedClusterSnapshotRestoreIT classMethod failing | This failure seems related: https://gradle-enterprise.elastic.co/s/hbx32w3mmvsiu/tests/:server:internalClusterTest/org.elasticsearch.snapshots.SharedClusterSnapshotRestoreIT/testUnrestorableIndexDuringRestore?top-execution=1
**Build scan:**
https://gradle-enterprise.elastic.co/s/hbx32w3mmvsiu/tests/:server:internalClusterTest/org.elasticsearch.snapshots.SharedClusterSnapshotRestoreIT
**Reproduction line:**
```
./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.snapshots.SharedClusterSnapshotRestoreIT" -Dtests.seed=52861D7778F38700 -Dtests.locale=en-US -Dtests.timezone=UTC -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.snapshots.SharedClusterSnapshotRestoreIT&tests.test=classMethod
**Failure excerpt:**
```
java.lang.Exception: Suite timeout exceeded (>= 1200000 msec).
at __randomizedtesting.SeedInfo.seed([52861D7778F38700]:0)
``` | https://github.com/elastic/elasticsearch/issues/96425 | https://github.com/elastic/elasticsearch/pull/96662 | eaadf351c2d65a01472265f0c0275323819a366a | 6d5b6a0d0469e692370d746485ec680e0d30c345 | "2023-05-30T08:57:36Z" | java | "2023-06-12T15:13:04Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,383 | ["qa/mixed-cluster/build.gradle", "x-pack/qa/mixed-tier-cluster/build.gradle"] | [CI] Execution failed for task ':qa:mixed-cluster:v8.8.0#mixedClusterTest' | ### CI Link
https://gradle-enterprise.elastic.co/s/x6ic2txirq4m4
### Repro line
n/a
### Does it reproduce?
Didn't try
### Applicable branches
8.8
### Failure history
_No response_
### Failure excerpt
Many networking error, but the first failure seemed to be related to remote transport validation, and an array length being unexpectedly long, perhaps a format change?
```
Caused by: java.lang.IllegalStateException: failure when sending a join validation request from [{v8.8.0-3}{TtjGlnzSTFeqNN2Z50UIQg}{u0sbUikVSpGkNs8vKOhqfg}{v8.8.0-3}{127.0.0.1}{127.0.0.1:43665}{cdfhilmrstw}{8.8.0}] to [{v8.8.0-0}{LlAaCjHISU-9qkHXvuJmbQ}{INlUgbJWS7q13B9UI7hK7A}{v8.8.0-0}{127.0.0.1}{127.0.0.1:46169}{cdfhilmrstw}{8.8.1}] |
-- | --
| » at org.elasticsearch.cluster.coordination.Coordinator.lambda$sendJoinValidate$13(Coordinator.java:730) |
...
| » Caused by: org.elasticsearch.transport.RemoteTransportException: [v8.8.0-0][127.0.0.1:46169][internal:cluster/coordination/join/validate] |
| » Caused by: java.lang.IllegalStateException: array length must be <= to 2147483631 but was: 2147483647
``` | https://github.com/elastic/elasticsearch/issues/96383 | https://github.com/elastic/elasticsearch/pull/96391 | 815190aa6bd4fd486f56416fcc0c33dd96952191 | 4ca12c18494e2a39f8b4247bcc91823572c91e5e | "2023-05-26T13:54:44Z" | java | "2023-05-30T07:53:04Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,382 | ["qa/mixed-cluster/build.gradle", "x-pack/qa/mixed-tier-cluster/build.gradle"] | [CI] Execution failed for task ':x-pack:qa:mixed-tier-cluster:v8.8.0#mixedClusterTest' | ### CI Link
https://gradle-enterprise.elastic.co/s/4gqhiblled2fu
### Repro line
n/a
### Does it reproduce?
Didn't try
### Applicable branches
main
### Failure history
_No response_
### Failure excerpt
There were many connection refused and none shutdown errors, but the first error seemed to be related to versioning in the PublicationTransportHandler:
```
[2023-05-26T13:14:51,373][WARN ][o.e.d.FileBasedSeedHostsProvider] [v8.8.0-0] expected, but did not find, a dynamic hosts list at [/dev/shm/elastic+elasticsearch+main+periodic+bwc/x-pack/qa/mixed-tier-cluster/build/testclusters/v8.8.0-0/config/unicast_hosts.txt] |
-- | --
| » ↑ repeated 7 times ↑ |
| » [2023-05-26T13:14:46,659][WARN ][stderr ] [v8.8.0-0] May 26, 2023 1:14:46 PM org.apache.lucene.store.MemorySegmentIndexInputProvider <init> |
| » [2023-05-26T13:14:51,368][WARN ][o.e.c.c.ClusterBootstrapService] [v8.8.0-0] this node is locked into cluster UUID [gyX4fCUfQZmqBiQWJ2HozQ] but [cluster.initial_master_nodes] is set to [v8.8.0-0, v8.8.0-1, v8.8.0-2]; remove this setting to avoid possible data loss caused by subsequent cluster bootstrap attempts; for further information see https://www.elastic.co/guide/en/elasticsearch/reference/master/important-settings.html#initial_master_nodes |
| » [2023-05-26T13:14:52,380][WARN ][o.e.c.c.PublicationTransportHandler] [v8.8.0-0] unexpected error while deserializing an incoming cluster state java.lang.IllegalStateException: unexpected byte [0x02]
```
| https://github.com/elastic/elasticsearch/issues/96382 | https://github.com/elastic/elasticsearch/pull/96391 | 815190aa6bd4fd486f56416fcc0c33dd96952191 | 4ca12c18494e2a39f8b4247bcc91823572c91e5e | "2023-05-26T13:51:19Z" | java | "2023-05-30T07:53:04Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,344 | ["docs/reference/rest-api/usage.asciidoc"] | [CI] DocsClientYamlTestSuiteIT test {yaml=reference/rest-api/usage/line_38} failing | ### CI Link
https://gradle-enterprise.elastic.co/s/k5ttr7y6ybz6w
### Repro line
`gradlew ':docs:yamlRestTest' --tests "org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT.test {yaml=reference/rest-api/usage/line_38}" -Dtests.seed=B33396E7A6E1CE74 -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=da-DK -Dtests.timezone=Asia/Omsk`
### Does it reproduce?
Yes
### Applicable branches
main
### Failure history
https://gradle-enterprise.elastic.co/scans/tests?search.timeZoneId=Europe/Bucharest&tests.container=org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dreference/rest-api/usage/line_38%7D
### Failure excerpt
Similar to https://github.com/elastic/elasticsearch/issues/95603, but not the same output in the `usage`. Now complaining about `analytics_collections: <unexpected> but was <{count=0}>`.
```
REPRODUCE WITH: ./gradlew ':docs:yamlRestTest' --tests "org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT.test {yaml=reference/rest-api/usage/line_38}" -Dtests.seed=CB9D9AB30CC180F4 -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=lv-LV -Dtests.timezone=America/Argentina/Salta -Druntime.java=20
org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT > test {yaml=reference/rest-api/usage/line_38} FAILED
java.lang.AssertionError: Failure at [reference/rest-api/usage:16]: Expected a map containing
watcher: a map containing
execution: a map containing
actions: a map containing
_all: a map containing
total: <6>
total_time_in_ms: <164>
watch: a map containing
input: a map containing
_all: a map containing
total: <0>
active: <0>
trigger: a map containing
_all: a map containing
total: <0>
active: <0>
available: <true>
count: a map containing
total: <0>
active: <0>
enabled: <true>
eql: a map containing
available: <true>
enabled: <true>
features: a map containing
joins: a map containing
join_queries_three: <0>
join_queries_two: <0>
join_until: <0>
join_queries_five_or_more: <0>
join_queries_four: <0>
sequence: <6>
keys: a map containing
join_keys_two: <0>
join_keys_one: <4>
join_keys_three: <0>
join_keys_five_or_more: <0>
join_keys_four: <0>
join: <0>
sequences: a map containing
sequence_queries_three: <1>
sequence_queries_four: <0>
sequence_queries_two: <5>
sequence_until: <1>
sequence_maxspan: <3>
sequence_queries_five_or_more: <0>
event: <18>
pipes: a map containing
pipe_tail: <21>
pipe_head: <0>
queries: a map containing
all: a map containing
total: <24>
failed: <0>
_all: a map containing
total: <24>
failed: <0>
enterprise_search: a map containing
search_applications: a map containing
count: <0>
available: <true>
enabled: <true>
analytics_collections: <unexpected> but was <{count=0}>
frozen_indices: a map containing
indices_count: <0>
available: <true>
enabled: <true>
archive: a map containing
indices_count: <0>
available: <true>
enabled: <true>
ilm: a map containing
....
``` | https://github.com/elastic/elasticsearch/issues/96344 | https://github.com/elastic/elasticsearch/pull/96385 | 322805858f9fa1642d32b7f8ef7843d7a8c1b3c6 | 9649ee0536045e4ce68495eb295fe942582a712d | "2023-05-25T09:59:05Z" | java | "2023-05-26T16:10:54Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,330 | ["docs/reference/data-streams/tsds-index-settings.asciidoc"] | Unable to create time series index without setting routing_path | ### Elasticsearch Version
main
### Installed Plugins
none
### Java Version
_bundled_
### OS Version
macos
### Problem Description
Running the PUT command below results in a 400 with the error "[index.mode=time_series] requires a non-empty [index.routing_path]". This error conflicts with the documenation that states [Defaults to the list of dimension fields with a time_series_dimension value of true defined in your component template](https://www.elastic.co/guide/en/elasticsearch/reference/master/tsds-index-settings.html#tsds-index-settings).
<img width="500" alt="Screen Shot 2023-05-24 at 8 58 16 AM" src="https://github.com/elastic/elasticsearch/assets/373691/8a81693f-76b2-464c-8f0d-49694ddaf7db">
```
PUT /tracks
{
"settings": {
"mode": "time_series"
},
"mappings": {
"properties": {
"location": {
"type": "geo_point",
"time_series_metric": "position"
},
"entity_id": {
"type": "keyword",
"time_series_dimension": true
},
"azimuth": {
"type": "double"
},
"speed": {
"type": "double"
},
"@timestamp": {
"type": "date"
}
}
}
}
```
### Steps to Reproduce
Run the PUT command below. Notice the 400 response. This conflicts with documentation from https://www.elastic.co/guide/en/elasticsearch/reference/master/tsds-index-settings.html#tsds-index-settings. This command should return a 200 with routing_path defaulting to the list of dimension fields with a time_series_dimension value of true defined in the mappings.
```
PUT /tracks
{
"settings": {
"mode": "time_series"
},
"mappings": {
"properties": {
"location": {
"type": "geo_point",
"time_series_metric": "position"
},
"entity_id": {
"type": "keyword",
"time_series_dimension": true
},
"azimuth": {
"type": "double"
},
"speed": {
"type": "double"
},
"@timestamp": {
"type": "date"
}
}
}
}
```
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/96330 | https://github.com/elastic/elasticsearch/pull/96366 | 2b0d6e6df45f80c1b459d6f7cd8f0d69b33a11b5 | d5f9e113a527a9cdb9d11e4739fb3ca7a0005b63 | "2023-05-24T15:00:13Z" | java | "2023-05-26T17:23:53Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,311 | ["docs/changelog/96293.yaml", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/transform/TransformMessages.java", "x-pack/plugin/transform/qa/single-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/transform/integration/TransformUpdateIT.java", "x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/persistence/IndexBasedTransformConfigManager.java"] | [Transform] Transform config update conflict gets reported as `ResourceAlreadyExistsException` | ### Elasticsearch Version
main
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
MacOS
### Problem Description
When there are 2 or more concurrent `_update` requests issued, one of them may fail with `ResourceAlreadyExistsException` exception which is misleading.
### Steps to Reproduce
1. Spawn a number of `_update` requests at the same time
2. Look at the results of these requests
3. Observe `ResourceAlreadyExistsException` being thrown in the case of conflict
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/96311 | https://github.com/elastic/elasticsearch/pull/96293 | 2ab147b3edd83523e206bf1543299adf6cec0cba | 7e34514465eef67bbae017b8c5f6e277a6114501 | "2023-05-24T07:15:18Z" | java | "2023-05-24T13:24:55Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,295 | ["server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregationBuilder.java"] | [CI] VariableWidthHistogramAggregatorTests testMultipleSegments failing | This happened in a PR but I don't think its related to the change there. Also I couldn't reproduce locally with the given seed, but I found a few similar looking errors in recent CI history that I will add here, hoping the build scans of those are still there.
**Build scan:**
https://gradle-enterprise.elastic.co/s/3fehoe67iezom/tests/:server:test/org.elasticsearch.search.aggregations.bucket.histogram.VariableWidthHistogramAggregatorTests/testMultipleSegments
**Reproduction line:**
```
./gradlew ':server:test' --tests "org.elasticsearch.search.aggregations.bucket.histogram.VariableWidthHistogramAggregatorTests.testMultipleSegments" -Dtests.seed=38D40B77C192C67A -Dtests.locale=ms-MY -Dtests.timezone=Pacific/Bougainville -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.search.aggregations.bucket.histogram.VariableWidthHistogramAggregatorTests&tests.test=testMultipleSegments
**Failure excerpt:**
```
java.lang.AssertionError:
Expected: (a value equal to or greater than <4L> and a value less than or equal to <7L>)
but: a value equal to or greater than <4L> <3L> was less than <4L>
at __randomizedtesting.SeedInfo.seed([38D40B77C192C67A:84A3BE2E06356A3F]:0)
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.search.aggregations.bucket.histogram.VariableWidthHistogramAggregatorTests.lambda$testMultipleSegments$31(VariableWidthHistogramAggregatorTests.java:454)
at org.elasticsearch.search.aggregations.bucket.histogram.VariableWidthHistogramAggregatorTests.testSearchCase(VariableWidthHistogramAggregatorTests.java:634)
at org.elasticsearch.search.aggregations.bucket.histogram.VariableWidthHistogramAggregatorTests.testMultipleSegments(VariableWidthHistogramAggregatorTests.java:438)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/96295 | https://github.com/elastic/elasticsearch/pull/96525 | 846d640ddf2747ee1750ba99595c6ec09eba8977 | 5383682d82d285dc55da2d7035fbdbca47794439 | "2023-05-23T14:26:35Z" | java | "2023-06-02T14:12:09Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,284 | ["docs/changelog/97460.yaml", "modules/aggregations/src/yamlRestTest/resources/rest-api-spec/test/aggregations/top_hits.yml", "server/src/main/java/org/elasticsearch/search/fetch/FetchPhase.java"] | params['_source'] is wrong when using it in runtime_mappings with aggregation | ### Elasticsearch Version
8.7.1
### Installed Plugins
_No response_
### Java Version
openjdk 20.0.1 2023-04-18
### OS Version
Linux 80ea76b172b2 5.15.49-linuxkit #1 SMP PREEMPT Tue Sep 13 07:51:32 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
### Problem Description
After upgrading from ES `8.6.2` to `8.7.1` I noticed that `params['_source']` value is wrong sometimes when it's accessed in `runtime_mappings` field's script as in:
```
"runtime_mappings": {
"runtime_field": {
"type": "keyword",
"script": {
"lang": "painless",
"source": "emit(params['_source'].toString())"
}
}
}
```
### Steps to Reproduce
```
PUT foo_bar
{
"mappings": {
"properties": {
"id": {
"type": "text"
},
"name": {
"type": "text",
"fields": {
"raw": {
"type": "keyword"
}
}
}
}
},
"settings": {
"index": {
"number_of_shards": 3,
"number_of_replicas": 2
}
}
}
POST foo_bar/_bulk?refresh=true
{"index":{}}
{"id":"1","name":"name 1"}
{"index":{}}
{"id":"2","name":"name 2"}
{"index":{}}
{"id":"3","name":"name 3"}
{"index":{}}
GET foo_bar/_search
{
"size": 0,
"runtime_mappings": {
"runtime_field": {
"type": "keyword",
"script": {
"lang": "painless",
"source": "emit(params['_source'].toString())"
}
}
},
"fields": [
"runtime_field"
],
"aggs": {
"aggregation": {
"terms": {
"field": "name.raw"
},
"aggs": {
"hits": {
"top_hits": {
"_source": true
}
}
}
}
},
"from": 0
}
```
and result of this is:
```
{
"took": 1,
"timed_out": false,
"_shards": {
"total": 3,
"successful": 3,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 3,
"relation": "eq"
},
"max_score": null,
"hits": []
},
"aggregations": {
"aggregation": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "name 1",
"doc_count": 1,
"hits": {
"hits": {
"total": {
"value": 1,
"relation": "eq"
},
"max_score": 1,
"hits": [
{
"_index": "foo_bar",
"_id": "TydRSIgB3P4C-UmlKFF0",
"_score": 1,
"_source": {
"id": "1",
"name": "name 1"
},
"fields": {
"runtime_field": [
"{id=1, name=name 1}"
]
}
}
]
}
}
},
{
"key": "name 2",
"doc_count": 1,
"hits": {
"hits": {
"total": {
"value": 1,
"relation": "eq"
},
"max_score": 1,
"hits": [
{
"_index": "foo_bar",
"_id": "UCdRSIgB3P4C-UmlKFF0",
"_score": 1,
"_source": {
"id": "2",
"name": "name 2"
},
"fields": {
"runtime_field": [
"{id=2, name=name 2}"
]
}
}
]
}
}
},
{
"key": "name 3",
"doc_count": 1,
"hits": {
"hits": {
"total": {
"value": 1,
"relation": "eq"
},
"max_score": 1,
"hits": [
{
"_index": "foo_bar",
"_id": "USdRSIgB3P4C-UmlKFF0",
"_score": 1,
"_source": {
"id": "3",
"name": "name 3"
},
"fields": {
"runtime_field": [
"{id=1, name=name 1}" # <----- It should be "{id=3, name=name 3}"
]
}
}
]
}
}
}
]
}
}
}
```
Please let me know if you need more info to investigate this
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/96284 | https://github.com/elastic/elasticsearch/pull/97460 | ac0c3167646a5b242e32e335b29f4145b1af4167 | a426d36a6fe25826e2d41f07fee60d3d111a6f16 | "2023-05-23T11:16:43Z" | java | "2023-07-10T10:53:48Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,282 | ["server/src/test/java/org/elasticsearch/transport/RemoteClusterConnectionTests.java"] | [CI] RemoteClusterConnectionTests testCloseWhileConcurrentlyConnecting failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/w5uoitwbjlubk/tests/:server:test/org.elasticsearch.transport.RemoteClusterConnectionTests/testCloseWhileConcurrentlyConnecting
**Reproduction line:**
```
./gradlew ':server:test' --tests "org.elasticsearch.transport.RemoteClusterConnectionTests.testCloseWhileConcurrentlyConnecting" -Dtests.seed=1D1BC140B0F8A67C -Dtests.locale=sk -Dtests.timezone=Africa/Blantyre -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.transport.RemoteClusterConnectionTests&tests.test=testCloseWhileConcurrentlyConnecting
**Failure excerpt:**
```
com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=1746, name=Thread-113, state=RUNNABLE, group=TGRP-RemoteClusterConnectionTests]
Caused by: java.lang.AssertionError: cluster:internal/remote_cluster/handshake
at __randomizedtesting.SeedInfo.seed([1D1BC140B0F8A67C]:0)
at org.elasticsearch.transport.InboundAggregator.lambda$new$0(InboundAggregator.java:46)
at org.elasticsearch.transport.InboundAggregator.initializeRequestState(InboundAggregator.java:197)
at org.elasticsearch.transport.InboundAggregator.headerReceived(InboundAggregator.java:66)
at org.elasticsearch.transport.InboundPipeline.forwardFragments(InboundPipeline.java:138)
at org.elasticsearch.transport.InboundPipeline.doHandleBytes(InboundPipeline.java:121)
at org.elasticsearch.transport.InboundPipeline.handleBytes(InboundPipeline.java:86)
at org.elasticsearch.transport.netty4.Netty4MessageInboundHandler.channelRead(Netty4MessageInboundHandler.java:63)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.handler.logging.LoggingHandler.channelRead(LoggingHandler.java:280)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
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:788)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:689)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:652)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/96282 | https://github.com/elastic/elasticsearch/pull/96309 | f581e0ef15bebd193e664d5686e978188e4181c4 | 5737601f981de6e2b0625881e9fc35245db2bd86 | "2023-05-23T11:00:40Z" | java | "2023-05-24T10:07:31Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,273 | ["docs/changelog/96490.yaml", "server/src/main/java/org/elasticsearch/cluster/coordination/Coordinator.java"] | [CI] AtomicRegisterCoordinatorTests testFollowerDisconnectionWithoutDisconnectEventDetectedQuickly failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/xksdnrqjf2zyu/tests/:server:test/org.elasticsearch.cluster.coordination.AtomicRegisterCoordinatorTests/testFollowerDisconnectionWithoutDisconnectEventDetectedQuickly
**Reproduction line:**
```
./gradlew ':server:test' --tests "org.elasticsearch.cluster.coordination.AtomicRegisterCoordinatorTests.testFollowerDisconnectionWithoutDisconnectEventDetectedQuickly" -Dtests.seed=D98DE3FF01622475 -Dtests.locale=fr-CH -Dtests.timezone=Europe/Skopje -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.cluster.coordination.AtomicRegisterCoordinatorTests&tests.test=testFollowerDisconnectionWithoutDisconnectEventDetectedQuickly
**Failure excerpt:**
```
java.lang.AssertionError: node4 has no NO_MASTER_BLOCK
Expected: <false>
but: was <true>
at __randomizedtesting.SeedInfo.seed([D98DE3FF01622475:636E5D3BCD9A5B7]:0)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.elasticsearch.cluster.coordination.AbstractCoordinatorTestCase$Cluster.stabilise(AbstractCoordinatorTestCase.java:593)
at org.elasticsearch.cluster.coordination.AbstractCoordinatorTestCase$Cluster.stabilise(AbstractCoordinatorTestCase.java:554)
at org.elasticsearch.cluster.coordination.CoordinatorTests.testFollowerDisconnectionWithoutDisconnectEventDetectedQuickly(CoordinatorTests.java:437)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
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:48)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
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:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/96273 | https://github.com/elastic/elasticsearch/pull/96490 | 8b1cd47455314ade5c09751620868860f42c423e | c777925450354d0b3f8972ac5320ba91892236c5 | "2023-05-23T09:29:15Z" | java | "2023-06-01T14:42:32Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,236 | ["docs/changelog/96265.yaml", "x-pack/plugin/eql/src/test/resources/querytranslator_tests.txt", "x-pack/plugin/ql/src/main/java/org/elasticsearch/xpack/ql/planner/ExpressionTranslators.java", "x-pack/plugin/ql/src/main/java/org/elasticsearch/xpack/ql/querydsl/query/BoolQuery.java", "x-pack/plugin/ql/src/test/java/org/elasticsearch/xpack/ql/querydsl/query/BoolQueryTests.java", "x-pack/plugin/sql/src/test/java/org/elasticsearch/xpack/sql/planner/QueryTranslatorTests.java", "x-pack/plugin/sql/src/test/resources/org/elasticsearch/xpack/sql/planner/querytranslator_tests.txt"] | QL: Reduce number of nested bool queries | ### Description
Certain OR expressions are translated into a number of nested bool queries which, unless balanced, end up being too deep and rejected by ES/Lucene.
Reproduced on 8.7.1 thanks to @e-parth-pathak:
1. Create an Index and ingest data:
```
PUT /library/_bulk?refresh
{"index":{"_id":"Leviathan Wakes"}}
{"name":"Leviathan Wakes","author":"James S.A. Corey","release_date":"2011-06-02","page_count":561}
{"index":{"_id":"Hyperion"}}
{"name":"Hyperion","author":"Dan Simmons","release_date":"1989-05-26","page_count":482}
{"index":{"_id":"Dune"}}
{"name":"Dune","author":"Frank Herbert","release_date":"1965-06-01","page_count":604}
{"index":{"_id":"Persuation"}}
{"name":"Persuation","author":"Robert Cialdini","release_date":"2023-06-01","page_count":304}
{"index":{"_id":"Sapiens"}}
{"name":"Sapiens","author":"Yuval Noah Harari","release_date":"1969-06-01","page_count":204}
{"index":{"_id":"Hooked"}}
{"name":"Hooked","author":"Nir Eyal","release_date":"2022-06-01","page_count":408}
```
2. Run a query:
```
POST /_sql/translate
{
"query": "SELECT * FROM library WHERE name like '%nir%' OR name like '%yuval%' OR name like '%dan%' OR name like '%frank%' OR name like '%robert%' OR name like '%leviathan%'"
}
```
3. The response that I got:
```json
{
"size": 1000,
"query": {
"bool": {
"should": [
{
"bool": {
"should": [
{
"bool": {
"should": [
{
"bool": {
"should": [
{
"bool": {
"should": [
{
"wildcard": {
"name.keyword": {
"wildcard": "*nir*",
"boost": 1
}
}
},
{
"wildcard": {
"name.keyword": {
"wildcard": "*yuval*",
"boost": 1
}
}
}
],
"boost": 1
}
},
{
"wildcard": {
"name.keyword": {
"wildcard": "*dan*",
"boost": 1
}
}
}
],
"boost": 1
}
},
{
"wildcard": {
"name.keyword": {
"wildcard": "*frank*",
"boost": 1
}
}
}
],
"boost": 1
}
},
{
"wildcard": {
"name.keyword": {
"wildcard": "*robert*",
"boost": 1
}
}
}
],
"boost": 1
}
},
{
"wildcard": {
"name.keyword": {
"wildcard": "*leviathan*",
"boost": 1
}
}
}
],
"boost": 1
}
},
"_source": false,
"fields": [
{
"field": "author"
},
{
"field": "name"
},
{
"field": "page_count"
},
{
"field": "release_date",
"format": "strict_date_optional_time_nanos"
}
],
"sort": [
{
"_doc": {
"order": "asc"
}
}
],
"track_total_hits": -1
}
```
Note that while the lowest nested bool query uses two entries, the rest do not and instead rely on another bool wrapper.
Either all entries should be put into a should clause OR, all the OR entries need to be balanced and be wrapped on the same level.
P.S. This has been addressed in the past by #30267 however it still seems to occur when dealing with like comparisons. | https://github.com/elastic/elasticsearch/issues/96236 | https://github.com/elastic/elasticsearch/pull/96265 | 02b1f01091c68c65f0f39edd892b8a1901507e1e | 98bc34a689cd83a43ad8c01085ef4a91295695bd | "2023-05-21T20:22:22Z" | java | "2023-05-24T07:40:56Z" |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,219 | ["server/src/internalClusterTest/java/org/elasticsearch/health/HealthMetadataServiceIT.java", "server/src/internalClusterTest/java/org/elasticsearch/health/node/DiskHealthIndicatorServiceIT.java", "server/src/main/java/org/elasticsearch/health/metadata/HealthMetadata.java", "server/src/main/java/org/elasticsearch/health/metadata/HealthMetadataService.java", "server/src/main/java/org/elasticsearch/node/Node.java"] | max_shards_in_cluster is not properly calculated from max_shards_per_node | ### Elasticsearch Version
8.6.0, 8.7.0, 8.8.0, 8.9.0
### Installed Plugins
ESS default
### Java Version
ESS default
### OS Version
ESS default
### Problem Description
Our clusters hit continuously the following error on ESS
It is related to the number of shards per cluster `max_shards_in_cluster` that is calculated based on `max_shards_per_node` but is not correctly calculated, our value for `max_shards_per_node` is 10000. We have 10 data nodes, so we have configured more than 7000 shards per cluster for sure. No matter the value you put on `max_shards_per_node`, we cannot have more than 7000 shards in our clusters.

```
"shards_capacity" : {
"status" : "Red",
"symptom" : "Cluster is close to reaching the configured maximum number of shards for data nodes.",
"details" : {
"data" : {
"max_shards_in_cluster" : 7000,
"current_used_shards" : 9023
```
```
{
"status": "green",
"number_of_nodes": 10,
"unassigned_shards": 0,
"number_of_pending_tasks": 2,
"number_of_in_flight_fetch": 0,
"timed_out": false,
"active_primary_shards": 5185,
"task_max_waiting_in_queue_millis": 600,
"cluster_name": "0000000000000000000000000",
"relocating_shards": 0,
"active_shards_percent_as_number": 100,
"active_shards": 9753,
"initializing_shards": 0,
"number_of_data_nodes": 7,
"delayed_unassigned_shards": 0
}
```
Probably related to https://github.com/elastic/elasticsearch/issues/91119
### Steps to Reproduce
* Deploy a cluster with Elastic Stack 8.7.0
* Create more than 7000 shards
* Change the value of `max_shards_per_node` to 5000
* Wait until the error appears again
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/96219 | https://github.com/elastic/elasticsearch/pull/97135 | 5d9146082f57e6d7588aa356343aeeae48358ce9 | dd8ac7856e24bdddf73ba54765e4328b678ec594 | "2023-05-18T12:17:02Z" | java | "2023-07-03T14:33:19Z" |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.