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
94,085
["docs/changelog/94141.yaml", "x-pack/plugin/rollup/qa/rest/src/yamlRestTest/resources/rest-api-spec/test/rollup/10_basic.yml", "x-pack/plugin/rollup/src/main/java/org/elasticsearch/xpack/downsample/RollupShardIndexer.java", "x-pack/plugin/rollup/src/main/java/org/elasticsearch/xpack/downsample/TransportDownsampleAction.java"]
Unsupported timestamp format in downsampling source index
### Elasticsearch Version 8.6.1 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version all ### Problem Description Trying to downsample an index including a `timestamp` field mapped as `date_nanos` triggers a `MapperParsingException`. ### Steps to Reproduce We expect to be able to reproduce this issue using a YAML test where we try to downsample an index including a `date_nanos` `timestamp` field. ``` PUT _component_template/my-xroos-testdata-mappings { "template": { "mappings": { "properties": { "correlation_id": { "type": "text" }, "anyvalue": { "type": "long", "time_series_metric": "gauge" }, "source": { "type": "keyword", "time_series_dimension": true }, "status": { "type": "keyword", "time_series_dimension": true }, "error_code": { "type": "keyword", "time_series_dimension": true }, "@timestamp": { "type": "date_nanos", "format": "uuuu-MM-dd'T'HH:mm:ss.SSSSSSSSSX" } } } }, "_meta": { "description": "Mappings for test data" } } PUT _ilm/policy/my-xroos-testdata-lifecycle-policy { "policy": { "phases": { "hot": { "actions": { "rollover": { "max_age": "1m", "max_primary_shard_size": "5gb" } } }, "warm": { "min_age": "2m", "actions": { "shrink": { "number_of_shards": 1 }, "forcemerge": { "max_num_segments": 1 }, "downsample": { "fixed_interval": "1m" } } }, "delete": { "min_age": "30d", "actions": { "delete": {} } } } } } PUT _component_template/my-xroos-testdata-settings { "template": { "settings": { "index.lifecycle.name": "my-xroos-testdata-lifecycle-policy", "index.look_ahead_time": "5m", "index.codec": "best_compression" } }, "_meta": { "description": "Index settings for test data" } } PUT _index_template/my-xroos-testdata-template { "index_patterns": [ "my-xroos-datatest-*" ], "data_stream": {}, "template": { "settings": { "index.mode": "time_series", "index.routing_path": [ "source", "status", "error_code" ] } }, "composed_of": [ "my-xroos-testdata-mappings", "my-xroos-testdata-settings" ], "priority": 500, "_meta": { "description": "Template for my test data" } } DELETE my-xroos-datatest-first DELETE _data_stream/my-xroos-datatest-first PUT my-xroos-datatest-first/_bulk { "create":{ } } { "@timestamp": "2023-02-23T12:47:14.622123123Z", "correlation_id": "wwu3gaac08", "source": "pgw", "status": "success", "anyvalue": 1} { "create":{ } } { "@timestamp": "2023-02-23T12:47:14.622123124Z", "correlation_id": "reef3aaac08", "source": "pgw", "status": "success", "anyvalue": 2} ``` ### Logs (if relevant)
https://github.com/elastic/elasticsearch/issues/94085
https://github.com/elastic/elasticsearch/pull/94141
303919a901d1135b2f74fa5e6640a8f6a709a339
5210a098041f65fbc735d43e69f2f54e55d9af17
"2023-02-23T14:28:49Z"
java
"2023-03-01T14:41:18Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
94,071
["modules/data-streams/src/test/java/org/elasticsearch/datastreams/action/GetDataStreamsResponseTests.java", "server/src/test/java/org/elasticsearch/cluster/metadata/DataStreamTests.java"]
[CI] GetDataStreamsResponseTests.testEqualsAndHashcode failing
### CI Link https://gradle-enterprise.elastic.co/s/bwt6v3ctacqdk/ ### Repro line ``` ./gradlew ':modules:data-streams:test' --tests "org.elasticsearch.datastreams.action.GetDataStreamsResponseTests.testEqualsAndHashcode" -Dtests.seed=1AD99DE8C323B9ED -Dtests.locale=zh-TW -Dtests.timezone=Indian/Mahe -Druntime.java=17 -Dtests.fips.enabled=true ``` ### Does it reproduce? Yes ### Applicable branches main ### Failure history _No response_ ### Failure excerpt ``` org.elasticsearch.datastreams.action.GetDataStreamsResponseTests > testEqualsAndHashcode FAILED java.lang.AssertionError: Response mutation should not be equal to original Expected: not <org.elasticsearch.action.datastreams.GetDataStreamAction$Response@c72f6aff> but: was <org.elasticsearch.action.datastreams.GetDataStreamAction$Response@c72f6aff> at __randomizedtesting.SeedInfo.seed([1AD99DE8C323B9ED:6BD6E5250CC4F0C2]:0) at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.elasticsearch.test.EqualsHashCodeTestUtils.checkEqualsAndHashCode(EqualsHashCodeTestUtils.java:73) at org.elasticsearch.test.AbstractWireTestCase.testEqualsAndHashcode(AbstractWireTestCase.java:57) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java: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.ThreadLeakContr ```
https://github.com/elastic/elasticsearch/issues/94071
https://github.com/elastic/elasticsearch/pull/94180
9d6c44311d2f9f69a20acf24ee78245e5891bf45
8da0ac6e8efe019f63a37a96d41194954d93111a
"2023-02-23T11:42:15Z"
java
"2023-02-28T10:19:14Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
94,067
["x-pack/plugin/snapshot-repo-test-kit/src/main/java/org/elasticsearch/repositories/blobstore/testkit/RepositoryAnalyzeAction.java"]
[CI] RepositoryAnalysisFailureIT testFailsIfRegisterHoldsSpuriousValue failing
Bug introduced in #93955 **Build scan:** https://gradle-enterprise.elastic.co/s/4g6eedkf5sjho/tests/:x-pack:plugin:snapshot-repo-test-kit:internalClusterTest/org.elasticsearch.repositories.blobstore.testkit.RepositoryAnalysisFailureIT/testFailsIfRegisterHoldsSpuriousValue **Reproduction line:** ``` ./gradlew ':x-pack:plugin:snapshot-repo-test-kit:internalClusterTest' --tests "org.elasticsearch.repositories.blobstore.testkit.RepositoryAnalysisFailureIT.testFailsIfRegisterHoldsSpuriousValue" -Dtests.seed=5C55162B6C3BBB74 -Dtests.locale=el-CY -Dtests.timezone=Africa/Ndjamena -Druntime.java=17 ``` **Applicable branches:** main **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.repositories.blobstore.testkit.RepositoryAnalysisFailureIT&tests.test=testFailsIfRegisterHoldsSpuriousValue **Failure excerpt:** ``` org.elasticsearch.ElasticsearchTimeoutException: java.util.concurrent.TimeoutException: Timeout waiting for task. at __randomizedtesting.SeedInfo.seed([5C55162B6C3BBB74:E0B2F310523C3151]:0) at org.elasticsearch.common.util.concurrent.FutureUtils.get(FutureUtils.java:67) at org.elasticsearch.action.support.PlainActionFuture.actionGet(PlainActionFuture.java:219) at org.elasticsearch.repositories.blobstore.testkit.RepositoryAnalysisFailureIT.analyseRepository(RepositoryAnalysisFailureIT.java:336) at org.elasticsearch.repositories.blobstore.testkit.RepositoryAnalysisFailureIT.testFailsIfRegisterHoldsSpuriousValue(RepositoryAnalysisFailureIT.java:328) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.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:833) Caused by: java.util.concurrent.TimeoutException: Timeout waiting for task. at org.elasticsearch.action.support.PlainActionFuture$Sync.get(PlainActionFuture.java:281) at org.elasticsearch.action.support.PlainActionFuture.get(PlainActionFuture.java:73) at org.elasticsearch.common.util.concurrent.FutureUtils.get(FutureUtils.java:65) at org.elasticsearch.action.support.PlainActionFuture.actionGet(PlainActionFuture.java:219) at org.elasticsearch.repositories.blobstore.testkit.RepositoryAnalysisFailureIT.analyseRepository(RepositoryAnalysisFailureIT.java:336) at org.elasticsearch.repositories.blobstore.testkit.RepositoryAnalysisFailureIT.testFailsIfRegisterHoldsSpuriousValue(RepositoryAnalysisFailureIT.java:328) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.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:833) ```
https://github.com/elastic/elasticsearch/issues/94067
https://github.com/elastic/elasticsearch/pull/94068
768a2eb99dbf80b5b75703564a7399ad91122eba
4f9cbf71fa2f69445208c18d25975ae022dc0fba
"2023-02-23T10:53:26Z"
java
"2023-02-23T12:01:13Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
94,041
["docs/changelog/94080.yaml", "server/src/main/java/org/elasticsearch/index/mapper/flattened/FlattenedFieldMapper.java", "x-pack/plugin/mapper-constant-keyword/src/main/java/org/elasticsearch/xpack/constantkeyword/mapper/ConstantKeywordFieldMapper.java", "x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/terms_enum/20_fieldtypes.yml"]
_terms_enum returns invalid response
### Elasticsearch Version 8.8.0-SNAPSHOT ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version MacOS ### Problem Description API when called is returning invalid response, on the same data terms aggs query runs fine ![image](https://user-images.githubusercontent.com/3505601/220749805-ddf0d735-60d5-4e45-85bf-941ea3076a3f.png) When run as aggs query ![image](https://user-images.githubusercontent.com/3505601/220764360-49f7b648-8b15-43cf-afe2-01bd62e8ebc5.png) ### Steps to Reproduce Queries are mentioned above ^^ ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/94041
https://github.com/elastic/elasticsearch/pull/94080
fbb791399150e930dea30469b15ac48f78ada5f6
7e937ac6be2ea54d6b9fc2919e9d99e062b5caff
"2023-02-22T20:20:43Z"
java
"2023-02-23T15:17:24Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,989
["server/src/main/java/org/elasticsearch/TransportVersion.java", "x-pack/plugin/ql/test-fixtures/src/main/java/org/elasticsearch/xpack/ql/TestNodes.java", "x-pack/plugin/sql/qa/mixed-node/src/javaRestTest/java/org/elasticsearch/xpack/sql/qa/mixed_node/SqlCompatIT.java", "x-pack/plugin/sql/qa/mixed-node/src/javaRestTest/java/org/elasticsearch/xpack/sql/qa/mixed_node/SqlSearchIT.java", "x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/common/io/SqlStreamInput.java", "x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/common/io/SqlStreamOutput.java", "x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/session/Cursors.java", "x-pack/plugin/sql/src/test/java/org/elasticsearch/xpack/sql/AbstractSqlWireSerializingTestCase.java", "x-pack/plugin/sql/src/test/java/org/elasticsearch/xpack/sql/common/io/SqlStreamTests.java", "x-pack/plugin/sql/src/test/java/org/elasticsearch/xpack/sql/plugin/CursorTests.java"]
Refactor SQL uses of Version.transportVersion
SqlStreamInput/Output use TransportVersion from a read-in Version constant. We need to remove the useage of `transportVersion` field
https://github.com/elastic/elasticsearch/issues/93989
https://github.com/elastic/elasticsearch/pull/94597
2fad04be073235d8711e8e8fd4c64e88d1734a8c
a375393b064b4006971dfe94ef65517102d3b7fd
"2023-02-21T16:14:02Z"
java
"2023-04-03T10:02:45Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,966
["modules/transport-netty4/src/test/java/org/elasticsearch/transport/netty4/SimpleNetty4TransportTests.java", "test/framework/src/main/java/org/elasticsearch/transport/AbstractSimpleTransportTestCase.java", "x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/transport/netty4/SimpleSecurityNetty4ServerTransportTests.java"]
Refactor AbstractSimpleTransportTestCase to not use Version.transportVersion
Refactor `AbstractSimpleTransportTestCase` and `MockTransportService` to not use `Version.transportVersion`
https://github.com/elastic/elasticsearch/issues/93966
https://github.com/elastic/elasticsearch/pull/94022
5b083e29f26cb3890eb72e7f55ac38f34f55b53d
c9b2810da4a9db62e5f43a94f3cf49d9772fb036
"2023-02-21T10:15:09Z"
java
"2023-02-22T15:57:34Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,898
[".ci/dockerOnLinuxExclusions"]
[CI] Various composeUp failures on SLES 15
### CI Link `:test:fixtures:s3-fixture:composeUp` https://gradle-enterprise.elastic.co/s/vxxuyquvque3q/console-log?task=:test:fixtures:s3-fixture:composeUp `:x-pack:test:idp-fixture:composeUp` https://gradle-enterprise.elastic.co/s/naomasqakslxu/console-log?task=:x-pack:test:idp-fixture:composeUp `':test:fixtures:geoip-fixture:composeUp'` https://gradle-enterprise.elastic.co/s/fs6augrqlhpmy/console-log?task=:test:fixtures:geoip-fixture:composeUp ### Repro line :test:fixtures:s3-fixture:composeUp ### Does it reproduce? Didn't try ### Applicable branches main, 8.7 ### Failure history ### Failure excerpt The failing tasks are different but the error is always the same: `unable to remount dir `. Looks similar to #48027 ``` ERROR: for s3-fixture-repository-test-kit Cannot start service s3-fixture-repository-test-kit: unable to remount dir as readonly: mount tmpfs:/var/lib/docker/containers/ba90665335d8d94fcfaa3f6c8c207d39703c5cb9a3862d1a46ea1e359fc42393/mounts/secrets, flags: 0x21, data: uid=0,gid=0: device or resource busy Encountered errors while bringing up the project. ```
https://github.com/elastic/elasticsearch/issues/93898
https://github.com/elastic/elasticsearch/pull/96037
1208c02cee86c8ab067ea792121521fdfd9f4cc8
ad4bd9c9ac1bdefcc8090a7ae21e9ed8658566f1
"2023-02-20T09:49:55Z"
java
"2023-05-11T16:22:37Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,888
["docs/changelog/94115.yaml", "server/src/main/java/org/elasticsearch/index/mapper/DocumentParser.java", "server/src/main/java/org/elasticsearch/index/mapper/DynamicFieldsBuilder.java", "server/src/test/java/org/elasticsearch/index/mapper/DynamicFieldsBuilderTests.java", "test/framework/src/main/java/org/elasticsearch/index/mapper/TestDocumentParserContext.java"]
Dynamic Mapping interprets "2021-51" as a [date] field.
### Elasticsearch Version 8.5.0 ### Installed Plugins _No response_ ### Java Version elastic.co customer ### OS Version elastic.co customer ### Problem Description Dynamic mapping eagerly interprets a string with this format `2021-51` as a date field, but then fails to index due to 51 not being a valid month. Expected behaviour would be to index `2021-51` as a text field. ### Steps to Reproduce With [dynamic mapping](https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic-mapping.html) turned on attempt to index this document in a fresh, empty index: ```http POST /bugreport/_doc { "not_a_date": "2022-51" } ``` Returned error message is: ```json { "error": { "root_cause": [ { "type": "date_time_exception", "reason": "date_time_exception: Invalid value for MonthOfYear (valid values 1 - 12): 51" } ], "type": "mapper_parsing_exception", "reason": "failed to parse field [not_a_date] of type [date] in document with id 'U1f9Y4YBXO70bNmhk658'. Preview of field's value: '2022-51'", "caused_by": { "type": "date_time_exception", "reason": "date_time_exception: Invalid value for MonthOfYear (valid values 1 - 12): 51" } }, "status": 400 } ``` ### Logs (if relevant) Mappings on index `bugreport` ```http GET /bugreport/_mapping ``` ```json { "bugreport": { "mappings": {} } } ```
https://github.com/elastic/elasticsearch/issues/93888
https://github.com/elastic/elasticsearch/pull/94115
3d0279765c37749f1938e2daad96d84d3e053621
b1fed2b23965535c7f00bf50fc18cdc52bab4035
"2023-02-18T10:12:18Z"
java
"2023-02-24T15:58:46Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,881
["docs/changelog/93952.yaml", "server/src/main/java/org/elasticsearch/plugins/PluginsService.java"]
Improve module/plugin loading logging messages
When Elasticsearch starts up, plugins are loaded based on their inter-dependencies. The specific order used is sometimes useful to see. Currently though the actual order cannot be seen. Instead the modules and plugins are logged in name sorted order after all loading has occurred. We should be more clear about what order the plugins are actually loaded in, though we do need to be careful as to not add too much noise. I suggest moving the "loaded xxx module" message to the actual loading method in PluginsService (it will require passing through whether the code being loaded is a module or plugin).
https://github.com/elastic/elasticsearch/issues/93881
https://github.com/elastic/elasticsearch/pull/93952
336928ab09425415cb23c7d9cb93299e74daed52
fbb791399150e930dea30469b15ac48f78ada5f6
"2023-02-17T14:26:56Z"
java
"2023-02-23T14:58:28Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,851
["docs/changelog/93882.yaml", "server/src/main/java/org/elasticsearch/plugins/PluginsService.java"]
[CI] RcsCcsCommonYamlTestSuiteIT classMethod failing
**Build scan:** https://gradle-enterprise.elastic.co/s/aydspswsfic2g/tests/:qa:ccs-common-rest:yamlRestTest/org.elasticsearch.test.rest.yaml.RcsCcsCommonYamlTestSuiteIT **Reproduction line:** ``` null ``` **Applicable branches:** main **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.test.rest.yaml.RcsCcsCommonYamlTestSuiteIT&tests.test=classMethod **Failure excerpt:** ``` java.lang.RuntimeException: An error occurred orchestrating test cluster. at __randomizedtesting.SeedInfo.seed([AA3796DB2EFF124C]:0) at org.elasticsearch.test.cluster.local.LocalClusterHandle.execute(LocalClusterHandle.java:236) at org.elasticsearch.test.cluster.local.LocalClusterHandle.writeUnicastHostsFile(LocalClusterHandle.java:217) at org.elasticsearch.test.cluster.local.LocalClusterHandle.waitUntilReady(LocalClusterHandle.java:160) at org.elasticsearch.test.cluster.local.LocalClusterHandle.start(LocalClusterHandle.java:70) at org.elasticsearch.test.cluster.local.LocalElasticsearchCluster$1.evaluate(LocalElasticsearchCluster.java:38) 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:833) Caused by: java.lang.RuntimeException: Elasticsearch process died while waiting for ports file. See console output for details. at org.elasticsearch.test.cluster.local.LocalClusterFactory$Node.lambda$waitUntilReady$0(LocalClusterFactory.java:210) at org.elasticsearch.test.cluster.util.Retry.lambda$retryUntilTrue$0(Retry.java:33) at org.elasticsearch.test.cluster.util.Retry.lambda$getValueWithTimeout$1(Retry.java:47) at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/93851
https://github.com/elastic/elasticsearch/pull/93882
edc7a6171cb9a1584182e0442133beb5df88ea7a
60ff86d4470146e4f8a72089d32940782bad63bf
"2023-02-16T09:01:19Z"
java
"2023-02-21T14:25:22Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,845
["docs/changelog/93847.yaml", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/SearchableSnapshotAction.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/SearchableSnapshotActionTests.java"]
ILM policy cannot have force_merge_index updated for searchable snapshot actions and is ignored without also changing another element of the policy
### Elasticsearch Version 8.6.1, also tested on 8.5.3 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version Ubuntu 20.04.5 LTS ### Problem Description Attempting to update force_merge_index for searchable snapshot actions within phases inside an ILM policy appear to ignore the update. Version of the policy remains the same if checked after. A workaround is changing at least one other element of the policy then the changes are accepted and the policy version is updated. ### Steps to Reproduce ``` # test create policy PUT /_ilm/policy/test { "policy": { "phases": { "cold": { "min_age": "5d", "actions": { "searchable_snapshot": { "snapshot_repository": "found-snapshots", "force_merge_index": true }, "set_priority": { "priority": 0 } } }, "warm": { "min_age": "3d", "actions": { "forcemerge": { "max_num_segments": 1 }, "set_priority": { "priority": 50 } } }, "hot": { "min_age": "0ms", "actions": { "rollover": { "max_primary_shard_size": "50gb", "max_age": "30d" }, "set_priority": { "priority": 100 } } }, "frozen": { "min_age": "25d", "actions": { "searchable_snapshot": { "snapshot_repository": "found-snapshots", "force_merge_index": true } } } } } } # check policy GET /_ilm/policy/test # update policy to have force merge set to false for cold and frozen phases PUT /_ilm/policy/test { "policy": { "phases": { "cold": { "min_age": "5d", "actions": { "searchable_snapshot": { "snapshot_repository": "found-snapshots", "force_merge_index": false }, "set_priority": { "priority": 0 } } }, "warm": { "min_age": "3d", "actions": { "forcemerge": { "max_num_segments": 1 }, "set_priority": { "priority": 50 } } }, "hot": { "min_age": "0ms", "actions": { "rollover": { "max_primary_shard_size": "50gb", "max_age": "30d" }, "set_priority": { "priority": 100 } } }, "frozen": { "min_age": "25d", "actions": { "searchable_snapshot": { "snapshot_repository": "found-snapshots", "force_merge_index": false } } } } } } # check policy - version is still 1 and no changes have taken affect. GET /_ilm/policy/test # update policy to have force merge set to false for cold and frozen phases, but also change at least 1 other element of the policy, in this case one of the order values. PUT /_ilm/policy/test { "policy": { "phases": { "cold": { "min_age": "5d", "actions": { "searchable_snapshot": { "snapshot_repository": "found-snapshots", "force_merge_index": false }, "set_priority": { "priority": 0 } } }, "warm": { "min_age": "3d", "actions": { "forcemerge": { "max_num_segments": 1 }, "set_priority": { "priority": 51 } } }, "hot": { "min_age": "0ms", "actions": { "rollover": { "max_primary_shard_size": "50gb", "max_age": "30d" }, "set_priority": { "priority": 100 } } }, "frozen": { "min_age": "25d", "actions": { "searchable_snapshot": { "snapshot_repository": "found-snapshots", "force_merge_index": false } } } } } } # check policy - version is 2 and changes have taken effect. GET /_ilm/policy/test # you could also reset the priority back to what it was if needed PUT /_ilm/policy/test { "policy": { "phases": { "cold": { "min_age": "5d", "actions": { "searchable_snapshot": { "snapshot_repository": "found-snapshots", "force_merge_index": false }, "set_priority": { "priority": 0 } } }, "warm": { "min_age": "3d", "actions": { "forcemerge": { "max_num_segments": 1 }, "set_priority": { "priority": 50 } } }, "hot": { "min_age": "0ms", "actions": { "rollover": { "max_primary_shard_size": "50gb", "max_age": "30d" }, "set_priority": { "priority": 100 } } }, "frozen": { "min_age": "25d", "actions": { "searchable_snapshot": { "snapshot_repository": "found-snapshots", "force_merge_index": false } } } } } } # check policy - version is 3 and changes have taken effect again. GET /_ilm/policy/test ``` ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/93845
https://github.com/elastic/elasticsearch/pull/93847
405a53b3c37699ac53f4eada855a5a3a14783bbe
6c89215795041299dfd67c81a02575c520cb664d
"2023-02-16T02:12:17Z"
java
"2023-02-16T09:37:59Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,840
[".buildkite/pipelines/pull-request/validate-changelogs.yml", ".ci/jobs.t/elastic+elasticsearch+pull-request+validate-changelogs.yml"]
Ensure changelog validation occurs for all PRs
While changelog validation runs when PRs that require changelogs are created, there is a gap in coverage. https://github.com/elastic/elasticsearch/pull/93022 was a docs only PR, which also (incorrectly) included a changelog. The PR passed CI, but then started failing intake (https://gradle-enterprise.elastic.co/s/gjfhohngyiuwu) once changelog validation was run. We should ensure that if a changelog exists, it is verified before allowing PRs to merge.
https://github.com/elastic/elasticsearch/issues/93840
https://github.com/elastic/elasticsearch/pull/100449
b7eafce32cb1e7dfdcb259aab89b886ff93a1c66
17659f8a4840eb39d028a54f545a06f72cc803c5
"2023-02-15T18:27:49Z"
java
"2023-10-06T23:07:16Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,824
["modules/repository-gcs/build.gradle", "modules/repository-gcs/src/internalClusterTest/java/org/elasticsearch/repositories/gcs/GcsProxyIntegrationTests.java", "modules/repository-gcs/src/internalClusterTest/java/org/elasticsearch/repositories/gcs/WebProxyServer.java", "modules/repository-gcs/src/test/java/org/elasticsearch/repositories/gcs/GoogleCloudStorageClientSettingsTests.java", "modules/repository-gcs/src/test/java/org/elasticsearch/repositories/gcs/GoogleCloudStorageServiceTests.java", "modules/repository-gcs/src/test/java/org/elasticsearch/repositories/gcs/MockHttpProxyServer.java", "modules/repository-gcs/src/test/java/org/elasticsearch/repositories/gcs/MockHttpProxyServerTests.java"]
[CI] GcsProxyIntegrationTests testReadNonExistingPath failing
**Build scan:** https://gradle-enterprise.elastic.co/s/gdcbu2dd56xs4/tests/:modules:repository-gcs:internalClusterTest/org.elasticsearch.repositories.gcs.GcsProxyIntegrationTests/testReadNonExistingPath **Reproduction line:** ``` ./gradlew ':modules:repository-gcs:internalClusterTest' --tests "org.elasticsearch.repositories.gcs.GcsProxyIntegrationTests.testReadNonExistingPath" -Dtests.seed=D8450E34DDA908D -Dtests.locale=cs -Dtests.timezone=Indian/Cocos -Druntime.java=17 ``` **Applicable branches:** 8.7 **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.repositories.gcs.GcsProxyIntegrationTests&tests.test=testReadNonExistingPath **Failure excerpt:** ``` org.elasticsearch.repositories.RepositoryVerificationException: [jmiik] cannot delete test data at at __randomizedtesting.SeedInfo.seed([D8450E34DDA908D:30BBCDB5309B0D19]:0) Caused by: java.io.IOException: Exception when deleting blobs [] at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobStore.deleteBlobsIgnoringIfNotExists(GoogleCloudStorageBlobStore.java:579) at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobStore.lambda$deleteDirectory$9(GoogleCloudStorageBlobStore.java:496) at java.security.AccessController.doPrivileged(AccessController.java:569) at org.elasticsearch.repositories.gcs.SocketAccess.doPrivilegedIOException(SocketAccess.java:33) at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobStore.deleteDirectory(GoogleCloudStorageBlobStore.java:489) at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobContainer.delete(GoogleCloudStorageBlobContainer.java:98) at org.elasticsearch.repositories.blobstore.BlobStoreRepository.endVerification(BlobStoreRepository.java:1758) at org.elasticsearch.repositories.RepositoriesService$4.lambda$doRun$1(RepositoriesService.java:490) at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:891) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.lang.Thread.run(Thread.java:833) Caused by: org.elasticsearch.common.io.stream.NotSerializableExceptionWrapper: storage_exception: Unexpected end of file from server at com.google.cloud.storage.StorageException.translate(StorageException.java:118) at com.google.cloud.storage.spi.v1.HttpStorageRpc.translate(HttpStorageRpc.java:287) at com.google.cloud.storage.spi.v1.HttpStorageRpc.access$500(HttpStorageRpc.java:95) at com.google.cloud.storage.spi.v1.HttpStorageRpc$DefaultRpcBatch.submit(HttpStorageRpc.java:263) at com.google.cloud.storage.StorageBatch.submit(StorageBatch.java:149) at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobStore.lambda$deleteBlobsIgnoringIfNotExists$10(GoogleCloudStorageBlobStore.java:570) at org.elasticsearch.repositories.gcs.SocketAccess.lambda$doPrivilegedVoidIOException$0(SocketAccess.java:43) at java.security.AccessController.doPrivileged(AccessController.java:569) at org.elasticsearch.repositories.gcs.SocketAccess.doPrivilegedVoidIOException(SocketAccess.java:42) at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobStore.deleteBlobsIgnoringIfNotExists(GoogleCloudStorageBlobStore.java:539) at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobStore.lambda$deleteDirectory$9(GoogleCloudStorageBlobStore.java:496) at java.security.AccessController.doPrivileged(AccessController.java:569) at org.elasticsearch.repositories.gcs.SocketAccess.doPrivilegedIOException(SocketAccess.java:33) at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobStore.deleteDirectory(GoogleCloudStorageBlobStore.java:489) at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobContainer.delete(GoogleCloudStorageBlobContainer.java:98) at org.elasticsearch.repositories.blobstore.BlobStoreRepository.endVerification(BlobStoreRepository.java:1758) at org.elasticsearch.repositories.RepositoriesService$4.lambda$doRun$1(RepositoriesService.java:490) at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:891) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.lang.Thread.run(Thread.java:833) Caused by: java.io.IOException: Unexpected end of file from server at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:936) at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:759) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1688) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:529) at com.google.api.client.http.javanet.NetHttpResponse.<init>(NetHttpResponse.java:36) at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:152) at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:84) at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1012) at com.google.api.client.googleapis.batch.BatchRequest.execute(BatchRequest.java:257) at com.google.cloud.storage.spi.v1.HttpStorageRpc$DefaultRpcBatch.submit(HttpStorageRpc.java:259) at com.google.cloud.storage.StorageBatch.submit(StorageBatch.java:149) at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobStore.lambda$deleteBlobsIgnoringIfNotExists$10(GoogleCloudStorageBlobStore.java:570) at org.elasticsearch.repositories.gcs.SocketAccess.lambda$doPrivilegedVoidIOException$0(SocketAccess.java:43) at java.security.AccessController.doPrivileged(AccessController.java:569) at org.elasticsearch.repositories.gcs.SocketAccess.doPrivilegedVoidIOException(SocketAccess.java:42) at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobStore.deleteBlobsIgnoringIfNotExists(GoogleCloudStorageBlobStore.java:539) at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobStore.lambda$deleteDirectory$9(GoogleCloudStorageBlobStore.java:496) at java.security.AccessController.doPrivileged(AccessController.java:569) at org.elasticsearch.repositories.gcs.SocketAccess.doPrivilegedIOException(SocketAccess.java:33) at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobStore.deleteDirectory(GoogleCloudStorageBlobStore.java:489) at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobContainer.delete(GoogleCloudStorageBlobContainer.java:98) at org.elasticsearch.repositories.blobstore.BlobStoreRepository.endVerification(BlobStoreRepository.java:1758) at org.elasticsearch.repositories.RepositoriesService$4.lambda$doRun$1(RepositoriesService.java:490) at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:891) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/93824
https://github.com/elastic/elasticsearch/pull/94205
b67c22afe2f307d5c2ac699c99d162ef47cd6823
44ab318a247dc9e4af2a58aff13eaade4ccaa620
"2023-02-15T14:00:36Z"
java
"2023-03-27T14:47:29Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,816
["modules/repository-gcs/build.gradle", "modules/repository-gcs/src/internalClusterTest/java/org/elasticsearch/repositories/gcs/GcsProxyIntegrationTests.java", "modules/repository-gcs/src/internalClusterTest/java/org/elasticsearch/repositories/gcs/WebProxyServer.java", "modules/repository-gcs/src/test/java/org/elasticsearch/repositories/gcs/GoogleCloudStorageClientSettingsTests.java", "modules/repository-gcs/src/test/java/org/elasticsearch/repositories/gcs/GoogleCloudStorageServiceTests.java", "modules/repository-gcs/src/test/java/org/elasticsearch/repositories/gcs/MockHttpProxyServer.java", "modules/repository-gcs/src/test/java/org/elasticsearch/repositories/gcs/MockHttpProxyServerTests.java"]
[CI] GcsProxyIntegrationTests testWriteRead failing
**Build scan:** https://gradle-enterprise.elastic.co/s/us6m642sfbuea/tests/:modules:repository-gcs:internalClusterTest/org.elasticsearch.repositories.gcs.GcsProxyIntegrationTests/testWriteRead **Reproduction line:** ``` ./gradlew ':modules:repository-gcs:internalClusterTest' --tests "org.elasticsearch.repositories.gcs.GcsProxyIntegrationTests.testWriteRead" -Dtests.seed=2B17816194FD2A80 -Dtests.locale=zh-Hans-CN -Dtests.timezone=Etc/GMT-10 -Druntime.java=17 ``` **Applicable branches:** main **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.repositories.gcs.GcsProxyIntegrationTests&tests.test=testWriteRead **Failure excerpt:** ``` java.io.IOException: Exception when deleting blobs [] at __randomizedtesting.SeedInfo.seed([2B17816194FD2A80:DA9A10D8144052B0]:0) at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobStore.deleteBlobsIgnoringIfNotExists(GoogleCloudStorageBlobStore.java:579) at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobStore.lambda$deleteDirectory$9(GoogleCloudStorageBlobStore.java:496) at java.security.AccessController.doPrivileged(AccessController.java:569) at org.elasticsearch.repositories.gcs.SocketAccess.doPrivilegedIOException(SocketAccess.java:33) at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobStore.deleteDirectory(GoogleCloudStorageBlobStore.java:489) at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobContainer.delete(GoogleCloudStorageBlobContainer.java:98) at org.elasticsearch.repositories.blobstore.ESBlobStoreRepositoryIntegTestCase.testWriteRead(ESBlobStoreRepositoryIntegTestCase.java:146) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.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:833) Caused by: com.google.cloud.storage.StorageException: Unexpected end of file from server at com.google.cloud.storage.StorageException.translate(StorageException.java:118) at com.google.cloud.storage.spi.v1.HttpStorageRpc.translate(HttpStorageRpc.java:287) at com.google.cloud.storage.spi.v1.HttpStorageRpc.access$500(HttpStorageRpc.java:95) at com.google.cloud.storage.spi.v1.HttpStorageRpc$DefaultRpcBatch.submit(HttpStorageRpc.java:263) at com.google.cloud.storage.StorageBatch.submit(StorageBatch.java:149) at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobStore.lambda$deleteBlobsIgnoringIfNotExists$10(GoogleCloudStorageBlobStore.java:570) at org.elasticsearch.repositories.gcs.SocketAccess.lambda$doPrivilegedVoidIOException$0(SocketAccess.java:43) at java.security.AccessController.doPrivileged(AccessController.java:569) at org.elasticsearch.repositories.gcs.SocketAccess.doPrivilegedVoidIOException(SocketAccess.java:42) at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobStore.deleteBlobsIgnoringIfNotExists(GoogleCloudStorageBlobStore.java:539) at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobStore.lambda$deleteDirectory$9(GoogleCloudStorageBlobStore.java:496) at java.security.AccessController.doPrivileged(AccessController.java:569) at org.elasticsearch.repositories.gcs.SocketAccess.doPrivilegedIOException(SocketAccess.java:33) at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobStore.deleteDirectory(GoogleCloudStorageBlobStore.java:489) at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobContainer.delete(GoogleCloudStorageBlobContainer.java:98) at org.elasticsearch.repositories.blobstore.ESBlobStoreRepositoryIntegTestCase.testWriteRead(ESBlobStoreRepositoryIntegTestCase.java:146) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.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:833) Caused by: java.net.SocketException: Unexpected end of file from server at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:903) at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:726) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1688) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:529) at com.google.api.client.http.javanet.NetHttpResponse.<init>(NetHttpResponse.java:36) at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:152) at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:84) at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1012) at com.google.api.client.googleapis.batch.BatchRequest.execute(BatchRequest.java:257) at com.google.cloud.storage.spi.v1.HttpStorageRpc$DefaultRpcBatch.submit(HttpStorageRpc.java:259) at com.google.cloud.storage.StorageBatch.submit(StorageBatch.java:149) at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobStore.lambda$deleteBlobsIgnoringIfNotExists$10(GoogleCloudStorageBlobStore.java:570) at org.elasticsearch.repositories.gcs.SocketAccess.lambda$doPrivilegedVoidIOException$0(SocketAccess.java:43) at java.security.AccessController.doPrivileged(AccessController.java:569) at org.elasticsearch.repositories.gcs.SocketAccess.doPrivilegedVoidIOException(SocketAccess.java:42) at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobStore.deleteBlobsIgnoringIfNotExists(GoogleCloudStorageBlobStore.java:539) at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobStore.lambda$deleteDirectory$9(GoogleCloudStorageBlobStore.java:496) at java.security.AccessController.doPrivileged(AccessController.java:569) at org.elasticsearch.repositories.gcs.SocketAccess.doPrivilegedIOException(SocketAccess.java:33) at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobStore.deleteDirectory(GoogleCloudStorageBlobStore.java:489) at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobContainer.delete(GoogleCloudStorageBlobContainer.java:98) at org.elasticsearch.repositories.blobstore.ESBlobStoreRepositoryIntegTestCase.testWriteRead(ESBlobStoreRepositoryIntegTestCase.java:146) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.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:833) ```
https://github.com/elastic/elasticsearch/issues/93816
https://github.com/elastic/elasticsearch/pull/94205
b67c22afe2f307d5c2ac699c99d162ef47cd6823
44ab318a247dc9e4af2a58aff13eaade4ccaa620
"2023-02-15T11:24:58Z"
java
"2023-03-27T14:47:29Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,811
["modules/repository-gcs/build.gradle", "modules/repository-gcs/src/internalClusterTest/java/org/elasticsearch/repositories/gcs/GcsProxyIntegrationTests.java", "modules/repository-gcs/src/internalClusterTest/java/org/elasticsearch/repositories/gcs/WebProxyServer.java", "modules/repository-gcs/src/test/java/org/elasticsearch/repositories/gcs/GoogleCloudStorageClientSettingsTests.java", "modules/repository-gcs/src/test/java/org/elasticsearch/repositories/gcs/GoogleCloudStorageServiceTests.java", "modules/repository-gcs/src/test/java/org/elasticsearch/repositories/gcs/MockHttpProxyServer.java", "modules/repository-gcs/src/test/java/org/elasticsearch/repositories/gcs/MockHttpProxyServerTests.java"]
[CI] GcsProxyIntegrationTests.testContainerCreationAndDeletion
### CI Link https://gradle-enterprise.elastic.co/s/4vs5o45pilg66/tests/:modules:repository-gcs:internalClusterTest/org.elasticsearch.repositories.gcs.GcsProxyIntegrationTests/testContainerCreationAndDeletion ### Repro line `./gradlew ':modules:repository-gcs:internalClusterTest' --tests "org.elasticsearch.repositories.gcs.GcsProxyIntegrationTests.testContainerCreationAndDeletion" -Dtests.seed=58DD800E92CBFB3A -Dtests.locale=fi-FI -Dtests.timezone=Asia/Pyongyang -Druntime.java=17` ### Does it reproduce? No ### Applicable branches main ### Failure history https://gradle-enterprise.elastic.co/scans/tests?search.timeZoneId=Europe/Berlin&tests.container=org.elasticsearch.repositories.gcs.GcsProxyIntegrationTests&tests.test=testContainerCreationAndDeletion# ### Failure excerpt ``` Caused by: java.net.SocketException: Unexpected end of file from server at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:903) ~[?:?] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:726) ~[?:?] at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1688) ~[?:?] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589) ~[?:?] at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:529) ~[?:?] at com.google.api.client.http.javanet.NetHttpResponse.<init>(NetHttpResponse.java:36) ~[google-http-client-1.42.3.jar:1.42.3] at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:152) ~[google-http-client-1.42.3.jar:1.42.3] at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:84) ~[google-http-client-1.42.3.jar:1.42.3] at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1012) ~[google-http-client-1.42.3.jar:1.42.3] at com.google.api.client.googleapis.batch.BatchRequest.execute(BatchRequest.java:257) ~[google-api-client-2.1.1.jar:2.1.1] at com.google.cloud.storage.spi.v1.HttpStorageRpc$DefaultRpcBatch.submit(HttpStorageRpc.java:259) ~[google-cloud-storage-2.13.1.jar:2.13.1] at com.google.cloud.storage.StorageBatch.submit(StorageBatch.java:149) ~[google-cloud-storage-2.13.1.jar:2.13.1] at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobStore.lambda$deleteBlobsIgnoringIfNotExists$10(GoogleCloudStorageBlobStore.java:570) ~[main/:?] at org.elasticsearch.repositories.gcs.SocketAccess.lambda$doPrivilegedVoidIOException$0(SocketAccess.java:43) ~[main/:?] at java.security.AccessController.doPrivileged(AccessController.java:569) ~[?:?] at org.elasticsearch.repositories.gcs.SocketAccess.doPrivilegedVoidIOException(SocketAccess.java:42) ~[main/:?] at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobStore.deleteBlobsIgnoringIfNotExists(GoogleCloudStorageBlobStore.java:539) ~[main/:?] at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobStore.lambda$deleteDirectory$9(GoogleCloudStorageBlobStore.java:496) ~[main/:?] at java.security.AccessController.doPrivileged(AccessController.java:569) ~[?:?] at org.elasticsearch.repositories.gcs.SocketAccess.doPrivilegedIOException(SocketAccess.java:33) ~[main/:?] at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobStore.deleteDirectory(GoogleCloudStorageBlobStore.java:489) ~[main/:?] at org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobContainer.delete(GoogleCloudStorageBlobContainer.java:98) ~[main/:?] at org.elasticsearch.repositories.blobstore.BlobStoreRepository.endVerification(BlobStoreRepository.java:1758) ~[elasticsearch-8.8.0-SNAPSHOT.jar:8.8.0-SNAPSHOT] at org.elasticsearch.repositories.RepositoriesService$4.lambda$doRun$1(RepositoriesService.java:490) ~[elasticsearch-8.8.0-SNAPSHOT.jar:8.8.0-SNAPSHOT] at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:891) ~[elasticsearch-8.8.0-SNAPSHOT.jar:8.8.0-SNAPSHOT] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?] at java.lang.Thread.run(Thread.java:833) ~[?:?] ```
https://github.com/elastic/elasticsearch/issues/93811
https://github.com/elastic/elasticsearch/pull/94205
b67c22afe2f307d5c2ac699c99d162ef47cd6823
44ab318a247dc9e4af2a58aff13eaade4ccaa620
"2023-02-15T10:39:04Z"
java
"2023-03-27T14:47:29Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,773
["docs/changelog/93777.yaml", "server/src/main/java/org/elasticsearch/cluster/routing/allocation/allocator/AllocationActionMultiListener.java", "server/src/test/java/org/elasticsearch/cluster/routing/allocation/allocator/AllocationActionMultiListenerTests.java"]
[CI] RecoveryIT testRecoveryWithConcurrentIndexing failing
**Build scan:** https://gradle-enterprise.elastic.co/s/hh6sxuuncdapc/tests/:qa:rolling-upgrade:v7.17.10%23twoThirdsUpgradedTest/org.elasticsearch.upgrades.RecoveryIT/testRecoveryWithConcurrentIndexing **Reproduction line:** ``` gradlew ':qa:rolling-upgrade:v7.17.10#twoThirdsUpgradedTest' -Dtests.class="org.elasticsearch.upgrades.RecoveryIT" -Dtests.method="testRecoveryWithConcurrentIndexing" -Dtests.seed=C0F8E6E3C9F4C07A -Dtests.bwc=true -Dtests.locale=it-CH -Dtests.timezone=America/Hermosillo -Druntime.java=19 ``` **Applicable branches:** 8.6 **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.upgrades.RecoveryIT&tests.test=testRecoveryWithConcurrentIndexing **Failure excerpt:** ``` org.elasticsearch.client.WarningFailureException: method [PUT], host [http://127.0.0.1:62954], URI [/recovery_with_concurrent_indexing/_settings], status line [HTTP/1.1 200 OK] Warnings: [[index.indexing.slowlog.level] setting was deprecated in the previous Elasticsearch release and is removed in this release.] {"acknowledged":true} at __randomizedtesting.SeedInfo.seed([C0F8E6E3C9F4C07A:40A922B04B501EB0]:0) at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:343) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:313) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:288) at org.elasticsearch.test.rest.ESRestTestCase.updateIndexSettings(ESRestTestCase.java:1609) at org.elasticsearch.test.rest.ESRestTestCase.updateIndexSettings(ESRestTestCase.java:1603) at org.elasticsearch.upgrades.RecoveryIT.testRecoveryWithConcurrentIndexing(RecoveryIT.java:153) 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:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java: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:1589) ```
https://github.com/elastic/elasticsearch/issues/93773
https://github.com/elastic/elasticsearch/pull/93777
a3eb70ba06e2dc96d9ea6059ee7ec30ebee2f439
92c533e26ce64ebf1e8e7982837730e174d8c563
"2023-02-14T10:21:42Z"
java
"2023-02-15T09:59:06Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,670
["docs/reference/how-to/knn-search.asciidoc", "docs/reference/mapping/types/dense-vector.asciidoc"]
Investigate and update memory recomendation formula for HNWS vectors with Lucene 9.5+
### Description Currently on our [public tuning docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/tune-knn-search.html#_ensure_data_nodes_have_enough_memory) we have the following formula to help estimate page cache memory requirements for HNSW vectors when using kNN search: `num_vectors * 4 * (num_dimensions + 32) ` When Lucene 9.5 is adopted into elasticsearch this formula will need to be reevaluated. [Nightly benchmark tests](https://elasticsearch-benchmarks.elastic.co/index.html#tracks/dense_vector/nightly/default/30d) have shown a reduction is memory requirements. An additional nice to have would be to include a recommendation when using byte vectors which elasticsearch began supporting in es 8.6
https://github.com/elastic/elasticsearch/issues/93670
https://github.com/elastic/elasticsearch/pull/93703
fd7736f824093b347e7b277a1d45e4a3361df278
e8c5ed46c61b4cca476378127fd2544cd74074f1
"2023-02-09T18:46:47Z"
java
"2023-02-13T12:52:53Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,613
["modules/transport-netty4/src/test/java/org/elasticsearch/transport/netty4/SimpleNetty4TransportTests.java", "test/framework/src/main/java/org/elasticsearch/transport/AbstractSimpleTransportTestCase.java"]
[CI] SimpleSecurityNetty4ServerTransportTests testTimeoutPerConnection failing
### CI Link https://gradle-enterprise.elastic.co/s/m2bt2a5nnfqoo ### Repro line ./gradlew ':x-pack:plugin:security:test' --tests "org.elasticsearch.xpack.security.transport.netty4.SimpleSecurityNetty4ServerTransportTests.testTimeoutPerConnection" -Dtests.seed=47A68B48AEA74E00 -Dtests.locale=sq -Dtests.timezone=Asia/Bahrain ### Does it reproduce? Yes ### Applicable branches main ### Failure history The test only runs on OSX or BSD. So it fails when running it on a Mac. ### Failure excerpt ``` > org.elasticsearch.transport.ConnectTransportException: [][192.168.0.52:65029] connect_exception at __randomizedtesting.SeedInfo.seed([47A68B48AEA74E00:871946D2DD622841]:0) at app//org.elasticsearch.transport.TcpTransport$ChannelsConnectedListener.onFailure(TcpTransport.java:1151) at app//org.elasticsearch.action.ActionListener.completeWith(ActionListener.java:502) at app//org.elasticsearch.common.util.concurrent.ListenableFuture.notifyListenerDirectly(ListenableFuture.java:111) at app//org.elasticsearch.common.util.concurrent.ListenableFuture.done(ListenableFuture.java:100) at app//org.elasticsearch.common.util.concurrent.BaseFuture.setException(BaseFuture.java:149) at app//org.elasticsearch.common.util.concurrent.ListenableFuture.onFailure(ListenableFuture.java:139) at app//org.elasticsearch.transport.netty4.Netty4TcpChannel.lambda$addListener$0(Netty4TcpChannel.java:62) at app//io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:590) at app//io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:583) at app//io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:559) at app//io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:492) at app//io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:636) at app//io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:629) at app//io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:118) at app//org.elasticsearch.xpack.core.security.transport.netty4.SecurityNetty4Transport$ClientSslHandlerInitializer.lambda$connect$0(SecurityNetty4Transport.java:273) at app//io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:590) at app//io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:583) at app//io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:559) at app//io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:492) at app//io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:636) at app//io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:629) at app//io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:118) at app//io.netty.handler.ssl.SslHandler$7.run(SslHandler.java:2118) at app//io.netty.util.concurrent.PromiseTask.runTask(PromiseTask.java:98) at app//io.netty.util.concurrent.ScheduledFutureTask.run(ScheduledFutureTask.java:153) at app//io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174) at app//io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167) at app//io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470) at app//io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:569) at app//io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) at app//io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) at [email protected]/java.lang.Thread.run(Thread.java:1589) Caused by: org.elasticsearch.common.util.concurrent.UncategorizedExecutionException: Failed execution at app//org.elasticsearch.common.util.concurrent.FutureUtils.rethrowExecutionException(FutureUtils.java:80) at app//org.elasticsearch.common.util.concurrent.FutureUtils.get(FutureUtils.java:72) at app//org.elasticsearch.common.util.concurrent.ListenableFuture.lambda$notifyListenerDirectly$0(ListenableFuture.java:111) at app//org.elasticsearch.action.ActionListener.completeWith(ActionListener.java:499) ... 30 more Caused by: java.util.concurrent.ExecutionException: io.netty.handler.ssl.SslHandshakeTimeoutException: handshake timed out after 10000ms at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.getValue(BaseFuture.java:257) at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.get(BaseFuture.java:231) at org.elasticsearch.common.util.concurrent.BaseFuture.get(BaseFuture.java:53) at org.elasticsearch.common.util.concurrent.FutureUtils.get(FutureUtils.java:65) ... 32 more Caused by: io.netty.handler.ssl.SslHandshakeTimeoutException: handshake timed out after 10000ms at app//io.netty.handler.ssl.SslHandler$7.run(SslHandler.java:2115) ... 9 more ```
https://github.com/elastic/elasticsearch/issues/93613
https://github.com/elastic/elasticsearch/pull/93738
cd4b7b2f8f733dcad5a763fd79eb9a4f7f234b7f
326c15403e12147e12f7fc4c758cf19476670579
"2023-02-09T02:13:59Z"
java
"2023-02-14T13:20:06Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,605
["qa/smoke-test-multinode/src/yamlRestTest/resources/rest-api-spec/test/smoke_test_multinode/30_desired_balance.yml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cluster.desired_balance/10_basic.yml"]
[CI] MixedClusterClientYamlTestSuiteIT test {p0=cluster.desired_balance/10_basic/Test cluster_balance_stats} failing
This looks to have started failing right after bumping `main` to 8.8.0 I suspect that might be related. **Build scan:** https://gradle-enterprise.elastic.co/s/dzujnnnl7pjou/tests/:qa:mixed-cluster:v8.7.0%23mixedClusterTest/org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT/test%20%7Bp0=cluster.desired_balance%2F10_basic%2FTest%20cluster_balance_stats%7D **Reproduction line:** ``` ./gradlew ':qa:mixed-cluster:v8.7.0#mixedClusterTest' -Dtests.class="org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT" -Dtests.method="test {p0=cluster.desired_balance/10_basic/Test cluster_balance_stats}" -Dtests.seed=6E63B679B15CDC2C -Dtests.bwc=true -Dtests.locale=es -Dtests.timezone=America/Indiana/Vincennes -Druntime.java=17 ``` **Applicable branches:** main **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT&tests.test=test%20%7Bp0%3Dcluster.desired_balance/10_basic/Test%20cluster_balance_stats%7D **Failure excerpt:** ``` java.lang.AssertionError: Failure at [cluster.desired_balance/10_basic:59]: field [cluster_balance_stats.nodes.test-cluster-0] doesn't have a true value Expected: not null but: was null at __randomizedtesting.SeedInfo.seed([6E63B679B15CDC2C:E63789A31FA0B1D4]:0) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:547) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:499) at jdk.internal.reflect.GeneratedMethodAccessor18.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java: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:833) Caused by: java.lang.AssertionError: field [cluster_balance_stats.nodes.test-cluster-0] doesn't have a true value Expected: not null but: was null at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.elasticsearch.test.rest.yaml.section.IsTrueAssertion.doAssert(IsTrueAssertion.java:44) at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:527) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:499) at jdk.internal.reflect.GeneratedMethodAccessor18.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java: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:833) ```
https://github.com/elastic/elasticsearch/issues/93605
https://github.com/elastic/elasticsearch/pull/93617
b29399e2daa56afc926d610f8e0e59274a5ed952
e887c9728201184278f50228abc86edc0bf2fc4d
"2023-02-08T21:34:41Z"
java
"2023-02-09T10:37:04Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,599
["rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/indices.sort/10_basic.yml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search/380_sort_segments_on_timestamp.yml"]
[CI] MixedClusterClientYamlTestSuiteIT test {p0=indices.sort/10_basic/Index Sort} failing
**Build scan:** https://gradle-enterprise.elastic.co/s/nui4aguf6fitc/tests/:qa:mixed-cluster:v7.17.10%23mixedClusterTest/org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT/test%20%7Bp0=indices.sort%2F10_basic%2FIndex%20Sort%7D **Reproduction line:** ``` ./gradlew ':qa:mixed-cluster:v7.17.10#mixedClusterTest' -Dtests.class="org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT" -Dtests.method="test {p0=indices.sort/10_basic/Index Sort}" -Dtests.seed=B0123B7858698E56 -Dtests.bwc=true -Dtests.locale=lv -Dtests.timezone=America/Buenos_Aires -Druntime.java=17 ``` **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%3Dindices.sort/10_basic/Index%20Sort%7D **Failure excerpt:** ``` java.lang.AssertionError: Failure at [indices.sort/10_basic:122]: Expected: "2" but: was "8" at __randomizedtesting.SeedInfo.seed([B0123B7858698E56:384604A2F695E3AE]:0) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:547) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:499) at jdk.internal.reflect.GeneratedMethodAccessor18.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java: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:833) Caused by: java.lang.AssertionError: Expected: "2" but: was "8" 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:527) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:499) at jdk.internal.reflect.GeneratedMethodAccessor18.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java: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:833) ```
https://github.com/elastic/elasticsearch/issues/93599
https://github.com/elastic/elasticsearch/pull/93753
c09bcb7e39eccf854dbe595a4c303d15afe28f90
7ce308039d53de0350bae28f92392a4eea198be3
"2023-02-08T16:54:13Z"
java
"2023-02-14T09:52:39Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,580
["docs/changelog/94965.yaml", "server/src/main/java/org/elasticsearch/cluster/metadata/LifecycleExecutionState.java", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/DownsampleAction.java", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/DownsampleStep.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/DownsampleActionTests.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/DownsampleStepTests.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/LifecycleExecutionStateTests.java"]
Downsample retry issue
Currently when the ilm rollup step is being retried the same target index is being used. This can cause the subsequent downsample api invocation to index rolled up data into shards of the target index that already exists and while the previous downsample api invocation is still partially running (and also rolling up data into the same target shard). Note that, the rollup step may fail in case a cluster is being restarted in a rolling manner (for example for an upgrade) or when the elected master node fails (the downsample action is coordinated from the elected master node). The fix would be that the `RollupStep` isn't retried on its own incase it fails to execute, but that the step that generates the target index name for downsampling is retried first and then the rollup step.
https://github.com/elastic/elasticsearch/issues/93580
https://github.com/elastic/elasticsearch/pull/94965
7370d1ba97a53404d0abf0be6d21b13472d9b455
e9cfd815070a416f91ad0570f0a71e8d8197b7f0
"2023-02-08T09:48:54Z"
java
"2023-05-15T08:10:40Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,572
["rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/indices.sort/10_basic.yml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search/380_sort_segments_on_timestamp.yml"]
[CI] CcsCommonYamlTestSuiteIT test {p0=search/380_sort_segments_on_timestamp/Test that index segments are sorted on timestamp field if @timestamp field is defined in mapping} failing
**Build scan:** https://gradle-enterprise.elastic.co/s/q6hmrm7mg3cbk/tests/:qa:ccs-common-rest:yamlRestTest/org.elasticsearch.test.rest.yaml.CcsCommonYamlTestSuiteIT/test%20%7Bp0=search%2F380_sort_segments_on_timestamp%2FTest%20that%20index%20segments%20are%20sorted%20on%20timestamp%20field%20if%20@timestamp%20field%20is%20defined%20in%20mapping%7D **Reproduction line:** ``` ./gradlew ':qa:ccs-common-rest:yamlRestTest' --tests "org.elasticsearch.test.rest.yaml.CcsCommonYamlTestSuiteIT.test {p0=search/380_sort_segments_on_timestamp/Test that index segments are sorted on timestamp field if @timestamp field is defined in mapping}" -Dtests.seed=825BAAF2D9748B66 -Dtests.locale=es-PR -Dtests.timezone=Etc/GMT-5 -Druntime.java=17 ``` **Applicable branches:** main **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.test.rest.yaml.CcsCommonYamlTestSuiteIT&tests.test=test%20%7Bp0%3Dsearch/380_sort_segments_on_timestamp/Test%20that%20index%20segments%20are%20sorted%20on%20timestamp%20field%20if%20@timestamp%20field%20is%20defined%20in%20mapping%7D **Failure excerpt:** ``` java.lang.AssertionError: Failure at [search/380_sort_segments_on_timestamp:40]: Expected a list containing 0: expected "2021-08-02" but was "2021-08-01" at __randomizedtesting.SeedInfo.seed([825BAAF2D9748B66:A0F95287788E69E]:0) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:547) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:499) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.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.local.LocalElasticsearchCluster$1.evaluate(LocalElasticsearchCluster.java:42) at org.elasticsearch.test.cluster.local.LocalElasticsearchCluster$1.evaluate(LocalElasticsearchCluster.java:42) 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:833) Caused by: java.lang.AssertionError: Expected a list containing 0: expected "2021-08-02" but was "2021-08-01" 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:527) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:499) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.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.local.LocalElasticsearchCluster$1.evaluate(LocalElasticsearchCluster.java:42) at org.elasticsearch.test.cluster.local.LocalElasticsearchCluster$1.evaluate(LocalElasticsearchCluster.java:42) 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:833) ```
https://github.com/elastic/elasticsearch/issues/93572
https://github.com/elastic/elasticsearch/pull/93753
c09bcb7e39eccf854dbe595a4c303d15afe28f90
7ce308039d53de0350bae28f92392a4eea198be3
"2023-02-07T18:25:17Z"
java
"2023-02-14T09:52:39Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,542
["docs/changelog/93551.yaml", "server/src/main/java/org/elasticsearch/indices/recovery/PeerRecoveryTargetService.java", "server/src/main/java/org/elasticsearch/indices/recovery/RecoveriesCollection.java", "server/src/main/java/org/elasticsearch/indices/recovery/RecoveryTarget.java"]
Peer recovery may time out during recoverLocallyUpToGlobalCheckpoint
The `recoverLocallyUpToGlobalCheckpoint` step of peer recovery may take an extended period of time, but today we do not disable the recovery monitor during this step so if it takes more than 30 minutes (by default) then the recovery will time out, fail, and retry repeatedly. We should disable the recovery monitor during this step.
https://github.com/elastic/elasticsearch/issues/93542
https://github.com/elastic/elasticsearch/pull/93551
052a4f15b92713e422560ddee70050744f94555a
b8c9dc90c92c91c05baac8bb00b463050827f813
"2023-02-07T08:23:47Z"
java
"2023-02-07T12:19:30Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,521
["x-pack/qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/xpack/restart/MlHiddenIndicesFullClusterRestartIT.java"]
[CI] MlHiddenIndicesFullClusterRestartIT.testMlIndicesBecomeHidden failing
### CI Link https://gradle-enterprise.elastic.co/s/nfoubwaobfgsg ### Repro line ./gradlew ':x-pack:qa:full-cluster-restart:v7.0.0#bwcTest' -Dtests.class="org.elasticsearch.xpack.restart.MlHiddenIndicesFullClusterRestartIT" -Dtests.method="testMlIndicesBecomeHidden {cluster=OLD}" -Dtests.seed=5D8A0FD3D02DB77A -Dtests.bwc=true -Dtests.locale=nl-NL -Dtests.timezone=US/Central -Druntime.java=17 ### Does it reproduce? Didn't try ### Applicable branches main, 8.6 ### Failure history _No response_ ### Failure excerpt [2023-02-06T03:51:59,572][WARN ][r.suppressed ] [test-cluster-1] path: /_ml/anomaly_detectors/ml-hidden-indices-old-cluster-job/_open, params: {job_id=ml-hidden-indices-old-cluster-job} org.elasticsearch.transport.RemoteTransportException: [test-cluster-0][127.0.0.1:46061][cluster:admin/xpack/ml/job/open] Caused by: org.elasticsearch.ElasticsearchException: Unexpected job state [failed] while waiting for job to be opened at org.elasticsearch.xpack.core.ml.utils.ExceptionsHelper.serverError(ExceptionsHelper.java:38) ~[?:?] at org.elasticsearch.xpack.ml.action.TransportOpenJobAction$JobPredicate.test(TransportOpenJobAction.java:779) ~[?:?] at org.elasticsearch.xpack.ml.action.TransportOpenJobAction$JobPredicate.test(TransportOpenJobAction.java:733) ~[?:?] at org.elasticsearch.persistent.PersistentTasksService.lambda$waitForPersistentTaskCondition$2(PersistentTasksService.java:155) ~[elasticsearch-7.0.0.jar:7.0.0] at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.clusterChanged(ClusterStateObserver.java:188) ~[elasticsearch-7.0.0.jar:7.0.0] at org.elasticsearch.cluster.service.ClusterApplierService.lambda$callClusterStateListeners$6(ClusterApplierService.java:486) ~[elasticsearch-7.0.0.jar:7.0.0] at java.util.concurrent.ConcurrentHashMap$KeySpliterator.forEachRemaining(ConcurrentHashMap.java:3566) ~[?:?] at java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:735) ~[?:?] at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658) ~[?:?] at org.elasticsearch.cluster.service.ClusterApplierService.callClusterStateListeners(ClusterApplierService.java:483) ~[elasticsearch-7.0.0.jar:7.0.0] at org.elasticsearch.cluster.service.ClusterApplierService.applyChanges(ClusterApplierService.java:472) ~[elasticsearch-7.0.0.jar:7.0.0] at org.elasticsearch.cluster.service.ClusterApplierService.runTask(ClusterApplierService.java:413) ~[elasticsearch-7.0.0.jar:7.0.0] [2023-02-06T03:51:59,572][WARN ][o.e.p.PersistentTasksNodeService] [test-cluster-0] task job-ml-hidden-indices-old-cluster-job failed with an exception at org.elasticsearch.cluster.service.ClusterApplierService$UpdateTask.run(ClusterApplierService.java:164) ~[elasticsearch-7.0.0.jar:7.0.0] at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:681) ~[elasticsearch-7.0.0.jar:7.0.0] org.elasticsearch.ElasticsearchException: Failed to launch autodetect for job ml-hidden-indices-old-cluster-job at org.elasticsearch.xpack.core.ml.utils.ExceptionsHelper.serverError(ExceptionsHelper.java:42) ~[?:?] at org.elasticsearch.xpack.ml.job.process.autodetect.NativeAutodetectProcessFactory.createNativeProcess(NativeAutodetectProcessFactory.java:115) ~[?:?] at org.elasticsearch.xpack.ml.job.process.autodetect.NativeAutodetectProcessFactory.createAutodetectProcess(NativeAutodetectProcessFactory.java:65) ~[?:?] at org.elasticsearch.xpack.ml.job.process.autodetect.AutodetectProcessManager.create(AutodetectProcessManager.java:558) ~[?:?] at org.elasticsearch.xpack.ml.job.process.autodetect.AutodetectProcessManager.createProcessAndSetRunning(AutodetectProcessManager.java:514) ~[?:?] at org.elasticsearch.xpack.ml.job.process.autodetect.AutodetectProcessManager.access$200(AutodetectProcessManager.java:101) ~[?:?] at org.elasticsearch.xpack.ml.job.process.autodetect.AutodetectProcessManager$3.doRun(AutodetectProcessManager.java:465) ~[?:?] at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:751) ~[elasticsearch-7.0.0.jar:7.0.0] at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) ~[elasticsearch-7.0.0.jar:7.0.0] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?] at java.lang.Thread.run(Thread.java:835) [?:?] Caused by: java.io.FileNotFoundException: Cannot open /var/lib/jenkins/workspace/elastic+elasticsearch+main+multijob+platform-support-unix/x-pack/qa/full-cluster-restart/build/testrun/v7.0.0_bwcTest/temp/org.elasticsearch.xpack.restart.MlHiddenIndicesFullClusterRestartIT/test-cluster/test-cluster-0/tmp/autodetect_ml-hidden-indices-old-cluster-job_input_620131 (No such file or directory) at org.elasticsearch.xpack.ml.utils.NamedPipeHelper.openNamedPipeOutputStreamUnix(NamedPipeHelper.java:249) ~[?:?] at org.elasticsearch.xpack.ml.utils.NamedPipeHelper.openNamedPipeOutputStream(NamedPipeHelper.java:174) ~[?:?] at org.elasticsearch.xpack.ml.utils.NamedPipeHelper.openNamedPipeOutputStream(NamedPipeHelper.java:160) ~[?:?] at org.elasticsearch.xpack.ml.process.ProcessPipes.connectStreams(ProcessPipes.java:137) ~[?:?] at org.elasticsearch.xpack.ml.job.process.autodetect.NativeAutodetectProcessFactory.createNativeProcess(NativeAutodetectProcessFactory.java:111) ~[?:?] ... 10 more at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:252) ~[elasticsearch-7.0.0.jar:7.0.0] at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:215) ~[elasticsearch-7.0.0.jar:7.0.0] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?] at java.lang.Thread.run(Thread.java:835) [?:?] [2023-02-06T03:51:59,593][WARN ][o.e.p.PersistentTasksClusterService] [test-cluster-0] persistent task job-ml-hidden-indices-old-cluster-job failed org.elasticsearch.ElasticsearchException: Failed to launch autodetect for job ml-hidden-indices-old-cluster-job at org.elasticsearch.xpack.core.ml.utils.ExceptionsHelper.serverError(ExceptionsHelper.java:42) ~[?:?] at org.elasticsearch.xpack.ml.job.process.autodetect.NativeAutodetectProcessFactory.createNativeProcess(NativeAutodetectProcessFactory.java:115) ~[?:?] at org.elasticsearch.xpack.ml.job.process.autodetect.NativeAutodetectProcessFactory.createAutodetectProcess(NativeAutodetectProcessFactory.java:65) ~[?:?] at org.elasticsearch.xpack.ml.job.process.autodetect.AutodetectProcessManager.create(AutodetectProcessManager.java:558) ~[?:?] at org.elasticsearch.xpack.ml.job.process.autodetect.AutodetectProcessManager.createProcessAndSetRunning(AutodetectProcessManager.java:514) ~[?:?] at org.elasticsearch.xpack.ml.job.process.autodetect.AutodetectProcessManager.access$200(AutodetectProcessManager.java:101) ~[?:?] at org.elasticsearch.xpack.ml.job.process.autodetect.AutodetectProcessManager$3.doRun(AutodetectProcessManager.java:465) ~[?:?] at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:751) [elasticsearch-7.0.0.jar:7.0.0] at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-7.0.0.jar:7.0.0] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?] at java.lang.Thread.run(Thread.java:835) [?:?] Caused by: java.io.FileNotFoundException: Cannot open /var/lib/jenkins/workspace/elastic+elasticsearch+main+multijob+platform-support-unix/x-pack/qa/full-cluster-restart/build/testrun/v7.0.0_bwcTest/temp/org.elasticsearch.xpack.restart.MlHiddenIndicesFullClusterRestartIT/test-cluster/test-cluster-0/tmp/autodetect_ml-hidden-indices-old-cluster-job_input_620131 (No such file or directory) at org.elasticsearch.xpack.ml.utils.NamedPipeHelper.openNamedPipeOutputStreamUnix(NamedPipeHelper.java:249) ~[?:?] at org.elasticsearch.xpack.ml.utils.NamedPipeHelper.openNamedPipeOutputStream(NamedPipeHelper.java:174) ~[?:?] at org.elasticsearch.xpack.ml.utils.NamedPipeHelper.openNamedPipeOutputStream(NamedPipeHelper.java:160) ~[?:?] at org.elasticsearch.xpack.ml.process.ProcessPipes.connectStreams(ProcessPipes.java:137) ~[?:?] at org.elasticsearch.xpack.ml.job.process.autodetect.NativeAutodetectProcessFactory.createNativeProcess(NativeAutodetectProcessFactory.java:111) ~[?:?] ... 10 more [2023-02-06T03:51:59,640][INFO ][o.e.x.r.MlHiddenIndicesFullClusterRestartIT] [testMlIndicesBecomeHidden] [cluster=OLD] after test REPRODUCE WITH: ./gradlew ':x-pack:qa:full-cluster-restart:v7.0.0#bwcTest' -Dtests.class="org.elasticsearch.xpack.restart.MlHiddenIndicesFullClusterRestartIT" -Dtests.method="testMlIndicesBecomeHidden {cluster=OLD}" -Dtests.seed=5D8A0FD3D02DB77A -Dtests.bwc=true -Dtests.locale=nl-NL -Dtests.timezone=US/Central -Druntime.java=17
https://github.com/elastic/elasticsearch/issues/93521
https://github.com/elastic/elasticsearch/pull/100618
4c96f9358b4ddea87637d34e25f345d821ec783d
9ef5d301c299521bdec62226a639c7c1c296242a
"2023-02-06T13:59:55Z"
java
"2023-10-10T16:11:15Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,515
["build-tools-internal/build.gradle", "distribution/tools/plugin-cli/build.gradle", "gradle/verification-metadata.xml", "libs/plugin-scanner/build.gradle"]
[CI] Multiple tests in ClassReadersTests and NamedComponentScannerTests failing
Multiple tests in `ClassReadersTests` and `NamedComponentScannerTests` are failing on Java 20. **Build scan:** https://gradle-enterprise.elastic.co/s/xjecydvrck6hy/tests/:libs:elasticsearch-plugin-scanner:test/org.elasticsearch.plugin.scanner.ClassReadersTests/testMultipleJarsInADir **Reproduction line:** ``` ./gradlew ':libs:elasticsearch-plugin-scanner:test' --tests "org.elasticsearch.plugin.scanner.ClassReadersTests.testMultipleJarsInADir" -Dtests.seed=231DB23AA21623E9 -Dtests.locale=nb-NO -Dtests.timezone=Etc/GMT+1 -Druntime.java=20 ``` **Applicable branches:** main **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.plugin.scanner.ClassReadersTests&tests.test=testMultipleJarsInADir **Failure excerpt:** ``` java.lang.IllegalArgumentException: Unsupported class file major version 64 at __randomizedtesting.SeedInfo.seed([231DB23AA21623E9:F712C4B1088FD343]:0) at org.objectweb.asm.ClassReader.<init>(ClassReader.java:199) at org.objectweb.asm.ClassReader.<init>(ClassReader.java:180) at org.objectweb.asm.ClassReader.<init>(ClassReader.java:166) at org.elasticsearch.plugin.scanner.ClassReaders.lambda$classesInPath$5(ClassReaders.java:97) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.util.Iterator.forEachRemaining(Iterator.java:133) at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1921) 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.plugin.scanner.ClassReaders.classesInPath(ClassReaders.java:102) at org.elasticsearch.plugin.scanner.ClassReaders.classesInJar(ClassReaders.java:83) at org.elasticsearch.plugin.scanner.ClassReaders.lambda$ofPaths$1(ClassReaders.java:73) at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:273) at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) at java.util.Iterator.forEachRemaining(Iterator.java:133) at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1921) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575) at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260) at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616) at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622) at java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627) at org.elasticsearch.plugin.scanner.ClassReaders.ofPaths(ClassReaders.java:77) at org.elasticsearch.plugin.scanner.ClassReaders.ofDirWithJars(ClassReaders.java:48) at org.elasticsearch.plugin.scanner.ClassReadersTests.testMultipleJarsInADir(ClassReadersTests.java:125) 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/93515
https://github.com/elastic/elasticsearch/pull/93530
ae48bb000495b5f05161d42603e984fe710770d4
a849480aef9a6f90f9f363df75ea625cfc47a35c
"2023-02-06T12:39:31Z"
java
"2023-02-06T19:18:30Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,457
["docs/reference/data-streams/change-mappings-and-settings.asciidoc", "docs/reference/data-streams/use-a-data-stream.asciidoc", "docs/reference/indices/data-stream-stats.asciidoc"]
[CI] DocsClientYamlTestSuiteIT test {yaml=reference/indices/data-stream-stats/line_51} failing
I believe there was a fix for this a while ago, that was backported to 7.17: https://github.com/elastic/elasticsearch/pull/84376 It looks like it didn't resolve the issue though. The alternative explanation is that another test failed, and did not clean up templates properly, which in turn caused this failure. However, I haven't been able to validate this so assigning data management to investigate further, **Build scan:** https://gradle-enterprise.elastic.co/s/ywsjgsoap6q6s/tests/:docs:yamlRestTest/org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT/test%20%7Byaml=reference%2Findices%2Fdata-stream-stats%2Fline_51%7D **Reproduction line:** ``` ./gradlew ':docs:yamlRestTest' --tests "org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT.test {yaml=reference/indices/data-stream-stats/line_51}" -Dtests.seed=690208A5EDF5CD1F -Dtests.locale=es-DO -Dtests.timezone=US/Indiana-Starke -Druntime.java=18 -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.smoketest.DocsClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dreference/indices/data-stream-stats/line_51%7D **Failure excerpt:** ``` java.lang.AssertionError: Failure at [reference/indices/data-stream-stats:52]: expected [2xx] status code but api [raw[method=DELETE path=_index_template/*]] returned [400 Bad Request] [{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"unable to remove composable templates [.deprecation-indexing-template, .ml-anomalies-, .ml-notifications-000002, .ml-state, .ml-stats, .slm-history, .watch-history-13, logs, metrics, synthetics, template] as they are in use by a data streams [.slm-history-5]","stack_trace":"[unable to remove composable templates [.deprecation-indexing-template, .ml-anomalies-, .ml-notifications-000002, .ml-state, .ml-stats, .slm-history, .watch-history-13, logs, metrics, synthetics, template] as they are in use by a data streams [.slm-history-5]]; nested: IllegalArgumentException[unable to remove composable templates [.deprecation-indexing-template, .ml-anomalies-, .ml-notifications-000002, .ml-state, .ml-stats, .slm-history, .watch-history-13, logs, metrics, synthetics, template] as they are in use by a data streams [.slm-history-5]];\n\tat org.elasticsearch.ElasticsearchException.guessRootCauses(ElasticsearchException.java:639)\n\tat org.elasticsearch.ElasticsearchException.generateFailureXContent(ElasticsearchException.java:567)\n\tat org.elasticsearch.rest.BytesRestResponse.build(BytesRestResponse.java:140)\n\tat org.elasticsearch.rest.BytesRestResponse.<init>(BytesRestResponse.java:101)\n\tat org.elasticsearch.rest.BytesRestResponse.<init>(BytesRestResponse.java:81)\n\tat org.elasticsearch.rest.action.RestActionListener.onFailure(RestActionListener.java:55)\n\tat org.elasticsearch.action.support.TransportAction$1.onFailure(TransportAction.java:97)\n\tat org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.lambda$doStart$2(TransportMasterNodeAction.java:215)\n\tat org.elasticsearch.action.ActionListener$DelegatingActionListener.onFailure(ActionListener.java:192)\n\tat org.elasticsearch.cluster.metadata.MetadataIndexTemplateService$5.onFailure(MetadataIndexTemplateService.java:780)\n\tat org.elasticsearch.cluster.service.MasterService$SafeClusterStateTaskListener.onFailure(MasterService.java:623)\n\tat org.elasticsearch.cluster.service.MasterService$TaskOutputs.notifyFailedTasks(MasterService.java:550)\n\tat org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:244)\n\tat org.elasticsearch.cluster.service.MasterService.access$100(MasterService.java:63)\n\tat org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:170)\n\tat org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:146)\n\tat org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:202)\n\tat org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:718)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:262)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:225)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\nCaused by: java.lang.IllegalArgumentException: unable to remove composable templates [.deprecation-indexing-template, .ml-anomalies-, .ml-notifications-000002, .ml-state, .ml-stats, .slm-history, .watch-history-13, logs, metrics, synthetics, template] as they are in use by a data streams [.slm-history-5]\n\tat org.elasticsearch.cluster.metadata.MetadataIndexTemplateService.innerRemoveIndexTemplateV2(MetadataIndexTemplateService.java:842)\n\tat org.elasticsearch.cluster.metadata.MetadataIndexTemplateService$5.execute(MetadataIndexTemplateService.java:785)\n\tat org.elasticsearch.cluster.ClusterStateUpdateTask.execute(ClusterStateUpdateTask.java:51)\n\tat org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:840)\n\tat org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:407)\n\tat org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:243)\n\t... 10 more\n"}],"type":"illegal_argument_exception","reason":"unable to remove composable templates [.deprecation-indexing-template, .ml-anomalies-, .ml-notifications-000002, .ml-state, .ml-stats, .slm-history, .watch-history-13, logs, metrics, synthetics, template] as they are in use by a data streams [.slm-history-5]","stack_trace":"java.lang.IllegalArgumentException: unable to remove composable templates [.deprecation-indexing-template, .ml-anomalies-, .ml-notifications-000002, .ml-state, .ml-stats, .slm-history, .watch-history-13, logs, metrics, synthetics, template] as they are in use by a data streams [.slm-history-5]\n\tat org.elasticsearch.cluster.metadata.MetadataIndexTemplateService.innerRemoveIndexTemplateV2(MetadataIndexTemplateService.java:842)\n\tat org.elasticsearch.cluster.metadata.MetadataIndexTemplateService$5.execute(MetadataIndexTemplateService.java:785)\n\tat org.elasticsearch.cluster.ClusterStateUpdateTask.execute(ClusterStateUpdateTask.java:51)\n\tat org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:840)\n\tat org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:407)\n\tat org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:243)\n\tat org.elasticsearch.cluster.service.MasterService.access$100(MasterService.java:63)\n\tat org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:170)\n\tat org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:146)\n\tat org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:202)\n\tat org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:718)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:262)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:225)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"},"status":400}] at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:482) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:460) at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.lang.reflect.Method.invoke(Method.java:577) 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:833) Caused by: java.lang.AssertionError: expected [2xx] status code but api [raw[method=DELETE path=_index_template/*]] returned [400 Bad Request] [{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"unable to remove composable templates [.deprecation-indexing-template, .ml-anomalies-, .ml-notifications-000002, .ml-state, .ml-stats, .slm-history, .watch-history-13, logs, metrics, synthetics, template] as they are in use by a data streams [.slm-history-5]","stack_trace":"[unable to remove composable templates [.deprecation-indexing-template, .ml-anomalies-, .ml-notifications-000002, .ml-state, .ml-stats, .slm-history, .watch-history-13, logs, metrics, synthetics, template] as they are in use by a data streams [.slm-history-5]]; nested: IllegalArgumentException[unable to remove composable templates [.deprecation-indexing-template, .ml-anomalies-, .ml-notifications-000002, .ml-state, .ml-stats, .slm-history, .watch-history-13, logs, metrics, synthetics, template] as they are in use by a data streams [.slm-history-5]];\n\tat org.elasticsearch.ElasticsearchException.guessRootCauses(ElasticsearchException.java:639)\n\tat org.elasticsearch.ElasticsearchException.generateFailureXContent(ElasticsearchException.java:567)\n\tat org.elasticsearch.rest.BytesRestResponse.build(BytesRestResponse.java:140)\n\tat org.elasticsearch.rest.BytesRestResponse.<init>(BytesRestResponse.java:101)\n\tat org.elasticsearch.rest.BytesRestResponse.<init>(BytesRestResponse.java:81)\n\tat org.elasticsearch.rest.action.RestActionListener.onFailure(RestActionListener.java:55)\n\tat org.elasticsearch.action.support.TransportAction$1.onFailure(TransportAction.java:97)\n\tat org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.lambda$doStart$2(TransportMasterNodeAction.java:215)\n\tat org.elasticsearch.action.ActionListener$DelegatingActionListener.onFailure(ActionListener.java:192)\n\tat org.elasticsearch.cluster.metadata.MetadataIndexTemplateService$5.onFailure(MetadataIndexTemplateService.java:780)\n\tat org.elasticsearch.cluster.service.MasterService$SafeClusterStateTaskListener.onFailure(MasterService.java:623)\n\tat org.elasticsearch.cluster.service.MasterService$TaskOutputs.notifyFailedTasks(MasterService.java:550)\n\tat org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:244)\n\tat org.elasticsearch.cluster.service.MasterService.access$100(MasterService.java:63)\n\tat org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:170)\n\tat org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:146)\n\tat org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:202)\n\tat org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:718)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:262)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:225)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\nCaused by: java.lang.IllegalArgumentException: unable to remove composable templates [.deprecation-indexing-template, .ml-anomalies-, .ml-notifications-000002, .ml-state, .ml-stats, .slm-history, .watch-history-13, logs, metrics, synthetics, template] as they are in use by a data streams [.slm-history-5]\n\tat org.elasticsearch.cluster.metadata.MetadataIndexTemplateService.innerRemoveIndexTemplateV2(MetadataIndexTemplateService.java:842)\n\tat org.elasticsearch.cluster.metadata.MetadataIndexTemplateService$5.execute(MetadataIndexTemplateService.java:785)\n\tat org.elasticsearch.cluster.ClusterStateUpdateTask.execute(ClusterStateUpdateTask.java:51)\n\tat org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:840)\n\tat org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:407)\n\tat org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:243)\n\t... 10 more\n"}],"type":"illegal_argument_exception","reason":"unable to remove composable templates [.deprecation-indexing-template, .ml-anomalies-, .ml-notifications-000002, .ml-state, .ml-stats, .slm-history, .watch-history-13, logs, metrics, synthetics, template] as they are in use by a data streams [.slm-history-5]","stack_trace":"java.lang.IllegalArgumentException: unable to remove composable templates [.deprecation-indexing-template, .ml-anomalies-, .ml-notifications-000002, .ml-state, .ml-stats, .slm-history, .watch-history-13, logs, metrics, synthetics, template] as they are in use by a data streams [.slm-history-5]\n\tat org.elasticsearch.cluster.metadata.MetadataIndexTemplateService.innerRemoveIndexTemplateV2(MetadataIndexTemplateService.java:842)\n\tat org.elasticsearch.cluster.metadata.MetadataIndexTemplateService$5.execute(MetadataIndexTemplateService.java:785)\n\tat org.elasticsearch.cluster.ClusterStateUpdateTask.execute(ClusterStateUpdateTask.java:51)\n\tat org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:840)\n\tat org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:407)\n\tat org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:243)\n\tat org.elasticsearch.cluster.service.MasterService.access$100(MasterService.java:63)\n\tat org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:170)\n\tat org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:146)\n\tat org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:202)\n\tat org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:718)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:262)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:225)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"},"status":400}] at org.junit.Assert.fail(Assert.java:88) at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:375) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:471) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:460) at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.lang.reflect.Method.invoke(Method.java:577) 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:833) ```
https://github.com/elastic/elasticsearch/issues/93457
https://github.com/elastic/elasticsearch/pull/98060
5625ebe74a32436e28be2295c3e1203faa5a4286
09d396a91f7fc4444fb386d5ac004348ed3ca161
"2023-02-02T13:03:44Z"
java
"2023-07-31T14:23:37Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,440
["test/test-clusters/src/main/java/org/elasticsearch/test/cluster/local/LocalClusterFactory.java", "test/test-clusters/src/main/java/org/elasticsearch/test/cluster/util/ProcessUtils.java"]
[CI] EnableSecurityOnBasicLicenseIT testEnableSecurityAndRestartCluster failing
This looks related to https://github.com/elastic/elasticsearch/pull/93422 which was re-introduced after being reverted. I'm suggesting this because this test involves a cluster restart, and there are other similar test failures around cluster restarts, same as yesterday. **Build scan:** https://gradle-enterprise.elastic.co/s/nwvl4ln4cqd4c/tests/:x-pack:plugin:security:qa:basic-enable-security:javaRestTest/org.elasticsearch.xpack.security.EnableSecurityOnBasicLicenseIT/testEnableSecurityAndRestartCluster **Reproduction line:** ``` gradlew ':x-pack:plugin:security:qa:basic-enable-security:javaRestTest' --tests "org.elasticsearch.xpack.security.EnableSecurityOnBasicLicenseIT.testEnableSecurityAndRestartCluster" -Dtests.seed=5E50855E3B020B68 -Dtests.locale=bg -Dtests.timezone=America/Indiana/Tell_City -Druntime.java=19 ``` **Applicable branches:** main, 8.6 **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.security.EnableSecurityOnBasicLicenseIT&tests.test=testEnableSecurityAndRestartCluster **Failure excerpt:** ``` java.lang.RuntimeException: An error occurred while checking cluster 'test-cluster' status. at __randomizedtesting.SeedInfo.seed([5E50855E3B020B68:B491E24FD392B21C]:0) at org.elasticsearch.test.cluster.local.LocalClusterHandle.waitUntilReady(LocalClusterHandle.java:154) at org.elasticsearch.test.cluster.local.LocalClusterHandle.start(LocalClusterHandle.java:70) at org.elasticsearch.test.cluster.local.LocalClusterHandle.restart(LocalClusterHandle.java:87) at org.elasticsearch.test.cluster.local.LocalElasticsearchCluster.restart(LocalElasticsearchCluster.java:65) at org.elasticsearch.xpack.security.EnableSecurityOnBasicLicenseIT.testEnableSecurityAndRestartCluster(EnableSecurityOnBasicLicenseIT.java:110) 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.local.LocalElasticsearchCluster$1.evaluate(LocalElasticsearchCluster.java:42) 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:1589) Caused by: java.io.IOException: 401 Unauthorized at org.elasticsearch.test.cluster.local.WaitForHttpResource.checkResource(WaitForHttpResource.java:129) at org.elasticsearch.test.cluster.local.WaitForHttpResource.waitFor(WaitForHttpResource.java:107) at org.elasticsearch.test.cluster.local.LocalClusterHandle.waitUntilReady(LocalClusterHandle.java:152) at org.elasticsearch.test.cluster.local.LocalClusterHandle.start(LocalClusterHandle.java:70) at org.elasticsearch.test.cluster.local.LocalClusterHandle.restart(LocalClusterHandle.java:87) at org.elasticsearch.test.cluster.local.LocalElasticsearchCluster.restart(LocalElasticsearchCluster.java:65) at org.elasticsearch.xpack.security.EnableSecurityOnBasicLicenseIT.testEnableSecurityAndRestartCluster(EnableSecurityOnBasicLicenseIT.java:110) 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.local.LocalElasticsearchCluster$1.evaluate(LocalElasticsearchCluster.java:42) 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:1589) ```
https://github.com/elastic/elasticsearch/issues/93440
https://github.com/elastic/elasticsearch/pull/93482
43d9a6a0c832aa6a0eb9ebf191535936ac88ec49
b2d9a4ecf513c9b9ef8b9b2995444ded67dee4f1
"2023-02-02T08:52:04Z"
java
"2023-02-02T22:57:50Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,428
["docs/changelog/93431.yaml", "server/src/internalClusterTest/java/org/elasticsearch/action/admin/cluster/tasks/ListTasksIT.java", "server/src/main/java/org/elasticsearch/action/admin/cluster/node/tasks/list/TransportListTasksAction.java"]
List-tasks API response context leak
As per [this comment](https://github.com/elastic/elasticsearch/pull/93375#discussion_r1093607808) the changes in #90977 may leak the thread context of the last-completing task into the response to the list-tasks API. We need to address this before these changes are released, which is planned for 8.7.0.
https://github.com/elastic/elasticsearch/issues/93428
https://github.com/elastic/elasticsearch/pull/93431
b0c380d784274900e3e19763e7f3dda54f828584
8d44c9a416215fd74eda02981e9768ceba9ee574
"2023-02-01T18:57:15Z"
java
"2023-02-02T10:37:19Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,303
["plugins/mapper-size/src/yamlRestTest/resources/rest-api-spec/test/mapper_size/10_basic.yml", "test/test-clusters/src/main/java/org/elasticsearch/test/cluster/local/LocalClusterFactory.java"]
[CI] MapperSizeClientYamlTestSuiteIT test {yaml=mapper_size/10_basic/Mapper Size} failing
Failed multiple times in the last 2 days, always on 7.17 with FIPS **Build scan:** https://gradle-enterprise.elastic.co/s/4qimb26phcoqo/tests/:plugins:mapper-size:yamlRestTest/org.elasticsearch.index.mapper.size.MapperSizeClientYamlTestSuiteIT/test%20%7Byaml=mapper_size%2F10_basic%2FMapper%20Size%7D **Reproduction line:** ``` ./gradlew ':plugins:mapper-size:yamlRestTest' --tests "org.elasticsearch.index.mapper.size.MapperSizeClientYamlTestSuiteIT.test {yaml=mapper_size/10_basic/Mapper Size}" -Dtests.seed=71F296A226EA83E6 -Dtests.locale=da -Dtests.timezone=Pacific/Noumea -Druntime.java=17 -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.index.mapper.size.MapperSizeClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dmapper_size/10_basic/Mapper%20Size%7D **Failure excerpt:** ``` java.lang.AssertionError: Failure at [mapper_size/10_basic:7]: expected [2xx] status code but api [indices.create] returned [400 Bad Request] [{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: [_size : {enabled=true}]","stack_trace":"MapperParsingException[Root mapping definition has unsupported parameters: [_size : {enabled=true}]]\n\tat org.elasticsearch.index.mapper.MappingParser.checkNoRemainingFields(MappingParser.java:72)\n\tat org.elasticsearch.index.mapper.MappingParser.parse(MappingParser.java:145)\n\tat org.elasticsearch.index.mapper.MapperService.parseMappings(MapperService.java:503)\n\tat org.elasticsearch.index.mapper.MapperService.mergeAndApplyMappings(MapperService.java:419)\n\tat org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:402)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.updateIndexMappingsAndBuildSortOrder(MetadataCreateIndexService.java:1303)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.lambda$applyCreateIndexWithTemporaryService$3(MetadataCreateIndexService.java:453)\n\tat org.elasticsearch.indices.IndicesService.withTempIndexService(IndicesService.java:677)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexWithTemporaryService(MetadataCreateIndexService.java:451)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequestWithV1Templates(MetadataCreateIndexService.java:567)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:413)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:420)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService$1.execute(MetadataCreateIndexService.java:319)\n\tat org.elasticsearch.cluster.ClusterStateUpdateTask.execute(ClusterStateUpdateTask.java:51)\n\tat org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:840)\n\tat org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:407)\n\tat org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:243)\n\tat org.elasticsearch.cluster.service.MasterService.access$100(MasterService.java:63)\n\tat org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:170)\n\tat org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:146)\n\tat org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:202)\n\tat org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:718)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:262)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:225)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [_size : {enabled=true}]","caused_by":{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: [_size : {enabled=true}]","stack_trace":"MapperParsingException[Root mapping definition has unsupported parameters: [_size : {enabled=true}]]\n\tat org.elasticsearch.index.mapper.MappingParser.checkNoRemainingFields(MappingParser.java:72)\n\tat org.elasticsearch.index.mapper.MappingParser.parse(MappingParser.java:145)\n\tat org.elasticsearch.index.mapper.MapperService.parseMappings(MapperService.java:503)\n\tat org.elasticsearch.index.mapper.MapperService.mergeAndApplyMappings(MapperService.java:419)\n\tat org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:402)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.updateIndexMappingsAndBuildSortOrder(MetadataCreateIndexService.java:1303)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.lambda$applyCreateIndexWithTemporaryService$3(MetadataCreateIndexService.java:453)\n\tat org.elasticsearch.indices.IndicesService.withTempIndexService(IndicesService.java:677)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexWithTemporaryService(MetadataCreateIndexService.java:451)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequestWithV1Templates(MetadataCreateIndexService.java:567)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:413)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:420)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService$1.execute(MetadataCreateIndexService.java:319)\n\tat org.elasticsearch.cluster.ClusterStateUpdateTask.execute(ClusterStateUpdateTask.java:51)\n\tat org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:840)\n\tat org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:407)\n\tat org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:243)\n\tat org.elasticsearch.cluster.service.MasterService.access$100(MasterService.java:63)\n\tat org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:170)\n\tat org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:146)\n\tat org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:202)\n\tat org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:718)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:262)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:225)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"},"stack_trace":"MapperParsingException[Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [_size : {enabled=true}]]; nested: MapperParsingException[Root mapping definition has unsupported parameters: [_size : {enabled=true}]];\n\tat org.elasticsearch.index.mapper.MapperService.parseMappings(MapperService.java:505)\n\tat org.elasticsearch.index.mapper.MapperService.mergeAndApplyMappings(MapperService.java:419)\n\tat org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:402)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.updateIndexMappingsAndBuildSortOrder(MetadataCreateIndexService.java:1303)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.lambda$applyCreateIndexWithTemporaryService$3(MetadataCreateIndexService.java:453)\n\tat org.elasticsearch.indices.IndicesService.withTempIndexService(IndicesService.java:677)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexWithTemporaryService(MetadataCreateIndexService.java:451)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequestWithV1Templates(MetadataCreateIndexService.java:567)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:413)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:420)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService$1.execute(MetadataCreateIndexService.java:319)\n\tat org.elasticsearch.cluster.ClusterStateUpdateTask.execute(ClusterStateUpdateTask.java:51)\n\tat org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:840)\n\tat org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:407)\n\tat org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:243)\n\tat org.elasticsearch.cluster.service.MasterService.access$100(MasterService.java:63)\n\tat org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:170)\n\tat org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:146)\n\tat org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:202)\n\tat org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:718)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:262)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:225)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\nCaused by: MapperParsingException[Root mapping definition has unsupported parameters: [_size : {enabled=true}]]\n\tat org.elasticsearch.index.mapper.MappingParser.checkNoRemainingFields(MappingParser.java:72)\n\tat org.elasticsearch.index.mapper.MappingParser.parse(MappingParser.java:145)\n\tat org.elasticsearch.index.mapper.MapperService.parseMappings(MapperService.java:503)\n\t... 24 more\n"},"status":400}] at __randomizedtesting.SeedInfo.seed([71F296A226EA83E6:F9A6A9788816EE1E]:0) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:482) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:455) 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.elasticsearch.test.cluster.local.LocalElasticsearchCluster$1.evaluate(LocalElasticsearchCluster.java:38) 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:1589) Caused by: java.lang.AssertionError: expected [2xx] status code but api [indices.create] returned [400 Bad Request] [{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: [_size : {enabled=true}]","stack_trace":"MapperParsingException[Root mapping definition has unsupported parameters: [_size : {enabled=true}]]\n\tat org.elasticsearch.index.mapper.MappingParser.checkNoRemainingFields(MappingParser.java:72)\n\tat org.elasticsearch.index.mapper.MappingParser.parse(MappingParser.java:145)\n\tat org.elasticsearch.index.mapper.MapperService.parseMappings(MapperService.java:503)\n\tat org.elasticsearch.index.mapper.MapperService.mergeAndApplyMappings(MapperService.java:419)\n\tat org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:402)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.updateIndexMappingsAndBuildSortOrder(MetadataCreateIndexService.java:1303)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.lambda$applyCreateIndexWithTemporaryService$3(MetadataCreateIndexService.java:453)\n\tat org.elasticsearch.indices.IndicesService.withTempIndexService(IndicesService.java:677)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexWithTemporaryService(MetadataCreateIndexService.java:451)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequestWithV1Templates(MetadataCreateIndexService.java:567)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:413)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:420)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService$1.execute(MetadataCreateIndexService.java:319)\n\tat org.elasticsearch.cluster.ClusterStateUpdateTask.execute(ClusterStateUpdateTask.java:51)\n\tat org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:840)\n\tat org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:407)\n\tat org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:243)\n\tat org.elasticsearch.cluster.service.MasterService.access$100(MasterService.java:63)\n\tat org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:170)\n\tat org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:146)\n\tat org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:202)\n\tat org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:718)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:262)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:225)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [_size : {enabled=true}]","caused_by":{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: [_size : {enabled=true}]","stack_trace":"MapperParsingException[Root mapping definition has unsupported parameters: [_size : {enabled=true}]]\n\tat org.elasticsearch.index.mapper.MappingParser.checkNoRemainingFields(MappingParser.java:72)\n\tat org.elasticsearch.index.mapper.MappingParser.parse(MappingParser.java:145)\n\tat org.elasticsearch.index.mapper.MapperService.parseMappings(MapperService.java:503)\n\tat org.elasticsearch.index.mapper.MapperService.mergeAndApplyMappings(MapperService.java:419)\n\tat org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:402)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.updateIndexMappingsAndBuildSortOrder(MetadataCreateIndexService.java:1303)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.lambda$applyCreateIndexWithTemporaryService$3(MetadataCreateIndexService.java:453)\n\tat org.elasticsearch.indices.IndicesService.withTempIndexService(IndicesService.java:677)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexWithTemporaryService(MetadataCreateIndexService.java:451)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequestWithV1Templates(MetadataCreateIndexService.java:567)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:413)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:420)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService$1.execute(MetadataCreateIndexService.java:319)\n\tat org.elasticsearch.cluster.ClusterStateUpdateTask.execute(ClusterStateUpdateTask.java:51)\n\tat org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:840)\n\tat org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:407)\n\tat org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:243)\n\tat org.elasticsearch.cluster.service.MasterService.access$100(MasterService.java:63)\n\tat org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:170)\n\tat org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:146)\n\tat org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:202)\n\tat org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:718)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:262)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:225)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"},"stack_trace":"MapperParsingException[Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [_size : {enabled=true}]]; nested: MapperParsingException[Root mapping definition has unsupported parameters: [_size : {enabled=true}]];\n\tat org.elasticsearch.index.mapper.MapperService.parseMappings(MapperService.java:505)\n\tat org.elasticsearch.index.mapper.MapperService.mergeAndApplyMappings(MapperService.java:419)\n\tat org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:402)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.updateIndexMappingsAndBuildSortOrder(MetadataCreateIndexService.java:1303)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.lambda$applyCreateIndexWithTemporaryService$3(MetadataCreateIndexService.java:453)\n\tat org.elasticsearch.indices.IndicesService.withTempIndexService(IndicesService.java:677)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexWithTemporaryService(MetadataCreateIndexService.java:451)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequestWithV1Templates(MetadataCreateIndexService.java:567)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:413)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:420)\n\tat org.elasticsearch.cluster.metadata.MetadataCreateIndexService$1.execute(MetadataCreateIndexService.java:319)\n\tat org.elasticsearch.cluster.ClusterStateUpdateTask.execute(ClusterStateUpdateTask.java:51)\n\tat org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:840)\n\tat org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:407)\n\tat org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:243)\n\tat org.elasticsearch.cluster.service.MasterService.access$100(MasterService.java:63)\n\tat org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:170)\n\tat org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:146)\n\tat org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:202)\n\tat org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:718)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:262)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:225)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\nCaused by: MapperParsingException[Root mapping definition has unsupported parameters: [_size : {enabled=true}]]\n\tat org.elasticsearch.index.mapper.MappingParser.checkNoRemainingFields(MappingParser.java:72)\n\tat org.elasticsearch.index.mapper.MappingParser.parse(MappingParser.java:145)\n\tat org.elasticsearch.index.mapper.MapperService.parseMappings(MapperService.java:503)\n\t... 24 more\n"},"status":400}] at org.junit.Assert.fail(Assert.java:88) at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:375) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:471) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:455) 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.elasticsearch.test.cluster.local.LocalElasticsearchCluster$1.evaluate(LocalElasticsearchCluster.java:38) 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:1589) ```
https://github.com/elastic/elasticsearch/issues/93303
https://github.com/elastic/elasticsearch/pull/93357
feb1f518030df26bea7468970c5746e0445607fd
91d111efe6c348127563ff9fd3c6c08ef9369490
"2023-01-27T12:09:23Z"
java
"2023-01-30T23:52:44Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,298
["docs/changelog/93324.yaml", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/action/TransportRevertModelSnapshotAction.java", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/job/persistence/JobResultsProvider.java"]
[CI] DatafeedJobsIT testStopAndRestartCompositeDatafeed failing
This is almost certainly a side effect of #93000 - that change must have made picking up a datafeed from where it left off less robust. **Build scan:** https://gradle-enterprise.elastic.co/s/qhsixq5vyz5fa/tests/:x-pack:plugin:ml:qa:native-multi-node-tests:javaRestTest/org.elasticsearch.xpack.ml.integration.DatafeedJobsIT/testStopAndRestartCompositeDatafeed **Reproduction line:** ``` gradlew ':x-pack:plugin:ml:qa:native-multi-node-tests:javaRestTest' --tests "org.elasticsearch.xpack.ml.integration.DatafeedJobsIT.testStopAndRestartCompositeDatafeed" -Dtests.seed=27378D414D46F43F -Dtests.locale=th-TH-u-nu-thai-x-lvariant-TH -Dtests.timezone=Indian/Antananarivo -Druntime.java=19 ``` **Applicable branches:** main **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.ml.integration.DatafeedJobsIT&tests.test=testStopAndRestartCompositeDatafeed **Failure excerpt:** ``` java.lang.AssertionError: Expected: <2212L> but: was <2215L> at __randomizedtesting.SeedInfo.seed([27378D414D46F43F:498916D179B399F0]: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.xpack.ml.integration.DatafeedJobsIT.lambda$testStopAndRestartCompositeDatafeed$14(DatafeedJobsIT.java:360) at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1121) at org.elasticsearch.xpack.ml.integration.DatafeedJobsIT.testStopAndRestartCompositeDatafeed(DatafeedJobsIT.java:358) 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:1589) ```
https://github.com/elastic/elasticsearch/issues/93298
https://github.com/elastic/elasticsearch/pull/93324
89475ee41b17599fb01ff6e86d1f5138656af523
2311bbf9e94037ae617757f3835e7c679c742fb4
"2023-01-27T11:19:25Z"
java
"2023-01-27T16:58:56Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,271
["qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/DesiredNodesUpgradeIT.java", "qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/SnapshotBasedRecoveryIT.java", "server/src/main/java/org/elasticsearch/cluster/routing/allocation/allocator/DesiredBalanceComputer.java", "server/src/test/java/org/elasticsearch/cluster/routing/allocation/AllocationCommandsTests.java"]
[CI] SnapshotBasedRecoveryIT testSnapshotBasedRecovery failing
**Build scan:** https://gradle-enterprise.elastic.co/s/xvwrlxusnxdgu/tests/:qa:rolling-upgrade:v8.6.1%23oneThirdUpgradedTest/org.elasticsearch.upgrades.SnapshotBasedRecoveryIT/testSnapshotBasedRecovery **Reproduction line:** ``` ./gradlew ':qa:rolling-upgrade:v8.6.1#oneThirdUpgradedTest' -Dtests.class="org.elasticsearch.upgrades.SnapshotBasedRecoveryIT" -Dtests.method="testSnapshotBasedRecovery" -Dtests.seed=32151106DB58AD22 -Dtests.bwc=true -Dtests.locale=en-MT -Dtests.timezone=Asia/Colombo -Druntime.java=17 ``` **Applicable branches:** main **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.upgrades.SnapshotBasedRecoveryIT&tests.test=testSnapshotBasedRecovery **Failure excerpt:** ``` java.lang.AssertionError: timed out waiting for green state for index [snapshot_based_recovery] cluster state [{ "cluster_name" : "v8.6.1", "cluster_uuid" : "ETWjuovuQXC6pr6CN8pJXA", "version" : 391, "state_uuid" : "y7ss0aZLQvab9JIDk7jppg", "master_node" : "tsyOGVI1T5iBSTLS0zL29A", ... ```
https://github.com/elastic/elasticsearch/issues/93271
https://github.com/elastic/elasticsearch/pull/97654
efceb7f1fefc4ac4205e6f0f219b3dcadb949678
32fb774976c01e15cecff7c46f92832402618921
"2023-01-26T13:51:39Z"
java
"2023-07-13T14:27:58Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,180
["docs/reference/aggregations/bucket/datehistogram-aggregation.asciidoc"]
Date histogram aggregation unexpected result with calendar_interval and offset >= 30 days
### Elasticsearch Version 7.17 ### Installed Plugins _No response_ ### Java Version 11 ### OS Version x86_64 ### Problem Description Based on [this doc](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-datehistogram-aggregation.html), elasticsearch supports Calendar-aware interval on data histogram aggregation. Specially for a "quarter" interval: "One quarter is the interval between the start day of the month and time of day and the same day of the month and time of day three months later, so that the day of the month and time of day are the same at the start and end." My understanding of this is every bucket in the response should start at the same day, but that's not the case when I use offset >= 30 days. Some buckets start at, say 5th of the month, while one other bucket starts at the 6th of the month. ### Steps to Reproduce ``` PUT /test01 { "mappings": { "properties": { "date": { "type": "date" } } } } POST /test01/_doc { "date": 1642658400000 } // 01/20/2022, 6AM UTC POST /test01/_doc { "date": 1645336800000 } // 02/20/2022, 6AM UTC ... POST /test01/_doc { "date": 1660975200000 } // 08/20/2022, 6AM UTC // basically one document every month from January to August ``` Queries: ``` { "size": 0, "aggs": { "ShiftedQuarter": { "date_histogram": { "calendar_interval": "quarter", "min_doc_count": 1, "time_zone": "UTC", "offset": "+20d", // offset is less than 30 days "field": "date" } } } } ``` returns below as expected (every bucket starts at the 21st day of the month): ``` "aggregations": { "ShiftedQuarter": { "buckets": [ { "key_as_string": "2021-10-21T00:00:00.000Z", "key": 1634774400000, "doc_count": 1 }, { "key_as_string": "2022-01-21T00:00:00.000Z", "key": 1642723200000, "doc_count": 3 }, { "key_as_string": "2022-04-21T00:00:00.000Z", "key": 1650499200000, "doc_count": 3 }, { "key_as_string": "2022-07-21T00:00:00.000Z", "key": 1658361600000, "doc_count": 1 } ] } } ``` However if the query use a offset that is large than 30, like ``` { "size": 0, "aggs": { "ShiftedQuarter": { "date_histogram": { "calendar_interval": "quarter", "min_doc_count": 1, "time_zone": "UTC", "offset": "+35d", "field": "date" } } } } ``` then some bucket starts at the 5th but some starts at the 6th: ``` "aggregations": { "ShiftedQuarter": { "buckets": [ { "key_as_string": "2021-11-05T00:00:00.000Z", "key": 1636070400000, "doc_count": 1 }, { "key_as_string": "2022-02-05T00:00:00.000Z", "key": 1644019200000, "doc_count": 3 }, { "key_as_string": "2022-05-06T00:00:00.000Z", // 06 as opposed to 05 for other buckets "key": 1651795200000, "doc_count": 3 }, { "key_as_string": "2022-08-05T00:00:00.000Z", "key": 1659657600000, "doc_count": 1 } ] } } ``` ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/93180
https://github.com/elastic/elasticsearch/pull/93328
c18078e11e2d26e8acaf508883a29b5bfb894a48
f55d70a6820707d282a9fca90bf7441a8904cfcd
"2023-01-24T04:31:35Z"
java
"2023-02-06T15:20:40Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,144
["build-tools/src/main/java/org/elasticsearch/gradle/testclusters/StandaloneRestIntegTestTask.java", "test/test-clusters/src/main/java/org/elasticsearch/test/cluster/local/LocalClusterFactory.java"]
--debug-server-jvm option doesn't work for YAML tests any more
In the past you could tell the nodes in a test cluster to attach themselves to a waiting debugger on startup by passing the `--debug-server-jvm` option documented here: https://github.com/elastic/elasticsearch/blob/c0228c73fea5caf279bf7141eabea50813c4528b/TESTING.asciidoc#L383-L390 I think this changed in #92379 and no longer seems to work. In fact I really wanted to attach a debugger to just one of the nodes in the cluster, and I believe #92379 might make this much easier to use (e.g. maybe via a method `LocalNodeSpecBuilder#debuggerPort(int)`). That'd be even better.
https://github.com/elastic/elasticsearch/issues/93144
https://github.com/elastic/elasticsearch/pull/93355
b4484cd8c62b7080c8038d292975e03fbc03a202
feb1f518030df26bea7468970c5746e0445607fd
"2023-01-23T10:31:24Z"
java
"2023-01-30T23:15:05Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,123
["docs/changelog/94835.yaml", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/DownsampleAction.java", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/UpdateRollupIndexPolicyStep.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/DownsampleActionTests.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/UpdateRollupIndexPolicyStepTests.java", "x-pack/plugin/ilm/qa/multi-node/src/javaRestTest/java/org/elasticsearch/xpack/ilm/actions/DownsampleActionIT.java"]
Index is stuck in the `downsample` ILM action
### Elasticsearch Version 8.6.0 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version Elasticsearch Service (ESS) ### Problem Description Users may accidentally configure an ILM policy with the `downsample` [action](https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-downsample.html) where the ILM policy is attached to a regular index or a data stream (but not a [time series data stream (TSDS)](https://www.elastic.co/guide/en/elasticsearch/reference/current/tsds.html)). In this situation, the regular index or backing index will remain stuck in the `downsample` ILM action (even after updating the ILM policy to remove the `downsample` action). ### Steps to Reproduce 1. Create a hot/warm deployment version 8.6.0 in ESS. 2. Create an ILM policy with a `downsample` action: ``` PUT _ilm/policy/my-lifecycle-policy { "policy": { "phases": { "hot": { "actions": { "rollover": { "max_docs": "2" }, "downsample": { "fixed_interval": "1m" } } }, "warm": { "min_age": "1m", "actions": { "allocate": { "number_of_replicas": 0 } } }, "delete": { "min_age": "2m", "actions": { "delete": {} } } } } } ``` 3. Update the `indices.lifecycle.poll_interval` for this current issue recreation: ``` PUT _cluster/settings { "persistent": { "indices.lifecycle.poll_interval": "10s" } } ``` 4. Create a component template for mappings: ``` PUT _component_template/my-mappings { "template": { "mappings": { "properties": { "@timestamp": { "type": "date", "format": "date_optional_time||epoch_millis" }, "message": { "type": "wildcard" } } } }, "_meta": { "description": "Mappings for @timestamp and message fields", "my-custom-meta-field": "More arbitrary metadata" } } ``` 5. Create a component template for index settings: ``` PUT _component_template/my-settings { "template": { "settings": { "index.lifecycle.name": "my-lifecycle-policy" } }, "_meta": { "description": "Settings for ILM", "my-custom-meta-field": "More arbitrary metadata" } } ``` 6. Create an index template: ``` PUT _index_template/my-index-template { "index_patterns": ["my-data-stream*"], "data_stream": { }, "composed_of": [ "my-mappings", "my-settings" ], "priority": 500, "_meta": { "description": "Template for my time series data", "my-custom-meta-field": "More arbitrary metadata" } } ``` 7. Create the data stream: ``` PUT _data_stream/my-data-stream ``` 8. Add some documents: ``` POST my-data-stream/_doc { "@timestamp": "2023-01-22T00:00:01.000Z", "message": "document 1" } POST my-data-stream/_doc { "@timestamp": "2023-01-22T00:00:02.000Z", "message": "document 2" } POST my-data-stream/_doc { "@timestamp": "2023-01-22T00:00:03.000Z", "message": "document 3" } ``` 9. Verify that the documents are stored: ``` GET my-data-stream/_search ``` 10. Verify that a new backing index has been created (i.e `.ds-my-data-stream-2023.01.22-000002`) (will be created after the next poll interval) ``` GET _cat/indices?expand_wildcards=all ``` 11. Check the ILM explain results of the first index (i.e `.ds-my-data-stream-2023.01.22-000001`) and observe that the index is stuck in the `downsample` action with the following exception: ``` Rollup requires setting [index.mode=time_series] for index [.ds-my-data-stream-2023.01.22-000001] ``` ``` GET .ds-my-data-stream-2023.01.22-000001/_ilm/explain ``` ``` { "indices": { ".ds-my-data-stream-2023.01.22-000001": { "index": ".ds-my-data-stream-2023.01.22-000001", "managed": true, "policy": "my-lifecycle-policy", "index_creation_date_millis": 1674363304040, "time_since_index_creation": "2.04m", "lifecycle_date_millis": 1674363319364, "age": "1.78m", "phase": "hot", "phase_time_millis": 1674363419410, "action": "downsample", "action_time_millis": 1674363319564, "step": "ERROR", "step_time_millis": 1674363419410, "failed_step": "rollup", "is_auto_retryable_error": true, "failed_step_retry_count": 9, "step_info": { "type": "exception", "reason": "Rollup requires setting [index.mode=time_series] for index [.ds-my-data-stream-2023.01.22-000001]" }, "phase_execution": { "policy": "my-lifecycle-policy", "phase_definition": { "min_age": "0ms", "actions": { "downsample": { "fixed_interval": "1m" }, "rollover": { "max_docs": 2 } } }, "version": 1, "modified_date_in_millis": 1674363301001 } } } } ``` 12. Update the ILM policy to remove the `downsample` action: ``` PUT _ilm/policy/my-lifecycle-policy { "policy": { "phases": { "hot": { "actions": { "rollover": { "max_docs": "2" } } }, "warm": { "min_age": "1m", "actions": { "allocate": { "number_of_replicas": 0 } } }, "delete": { "min_age": "2m", "actions": { "delete": {} } } } } } ``` 13. Check the ILM explain results of index `.ds-my-data-stream-2023.01.22-000001` and observe that the index remains stuck in the `downsample` action, despite the ILM policy update: ``` { "indices": { ".ds-my-data-stream-2023.01.22-000001": { "index": ".ds-my-data-stream-2023.01.22-000001", "managed": true, "policy": "my-lifecycle-policy", "index_creation_date_millis": 1674363304040, "time_since_index_creation": "2.79m", "lifecycle_date_millis": 1674363319364, "age": "2.54m", "phase": "hot", "phase_time_millis": 1674363439419, "action": "downsample", "action_time_millis": 1674363319564, "step": "ERROR", "step_time_millis": 1674363469445, "failed_step": "rollup", "is_auto_retryable_error": true, "failed_step_retry_count": 14, "step_info": { "type": "exception", "reason": "Rollup requires setting [index.mode=time_series] for index [.ds-my-data-stream-2023.01.22-000001]" }, "phase_execution": { "policy": "my-lifecycle-policy", "phase_definition": { "min_age": "0ms", "actions": { "downsample": { "fixed_interval": "1m" }, "rollover": { "max_docs": 2 } } }, "version": 1, "modified_date_in_millis": 1674363301001 } } } } ``` ### Logs (if relevant) _No response_ ### Workaround I am not aware of any workarounds for now. To be discussed with @elastic/es-data-management .
https://github.com/elastic/elasticsearch/issues/93123
https://github.com/elastic/elasticsearch/pull/94835
356e1090e3688a07ce2d52789590741c67c12424
c1119d8246e8f4f691e257fc00362eedfeba6230
"2023-01-22T05:03:39Z"
java
"2023-03-30T12:19:12Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,118
["docs/changelog/93329.yaml", "modules/ingest-common/src/yamlRestTest/resources/rest-api-spec/test/ingest/190_script_processor.yml", "server/src/internalClusterTest/java/org/elasticsearch/index/FinalPipelineIT.java", "server/src/main/java/org/elasticsearch/ingest/IngestDocument.java", "server/src/main/java/org/elasticsearch/ingest/IngestService.java", "server/src/test/java/org/elasticsearch/ingest/IngestServiceTests.java"]
TSDB data stream timestamp parsing doesn't work quite right in some circumstances
There's a little buglet in #85387 (which was the PR that closed #84046), specifically, it doesn't account for the possibility that there's both a default/request **and** and a final pipeline, and that they can both touch the `@timestamp` field. `IngestService#postIngest` was added in #85387, and it's intended that the logic there only runs **once**, after all the pipelines associated with the request have been executed. But as it's currently written, the logic actually runs after each individual pipeline runs. The consequence of that is that if there's a default/request and a final pipeline in use for a document, and the final pipeline changes the timestamp field, the `rawTimestamp` recorded for the `IndexRequest` associated with the document will mistakenly use the value it sees after the default/request pipeline runs, and **not** the most correct one (from after when the final pipeline runs). /cc @martijnvg
https://github.com/elastic/elasticsearch/issues/93118
https://github.com/elastic/elasticsearch/pull/93329
63ca70897553fbfea45c7c63b92134d59e5d4c77
3e3b2711cf7be388faad499a1d713bb146ef69c6
"2023-01-20T16:36:34Z"
java
"2023-01-30T16:48:19Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,117
["docs/changelog/93340.yaml", "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/search/SearchHit.java", "server/src/test/java/org/elasticsearch/index/mapper/CopyToMapperTests.java"]
IndexOutOfBoundsException fetch innerhits
### Elasticsearch Version 8.6.0 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version docker-image = docker.elastic.co/elasticsearch/elasticsearch:8.6 ### Problem Description We are trying to migrate from Elasticsearch 6.7.1 to Elasticsearch 8.6.0. With the same document we always get IndexOutOfBoundsException while trying to fetch innerhits in Elasticsearch 8.6.0. Everything works fine in Elasticsearch 6.7.1. ### Steps to Reproduce [elasticsearch_6.7.1 (1).txt](https://github.com/elastic/elasticsearch/files/10466823/elasticsearch_6.7.1.1.txt) [elasticsearch_8.6.0.txt](https://github.com/elastic/elasticsearch/files/10466824/elasticsearch_8.6.0.txt) ### Logs (if relevant) `{"@timestamp":"2023-01-20T13:39:21.170Z", "log.level": "WARN", "message":"path: /test/_search, params: {index=test}", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[es01][search][T#10]","log.logger":"rest.suppressed","elasticsearch.cluster.uuid":"T3_Kb_fZTOORKN7Bn5jz2g","elasticsearch.node.id":"fESFHfZ-RxuDaPIIKhOoNA","elasticsearch.node.name":"es01","elasticsearch.cluster.name":"es_alex","error.type":"org.elasticsearch.action.search.SearchPhaseExecutionException","error.message":"all shards failed","error.stack_trace":"Failed to execute phase [query], all shards failed; shardFailures {[fESFHfZ-RxuDaPIIKhOoNA][test][0]: org.elasticsearch.transport.RemoteTransportException: [es01][172.27.0.2:9300][indices:data/read/search[phase/query]]\nCaused by: org.elasticsearch.search.fetch.FetchPhaseExecutionException: Fetch Failed [Error running fetch phase for doc [73]]\n\tat [email protected]/org.elasticsearch.search.fetch.FetchPhase.buildSearchHits(FetchPhase.java:181)\n\tat [email protected]/org.elasticsearch.search.fetch.FetchPhase.execute(FetchPhase.java:93)\n\tat [email protected]/org.elasticsearch.search.SearchService.executeFetchPhase(SearchService.java:659)\n\tat [email protected]/org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:634)\n\tat [email protected]/org.elasticsearch.search.SearchService.lambda$executeQueryPhase$2(SearchService.java:489)\n\tat [email protected]/org.elasticsearch.action.ActionRunnable.lambda$supply$0(ActionRunnable.java:47)\n\tat [email protected]/org.elasticsearch.action.ActionRunnable$2.doRun(ActionRunnable.java:62)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:33)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:769)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\nCaused by: org.elasticsearch.search.fetch.FetchPhaseExecutionException: Fetch Failed [Error running fetch phase for doc [43]]\n\tat [email protected]/org.elasticsearch.search.fetch.FetchPhase.buildSearchHits(FetchPhase.java:181)\n\tat [email protected]/org.elasticsearch.search.fetch.FetchPhase.execute(FetchPhase.java:93)\n\tat [email protected]/org.elasticsearch.search.fetch.subphase.InnerHitsPhase.hitExecute(InnerHitsPhase.java:76)\n\tat [email protected]/org.elasticsearch.search.fetch.subphase.InnerHitsPhase$1.process(InnerHitsPhase.java:52)\n\tat [email protected]/org.elasticsearch.search.fetch.FetchPhase.buildSearchHits(FetchPhase.java:177)\n\t... 13 more\nCaused by: java.lang.IndexOutOfBoundsException: Index: 43, Size: 1\n\tat java.base/java.util.Collections$SingletonList.get(Collections.java:4959)\n\tat [email protected]/org.elasticsearch.search.fetch.FetchPhase.prepareNestedHitContext(FetchPhase.java:466)\n\tat [email protected]/org.elasticsearch.search.fetch.FetchPhase.prepareHitContext(FetchPhase.java:312)\n\tat [email protected]/org.elasticsearch.search.fetch.FetchPhase.buildSearchHits(FetchPhase.java:165)\n\t... 17 more\n}\n\tat [email protected]/org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseFailure(AbstractSearchAsyncAction.java:728)\n\tat [email protected]/org.elasticsearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:418)\n\tat [email protected]/org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseDone(AbstractSearchAsyncAction.java:760)\n\tat [email protected]/org.elasticsearch.action.search.AbstractSearchAsyncAction.onShardFailure(AbstractSearchAsyncAction.java:512)\n\tat [email protected]/org.elasticsearch.action.search.AbstractSearchAsyncAction$1.onFailure(AbstractSearchAsyncAction.java:349)\n\tat [email protected]/org.elasticsearch.action.ActionListener$Delegating.onFailure(ActionListener.java:92)\n\tat [email protected]/org.elasticsearch.action.ActionListenerResponseHandler.handleException(ActionListenerResponseHandler.java:48)\n\tat [email protected]/org.elasticsearch.action.search.SearchTransportService$ConnectionCountingHandler.handleException(SearchTransportService.java:642)\n\tat [email protected]/org.elasticsearch.transport.TransportService$UnregisterChildTransportResponseHandler.handleException(TransportService.java:1650)\n\tat [email protected]/org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1390)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:1512)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1487)\n\tat [email protected]/org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:50)\n\tat [email protected]/org.elasticsearch.action.support.ChannelActionListener.onFailure(ChannelActionListener.java:48)\n\tat [email protected]/org.elasticsearch.action.ActionRunnable.onFailure(ActionRunnable.java:77)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:28)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:33)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:769)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\nCaused by: org.elasticsearch.ElasticsearchException$1: Index: 43, Size: 1\n\tat [email protected]/org.elasticsearch.ElasticsearchException.guessRootCauses(ElasticsearchException.java:638)\n\tat [email protected]/org.elasticsearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:416)\n\t... 20 more\nCaused by: java.lang.IndexOutOfBoundsException: Index: 43, Size: 1\n\tat java.base/java.util.Collections$SingletonList.get(Collections.java:4959)\n\tat [email protected]/org.elasticsearch.search.fetch.FetchPhase.prepareNestedHitContext(FetchPhase.java:466)\n\tat [email protected]/org.elasticsearch.search.fetch.FetchPhase.prepareHitContext(FetchPhase.java:312)\n\tat [email protected]/org.elasticsearch.search.fetch.FetchPhase.buildSearchHits(FetchPhase.java:165)\n\tat [email protected]/org.elasticsearch.search.fetch.FetchPhase.execute(FetchPhase.java:93)\n\tat [email protected]/org.elasticsearch.search.fetch.subphase.InnerHitsPhase.hitExecute(InnerHitsPhase.java:76)\n\tat [email protected]/org.elasticsearch.search.fetch.subphase.InnerHitsPhase$1.process(InnerHitsPhase.java:52)\n\tat [email protected]/org.elasticsearch.search.fetch.FetchPhase.buildSearchHits(FetchPhase.java:177)\n\tat [email protected]/org.elasticsearch.search.fetch.FetchPhase.execute(FetchPhase.java:93)\n\tat [email protected]/org.elasticsearch.search.SearchService.executeFetchPhase(SearchService.java:659)\n\tat [email protected]/org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:634)\n\tat [email protected]/org.elasticsearch.search.SearchService.lambda$executeQueryPhase$2(SearchService.java:489)\n\tat [email protected]/org.elasticsearch.action.ActionRunnable.lambda$supply$0(ActionRunnable.java:47)\n\tat [email protected]/org.elasticsearch.action.ActionRunnable$2.doRun(ActionRunnable.java:62)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\t... 6 more\n"}`
https://github.com/elastic/elasticsearch/issues/93117
https://github.com/elastic/elasticsearch/pull/93340
eb43e5b9b09ec937c246c17552e7dd85ca7a7090
d62fe2928cb39a51dfd7a84dca7650c4caa3743d
"2023-01-20T13:51:17Z"
java
"2023-02-01T11:25:57Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,074
["docs/changelog/93178.yaml", "server/src/main/java/org/elasticsearch/bootstrap/Bootstrap.java", "server/src/main/java/org/elasticsearch/bootstrap/Elasticsearch.java"]
Bootstrap check failures are easy to miss in logs
### Elasticsearch Version 8.7.0-SNAPSHOT (50c1a781581355b87a840f4a7f9ee97a2f0ba9d6) ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version Linux fedora 5.15.89-200.fc37.x86_64 #1 SMP Wed Jan 18 14:59:21 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux ### Problem Description When bootstrap checks fail, we only receive INFO logs and it's easy to miss the problem. The console output is as follows: ``` [2023-01-19T13:49:33,194][INFO ][o.e.t.TransportService ] [fedora] publish_address {192.168.1.33:9300}, bound_addresses {192.168.1.33:9300} [2023-01-19T13:49:33,414][INFO ][o.e.b.BootstrapChecks ] [fedora] bound or publishing to a non-loopback address, enforcing bootstrap checks bootstrap check failure [1] of [1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured ERROR: Elasticsearch did not exit normally - check the logs at /home/q/Downloads/elasticsearch-8.7.0-SNAPSHOT/logs/elasticsearch.log [2023-01-19T13:49:33,420][INFO ][o.e.n.Node ] [fedora] stopping ... [2023-01-19T13:49:33,434][INFO ][o.e.n.Node ] [fedora] stopped [2023-01-19T13:49:33,434][INFO ][o.e.n.Node ] [fedora] closing ... [2023-01-19T13:49:33,441][INFO ][o.e.n.Node ] [fedora] closed [2023-01-19T13:49:33,443][INFO ][o.e.x.m.p.NativeController] [fedora] Native controller process has stopped - no new native processes can be started ERROR: [1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch. ``` This is surprising as there is nothing else in the output. But what is worse is that elasticsearch.log (which is what the log asks to look and which was anyway the only file I was looking at the time) ends with the following: ``` [2023-01-19T13:40:25,913][INFO ][o.e.t.TransportService ] [fedora] publish_address {192.168.1.33:9300}, bound_addresses {192.168.1.33:9300} [2023-01-19T13:40:26,003][INFO ][o.e.b.BootstrapChecks ] [fedora] bound or publishing to a non-loopback address, enforcing bootstrap checks [2023-01-19T13:40:26,008][INFO ][o.e.n.Node ] [fedora] stopping ... [2023-01-19T13:40:26,022][INFO ][o.e.n.Node ] [fedora] stopped [2023-01-19T13:40:26,022][INFO ][o.e.n.Node ] [fedora] closing ... [2023-01-19T13:40:26,029][INFO ][o.e.n.Node ] [fedora] closed [2023-01-19T13:40:26,030][INFO ][o.e.x.m.p.NativeController] [fedora] Native controller process has stopped - no new native processes can be started ``` This is very confusing as I was looking for an ERROR log and did not understand at all why Elasticsearch decided to stop. Nothing mentions in that log if something failed. I looked a bit at minor Elasticsearch versions (7.17, 8.0, 8.2, 8.3, 8.4, 8.6 and main). It turns out that Elasticsearch 8.2.0 does everything correctly: * the console output makes sense: ``` [2023-01-19T13:58:51,800][INFO ][o.e.b.BootstrapChecks ] [fedora] bound or publishing to a non-loopback address, enforcing bootstrap checks ERROR: [1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch. bootstrap check failure [1] of [1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured ERROR: Elasticsearch did not exit normally - check the logs at /home/q/Downloads/elasticsearch-8.2.0/logs/elasticsearch.log ``` * the logs do include an ERROR: ``` [2023-01-19T13:58:51,658][INFO ][o.e.t.TransportService ] [fedora] publish_address {192.168.1.33:9300}, bound_addresses {192.168.1.33:9300} [2023-01-19T13:58:51,800][INFO ][o.e.b.BootstrapChecks ] [fedora] bound or publishing to a non-loopback address, enforcing bootstrap checks [2023-01-19T13:58:51,805][ERROR][o.e.b.Bootstrap ] [fedora] node validation exception [1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch. bootstrap check failure [1] of [1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured ``` However: * Starting with Elasticsearch 8.3.0 the console output is wrong like the current `main` output but elasticsearch.log is still correct. * Starting with Elasticsearch 8.4.0 both the console output and elasticsearch.log are wrong like the current `main` output ### Steps to Reproduce * Build or download an Elasticsearch distribution (linux-tar in my case) * Make two changes in config/elasticsearch.yml: * change network.host to your IP address in the local network (192.168.1.33 in my case) without setting discovery settings (to make a bootstrap check fail) * add `xpack.security.enabled: false` to make sure the security by default does not add `cluster.initial_master_nodes` that will make the bootstrap check pass * Start bin/elasticsearch and look at both the console output and elasticsearch.log ### Logs (if relevant) Here are the full logs on `main`: ``` [2023-01-19T13:40:17,332][INFO ][o.e.n.Node ] [fedora] version[8.7.0-SNAPSHOT], pid[39012], build[tar/50c1a781581355b87a840f4a7f9ee97a2f0ba9d6/2023-01-19T09:37:49.307292342Z], OS[Linux/5.15.89-200.fc37.x86_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/19.0.1/19.0.1+10-21] [2023-01-19T13:40:17,337][INFO ][o.e.n.Node ] [fedora] JVM home [/home/q/Downloads/elasticsearch-8.7.0-SNAPSHOT/jdk], using bundled JDK [true] [2023-01-19T13:40:17,338][INFO ][o.e.n.Node ] [fedora] JVM arguments [-Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -Djava.security.manager=allow, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=SPI,COMPAT, --add-opens=java.base/java.io=ALL-UNNAMED, -XX:+UseG1GC, -Djava.io.tmpdir=/tmp/elasticsearch-2031972451056469335, -XX:+HeapDumpOnOutOfMemoryError, -XX:+ExitOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,level,pid,tags:filecount=32,filesize=64m, -Xms15876m, -Xmx15876m, -XX:MaxDirectMemorySize=8325693440, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=25, -Des.distribution.type=tar, --module-path=/home/q/Downloads/elasticsearch-8.7.0-SNAPSHOT/lib, --add-modules=jdk.net, -Djdk.module.main=org.elasticsearch.server] [2023-01-19T13:40:17,338][WARN ][o.e.n.Node ] [fedora] version [8.7.0-SNAPSHOT] is a pre-release version of Elasticsearch and is not suitable for production [2023-01-19T13:40:19,006][INFO ][c.a.c.i.j.JacksonVersion ] [fedora] Package versions: jackson-core=2.13.4, jackson-databind=2.13.4-2, jackson-dataformat-xml=2.13.4, jackson-datatype-jsr310=2.13.4, azure-core=1.34.0, Troubleshooting version conflicts: https://aka.ms/azsdk/java/dependency/troubleshoot [2023-01-19T13:40:20,221][INFO ][o.e.p.PluginsService ] [fedora] loaded module [aggregations] [2023-01-19T13:40:20,221][INFO ][o.e.p.PluginsService ] [fedora] loaded module [analysis-common] [2023-01-19T13:40:20,221][INFO ][o.e.p.PluginsService ] [fedora] loaded module [apm] [2023-01-19T13:40:20,222][INFO ][o.e.p.PluginsService ] [fedora] loaded module [blob-cache] [2023-01-19T13:40:20,222][INFO ][o.e.p.PluginsService ] [fedora] loaded module [constant-keyword] [2023-01-19T13:40:20,222][INFO ][o.e.p.PluginsService ] [fedora] loaded module [data-streams] [2023-01-19T13:40:20,222][INFO ][o.e.p.PluginsService ] [fedora] loaded module [frozen-indices] [2023-01-19T13:40:20,222][INFO ][o.e.p.PluginsService ] [fedora] loaded module [ingest-attachment] [2023-01-19T13:40:20,222][INFO ][o.e.p.PluginsService ] [fedora] loaded module [ingest-common] [2023-01-19T13:40:20,223][INFO ][o.e.p.PluginsService ] [fedora] loaded module [ingest-geoip] [2023-01-19T13:40:20,223][INFO ][o.e.p.PluginsService ] [fedora] loaded module [ingest-user-agent] [2023-01-19T13:40:20,223][INFO ][o.e.p.PluginsService ] [fedora] loaded module [kibana] [2023-01-19T13:40:20,223][INFO ][o.e.p.PluginsService ] [fedora] loaded module [lang-expression] [2023-01-19T13:40:20,223][INFO ][o.e.p.PluginsService ] [fedora] loaded module [lang-mustache] [2023-01-19T13:40:20,223][INFO ][o.e.p.PluginsService ] [fedora] loaded module [lang-painless] [2023-01-19T13:40:20,224][INFO ][o.e.p.PluginsService ] [fedora] loaded module [legacy-geo] [2023-01-19T13:40:20,224][INFO ][o.e.p.PluginsService ] [fedora] loaded module [mapper-extras] [2023-01-19T13:40:20,224][INFO ][o.e.p.PluginsService ] [fedora] loaded module [mapper-version] [2023-01-19T13:40:20,224][INFO ][o.e.p.PluginsService ] [fedora] loaded module [old-lucene-versions] [2023-01-19T13:40:20,224][INFO ][o.e.p.PluginsService ] [fedora] loaded module [parent-join] [2023-01-19T13:40:20,224][INFO ][o.e.p.PluginsService ] [fedora] loaded module [percolator] [2023-01-19T13:40:20,225][INFO ][o.e.p.PluginsService ] [fedora] loaded module [rank-eval] [2023-01-19T13:40:20,225][INFO ][o.e.p.PluginsService ] [fedora] loaded module [reindex] [2023-01-19T13:40:20,225][INFO ][o.e.p.PluginsService ] [fedora] loaded module [repositories-metering-api] [2023-01-19T13:40:20,225][INFO ][o.e.p.PluginsService ] [fedora] loaded module [repository-azure] [2023-01-19T13:40:20,225][INFO ][o.e.p.PluginsService ] [fedora] loaded module [repository-gcs] [2023-01-19T13:40:20,225][INFO ][o.e.p.PluginsService ] [fedora] loaded module [repository-s3] [2023-01-19T13:40:20,225][INFO ][o.e.p.PluginsService ] [fedora] loaded module [repository-url] [2023-01-19T13:40:20,226][INFO ][o.e.p.PluginsService ] [fedora] loaded module [runtime-fields-common] [2023-01-19T13:40:20,226][INFO ][o.e.p.PluginsService ] [fedora] loaded module [search-business-rules] [2023-01-19T13:40:20,226][INFO ][o.e.p.PluginsService ] [fedora] loaded module [searchable-snapshots] [2023-01-19T13:40:20,226][INFO ][o.e.p.PluginsService ] [fedora] loaded module [snapshot-based-recoveries] [2023-01-19T13:40:20,226][INFO ][o.e.p.PluginsService ] [fedora] loaded module [snapshot-repo-test-kit] [2023-01-19T13:40:20,226][INFO ][o.e.p.PluginsService ] [fedora] loaded module [spatial] [2023-01-19T13:40:20,226][INFO ][o.e.p.PluginsService ] [fedora] loaded module [test-delayed-aggs] [2023-01-19T13:40:20,227][INFO ][o.e.p.PluginsService ] [fedora] loaded module [test-die-with-dignity] [2023-01-19T13:40:20,227][INFO ][o.e.p.PluginsService ] [fedora] loaded module [test-error-query] [2023-01-19T13:40:20,227][INFO ][o.e.p.PluginsService ] [fedora] loaded module [transform] [2023-01-19T13:40:20,227][INFO ][o.e.p.PluginsService ] [fedora] loaded module [transport-netty4] [2023-01-19T13:40:20,227][INFO ][o.e.p.PluginsService ] [fedora] loaded module [unsigned-long] [2023-01-19T13:40:20,227][INFO ][o.e.p.PluginsService ] [fedora] loaded module [vector-tile] [2023-01-19T13:40:20,227][INFO ][o.e.p.PluginsService ] [fedora] loaded module [wildcard] [2023-01-19T13:40:20,227][INFO ][o.e.p.PluginsService ] [fedora] loaded module [x-pack-aggregate-metric] [2023-01-19T13:40:20,228][INFO ][o.e.p.PluginsService ] [fedora] loaded module [x-pack-analytics] [2023-01-19T13:40:20,228][INFO ][o.e.p.PluginsService ] [fedora] loaded module [x-pack-async] [2023-01-19T13:40:20,228][INFO ][o.e.p.PluginsService ] [fedora] loaded module [x-pack-async-search] [2023-01-19T13:40:20,228][INFO ][o.e.p.PluginsService ] [fedora] loaded module [x-pack-autoscaling] [2023-01-19T13:40:20,228][INFO ][o.e.p.PluginsService ] [fedora] loaded module [x-pack-ccr] [2023-01-19T13:40:20,228][INFO ][o.e.p.PluginsService ] [fedora] loaded module [x-pack-core] [2023-01-19T13:40:20,228][INFO ][o.e.p.PluginsService ] [fedora] loaded module [x-pack-deprecation] [2023-01-19T13:40:20,229][INFO ][o.e.p.PluginsService ] [fedora] loaded module [x-pack-enrich] [2023-01-19T13:40:20,229][INFO ][o.e.p.PluginsService ] [fedora] loaded module [x-pack-eql] [2023-01-19T13:40:20,229][INFO ][o.e.p.PluginsService ] [fedora] loaded module [x-pack-fleet] [2023-01-19T13:40:20,229][INFO ][o.e.p.PluginsService ] [fedora] loaded module [x-pack-graph] [2023-01-19T13:40:20,229][INFO ][o.e.p.PluginsService ] [fedora] loaded module [x-pack-identity-provider] [2023-01-19T13:40:20,229][INFO ][o.e.p.PluginsService ] [fedora] loaded module [x-pack-ilm] [2023-01-19T13:40:20,229][INFO ][o.e.p.PluginsService ] [fedora] loaded module [x-pack-logstash] [2023-01-19T13:40:20,229][INFO ][o.e.p.PluginsService ] [fedora] loaded module [x-pack-ml] [2023-01-19T13:40:20,230][INFO ][o.e.p.PluginsService ] [fedora] loaded module [x-pack-monitoring] [2023-01-19T13:40:20,230][INFO ][o.e.p.PluginsService ] [fedora] loaded module [x-pack-profiling] [2023-01-19T13:40:20,230][INFO ][o.e.p.PluginsService ] [fedora] loaded module [x-pack-ql] [2023-01-19T13:40:20,230][INFO ][o.e.p.PluginsService ] [fedora] loaded module [x-pack-rollup] [2023-01-19T13:40:20,230][INFO ][o.e.p.PluginsService ] [fedora] loaded module [x-pack-security] [2023-01-19T13:40:20,230][INFO ][o.e.p.PluginsService ] [fedora] loaded module [x-pack-shutdown] [2023-01-19T13:40:20,230][INFO ][o.e.p.PluginsService ] [fedora] loaded module [x-pack-sql] [2023-01-19T13:40:20,230][INFO ][o.e.p.PluginsService ] [fedora] loaded module [x-pack-stack] [2023-01-19T13:40:20,231][INFO ][o.e.p.PluginsService ] [fedora] loaded module [x-pack-text-structure] [2023-01-19T13:40:20,231][INFO ][o.e.p.PluginsService ] [fedora] loaded module [x-pack-voting-only-node] [2023-01-19T13:40:20,231][INFO ][o.e.p.PluginsService ] [fedora] loaded module [x-pack-watcher] [2023-01-19T13:40:20,231][INFO ][o.e.p.PluginsService ] [fedora] loaded module [x-pack-write-load-forecaster] [2023-01-19T13:40:20,231][INFO ][o.e.p.PluginsService ] [fedora] no plugins loaded [2023-01-19T13:40:22,285][INFO ][o.e.e.NodeEnvironment ] [fedora] using [1] data paths, mounts [[/home (/dev/mapper/luks-f3108a6f-20c6-4104-b9d7-41f904584a08)]], net usable_space [614.9gb], net total_space [952.2gb], types [btrfs] [2023-01-19T13:40:22,285][INFO ][o.e.e.NodeEnvironment ] [fedora] heap size [15.5gb], compressed ordinary object pointers [true] [2023-01-19T13:40:22,292][INFO ][o.e.n.Node ] [fedora] node name [fedora], node ID [JTrfld3xREqKCR3nzBuVXg], cluster name [elasticsearch], roles [ingest, data_frozen, ml, data_hot, transform, data_content, data_warm, master, remote_cluster_client, data, data_cold] [2023-01-19T13:40:23,948][INFO ][o.e.x.p.ProfilingPlugin ] [fedora] Profiling is disabled [2023-01-19T13:40:24,519][INFO ][o.e.x.s.Security ] [fedora] Security is disabled [2023-01-19T13:40:24,564][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [fedora] [controller/39055] [Main.cc@123] controller (64 bit): Version 8.7.0-SNAPSHOT (Build 976a2a293ec815) Copyright (c) 2023 Elasticsearch BV [2023-01-19T13:40:24,933][INFO ][o.e.t.n.NettyAllocator ] [fedora] creating NettyAllocator with the following configs: [name=elasticsearch_configured, chunk_size=1mb, suggested_max_allocation_size=1mb, factors={es.unsafe.use_netty_default_chunk_and_page_size=false, g1gc_enabled=true, g1gc_region_size=8mb}] [2023-01-19T13:40:24,952][INFO ][o.e.i.r.RecoverySettings ] [fedora] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b] [2023-01-19T13:40:24,985][INFO ][o.e.d.DiscoveryModule ] [fedora] using discovery type [multi-node] and seed hosts providers [settings] [2023-01-19T13:40:25,821][INFO ][o.e.n.Node ] [fedora] initialized [2023-01-19T13:40:25,822][INFO ][o.e.n.Node ] [fedora] starting ... [2023-01-19T13:40:25,834][INFO ][o.e.x.s.c.f.PersistentCache] [fedora] persistent cache index loaded [2023-01-19T13:40:25,835][INFO ][o.e.x.d.l.DeprecationIndexingComponent] [fedora] deprecation component started [2023-01-19T13:40:25,913][INFO ][o.e.t.TransportService ] [fedora] publish_address {192.168.1.33:9300}, bound_addresses {192.168.1.33:9300} [2023-01-19T13:40:26,003][INFO ][o.e.b.BootstrapChecks ] [fedora] bound or publishing to a non-loopback address, enforcing bootstrap checks [2023-01-19T13:40:26,008][INFO ][o.e.n.Node ] [fedora] stopping ... [2023-01-19T13:40:26,022][INFO ][o.e.n.Node ] [fedora] stopped [2023-01-19T13:40:26,022][INFO ][o.e.n.Node ] [fedora] closing ... [2023-01-19T13:40:26,029][INFO ][o.e.n.Node ] [fedora] closed [2023-01-19T13:40:26,030][INFO ][o.e.x.m.p.NativeController] [fedora] Native controller process has stopped - no new native processes can be started ```
https://github.com/elastic/elasticsearch/issues/93074
https://github.com/elastic/elasticsearch/pull/93178
b79b84680a897af78625420c196cb2a8c9ee113d
54fe7701f98e086af970f0b01c84fc1bd24cb2e2
"2023-01-19T10:11:18Z"
java
"2023-01-24T14:44:09Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,071
["modules/data-streams/src/yamlRestTest/resources/rest-api-spec/test/data_stream/100_delete_by_query.yml"]
[CI] DataStreamsClientYamlTestSuiteIT test {p0=data_stream/100_delete_by_query/Delete by query for multiple data streams} failing
**Build scan:** https://gradle-enterprise.elastic.co/s/czr45pul6kjxo/tests/:modules:data-streams:yamlRestTest/org.elasticsearch.datastreams.DataStreamsClientYamlTestSuiteIT/test%20%7Bp0=data_stream%2F100_delete_by_query%2FDelete%20by%20query%20for%20multiple%20data%20streams%7D **Reproduction line:** ``` ./gradlew ':modules:data-streams:yamlRestTest' --tests "org.elasticsearch.datastreams.DataStreamsClientYamlTestSuiteIT.test {p0=data_stream/100_delete_by_query/Delete by query for multiple data streams}" -Dtests.seed=5543DA2EAA079D91 -Dtests.locale=sr -Dtests.timezone=America/Fortaleza -Druntime.java=17 ``` **Applicable branches:** 8.6 **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/100_delete_by_query/Delete%20by%20query%20for%20multiple%20data%20streams%7D **Failure excerpt:** ``` java.lang.AssertionError: Failure at [data_stream/100_delete_by_query:76]: got unexpected warning header [ 299 Elasticsearch-8.6.1-SNAPSHOT-2f5c7575e1a2ba179e5a7842ceb5a3ca0e0692f7 "index template [my-template2] has index patterns [simple-stream*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [my-template2] will take precedence during new index creation" ] at __randomizedtesting.SeedInfo.seed([5543DA2EAA079D91:DD17E5F404FBF069]:0) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:520) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:480) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java: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:833) Caused by: java.lang.AssertionError: got unexpected warning header [ 299 Elasticsearch-8.6.1-SNAPSHOT-2f5c7575e1a2ba179e5a7842ceb5a3ca0e0692f7 "index template [my-template2] has index patterns [simple-stream*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [my-template2] 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:511) at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:369) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:500) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:480) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java: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:833) ```
https://github.com/elastic/elasticsearch/issues/93071
https://github.com/elastic/elasticsearch/pull/93094
648d80e517e93f8631067d8c2e82bff0a1e297e2
278730f6fc54f02153ab185bdf45318ca852b67e
"2023-01-19T09:23:21Z"
java
"2023-01-19T16:50:17Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,069
["server/src/test/java/org/elasticsearch/cluster/service/MasterServiceTests.java"]
[CI] MasterServiceTests testBatchedUpdateSummaryLogging failing
**Build scan:** https://gradle-enterprise.elastic.co/s/2mockpr5yjaek/tests/:server:test/org.elasticsearch.cluster.service.MasterServiceTests/testBatchedUpdateSummaryLogging **Reproduction line:** ``` ./gradlew ':server:test' --tests "org.elasticsearch.cluster.service.MasterServiceTests.testBatchedUpdateSummaryLogging" -Dtests.seed=7594DD93202C6418 -Dtests.locale=be-BY -Dtests.timezone=Antarctica/Troll -Druntime.java=17 ``` **Applicable branches:** main **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.cluster.service.MasterServiceTests&tests.test=testBatchedUpdateSummaryLogging **Failure excerpt:** ``` java.lang.AssertionError: Expected: (an empty collection or iterable containing [a string starting with "JNDI lookup class is not available because this JRE does not support JNDI. JNDI string lookups will not be available, continuing configuration.", a string starting with "JMX runtime input lookup class is not available because this JRE does not support JMX. JMX lookups will not be available, continuing configuration. "] or iterable containing [a string starting with "JMX runtime input lookup class is not available because this JRE does not support JMX. JMX lookups will not be available, continuing configuration. "]) but: was <[Attempted to append to non-started appender mock]> 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.ESTestCase.checkStaticState(ESTestCase.java:667) at org.elasticsearch.test.ESTestCase.after(ESTestCase.java:473) at jdk.internal.reflect.GeneratedMethodAccessor8.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:1004) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java: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:833) ```
https://github.com/elastic/elasticsearch/issues/93069
https://github.com/elastic/elasticsearch/pull/93087
4abbd4eb9147a6c8c3de9dd5b4b8821eac400430
693beaf8ce7db6d904c6cc0e8c0d73b52d391994
"2023-01-19T09:21:18Z"
java
"2023-01-19T15:40:07Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,068
["modules/data-streams/src/yamlRestTest/resources/rest-api-spec/test/data_stream/150_tsdb.yml"]
[CI] DataStreamsClientYamlTestSuiteIT test {p0=data_stream/150_tsdb/created the data stream} failing
**Build scan:** https://gradle-enterprise.elastic.co/s/ddbcvtsefbw7g/tests/:modules:data-streams:yamlRestTest/org.elasticsearch.datastreams.DataStreamsClientYamlTestSuiteIT/test%20%7Bp0=data_stream%2F150_tsdb%2Fcreated%20the%20data%20stream%7D **Reproduction line:** ``` ./gradlew ':modules:data-streams:yamlRestTest' --tests "org.elasticsearch.datastreams.DataStreamsClientYamlTestSuiteIT.test {p0=data_stream/150_tsdb/created the data stream}" -Dtests.seed=BED507D37F3DD80B -Dtests.locale=sv-SE -Dtests.timezone=PNT -Druntime.java=17 ``` **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/150_tsdb/created%20the%20data%20stream%7D **Failure excerpt:** ``` java.lang.AssertionError: Failure at [data_stream/150_tsdb:107]: Expected: "2021-04-29T00:00:00.000Z" but: was "2023-01-19T10:01:38.485Z" at __randomizedtesting.SeedInfo.seed([BED507D37F3DD80B:36813809D1C1B5F3]:0) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:520) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:480) at jdk.internal.reflect.GeneratedMethodAccessor11.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java: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:833) Caused by: java.lang.AssertionError: Expected: "2021-04-29T00:00:00.000Z" but: was "2023-01-19T10:01:38.485Z" 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:500) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:480) at jdk.internal.reflect.GeneratedMethodAccessor11.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java: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:833) ```
https://github.com/elastic/elasticsearch/issues/93068
https://github.com/elastic/elasticsearch/pull/98458
db0a59b59f9d81e9753f32a07ec8d744983d8338
e9dc8e1d1063bd2f7156faa76dc7478a13b64ca5
"2023-01-19T09:20:14Z"
java
"2023-08-14T19:26:36Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,025
["build-tools-internal/version.properties", "docs/changelog/93354.yaml", "gradle/verification-metadata.xml"]
Upgrade OpenJDK to 19.0.2+7
OpenJDK 19.0.2+7 is now available. We need to upgrade the version that is bundled with Elasticsearch to the newer version. We currently bundle 19.0.1+10.
https://github.com/elastic/elasticsearch/issues/93025
https://github.com/elastic/elasticsearch/pull/93354
2a7098a21ad5ded98c0c5f10401b9bfff48353b0
b4484cd8c62b7080c8038d292975e03fbc03a202
"2023-01-18T10:00:03Z"
java
"2023-01-30T22:49:58Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
93,005
["libs/plugin-scanner/src/main/java/org/elasticsearch/plugin/scanner/ClassReaders.java", "libs/plugin-scanner/src/test/java/org/elasticsearch/plugin/scanner/ClassReadersTests.java"]
[CI] ClassReadersTests classMethod failing
Maybe related to: https://github.com/elastic/elasticsearch/issues/92936 **Build scan:** https://gradle-enterprise.elastic.co/s/xnay2gtnbk67u/tests/:libs:elasticsearch-plugin-scanner:test/org.elasticsearch.plugin.scanner.ClassReadersTests **Reproduction line:** ``` ./gradlew ':libs:elasticsearch-plugin-scanner:test' --tests "org.elasticsearch.plugin.scanner.ClassReadersTests" -Dtests.seed=62A93F3353484C1B -Dtests.locale=en-US -Dtests.timezone=Atlantic/Reykjavik -Druntime.java=19 ``` **Applicable branches:** 8.6, main **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.plugin.scanner.ClassReadersTests&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\125\libs\plugin-scanner\build\testrun\test\temp\org.elasticsearch.plugin.scanner.ClassReadersTests_62A93F3353484C1B-001\tempDir-003: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\125\libs\plugin-scanner\build\testrun\test\temp\org.elasticsearch.plugin.scanner.ClassReadersTests_62A93F3353484C1B-001\tempDir-003 C:\Users\jenkins\workspace\platform-support\125\libs\plugin-scanner\build\testrun\test\temp\org.elasticsearch.plugin.scanner.ClassReadersTests_62A93F3353484C1B-001\tempDir-003\jars-dir: java.nio.file.AccessDeniedException: C:\Users\jenkins\workspace\platform-support\125\libs\plugin-scanner\build\testrun\test\temp\org.elasticsearch.plugin.scanner.ClassReadersTests_62A93F3353484C1B-001\tempDir-003\jars-dir C:\Users\jenkins\workspace\platform-support\125\libs\plugin-scanner\build\testrun\test\temp\org.elasticsearch.plugin.scanner.ClassReadersTests_62A93F3353484C1B-001: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\125\libs\plugin-scanner\build\testrun\test\temp\org.elasticsearch.plugin.scanner.ClassReadersTests_62A93F3353484C1B-001 at __randomizedtesting.SeedInfo.seed([62A93F3353484C1B]: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:1589) ```
https://github.com/elastic/elasticsearch/issues/93005
https://github.com/elastic/elasticsearch/pull/93027
eb1de9493e0fa24f65fbbacc2cf0fe46879e1981
77fe1b81bfde81ca4f54772c919fcb307c89c34e
"2023-01-17T20:07:51Z"
java
"2023-01-18T13:34:18Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,898
["docs/changelog/93179.yaml", "docs/reference/ingest/processors/json.asciidoc", "modules/ingest-common/src/main/java/org/elasticsearch/ingest/common/JsonProcessor.java", "modules/ingest-common/src/main/java/org/elasticsearch/ingest/common/Processors.java", "modules/ingest-common/src/main/resources/org/elasticsearch/ingest/common/processors_whitelist.txt", "modules/ingest-common/src/test/java/org/elasticsearch/ingest/common/JsonProcessorFactoryTests.java", "modules/ingest-common/src/test/java/org/elasticsearch/ingest/common/JsonProcessorTests.java", "modules/ingest-common/src/yamlRestTest/resources/rest-api-spec/test/ingest/140_json.yml"]
[JSON Processor] Unexpected behavior with payloads starting with integers
### Elasticsearch Version 8.6.0 ### Installed Plugins _No response_ ### Java Version _bundled_ (Elastic Cloud) ### OS Version N/A (Elastic Cloud) ### Problem Description The Elasticsearch's JSON Processor is not producing errors when dealing with texts that starts with integers (in general, strings that match the regular expression `/\d+(\s+.*)?/`). In these cases, instead of producing errors, the JSON Processor parses as a integer number the first number encountered. Some examples: | INPUT | OUTPUT | | ------------- | ------------- | | `"0"` | `0` | | `"123 foo"` | `123` | | `"45 this is {\"a\": \"json\"}"` | `45` | ### Steps to Reproduce To reproduce the bug we can create a pipeline that only contains the JSON-Processor: ```json PUT _ingest/pipeline/test-json { "processors": [ { "json": { "field": "message", "target_field": "test" } } ] } ``` And simulate the result with the following body (in the table other examples are shown): ```json GET _ingest/pipeline/test-json/_simulate { "docs": [ { "_source": { "message":"0" } } ] } ``` The result is the following one: ```json { "docs": [ { "doc": { "_index": "_index", "_id": "_id", "_version": "-3", "_source": { "message": "0", "test": 0 }, "_ingest": { "timestamp": "2023-01-13T08:31:49.758255214Z" } } } ] ``` Note that `test` (i.e., the `target_field`) contains an integer and the JSON-Processor did not produced an error. This behavior is unexpected and can lead to documents to not be indexed because `target_field` is of type long instead of Object. ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/92898
https://github.com/elastic/elasticsearch/pull/93179
b8c33ec88cfc39545846d3f08cca889dd26156c9
f327352601c3ac076a3a32f2032579a97b73217f
"2023-01-13T09:01:55Z"
java
"2023-01-24T23:43:35Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,892
["docs/changelog/92973.yaml", "server/src/main/java/org/elasticsearch/cluster/metadata/IndexNameExpressionResolver.java", "server/src/test/java/org/elasticsearch/cluster/metadata/IndexNameExpressionResolverTests.java"]
DateMath breaks with pipe character (security vs. security-disabled)
### Elasticsearch Version 8.6.0 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version Docker ### Problem Description When testing datemath with complex date strings, I found that some worked and some didn't. I narrowed it down to the existence of the `|` pipe character in the string. @dakrone seems to think this may be due to how the `IndexNameExpressionResolver` works differently for security-enabled vs. non-security-enabled clusters. ### Steps to Reproduce ## Security Disabled Cluster ``` curl -XGET 'http://localhost:9200/%3Cdatemath-%7B2001-01-01-13%7C%7C%2B1h%2Fh%7Byyyy-MM-dd-HH%7C-07%3A00%7D%7D%3E' {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Cross-cluster calls are not supported in this context but remote indices were requested: [<datemath-{2001-01-01-13||+1h/h{yyyy-MM-dd-HH|-07:00}}>]"}],"type":"illegal_argument_exception","reason":"Cross-cluster calls are not supported in this context but remote indices were requested: [<datemath-{2001-01-01-13||+1h/h{yyyy-MM-dd-HH|-07:00}}>]"},"status":400}% ``` ## Security Enabled Cluster ``` curl -XGET -u sample -p 'https://secure.cluster.io/%3Cdatemath-%7B2001-01-01-13%7C%7C%2B1h%2Fh%7Byyyy-MM-dd-HH%7C-07%3A00%7D%7D%3E' Enter host password for user 'sample': {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index [datemath-2001-01-01-14]","index_uuid":"_na_","index":"datemath-2001-01-01-14"}],"type":"index_not_found_exception","reason":"no such index [datemath-2001-01-01-14]","index_uuid":"_na_","index":"datemath-2001-01-01-14"},"status":404}% ``` ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/92892
https://github.com/elastic/elasticsearch/pull/92973
2a7f61fb53736b477256a4a995d62d0b754052f8
9955b82fbd07c7c2a31334605e9a91487f416c7f
"2023-01-12T21:27:56Z"
java
"2023-01-18T17:41:23Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,866
["docs/changelog/92890.yaml", "libs/plugin-scanner/src/main/java/org/elasticsearch/plugin/scanner/ClassReaders.java"]
[CI] Plugin lib tests failing on windows
ClassReadersTests.classMethod failing NamedComponentScannerTests.classMethod failing Both on various windows builds. Most likely similar to other classloader test failures with removing files **Build scan:** https://gradle-enterprise.elastic.co/s/77y6wven7vqry/tests/:libs:elasticsearch-plugin-scanner:test/org.elasticsearch.plugin.scanner.ClassReadersTests **Applicable branches:** main **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.plugin.scanner.ClassReadersTests&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\593\libs\plugin-scanner\build\testrun\test\temp\org.elasticsearch.plugin.scanner.ClassReadersTests_40C8C1BA1BA2E7E4-001\tempDir-005: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\593\libs\plugin-scanner\build\testrun\test\temp\org.elasticsearch.plugin.scanner.ClassReadersTests_40C8C1BA1BA2E7E4-001\tempDir-005 C:\Users\jenkins\workspace\platform-support\593\libs\plugin-scanner\build\testrun\test\temp\org.elasticsearch.plugin.scanner.ClassReadersTests_40C8C1BA1BA2E7E4-001\tempDir-005\jars-dir: java.nio.file.AccessDeniedException: C:\Users\jenkins\workspace\platform-support\593\libs\plugin-scanner\build\testrun\test\temp\org.elasticsearch.plugin.scanner.ClassReadersTests_40C8C1BA1BA2E7E4-001\tempDir-005\jars-dir C:\Users\jenkins\workspace\platform-support\593\libs\plugin-scanner\build\testrun\test\temp\org.elasticsearch.plugin.scanner.ClassReadersTests_40C8C1BA1BA2E7E4-001: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\593\libs\plugin-scanner\build\testrun\test\temp\org.elasticsearch.plugin.scanner.ClassReadersTests_40C8C1BA1BA2E7E4-001 at __randomizedtesting.SeedInfo.seed([40C8C1BA1BA2E7E4]: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:1589) ```
https://github.com/elastic/elasticsearch/issues/92866
https://github.com/elastic/elasticsearch/pull/92890
3c54c7ae17b6c50e355cc64e7e5c21bee002ebec
98e067b3cded31364b0e509c4f281cf9415cedd2
"2023-01-12T10:04:45Z"
java
"2023-01-13T08:27:54Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,843
["docs/changelog/93329.yaml", "modules/ingest-common/src/yamlRestTest/resources/rest-api-spec/test/ingest/190_script_processor.yml", "server/src/internalClusterTest/java/org/elasticsearch/index/FinalPipelineIT.java", "server/src/main/java/org/elasticsearch/ingest/IngestDocument.java", "server/src/main/java/org/elasticsearch/ingest/IngestService.java", "server/src/test/java/org/elasticsearch/ingest/IngestServiceTests.java"]
Double counting of documents processed when both a default/request and a final pipeline are used
``` PUT _ingest/pipeline/pipeline-3 { "processors": [ { "set": { "field": "field-3", "value": "pipeline-3" } } ] } PUT _ingest/pipeline/pipeline-2 { "processors": [ { "set": { "field": "field-2", "value": "pipeline-2" } } ] } PUT _ingest/pipeline/pipeline-1 { "processors" : [ { "set": { "field": "field-1", "value": "pipeline-1" } }, { "pipeline": { "name": "pipeline-2" } } ] } PUT index-1 PUT index-1/_settings { "index" : { "default_pipeline": "pipeline-1", "final_pipeline": "pipeline-3" } } POST _bulk { "index" : { "_index" : "index-1" } } { "doc_id" : 0 } POST index-1/_search GET _nodes/stats?filter_path=nodes.*.ingest ``` The above creates three pipelines that each record their name into any documents that are processed. Note that `pipeline-1` will call `pipeline-2`, and that `pipeline-1` is installed as the `default_pipeline` while `pipeline-3` is installed as the `final_pipeline` (reminder: both the `default_pipeline` and the `final_pipeline` will be executed when a document is indexed). The `_search` near the end will give a result like this: ``` { "took": 2, "timed_out": false, "_shards": { "total": 1, "successful": 1, "skipped": 0, "failed": 0 }, "hits": { "total": { "value": 1, "relation": "eq" }, "max_score": 1, "hits": [ { "_index": "index-1", "_id": "DFf9oYUBqS6z6DmM3nW4", "_score": 1, "_source": { "field-3": "pipeline-3", "field-1": "pipeline-1", "field-2": "pipeline-2", "doc_id": 0 } } ] } } ``` Note that fields 1-3 all have the expected value, indicating that all three processors executed against this document. The `_nodes/stats` call will give a result like this: ``` { "nodes": { "e3BFjLN8STSspUcCnDcXkQ": { "ingest": { "total": { "count": 2, [...] }, "pipelines": { "pipeline-1": { "count": 1, [...] }, "pipeline-2": { "count": 1, [...] }, "pipeline-3": { "count": 1, [...] } } } } } } ``` The `"count"` for each individual pipeline is correct – each pipeline was executed against a single document. However, we're double counting at the top-level, the `"total"` `"count"` is 2 but should have only been 1 (there was only just one document).
https://github.com/elastic/elasticsearch/issues/92843
https://github.com/elastic/elasticsearch/pull/93329
63ca70897553fbfea45c7c63b92134d59e5d4c77
3e3b2711cf7be388faad499a1d713bb146ef69c6
"2023-01-11T18:09:45Z"
java
"2023-01-30T16:48:19Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,826
["docs/reference/ingest/processors/remove.asciidoc"]
Documentation missing for the "keep" option of the Remove ingest processor
### Elasticsearch Version 8.5.1 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version Ubuntu 22.04 ### Problem Description The docs for the Remove enrich processor (https://www.elastic.co/guide/en/elasticsearch/reference/current/remove-processor.html) does not mention the remove option introduced in https://github.com/elastic/elasticsearch/pull/83665 in v8.2.0 It would be nice to document it, it's very useful. Cheers, David ### Steps to Reproduce Create a pipeline with a Remove processor ``` { processors: [ { remove: { keep: ['myField'] } } ] } ``` ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/92826
https://github.com/elastic/elasticsearch/pull/92836
f77ce8b25e702a91a64567640cb775fda71e338a
37f7b7b3254a3600c42d0841e52e208a2c132c85
"2023-01-11T15:28:23Z"
java
"2023-01-11T17:52:35Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,782
["docs/changelog/92784.yaml", "libs/plugin-scanner/build.gradle"]
[CI] NamedComponentScannerTests testNamedComponentsAreFoundWhenSingleJarProvided failing
see build scan for many more similar tests that fail with the same error: ``` org.elasticsearch.plugin.scanner.NamedComponentScannerTests > testNamedComponentsCanExtednCommonSuperClass FAILED java.lang.IllegalArgumentException: Unsupported class file major version 63 at __randomizedtesting.SeedInfo.seed([2F888D6ACFE09C0C:603C93F7C473A506]:0) at org.objectweb.asm.ClassReader.<init>(ClassReader.java:199) at org.objectweb.asm.ClassReader.<init>(ClassReader.java:180) at org.objectweb.asm.ClassReader.<init>(ClassReader.java:166) at org.elasticsearch.plugin.scanner.ClassReaders.lambda$classesInPath$5(ClassReaders.java:99) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133) at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1921) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) at org.elasticsearch.plugin.scanner.ClassReaders.classesInPath(ClassReaders.java:104) at org.elasticsearch.plugin.scanner.ClassReaders.classesInJar(ClassReaders.java:84) at org.elasticsearch.plugin.scanner.ClassReaders.lambda$ofPaths$1(ClassReaders.java:74) at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:273) at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133) at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1921) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575) at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260) at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616) at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622) at java.base/java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627) at org.elasticsearch.plugin.scanner.ClassReaders.ofPaths(ClassReaders.java:78) at org.elasticsearch.plugin.scanner.ClassReaders.ofDirWithJars(ClassReaders.java:49) at org.elasticsearch.plugin.scanner.NamedComponentScannerTests.testNamedComponentsCanExtednCommonSuperClass(NamedComponentScannerTests.java:154) ``` **Build scan:** https://gradle-enterprise.elastic.co/s/3dgcvixgygke6/tests/:libs:elasticsearch-plugin-scanner:test/org.elasticsearch.plugin.scanner.NamedComponentScannerTests/testNamedComponentsAreFoundWhenSingleJarProvided **Reproduction line:** ``` ./gradlew ':libs:elasticsearch-plugin-scanner:test' --tests "org.elasticsearch.plugin.scanner.NamedComponentScannerTests.testNamedComponentsAreFoundWhenSingleJarProvided" -Dtests.seed=96C4AEB6115F6293 -Dtests.locale=es-CO -Dtests.timezone=Africa/Lome -Druntime.java=19 ``` **Applicable branches:** main **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.plugin.scanner.NamedComponentScannerTests&tests.test=testNamedComponentsAreFoundWhenSingleJarProvided **Failure excerpt:** ``` java.lang.IllegalArgumentException: Unsupported class file major version 63 at __randomizedtesting.SeedInfo.seed([96C4AEB6115F6293:AD48B68DDB0BADDF]:0) at org.objectweb.asm.ClassReader.<init>(ClassReader.java:199) at org.objectweb.asm.ClassReader.<init>(ClassReader.java:180) at org.objectweb.asm.ClassReader.<init>(ClassReader.java:166) at org.elasticsearch.plugin.scanner.ClassReaders.lambda$classesInPath$5(ClassReaders.java:99) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.util.Iterator.forEachRemaining(Iterator.java:133) at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1921) 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.plugin.scanner.ClassReaders.classesInPath(ClassReaders.java:104) at org.elasticsearch.plugin.scanner.ClassReaders.classesInJar(ClassReaders.java:84) at org.elasticsearch.plugin.scanner.ClassReaders.lambda$ofPaths$1(ClassReaders.java:74) at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:273) at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) at java.util.Iterator.forEachRemaining(Iterator.java:133) at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1921) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575) at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260) at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616) at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622) at java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627) at org.elasticsearch.plugin.scanner.ClassReaders.ofPaths(ClassReaders.java:78) at org.elasticsearch.plugin.scanner.ClassReaders.ofDirWithJars(ClassReaders.java:49) at org.elasticsearch.plugin.scanner.NamedComponentScannerTests.testNamedComponentsAreFoundWhenSingleJarProvided(NamedComponentScannerTests.java:79) 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:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java: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:1589) ```
https://github.com/elastic/elasticsearch/issues/92782
https://github.com/elastic/elasticsearch/pull/92784
592bf66a522cbcc9dbd2d3d9a2c6cb51d7423679
579ff90e9755382a371468aea5942dbac550552e
"2023-01-10T08:47:06Z"
java
"2023-01-10T11:22:30Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,746
["modules/data-streams/src/yamlRestTest/resources/rest-api-spec/test/data_stream/110_update_by_query.yml"]
[CI] DataStreamsClientYamlTestSuiteIT test {p0=data_stream/110_update_by_query/Update by query for multiple data streams} failing
**Build scan:** https://gradle-enterprise.elastic.co/s/qddlzlct5twsq/tests/:modules:data-streams:yamlRestTest/org.elasticsearch.datastreams.DataStreamsClientYamlTestSuiteIT/test%20%7Bp0=data_stream%2F110_update_by_query%2FUpdate%20by%20query%20for%20multiple%20data%20streams%7D **Reproduction line:** ``` ./gradlew ':modules:data-streams:yamlRestTest' --tests "org.elasticsearch.datastreams.DataStreamsClientYamlTestSuiteIT.test {p0=data_stream/110_update_by_query/Update by query for multiple data streams}" -Dtests.seed=C51069C2E7673E0E -Dtests.locale=el-CY -Dtests.timezone=Etc/GMT-13 -Druntime.java=17 ``` **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/110_update_by_query/Update%20by%20query%20for%20multiple%20data%20streams%7D **Failure excerpt:** ``` java.lang.AssertionError: Failure at [data_stream/110_update_by_query:115]: got unexpected warning header [ 299 Elasticsearch-8.7.0-SNAPSHOT-e25306e46ee0ea9d0cbdd5ccc805f7d545df3154 "index template [my-template2] has index patterns [simple-stream*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [my-template2] will take precedence during new index creation" ] at __randomizedtesting.SeedInfo.seed([C51069C2E7673E0E:4D445618499B53F6]:0) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:520) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:480) at jdk.internal.reflect.GeneratedMethodAccessor11.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java: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:833) Caused by: java.lang.AssertionError: got unexpected warning header [ 299 Elasticsearch-8.7.0-SNAPSHOT-e25306e46ee0ea9d0cbdd5ccc805f7d545df3154 "index template [my-template2] has index patterns [simple-stream*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [my-template2] 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:511) at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:369) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:500) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:480) at jdk.internal.reflect.GeneratedMethodAccessor11.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java: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:833) ```
https://github.com/elastic/elasticsearch/issues/92746
https://github.com/elastic/elasticsearch/pull/92791
92f9d34b69829dcc04669b8011b60035188f9412
9096f437795f66ecb3e874f92fd101e8cbbf03aa
"2023-01-09T08:40:10Z"
java
"2023-01-10T17:37:05Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,679
["docs/reference/search/suggesters/context-suggest.asciidoc"]
Completion suggester for geo contexts has ambiguous documentation concerning precision
Recently it was discovered by a user that the completion suggester did not behave in the way they expected with regard to the precision field of geo contexts. In the documentation at https://www.elastic.co/guide/en/elasticsearch/reference/8.5/search-suggesters.html#_geo_location_query it is claimed that: > The precision of the geohash to encode the query geo point. This can be specified as a distance value (5m, 10km etc.), or as a raw geohash precision (1..12). Defaults to index time precision level. This leads readers to assume that if they set a `distance value` then suggestions will be filtered by data within that distance. This is not the case. The first sentence hints at the problem. The precision is used only to `encode the query geo point`, not as a distance search. Instead what happens is that the distance value is merely a hint as to which geohash precision to use to perform the single-tile geohash search. The consequences are that it could happen that an expected search result is in the very next tile, and the search point is close to the edge of the encoded tile, and close to the result point, but will still not find it. Increasing the size of the tiles (by reducing precision, or increasing distance) reduces the chance of this happening, but does not entirely rule it out. Due to the nature of any space filling curve design, there can always exist two points close together, but in different tiles even at very low precision. That can be fixed only with a feature enhancement. This issue deals only with documentation clarification.
https://github.com/elastic/elasticsearch/issues/92679
https://github.com/elastic/elasticsearch/pull/92688
b25f4c230a076ea0ee9ce2b2beb6a728c766732c
e1d2d358f99d0ba22590cfe15c7df54a71e45f71
"2023-01-04T15:13:21Z"
java
"2023-01-05T10:58:04Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,677
["docs/changelog/92693.yaml", "server/src/main/java/org/elasticsearch/cluster/ClusterStateTaskExecutor.java", "server/src/main/java/org/elasticsearch/cluster/service/MasterService.java", "server/src/test/java/org/elasticsearch/cluster/service/MasterServiceTests.java"]
Results of update alias actions are not visible immediately after execution
### Elasticsearch Version 8.7.0 (snapshot archives/20230103-151926_4d37feea) ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version Darwin 21.6.0 Darwin Kernel Version 21.6.0: Sun Nov 6 23:31:13 PST 2022; root:xnu-8020.240.14~1/RELEASE_ARM64_T6000 arm64 ### Problem Description First seen since `f332fc2e3625af8e7e4acb03f1aea673cf00e00a`, `c40615c3155a90bd54f68254d183c54df2752367` looks OK. --- In Kibana we use the `updateAliases` API as an atomic way to: 1. remove an alias from the old index 2. add aliases to the new index 3. remove a temporary index We're observing tests failing where we run 3 Kibana instances in parallel, processing steps more or less at the same time (a few milliseconds apart). ### High level flow 1. We send the following request from each Kibana to update aliases and indices: ``` POST /_aliases?timeout=60s { "actions": [ { "remove": { "index": ".kibana_7.13.0_001", "alias": ".kibana", "must_exist": true } }, { "add": { "index": ".kibana_8.7.0_001", "alias": ".kibana" } }, { "add": { "index": ".kibana_8.7.0_001", "alias": ".kibana_8.7.0" } }, { "remove_index": { "index": ".kibana_8.7.0_reindex_temp" } } ] } ``` 2. Kibana 1 succeeds, Kibana 2 + 3 error with `[index_not_found_exception]: no such index [.kibana_8.7.0_reindex_temp]`. 3. In Kibana 2 + 3 we assume that another Kibana has already successfully deleted the temp index. We proceed to `list indices` based on our new aliases (`.kibana`, `.kibana_8.7.0`): `GET /.kibana%2C.kibana_8.7.0?ignore_unavailable=true` We then see a response like: ```json { ".kibana_7.13.0_001": { "aliases": { ".kibana": {}, ".kibana_7.13.0": {} } ... } } ``` This is unexpected because we assume the `.kibana` alias should be pointing to our new index `.kibana_8.7.0_001` NOT `.kibana_7.13.0_001`, additionally the alias `.kibana_8.7.0` should be pointing to `.kibana_8.7.0_001` as well. 4. It looks like there is a small amount of lag, when issuing the same list indices request (`GET /.kibana%2C.kibana_8.7.0?ignore_unavailable=true`) a bit later we see: ```json { ".kibana_8.7.0_001": { "aliases": { ".kibana": { "is_hidden": true }, ".kibana_8.7.0": { "is_hidden": true } .... } ``` --- #### Description of requests in cURL Note: this script does not seem to reproduce the issue, see below. ```bash #! /bin/bash ORIGIN=http://localhost:9200 U=elastic:changeme SLEEP=0.1 ## Setup of our partially migrated environment ## # Create kibana0, our "old" index curl -su$U -XPUT $ORIGIN/kibana0 > /dev/null # Create temp, our temporary bulk index from our old index curl -su$U -XPUT $ORIGIN/temp > /dev/null # Set write block so we can clone curl -su$U -XPUT $ORIGIN/temp/_block/write > /dev/null # Clone temp to our final index kibana1 curl -su$U -XPUT $ORIGIN/temp/_clone/kibana1 > /dev/null # Point our "current" alias to old index kibana0 curl -su$U -XPOST $ORIGIN/_aliases?timeout=60s -H 'content-type: application/json' -d '{"actions":[{"add":{"index":"kibana0","alias":"current"}},{"add":{"index":"kibana0","alias":"previous"}}]}' > /dev/null update_aliases() { echo "" curl -su$U -XPOST $ORIGIN/_aliases?timeout=60s -H 'content-type: application/json' -d '{"actions":[{"remove":{"index":"kibana0","alias":"current","must_exist":true}},{"add":{"index":"kibana1","alias":"current"}},{"add":{"index":"kibana1","alias":"next"}},{"remove_index":{"index":"temp"}}]}' # List current indices, this is where we are seeing unexpected results 👇🏻 curl -su$U $ORIGIN/current,next?ignore_unavailable=true -H 'content-type: application/json' echo "" } # Simulate 3 Kibana's sending update alias and list index requests at "the same time" update_aliases & sleep $SLEEP update_aliases & sleep $SLEEP update_aliases ``` ### Steps to Reproduce Running a test case from the Kibana repo that starts Elastic and multiple Kibana instances: https://github.com/elastic/kibana/blob/f2e3c5d480892e87b945f7c189a7abe5830c03fc/src/core/server/integration_tests/saved_objects/migrations/multiple_kibana_nodes.test.ts#L204 1. Clone the Kibana repo and checkout `f2e3c5d480892e87b945f7c189a7abe5830c03fc` 2. Apply the diff below to unskip the test 3. Run `yarn kbn bootstrap` and `yarn test:jest_integration ./src/core/server/integration_tests/saved_objects/migrations/multiple_kibana_nodes.test.ts` You may need to run the test 1-5 times before you hit a failure. <details> <summary>diff</summary> ```diff diff --git i/src/core/server/integration_tests/saved_objects/migrations/multiple_kibana_nodes.test.ts w/src/core/server/integration_tests/saved_objects/migrations/multiple_kibana_nodes.test.ts index 34df1d484b9..9985525b725 100644 --- i/src/core/server/integration_tests/saved_objects/migrations/multiple_kibana_nodes.test.ts +++ w/src/core/server/integration_tests/saved_objects/migrations/multiple_kibana_nodes.test.ts @@ -107,7 +107,7 @@ async function createRoot({ logFileName }: CreateRootConfig) { jest.setTimeout(15 * 60 * 1000); // FLAKY: https://github.com/elastic/kibana/issues/148263 -describe.skip('migration v2', () => { +describe('migration v2', () => { let esServer: TestElasticsearchUtils; let rootA: Root; let rootB: Root; @@ -149,6 +149,7 @@ describe.skip('migration v2', () => { settings: { es: { license: 'basic', + esArgs:['logger.org.elasticsearch.discovery=TRACE'], // original SOs: 5k of `foo` docs with this structure: // [ // { id: 'foo:1', type: 'foo', foo: { status: 'unmigrated' }, migrationVersion: { foo: '7.13.0' } }, @@ -201,7 +202,7 @@ describe.skip('migration v2', () => { }); }); - it('migrates saved objects normally when multiple Kibana instances are started with a small interval', async () => { + it.only('migrates saved objects normally when multiple Kibana instances are started with a small interval', async () => { const setupContracts = await Promise.all([rootA.setup(), rootB.setup(), rootC.setup()]); setupContracts.forEach((setup) => setup.savedObjects.registerType(fooType)); ``` </details> ### Logs (if relevant) [ES logs at TRACE level](https://github.com/elastic/elasticsearch/files/10343649/temp.log) cc @rudolf
https://github.com/elastic/elasticsearch/issues/92677
https://github.com/elastic/elasticsearch/pull/92693
e1d2d358f99d0ba22590cfe15c7df54a71e45f71
73863dda7be0a03d89150b1a66cb9407c7ab55d7
"2023-01-04T13:57:53Z"
java
"2023-01-05T11:02:58Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,632
["docs/changelog/94195.yaml", "libs/x-content/impl/src/main/java/org/elasticsearch/xcontent/provider/XContentParserConfigurationImpl.java", "libs/x-content/src/test/java/org/elasticsearch/xcontent/support/filtering/AbstractXContentFilteringTestCase.java"]
AbstractXContentFilteringTestCase#testDotsAndDoubleWildcardInExcludedFieldName is failing
The `AbstractXContentFilteringTestCase#testDotsAndDoubleWildcardInExcludedFieldName` test (all subclasses) is failing. It is no longer failing due to invalid JSON (that was fixed by the upgrade to jackson 2.13.0), but it looks like it is failing to apply exclusions correctly.
https://github.com/elastic/elasticsearch/issues/92632
https://github.com/elastic/elasticsearch/pull/94195
009a7319e6c758ad3dc2f784a7065fe9ee5e2d75
c6487f64f2121f0d69e3d11ffa700249774569ac
"2023-01-03T13:48:00Z"
java
"2023-03-10T08:50:28Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,629
["server/src/internalClusterTest/java/org/elasticsearch/indices/state/ReopenWhileClosingIT.java"]
[CI] ReopenWhileClosingIT testReopenDuringCloseOnMultipleIndices failing
I caused this by back porting #91016 earlier ... looking into a fix now **Build scan:** https://gradle-enterprise.elastic.co/s/dnpt2zu6hqcs2/tests/:server:internalClusterTest/org.elasticsearch.indices.state.ReopenWhileClosingIT/testReopenDuringCloseOnMultipleIndices **Reproduction line:** ``` ./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.indices.state.ReopenWhileClosingIT.testReopenDuringCloseOnMultipleIndices" -Dtests.seed=5BA9D289491D3843 -Dtests.locale=ar-LB -Dtests.timezone=Etc/GMT-0 -Druntime.java=8 ``` **Applicable branches:** 7.17 **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.indices.state.ReopenWhileClosingIT&tests.test=testReopenDuringCloseOnMultipleIndices **Failure excerpt:** ``` java.lang.Exception: Test abandoned because suite timeout was reached. at __randomizedtesting.SeedInfo.seed([5BA9D289491D3843]:0) ```
https://github.com/elastic/elasticsearch/issues/92629
https://github.com/elastic/elasticsearch/pull/92662
a94036faf05dcdbfb871afc4947719f036c54bf2
24e2f3279931e9dcddaf9d85e85d8982f001e778
"2023-01-03T12:45:00Z"
java
"2023-01-04T11:42:48Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,577
["build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/info/BuildParams.java", "modules/repository-gcs/build.gradle"]
[CI] repository-gcs:thirdPartyAudit failing
### CI Link https://gradle-enterprise.elastic.co/s/643p72k2g5sig/console-log?task=:modules:repository-gcs:thirdPartyAudit ### Repro line N/A ### Does it reproduce? Didn't try ### Applicable branches 8.6 ### Failure history _No response_ ### Failure excerpt ``` Unnecessary exclusions, following classes are not missing: |   -- | --   | * org.graalvm.nativeimage.hosted.Feature |     | * org.graalvm.nativeimage.hosted.Feature$BeforeAnalysisAccess |     | * org.graalvm.nativeimage.hosted.Feature$DuringAnalysisAccess |     | * org.graalvm.nativeimage.hosted.Feature$FeatureAccess |     | * org.graalvm.nativeimage.hosted.RuntimeReflection ```
https://github.com/elastic/elasticsearch/issues/92577
https://github.com/elastic/elasticsearch/pull/92635
4d37feea8c30d8ece838dc0e3db794628bc2093b
f4c01cdb420674eadfba109422f01e6ddb838623
"2022-12-27T22:27:11Z"
java
"2023-01-03T15:10:03Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,562
["x-pack/plugin/spatial/src/main/java/org/elasticsearch/xpack/spatial/search/aggregations/bucket/geogrid/AbstractGeoHexGridTiler.java", "x-pack/plugin/spatial/src/test/java/org/elasticsearch/xpack/spatial/search/aggregations/bucket/geogrid/GeoHexTilerTests.java"]
[CI] GeoHexTilerTests testGeoGridSetValuesBoundingBoxes_UnboundedGeoShapeCellValues failing
**Build scan:** https://gradle-enterprise.elastic.co/s/n5u3dbgtyfcya/tests/:x-pack:plugin:spatial:test/org.elasticsearch.xpack.spatial.search.aggregations.bucket.geogrid.GeoHexTilerTests/testGeoGridSetValuesBoundingBoxes_UnboundedGeoShapeCellValues **Reproduction line:** ``` ./gradlew ':x-pack:plugin:spatial:test' --tests "org.elasticsearch.xpack.spatial.search.aggregations.bucket.geogrid.GeoHexTilerTests.testGeoGridSetValuesBoundingBoxes_UnboundedGeoShapeCellValues" -Dtests.seed=1979F5B25606B4A9 -Dtests.locale=uk-UA -Dtests.timezone=US/Samoa -Druntime.java=17 ``` **Applicable branches:** main **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.spatial.search.aggregations.bucket.geogrid.GeoHexTilerTests&tests.test=testGeoGridSetValuesBoundingBoxes_UnboundedGeoShapeCellValues **Failure excerpt:** ``` java.lang.AssertionError: [75:0] bucket count Expected: <5> but: was <4> at __randomizedtesting.SeedInfo.seed([1979F5B25606B4A9:6C4FC5FF63327B8F]:0) at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.elasticsearch.xpack.spatial.search.aggregations.bucket.geogrid.GeoGridTilerTestCase.testGeoGridSetValuesBoundingBoxes_UnboundedGeoShapeCellValues(GeoGridTilerTestCase.java:176) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java: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:833) ```
https://github.com/elastic/elasticsearch/issues/92562
https://github.com/elastic/elasticsearch/pull/92592
5c134da08d1993042951eaa36c4ed22632de3869
d012ee3eaed2ce3341fa40511383aca8bb306843
"2022-12-26T15:42:59Z"
java
"2023-01-04T09:53:02Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,559
["libs/x-content/src/test/java/org/elasticsearch/xcontent/support/filtering/AbstractXContentFilteringTestCase.java"]
Reinstate AbstractXContentFilteringTestCase#testDotsAndDoubleWildcardInExcludedFieldName
`AbstractXContentFilteringTestCase#testDotsAndDoubleWildcardInExcludedFieldName` is marked as `AwaitsFix`, linking #80160, but this issue is closed. We should either remove the AwaitsFix marker, open a new issue to track the bug, or remove the test if it is invalid.
https://github.com/elastic/elasticsearch/issues/92559
https://github.com/elastic/elasticsearch/pull/92633
1262c50b81c086edcc7768dc9441f73383ebae1e
4d37feea8c30d8ece838dc0e3db794628bc2093b
"2022-12-24T09:56:23Z"
java
"2023-01-03T14:31:05Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,544
["modules/data-streams/src/javaRestTest/java/org/elasticsearch/datastreams/TsdbDataStreamRestIT.java", "modules/data-streams/src/main/java/org/elasticsearch/datastreams/DataStreamIndexSettingsProvider.java", "modules/data-streams/src/test/java/org/elasticsearch/datastreams/DataStreamIndexSettingsProviderTests.java", "modules/data-streams/src/test/java/org/elasticsearch/datastreams/MetadataIndexTemplateServiceTests.java", "server/src/main/java/org/elasticsearch/cluster/metadata/DataStream.java", "server/src/main/java/org/elasticsearch/cluster/metadata/MetadataIndexTemplateService.java", "server/src/test/java/org/elasticsearch/cluster/metadata/DataStreamTests.java"]
Allow time series data streams to be migrated back to regular data streams
Currently it is possible to migrate an existing data stream to a time series data stream. This is done by updating the index template that created the data stream. Then after a rollover the data stream is a time series data stream. Via a similar way it should be possible to change time series data stream back to a regular data stream. Currently when changing the `index.mode` setting on an index template from `time_series` to `standard` (or removing the setting) results in a validation error.
https://github.com/elastic/elasticsearch/issues/92544
https://github.com/elastic/elasticsearch/pull/92644
a1ea6ea8b4b594249e5405b5b620723eba2491f0
cfda43e775546bcb8a2b5fd7983ff0cc182ed98e
"2022-12-23T10:13:49Z"
java
"2023-01-11T09:05:05Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,541
["x-pack/plugin/spatial/src/main/java/org/elasticsearch/xpack/spatial/search/aggregations/bucket/geogrid/AbstractGeoHexGridTiler.java", "x-pack/plugin/spatial/src/test/java/org/elasticsearch/xpack/spatial/search/aggregations/bucket/geogrid/GeoHexTilerTests.java"]
[CI] GeoHexTilerTests testGeoGridSetValuesBoundingBoxes_BoundedGeoShapeCellValues failing
**Build scan:** https://gradle-enterprise.elastic.co/s/quzjflq4jy63k/tests/:x-pack:plugin:spatial:test/org.elasticsearch.xpack.spatial.search.aggregations.bucket.geogrid.GeoHexTilerTests/testGeoGridSetValuesBoundingBoxes_BoundedGeoShapeCellValues **Reproduction line:** ``` ./gradlew ':x-pack:plugin:spatial:test' --tests "org.elasticsearch.xpack.spatial.search.aggregations.bucket.geogrid.GeoHexTilerTests.testGeoGridSetValuesBoundingBoxes_BoundedGeoShapeCellValues" -Dtests.seed=661E7D345AAD5B4 -Dtests.locale=nl-NL -Dtests.timezone=Asia/Dili -Druntime.java=17 ``` **Applicable branches:** main **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.spatial.search.aggregations.bucket.geogrid.GeoHexTilerTests&tests.test=testGeoGridSetValuesBoundingBoxes_BoundedGeoShapeCellValues **Failure excerpt:** ``` java.lang.AssertionError: [5:3] bucket count Expected: <21> but: was <20> at __randomizedtesting.SeedInfo.seed([661E7D345AAD5B4:A15561E564EE425]:0) at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.elasticsearch.xpack.spatial.search.aggregations.bucket.geogrid.GeoGridTilerTestCase.testGeoGridSetValuesBoundingBoxes_BoundedGeoShapeCellValues(GeoGridTilerTestCase.java:140) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java: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:833) ```
https://github.com/elastic/elasticsearch/issues/92541
https://github.com/elastic/elasticsearch/pull/92592
5c134da08d1993042951eaa36c4ed22632de3869
d012ee3eaed2ce3341fa40511383aca8bb306843
"2022-12-23T07:34:37Z"
java
"2023-01-04T09:53:02Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,521
["x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/job/process/normalizer/ShortCircuitingRenormalizer.java"]
[CI] DatafeedJobsIT testStartDatafeed_GivenTimeout_Returns408 failing
**Build scan:** https://gradle-enterprise.elastic.co/s/wyobowf5rwv4c/tests/:x-pack:plugin:ml:qa:native-multi-node-tests:javaRestTest/org.elasticsearch.xpack.ml.integration.DatafeedJobsIT/testStartDatafeed_GivenTimeout_Returns408 **Reproduction line:** ``` ./gradlew ':x-pack:plugin:ml:qa:native-multi-node-tests:javaRestTest' --tests "org.elasticsearch.xpack.ml.integration.DatafeedJobsIT.testStartDatafeed_GivenTimeout_Returns408" -Dtests.seed=FD095D9802DCA16F -Dtests.locale=fi -Dtests.timezone=America/Monterrey -Druntime.java=17 ``` **Applicable branches:** main **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.ml.integration.DatafeedJobsIT&tests.test=testStartDatafeed_GivenTimeout_Returns408 **Failure excerpt:** ``` java.lang.Exception: Test abandoned because suite timeout was reached. at __randomizedtesting.SeedInfo.seed([FD095D9802DCA16F]:0) ```
https://github.com/elastic/elasticsearch/issues/92521
https://github.com/elastic/elasticsearch/pull/92524
85155356523d1ba086cfdec35e903ce295552433
08515eac09ca549036c963df5670ca0956aaa047
"2022-12-22T10:04:53Z"
java
"2022-12-22T12:51:24Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,503
["docs/reference/commands/cli-jvm-options.asciidoc", "docs/reference/commands/node-tool.asciidoc", "docs/reference/commands/reconfigure-node.asciidoc", "docs/reference/commands/shard-tool.asciidoc"]
Document CLI_JAVA_OPTS
All CLI tools run with 64MB mem by default. For elasticsearch-node, this can be way too little, since it need to work on the cluster state. However, there is no documentation on how to change that. We should document that `CLI_JAVA_OPTS` can be used to change java options for CLI tools.
https://github.com/elastic/elasticsearch/issues/92503
https://github.com/elastic/elasticsearch/pull/92510
4b18d3a15ce3c00f0c8217ee4994bd305604bf2d
3506d5e7382aa0a393bfcb202cf776a5c25dfcec
"2022-12-21T15:00:40Z"
java
"2022-12-22T23:32:07Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,482
["rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/health/40_diagnosis.yml"]
Slow execution time for health/40_diagnosis/Diagnosis REST test
This single REST test case consistently takes 30 seconds to execute. I'm not sure if there's some kind of timeout we are waiting to reach or something else that's blocking the test but when pretty much all other REST tests run in under 1 second this one is clearly standing out. ![image](https://user-images.githubusercontent.com/4106672/208793068-7c268c04-20e8-40e9-add0-cdc152afddcd.png) cc @andreidan
https://github.com/elastic/elasticsearch/issues/92482
https://github.com/elastic/elasticsearch/pull/92486
83d3f7f6f9ac5bdcc30d06d04b11ab0f899bc81c
c5ed72e70dab8091e61920d1340e507db3863c21
"2022-12-21T00:32:41Z"
java
"2022-12-21T19:12:21Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,480
["libs/x-content/impl/build.gradle", "libs/x-content/impl/es-jackson-core/build.gradle", "libs/x-content/impl/es-jackson-core/licenses/jackson-LICENSE.txt", "libs/x-content/impl/es-jackson-core/licenses/jackson-NOTICE.txt", "libs/x-content/impl/es-jackson-core/src/main/java/com/fasterxml/jackson/core/filter/FilteringParserDelegate.java", "libs/x-content/src/test/java/org/elasticsearch/xcontent/support/filtering/AbstractXContentFilteringTestCase.java"]
Source includes triggers MapperParsingException/IllegalStateException if field is in an array
### Elasticsearch Version 8.5.3 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version n/a ### Problem Description In version 7.x of ES you can set an "includes" settings in the "_source" mapping definition for a field within a nested field. If you are indexing a document that contains multiple nested fields where one of the fields **does not** contain a particular field, the document indexes without problems. However, doing the same in version 8.5.3 fails with a "reason": "Unclosed object or array found". ### Steps to Reproduce Create a mapping like this: ``` PUT testnested { "mappings": { "_source": { "includes": [ "doc.field2","doc.field1.field3" ] }, "properties": { "doc": { "properties": { "field1": { "type": "nested", "properties": { "field1n1": { "type": "nested", "properties": { "name": { "type": "text" } } }, "field3": { "type": "text" } } }, "field2": { "type": "object" } } } } } } ``` Then index a document like this: ``` POST testnested/_doc { "doc": { "field1": [ { "field1n1": [ { "name": "peter" }, { "name": "parker" } ], "field3": "test" }, { "field4": "testfield3" } ] } } ``` Receive error: ``` { "error": { "root_cause": [ { "type": "mapper_parsing_exception", "reason": "failed to parse" } ], "type": "mapper_parsing_exception", "reason": "failed to parse", "caused_by": { "type": "illegal_state_exception", "reason": "Failed to close the XContentBuilder", "caused_by": { "type": "i_o_exception", "reason": "Unclosed object or array found" } } }, "status": 400 } ``` ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/92480
https://github.com/elastic/elasticsearch/pull/92984
77fe1b81bfde81ca4f54772c919fcb307c89c34e
441e77c8cf6594a35601369deba838ac3c575593
"2022-12-20T21:12:18Z"
java
"2023-01-18T13:48:14Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,477
["test/framework/src/main/java/org/elasticsearch/test/ESTestCase.java"]
[CI] FollowerFailOverIT testFailOverOnFollower failing
Four tests failed together with the message `java.net.BindException: Address already in use`, and the tests have been failing a few times in the last couple of days on branch `8.5` and `8.6`. The failing tests: * testFailOverOnFollower * testReadRequestsReturnLatestMappingVersion * testFollowIndexAndCloseNode * testReadRequestsReturnLatestMappingVersion Some test histories: *. https://gradle-enterprise.elastic.co/scans/tests?search.timeZoneId=Europe/Stockholm&tests.container=org.elasticsearch.xpack.ccr.FollowerFailOverIT&tests.test=testAddNewReplicasOnFollower * https://gradle-enterprise.elastic.co/scans/tests?search.timeZoneId=Europe/Stockholm&tests.container=org.elasticsearch.xpack.ccr.FollowerFailOverIT&tests.test=testReadRequestsReturnLatestMappingVersion **Build scan:** https://gradle-enterprise.elastic.co/s/es4ybjld57meo/tests/:x-pack:plugin:ccr:internalClusterTest/org.elasticsearch.xpack.ccr.FollowerFailOverIT/testFailOverOnFollower **Reproduction line:** ``` ./gradlew ':x-pack:plugin:ccr:internalClusterTest' --tests "org.elasticsearch.xpack.ccr.FollowerFailOverIT.testFailOverOnFollower" -Dtests.seed=AEF5EB246025C830 -Dtests.locale=es-SV -Dtests.timezone=Europe/Sofia -Druntime.java=17 ``` **Applicable branches:** 8.5, 8.6 **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.ccr.FollowerFailOverIT&tests.test=testFailOverOnFollower **Failure excerpt:** ``` org.elasticsearch.transport.BindTransportException: Failed to bind to [::1]:[32771-32800] at org.elasticsearch.transport.TcpTransport.bindToPort(TcpTransport.java:505) at org.elasticsearch.transport.TcpTransport.bindServer(TcpTransport.java:466) at org.elasticsearch.transport.netty4.Netty4Transport.doStart(Netty4Transport.java:142) at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:43) at org.elasticsearch.test.transport.StubbableTransport.start(StubbableTransport.java:203) at org.elasticsearch.transport.TransportService.doStart(TransportService.java:311) at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:43) at org.elasticsearch.node.Node.start(Node.java:1296) at org.elasticsearch.test.InternalTestCluster$NodeAndClient.startNode(InternalTestCluster.java:982) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.util.concurrent.FutureTask.run(FutureTask.java:264) at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:825) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.lang.Thread.run(Thread.java:833) Caused by: java.net.BindException: Address already in use at sun.nio.ch.Net.bind0(Net.java:-2) at sun.nio.ch.Net.bind(Net.java:555) at sun.nio.ch.ServerSocketChannelImpl.netBind(ServerSocketChannelImpl.java:337) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:294) at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:141) at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:562) at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1334) at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:506) at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:491) at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:973) at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:260) at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:356) at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174) at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167) at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:503) at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:995) at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/92477
https://github.com/elastic/elasticsearch/pull/92666
ee8d83e7650ca45c4705c49a4ce25407a9301f29
b61bea89c1096715570be35b2c9b487ed2d7a526
"2022-12-20T15:36:05Z"
java
"2023-01-04T13:21:23Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,473
["docs/changelog/93370.yaml", "x-pack/plugin/spatial/src/main/java/org/elasticsearch/xpack/spatial/SpatialPlugin.java", "x-pack/plugin/spatial/src/main/java/org/elasticsearch/xpack/spatial/ingest/GeoGridProcessor.java", "x-pack/plugin/spatial/src/test/java/org/elasticsearch/xpack/spatial/ingest/GeoGridProcessorFactoryTests.java", "x-pack/plugin/spatial/src/test/java/org/elasticsearch/xpack/spatial/ingest/GeoGridProcessorTests.java", "x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/spatial/100_geo_grid_ingest.yml"]
Ingest processor to convert geotile addresses into polygons
### Description This feature was inspired by a request from a services customer. They have existing data composed of Uber H3 encoded fields. This is not because they use Elasticsearch H3 capabilities, but something they already had. In addition they want to display the cell polygons on their map UI, and are willing to re-index, but do not want to export, process and re-import the data themselves to add the missing polygons. The idea with this feature is to produce an ingest processor that can be added to elasticsearch as a plugin, and this processor will be able to convert any geotile address (geohash, geotile or geohex) into a polygon, for future use (either in a map display, or some other use, like polygon search or aggs). In the case of geohex, we already have the internal `H3.h3ToGeoBoundary` function, which is not accessible to painless, but should be accessible from an ingest processor plugin.
https://github.com/elastic/elasticsearch/issues/92473
https://github.com/elastic/elasticsearch/pull/93370
afc24e13268e87684a3dfd01d54218349501e5e1
b473d8148ba00000479871ec0337f20c64de9314
"2022-12-20T15:06:37Z"
java
"2023-02-06T13:08:57Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,434
["docs/changelog/92440.yaml", "server/src/main/java/org/elasticsearch/index/store/ByteSizeCachingDirectory.java", "server/src/test/java/org/elasticsearch/index/store/ByteSizeCachingDirectoryTests.java"]
ByteSizeCachingDirectory can't use cached size because numOpenOutputs is a negative value when close method was invoked more than once
### Elasticsearch Version 7.10.2 ### Installed Plugins repository-hdfs ### Java Version _bundled_ ### OS Version Linux 4.14.81.bm.26-amd64 #1 SMP Debian 4.14.81.bm.26 Mon Sep 14 09:46:45 UTC 2020 ### Problem Description The size of shard should't be computed again instead of using cached when no pending write。we migrated a lot of indicess to a new cluster by snapshot, nodes and indices stats api become very slow because some shards that were restored from snapshots always computed shard directory size even no write,not use cached because the numOpenOutputs was decreased to a negative number ### Steps to Reproduce snapshot a index then restore, the shard that recovery from snapshot will always compute directory size instead of using cached ### Logs (if relevant) ![image](https://user-images.githubusercontent.com/17610965/208378334-c814a7ab-c78e-439d-8444-99a511868604.png)
https://github.com/elastic/elasticsearch/issues/92434
https://github.com/elastic/elasticsearch/pull/92440
a41127ca3fa22bb3f9b95381929f0cfb9e7b33e0
3bad02edec3fde530a099b5b4c8a5fe2721c8f35
"2022-12-19T08:17:35Z"
java
"2022-12-20T12:53:25Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,410
["server/src/main/java/org/elasticsearch/threadpool/ThreadPool.java", "server/src/test/java/org/elasticsearch/threadpool/ThreadPoolTests.java"]
Nodes with little heap memory may OOME while snapshotting
### Elasticsearch Version 8.6.0-SNAPSHOT ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version N/A ### Problem Description We see 8.6.0 master nodes (512MB heap) repeatedly dying with OOME when attempting to do a snapshot with GCS snapshot repository. This is not reproducible with prior versions and we suspect that this is caused by https://github.com/elastic/elasticsearch/pull/90282. ### Steps to Reproduce 1. Start a cluster in a containerized environment; master nodes have 1GB of memory, 512MB of heap 2. Setup a GCS snapshot repository 3. Create a snapshot of the cluster. 4. The master node will OOM with the following message: ``` [5383.050s][warning][gc,alloc] elasticsearch[i6][snapshot][T#26]: Retried waiting for GCLocker too often allocating 256 words [5383.053s][warning][gc,alloc] elasticsearch[i6][snapshot][T#14]: Retried waiting for GCLocker too often allocating 1029 words java.lang.OutOfMemoryError: Java heap space ``` ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/92410
https://github.com/elastic/elasticsearch/pull/92392
1d585cd76807406ccd5fa670e0bbe15ab793e6bd
e023213b073365bcbd9a53284fef30f9957cb40f
"2022-12-16T06:39:16Z"
java
"2022-12-16T08:33:48Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,390
["modules/aggregations/src/yamlRestTest/resources/rest-api-spec/test/aggregations/time_series.yml", "server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeAggregationBuilder.java"]
Investigate TimeSeriesIndexSearcher limitations
The following aggregations don't work well with `time_series` aggregation: - `sampler` - `composite` Any aggregation that returns a `LeafBucketCollector.NO_OP_COLLECTOR` instance as leaf collector. Also the filter by filter optimisation that a number of aggregations perform doesn't work when executing in time series mode. #91702 already disables this optimisation in case `time_series` agg is used. We should do that also for the mentioned aggregations. Separately we should also investigate how to make these aggregations and filter by filter optimisation work with `TimeSeriesIndexSearcher`.
https://github.com/elastic/elasticsearch/issues/92390
https://github.com/elastic/elasticsearch/pull/92499
22977007b81154d6c9ed42620be2851a683238eb
0f9750381cf40a003b41ef5308b37cb4a77febad
"2022-12-15T11:39:53Z"
java
"2022-12-22T11:53:21Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,344
["server/src/main/java/org/elasticsearch/index/IndexingPressure.java", "server/src/main/java/org/elasticsearch/transport/Transport.java", "server/src/main/java/org/elasticsearch/transport/TransportService.java", "server/src/test/java/org/elasticsearch/transport/InboundHandlerTests.java", "test/framework/src/main/java/org/elasticsearch/test/transport/MockTransportService.java"]
[CI] ClusterDisruptionIT testAckedIndexing failing
There is another issue open for the same test: https://github.com/elastic/elasticsearch/issues/91447 however it has a different failure. I am not sure if they are related to I am opening this one to be able to track both. **Build scan:** https://gradle-enterprise.elastic.co/s/cuzzl3scxneo4/tests/:server:internalClusterTest/org.elasticsearch.discovery.ClusterDisruptionIT/testAckedIndexing **Reproduction line:** ``` ./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.discovery.ClusterDisruptionIT.testAckedIndexing" -Dtests.seed=90D53A438FBF29C9 -Dtests.locale=en-NZ -Dtests.timezone=Canada/Yukon -Druntime.java=17 ``` **Applicable branches:** main **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.discovery.ClusterDisruptionIT&tests.test=testAckedIndexing **Failure excerpt:** ``` java.lang.AssertionError: pending combined bytes [266] bytes on node [node_t1]. at __randomizedtesting.SeedInfo.seed([90D53A438FBF29C9:1A148EB0D3C2CF82]:0) at org.elasticsearch.test.InternalTestCluster.lambda$assertAllPendingWriteLimitsReleased$11(InternalTestCluster.java:1281) at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1112) at org.elasticsearch.test.InternalTestCluster.assertAllPendingWriteLimitsReleased(InternalTestCluster.java:1276) at org.elasticsearch.test.InternalTestCluster.beforeIndexDeletion(InternalTestCluster.java:1270) at org.elasticsearch.test.ESIntegTestCase.beforeIndexDeletion(ESIntegTestCase.java:609) at org.elasticsearch.discovery.AbstractDisruptionTestCase.beforeIndexDeletion(AbstractDisruptionTestCase.java:99) at org.elasticsearch.test.ESIntegTestCase.afterInternal(ESIntegTestCase.java:579) at org.elasticsearch.test.ESIntegTestCase.cleanUpCluster(ESIntegTestCase.java:2242) at jdk.internal.reflect.GeneratedMethodAccessor26.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:1004) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java: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:833) ``` There are multiple exceptions like one below in the log: ``` Caused by: java.lang.IllegalStateException: [test][0] operation primary term [1] is too old (current [2]) at org.elasticsearch.index.shard.IndexShard.lambda$innerAcquireReplicaOperationPermit$32(IndexShard.java:3534) ~[main/:?] at org.elasticsearch.action.ActionListener$DelegatingFailureActionListener.onResponse(ActionListener.java:245) ~[main/:?] at org.elasticsearch.index.shard.IndexShardOperationPermits.acquire(IndexShardOperationPermits.java:252) ~[main/:?] at org.elasticsearch.index.shard.IndexShardOperationPermits.acquire(IndexShardOperationPermits.java:198) ~[main/:?] at org.elasticsearch.index.shard.IndexShard.lambda$acquireReplicaOperationPermit$30(IndexShard.java:3475) ~[main/:?] at org.elasticsearch.index.shard.IndexShard.innerAcquireReplicaOperationPermit(IndexShard.java:3587) ~[main/:?] at org.elasticsearch.index.shard.IndexShard.acquireReplicaOperationPermit(IndexShard.java:3469) ~[main/:?] ```
https://github.com/elastic/elasticsearch/issues/92344
https://github.com/elastic/elasticsearch/pull/102766
e931376eb51be76ab30a4ffb7ab51cf67beab5cf
91df20b6132b41f34268b933f883f340821d572b
"2022-12-14T07:53:16Z"
java
"2023-11-30T11:32:20Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,341
["gradle/verification-metadata.xml", "libs/x-content/impl/build.gradle"]
Upgrade to jackson 2.14.1
### Description Spotted by @joegallo, a minor patch release for jackson 2.14 fixes a heap consumption issue https://github.com/FasterXML/jackson-databind/issues/3665. We don't use databind a lot, but it's a dependency to few plugins and test code. CC @chris
https://github.com/elastic/elasticsearch/issues/92341
https://github.com/elastic/elasticsearch/pull/92990
64ce4d1189c4cc8431908e2e171aae9f942ee8a9
d19721b701565655cd214e448a55da337ebb3bf6
"2022-12-13T21:59:41Z"
java
"2023-01-17T15:30:49Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,338
["modules/apm/src/main/java/org/elasticsearch/tracing/apm/APM.java", "modules/apm/src/main/java/org/elasticsearch/tracing/apm/APMAgentSettings.java", "modules/apm/src/main/java/org/elasticsearch/tracing/apm/APMTracer.java", "modules/apm/src/test/java/org/elasticsearch/tracing/apm/APMTracerTests.java", "server/src/main/java/org/elasticsearch/rest/RestController.java"]
Make HTTP header redaction configurable for APM tracing
Related: #92337. When tracing REST requests with APM, we capture HTTP headers as labels on the trace, but redact sensitive values. However, we can't know ahead of time what are all possible sensitive values. It would be better if it was possible to configure additional patterns to redact.
https://github.com/elastic/elasticsearch/issues/92338
https://github.com/elastic/elasticsearch/pull/92358
9d605b576f47c39ce7d7501a29181849eda6b713
31ac6b0cc85ec54443d8d0f8bff7838939abf9ea
"2022-12-13T20:30:37Z"
java
"2022-12-15T09:23:19Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,243
["docs/changelog/92329.yaml", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/nlp/tokenizers/BasicTokenFilter.java", "x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/inference/nlp/tokenizers/BertTokenizerTests.java"]
Bug in BERT tokenizer
### Elasticsearch Version v8.6.0 ### Installed Plugins _No response_ ### Java Version n/a ### OS Version n/a ### Problem Description There is a tokenization failure when using `BERT` tokenizer with the following configuration: ``` "bert": { "do_lower_case": true, "with_special_tokens": true, "max_sequence_length": 512, "truncate": "first", "span": -1 } ``` With the text field: "One of the earliest legends that connects the Tower with a raven is the tale of the euhemerised mutually destructive battle against the Irish leader Matholwch who had mistreated the British princess Branwen. Branwen's brother Br창n the Blessed (King of the Britons) ordered his followers to cut off his head and bury it beneath the White Hill (where the Tower now stands) facing out towards France as a talisman to protect Britain from foreign invasion.[8] Please note that Br창n is the Welsh word for Raven. This fact makes clear the link between Br창n's head being buried beneath the site of today's tower and the importance of the continued presence of ravens." Failure: ``` 'java.lang.IllegalArgumentException: startOffset must be non-negative, and endOffset must be >= startOffset; got startOffset=553,endOffset=552', 'caused_by': {'type': 'illegal_argument_exception', 'reason': 'startOffset must be non-negative, and endOffset must be >= startOffset; got startOffset=553,endOffset=552' ``` ### Steps to Reproduce - Put any model using BERT tokenizer - infer with the above text ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/92243
https://github.com/elastic/elasticsearch/pull/92329
38f3b634c5352b7ed02513372b6a6cefca80e664
143fe5b1c754029f5360c9dbfee6807309a7bd9e
"2022-12-08T16:57:11Z"
java
"2022-12-13T17:42:04Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,236
["docs/reference/mapping/types/aggregate-metric-double.asciidoc"]
Percentiles aggregation (and others?) fails on aggregate_metric_double field
### Elasticsearch Version 8.5.1 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version Ubuntu 22.04 ### Problem Description Using a `percentiles` aggregation on an `aggregate_metric_double` field throws an Exception ``` { "error": { "root_cause": [ { "type": "unsupported_aggregation_on_downsampled_index", "reason": "Field [myField] of type [aggregate_metric_double] is not supported for aggregation [percentiles]" } ], "type": "search_phase_execution_exception", "reason": "all shards failed", "phase": "query", "grouped": true, "failed_shards": [ { "shard": 0, "index": "elastic_percentiles_over_aggregate_metric_double", "node": "TwgI4li2RHK_KmqWxt06_A", "reason": { "type": "unsupported_aggregation_on_downsampled_index", "reason": "Field [myField] of type [aggregate_metric_double] is not supported for aggregation [percentiles]" } } ] }, "status": 400 } ``` This can be reproduced with at least `cardinality` also, probably others. The documentation advertises that the `default_metric` should be used in these cases, which makes perfect sense to me... Anything I've overlooked? ### Steps to Reproduce ``` PUT /elastic_percentiles_over_aggregate_metric_double { "mappings": { "properties": { "@timestamp": { "type": "date" }, "myField": { "type": "aggregate_metric_double", "metrics": ["min", "max", "sum", "value_count"], "default_metric": "max", "ignore_malformed": true } } } } POST /elastic_percentiles_over_aggregate_metric_double/_bulk { "create": {} } { "@timestamp": "2022-12-01T12:00:00Z", "myField": { "min": 0, "max": 0, "sum": 0, "value_count": 1 } } { "create": {} } { "@timestamp": "2022-12-01T12:00:00Z", "myField": { "min": 0, "max": 5, "sum": 5, "value_count": 2 } } { "create": {} } { "@timestamp": "2022-12-01T12:00:00Z", "myField": { "min": 2, "max": 5, "sum": 10, "value_count": 3 } } POST /elastic_percentiles_over_aggregate_metric_double/_search { "size": 0, "aggs": { "p95": { "percentiles": { "field": "myField", "percents": [95] } } } } DELETE /elastic_percentiles_over_aggregate_metric_double ``` ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/92236
https://github.com/elastic/elasticsearch/pull/92961
df1263c4dc26a2243ad318d3ec68526004c609fe
a18384389338daf1deaa612e8a2b7148d84cad9c
"2022-12-08T13:03:32Z"
java
"2023-01-16T17:33:20Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,209
["docs/changelog/92420.yaml", "docs/reference/health/health.asciidoc", "qa/smoke-test-http/src/javaRestTest/java/org/elasticsearch/http/HealthRestCancellationIT.java", "rest-api-spec/src/main/resources/rest-api-spec/api/_internal.health.json", "rest-api-spec/src/main/resources/rest-api-spec/api/health.json", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/health/10_basic.yml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/health/30_feature.yml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/health/40_diagnosis.yml", "server/src/main/java/org/elasticsearch/health/RestGetHealthAction.java"]
Promote health API from internal to GA (generally available)
### Description We've been working on the health API for a while and the breaking changes have slowed to the point where we can promote the API away from the `/_internal` categorization.
https://github.com/elastic/elasticsearch/issues/92209
https://github.com/elastic/elasticsearch/pull/92420
661ea5f74d50189bc4fc185020f863ec1796bb49
0993c31eb77ced68c73a33280a0669ab18469755
"2022-12-07T17:49:26Z"
java
"2022-12-20T10:26:53Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,196
["server/src/main/java/org/elasticsearch/action/admin/indices/shards/IndicesShardStoresResponse.java", "server/src/main/java/org/elasticsearch/action/admin/indices/shards/TransportIndicesShardStoresAction.java", "server/src/main/java/org/elasticsearch/action/search/ClearScrollController.java", "server/src/main/java/org/elasticsearch/action/support/replication/TransportBroadcastReplicationAction.java", "server/src/main/java/org/elasticsearch/common/util/concurrent/CountDown.java", "x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/Realms.java"]
`new CountDown(0)` is trappy and should be forbidden
Today in a few places we create a `new CountDown(0)`. This is kind of trappy because it will never return `true` from `#countDown()` or `#fastForward()` which risks never completing whatever action needs completing unless the caller handles the empty case specially. We should refactor the places that do this so that they all avoid creating an empty `CountDown`, instead just handling the fact that the action is already complete: - [ ] `TransportIndicesShardStoresAction$AsyncShardStoresInfoFetches` - [ ] `ClearScrollController` - [ ] `TransportBroadcastReplicationAction#doExecute` - [ ] `Realms#usageStats` Once we've done that, we can forbid the creation of an empty `CountDown`.
https://github.com/elastic/elasticsearch/issues/92196
https://github.com/elastic/elasticsearch/pull/92607
d276e491b6b0e1688caa693836429fed3fc82859
c997302bd75eeb18f831ad6b78ba0ba6c225fa35
"2022-12-07T12:12:41Z"
java
"2023-01-12T10:33:28Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,179
["x-pack/plugin/rollup/src/main/java/org/elasticsearch/xpack/rollup/action/TransportGetRollupCapsAction.java", "x-pack/plugin/rollup/src/main/java/org/elasticsearch/xpack/rollup/action/TransportGetRollupIndexCapsAction.java"]
RestGetRollupCapsAction and RestGetRollupIndexCapsAction invoke expensive GetRollupCapsAction on transport threads
This is a [known issue](https://github.com/elastic/elasticsearch/issues/97916) around rest actions. They execute transport actions in the current thread instead of the thread that the action is registered for with the transport service in code like: ```java return channel -> client.execute(GetRollupIndexCapsAction.INSTANCE, request, new RestToXContentListener<>(channel)); ``` This is normally not an issue since the expensive actions that also have a REST endpoint are `TransportMasterNodeAction`s. In the case of `RestGetRollupCapsAction` and `RestGetRollupIndexCapsAction` which aren't, this breaks the fix in #89803 if the action is used via the REST layer. -> I think until we figure out if we want to change the way threading works with the client in the above code, we should manually fork to the management pool in these actions to fix the slow action blocking transport threads.
https://github.com/elastic/elasticsearch/issues/92179
https://github.com/elastic/elasticsearch/pull/98314
6d545e883b038a7aa80923ee5b34fd868f277098
cf03a65888757b009a6489400bbad71dd45da5b9
"2022-12-07T08:07:13Z"
java
"2023-08-09T14:39:29Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,153
["build.gradle", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/InferTrainedModelDeploymentAction.java"]
[CI] MLModelDeploymentsUpgradeIT testTrainedModelDeployment failing
This seem to be a serialization bug: ``` » [2022-12-06T12:32:02,718][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [v8.6.0-2] fatal error in thread [Thread-10], exiting java.lang.AssertionError: java.lang.IllegalStateException: Message not fully read (request) for requestId [186], action [cluster:monitor/xpack/ml/trained_models/deployment/infer[n]], available [0]; resetting » at [email protected]/org.elasticsearch.transport.InboundHandler.handleRequest(InboundHandler.java:271) » at [email protected]/org.elasticsearch.transport.InboundHandler.messageReceived(InboundHandler.java:116) » at [email protected]/org.elasticsearch.transport.InboundHandler.inboundMessage(InboundHandler.java:95) » at [email protected]/org.elasticsearch.transport.TcpTransport.inboundMessage(TcpTransport.java:808) » at [email protected]/org.elasticsearch.transport.InboundPipeline.forwardFragments(InboundPipeline.java:149) » at [email protected]/org.elasticsearch.transport.InboundPipeline.doHandleBytes(InboundPipeline.java:121) » at [email protected]/org.elasticsearch.transport.InboundPipeline.handleBytes(InboundPipeline.java:86) » at [email protected]/org.elasticsearch.transport.netty4.Netty4MessageInboundHandler.channelRead(Netty4MessageInboundHandler.java:63) » at [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) » at [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) » at [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) » at [email protected]/io.netty.handler.logging.LoggingHandler.channelRead(LoggingHandler.java:280) » at [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) » at [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) » at [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) » at [email protected]/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) » at [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) » at [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) » at [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) » at [email protected]/io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1373) » at [email protected]/io.netty.handler.ssl.SslHandler.decodeJdkCompatible(SslHandler.java:1236) » at [email protected]/io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1285) » at [email protected]/io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:519) » at [email protected]/io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:458) » at [email protected]/io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:280) » at [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) » at [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) » at [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ```` **Build scan:** https://gradle-enterprise.elastic.co/s/m5o3yp5vknx4g/tests/:x-pack:qa:rolling-upgrade:v8.6.0%23oneThirdUpgradedTest/org.elasticsearch.upgrades.MLModelDeploymentsUpgradeIT/testTrainedModelDeployment **Reproduction line:** ``` ./gradlew ':x-pack:qa:rolling-upgrade:v8.6.0#oneThirdUpgradedTest' -Dtests.class="org.elasticsearch.upgrades.MLModelDeploymentsUpgradeIT" -Dtests.method="testTrainedModelDeployment" -Dtests.seed=AAE1F74104DC8F5F -Dtests.bwc=true -Dtests.locale=el-CY -Dtests.timezone=Pacific/Guam -Druntime.java=17 ``` **Applicable branches:** main **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.upgrades.MLModelDeploymentsUpgradeIT&tests.test=testTrainedModelDeployment **Failure excerpt:** ``` org.elasticsearch.client.ResponseException: method [POST], host [http://127.0.0.1:33908], URI [/_ml/trained_models/upgrade-deployment-test/deployment/_infer], status line [HTTP/1.1 500 Internal Server Error] Warnings: [[POST /_ml/trained_models/{model_id}/deployment/_infer] is deprecated! Use [POST /_ml/trained_models/{model_id}/_infer] instead.] {"error":{"root_cause":[{"type":"node_disconnected_exception","reason":"[v8.6.0-2][127.0.0.1:34396][cluster:monitor/xpack/ml/trained_models/deployment/infer[n]] disconnected"}],"type":"failed_node_exception","reason":"Failed node [Kqcr2Up2RQmWKkflha-kxA]","node_id":"Kqcr2Up2RQmWKkflha-kxA","caused_by":{"type":"node_disconnected_exception","reason":"[v8.6.0-2][127.0.0.1:34396][cluster:monitor/xpack/ml/trained_models/deployment/infer[n]] disconnected"}},"status":500} at __randomizedtesting.SeedInfo.seed([AAE1F74104DC8F5F:5139B11E251C35C8]:0) at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:347) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:313) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:288) at org.elasticsearch.upgrades.MLModelDeploymentsUpgradeIT.infer(MLModelDeploymentsUpgradeIT.java:283) at org.elasticsearch.upgrades.MLModelDeploymentsUpgradeIT.assertInfer(MLModelDeploymentsUpgradeIT.java:183) at org.elasticsearch.upgrades.MLModelDeploymentsUpgradeIT.testTrainedModelDeployment(MLModelDeploymentsUpgradeIT.java:116) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java: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:833) ```
https://github.com/elastic/elasticsearch/issues/92153
https://github.com/elastic/elasticsearch/pull/92157
e130617b1b5ada8a0a8c1020f203a3e94ba92c3f
a04d0235471dc84032fe8b7b6ff196fa4b81237e
"2022-12-06T12:47:17Z"
java
"2022-12-06T15:09:32Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,148
["x-pack/plugin/searchable-snapshots/src/internalClusterTest/java/org/elasticsearch/xpack/searchablesnapshots/cache/shared/PartiallyCachedShardAllocationIntegTests.java"]
[CI] PartiallyCachedShardAllocationIntegTests testPartialSearchableSnapshotNotAllocatedToNodesWithoutCache failing
**Build scan:** https://gradle-enterprise.elastic.co/s/n2fya3bzklnog/tests/:x-pack:plugin:searchable-snapshots:internalClusterTest/org.elasticsearch.xpack.searchablesnapshots.cache.shared.PartiallyCachedShardAllocationIntegTests/testPartialSearchableSnapshotNotAllocatedToNodesWithoutCache **Reproduction line:** ``` ./gradlew ':x-pack:plugin:searchable-snapshots:internalClusterTest' --tests "org.elasticsearch.xpack.searchablesnapshots.cache.shared.PartiallyCachedShardAllocationIntegTests.testPartialSearchableSnapshotNotAllocatedToNodesWithoutCache" -Dtests.seed=93FC1C9EB0FD4E2E -Dtests.locale=sr-BA -Dtests.timezone=America/Goose_Bay -Druntime.java=17 ``` **Applicable branches:** 8.6 **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.searchablesnapshots.cache.shared.PartiallyCachedShardAllocationIntegTests&tests.test=testPartialSearchableSnapshotNotAllocatedToNodesWithoutCache **Failure excerpt:** ``` java.lang.AssertionError: test leaves persistent cluster metadata behind Expected: an empty collection but: <[cluster.routing.rebalance.enable]> at __randomizedtesting.SeedInfo.seed([93FC1C9EB0FD4E2E:DC0AAA708D408FF]:0) at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.elasticsearch.test.ESIntegTestCase.afterInternal(ESIntegTestCase.java:569) at org.elasticsearch.test.ESIntegTestCase.cleanUpCluster(ESIntegTestCase.java:2237) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:1004) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java: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:833) ```
https://github.com/elastic/elasticsearch/issues/92148
https://github.com/elastic/elasticsearch/pull/92628
d357a8f165937d76b7d3576bcc87db5b14bc56da
8aa50491359e2a282afeb136895454e8a8266cf9
"2022-12-06T10:46:14Z"
java
"2023-01-03T13:36:04Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,147
["x-pack/plugin/searchable-snapshots/src/internalClusterTest/java/org/elasticsearch/xpack/searchablesnapshots/cache/shared/PartiallyCachedShardAllocationIntegTests.java"]
[CI] PartiallyCachedShardAllocationIntegTests testPartialSearchableSnapshotAllocatedToNodesWithCache failing
**Build scan:** https://gradle-enterprise.elastic.co/s/n2fya3bzklnog/tests/:x-pack:plugin:searchable-snapshots:internalClusterTest/org.elasticsearch.xpack.searchablesnapshots.cache.shared.PartiallyCachedShardAllocationIntegTests/testPartialSearchableSnapshotAllocatedToNodesWithCache **Reproduction line:** ``` ./gradlew ':x-pack:plugin:searchable-snapshots:internalClusterTest' --tests "org.elasticsearch.xpack.searchablesnapshots.cache.shared.PartiallyCachedShardAllocationIntegTests.testPartialSearchableSnapshotAllocatedToNodesWithCache" -Dtests.seed=93FC1C9EB0FD4E2E -Dtests.locale=sr-BA -Dtests.timezone=America/Goose_Bay -Druntime.java=17 ``` **Applicable branches:** 8.6 **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.searchablesnapshots.cache.shared.PartiallyCachedShardAllocationIntegTests&tests.test=testPartialSearchableSnapshotAllocatedToNodesWithCache **Failure excerpt:** ``` java.lang.AssertionError: test leaves persistent cluster metadata behind Expected: an empty collection but: <[cluster.routing.rebalance.enable]> at __randomizedtesting.SeedInfo.seed([93FC1C9EB0FD4E2E:CC12EB84740C7CD0]:0) at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.elasticsearch.test.ESIntegTestCase.afterInternal(ESIntegTestCase.java:569) at org.elasticsearch.test.ESIntegTestCase.cleanUpCluster(ESIntegTestCase.java:2237) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:1004) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java: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:833) ```
https://github.com/elastic/elasticsearch/issues/92147
https://github.com/elastic/elasticsearch/pull/92628
d357a8f165937d76b7d3576bcc87db5b14bc56da
8aa50491359e2a282afeb136895454e8a8266cf9
"2022-12-06T10:45:17Z"
java
"2023-01-03T13:36:04Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,141
["docs/reference/text-structure/apis/find-structure.asciidoc"]
[CI] DocsClientYamlTestSuiteIT test {yaml=reference/text-structure/apis/find-structure/line_264} failing
Test history claims 11 failures in the last 7 days (out of 1410 runs). Tried to reproduce with: /gradlew ':docs:yamlRestTest' --tests "org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT.test {yaml=reference/text-structure/apis/find-structure/line_264}" -Dtests.seed=F6F4911FD6A68833 -Dtests.locale=fr-LU -Dtests.timezone=Poland -Druntime.java=17 But it did not reproduce locally. **Build scan:** https://gradle-enterprise.elastic.co/s/ru5rcbzmtdq6a/tests/:docs:yamlRestTest/org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT/test%20%7Byaml=reference%2Ftext-structure%2Fapis%2Ffind-structure%2Fline_264%7D **Reproduction line:** ``` ./gradlew ':docs:yamlRestTest' --tests "org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT.test {yaml=reference/text-structure/apis/find-structure/line_264}" -Dtests.seed=F6F4911FD6A68833 -Dtests.locale=fr-LU -Dtests.timezone=Poland -Druntime.java=17 ``` **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/text-structure/apis/find-structure/line_264%7D **Failure excerpt:** ``` java.lang.AssertionError: Failure at [reference/text-structure/apis/find-structure:285]: Expected a map containing acknowledged: expected <true> but was <missing> num_lines_analyzed: <unexpected> but was <24> num_messages_analyzed: <unexpected> but was <24> sample_start: <unexpected> but was "{\"release_date\":\"2011-06-02\",\"author\":\"James S.A. Corey\",\"name\":\"Leviathan Wakes\",\"page_count\":561}\n{\"release_date\":\"1989-05-26\",\"author\":\"Dan Simmons\",\"name\":\"Hyperion\",\"page_count\":482}\n" charset: <unexpected> but was "UTF-8" has_byte_order_marker: <unexpected> but was <false> format: <unexpected> but was "ndjson" ecs_compatibility: <unexpected> but was "disabled" timestamp_field: <unexpected> but was "release_date" joda_timestamp_formats: <unexpected> but was <[ISO8601]> java_timestamp_formats: <unexpected> but was <[ISO8601]> need_client_timezone: <unexpected> but was <true> mappings: <unexpected> but was <{properties={@timestamp={type=date}, author={type=keyword}, name={type=keyword}, page_count={type=long}, release_date={type=date, format=iso8601}}}> ingest_pipeline: <unexpected> but was <{description=Ingest pipeline created by text structure finder, processors=[{date={field=release_date, timezone={{ event.timezone }}, formats=[ISO8601]}}]}> field_stats: <unexpected> but was <{author={count=24, cardinality=20, top_hits=[{value=Frank Herbert, count=4}, {value=Robert A. Heinlein, count=2}, {value=Alastair Reynolds, count=1}, {value=Aldous Huxley, count=1}, {value=Dan Simmons, count=1}, {value=Douglas Adams, count=1}, {value=George Orwell, count=1}, {value=Iain M. Banks, count=1}, {value=Isaac Asimov, count=1}, {value=James S.A. Corey, count=1}]}, name={count=24, cardinality=24, top_hits=[{value=1984, count=1}, {value=A Fire Upon the Deep, count=1}, {value=Brave New World, count=1}, {value=Children of Dune, count=1}, {value=Consider Phlebas, count=1}, {value=Dune, count=1}, {value=Dune Messiah, count=1}, {value=Ender's Game, count=1}, {value=Fahrenheit 451, count=1}, {value=Foundation, count=1}]}, page_count={count=24, cardinality=24, min_value=180, max_value=768, mean_value=387.0833333333333, median_value=329.5, top_hits=[{value=180, count=1}, {value=208, count=1}, {value=224, count=1}, {value=227, count=1}, {value=268, count=1}, {value=271, count=1}, {value=275, count=1}, {value=288, count=1}, {value=304, count=1}, {value=311, count=1}]}, release_date={count=24, cardinality=20, earliest=1932-06-01, latest=2011-06-02, top_hits=[{value=1985-06-01, count=3}, {value=1969-06-01, count=2}, {value=1992-06-01, count=2}, {value=1932-06-01, count=1}, {value=1951-06-01, count=1}, {value=1953-10-15, count=1}, {value=1959-12-01, count=1}, {value=1965-06-01, count=1}, {value=1966-04-01, count=1}, {value=1969-10-15, count=1}]}}> at __randomizedtesting.SeedInfo.seed([F6F4911FD6A68833:7EA0AEC5785AE5CB]:0) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:520) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:480) at jdk.internal.reflect.GeneratedMethodAccessor13.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java: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:833) Caused by: java.lang.AssertionError: Expected a map containing acknowledged: expected <true> but was <missing> num_lines_analyzed: <unexpected> but was <24> num_messages_analyzed: <unexpected> but was <24> sample_start: <unexpected> but was "{\"release_date\":\"2011-06-02\",\"author\":\"James S.A. Corey\",\"name\":\"Leviathan Wakes\",\"page_count\":561}\n{\"release_date\":\"1989-05-26\",\"author\":\"Dan Simmons\",\"name\":\"Hyperion\",\"page_count\":482}\n" charset: <unexpected> but was "UTF-8" has_byte_order_marker: <unexpected> but was <false> format: <unexpected> but was "ndjson" ecs_compatibility: <unexpected> but was "disabled" timestamp_field: <unexpected> but was "release_date" joda_timestamp_formats: <unexpected> but was <[ISO8601]> java_timestamp_formats: <unexpected> but was <[ISO8601]> need_client_timezone: <unexpected> but was <true> mappings: <unexpected> but was <{properties={@timestamp={type=date}, author={type=keyword}, name={type=keyword}, page_count={type=long}, release_date={type=date, format=iso8601}}}> ingest_pipeline: <unexpected> but was <{description=Ingest pipeline created by text structure finder, processors=[{date={field=release_date, timezone={{ event.timezone }}, formats=[ISO8601]}}]}> field_stats: <unexpected> but was <{author={count=24, cardinality=20, top_hits=[{value=Frank Herbert, count=4}, {value=Robert A. Heinlein, count=2}, {value=Alastair Reynolds, count=1}, {value=Aldous Huxley, count=1}, {value=Dan Simmons, count=1}, {value=Douglas Adams, count=1}, {value=George Orwell, count=1}, {value=Iain M. Banks, count=1}, {value=Isaac Asimov, count=1}, {value=James S.A. Corey, count=1}]}, name={count=24, cardinality=24, top_hits=[{value=1984, count=1}, {value=A Fire Upon the Deep, count=1}, {value=Brave New World, count=1}, {value=Children of Dune, count=1}, {value=Consider Phlebas, count=1}, {value=Dune, count=1}, {value=Dune Messiah, count=1}, {value=Ender's Game, count=1}, {value=Fahrenheit 451, count=1}, {value=Foundation, count=1}]}, page_count={count=24, cardinality=24, min_value=180, max_value=768, mean_value=387.0833333333333, median_value=329.5, top_hits=[{value=180, count=1}, {value=208, count=1}, {value=224, count=1}, {value=227, count=1}, {value=268, count=1}, {value=271, count=1}, {value=275, count=1}, {value=288, count=1}, {value=304, count=1}, {value=311, count=1}]}, release_date={count=24, cardinality=20, earliest=1932-06-01, latest=2011-06-02, top_hits=[{value=1985-06-01, count=3}, {value=1969-06-01, count=2}, {value=1992-06-01, count=2}, {value=1932-06-01, count=1}, {value=1951-06-01, count=1}, {value=1953-10-15, count=1}, {value=1959-12-01, count=1}, {value=1965-06-01, count=1}, {value=1966-04-01, count=1}, {value=1969-10-15, count=1}]}}> 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:500) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:480) at jdk.internal.reflect.GeneratedMethodAccessor13.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java: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:833) ```
https://github.com/elastic/elasticsearch/issues/92141
https://github.com/elastic/elasticsearch/pull/92144
92d096cd4b4cb7da8a1ccf94ce3775002fcf3ed8
47e573949334c39b986887a5bda7418863dbc233
"2022-12-06T09:55:27Z"
java
"2022-12-06T14:01:45Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,133
["docs/changelog/92762.yaml", "x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/transforms/TransformIndexer.java"]
[Transform] TransformIndexer change detector causes log spam and isn't integrated into retry logic
When transform isn't able to detect changes it logs and audits the following message as warning: `[${transform_id}] failed to detect changes for transform. Skipping update till next check.` On a broken cluster this causes a flood of log messages as this gets logged for every failure. The failure happens based on `frequency`. Apart from the log spam this check isn't properly integrated into retry and failure handlers. The later would prevent the spam. The failure handler lets the transform retry based on exponential back-off. A transform that isn't executed as `unattended` should fail after the configured number of retries (if the number of retries is configured as -1 it should retry forever). The code in question can be found in `sourceHasChanged` (called by `onStart`) in `TransformIndexer` Todo: - [ ] create a failure test case that simulates the error (see details below) - [x] don't suppress the failure in `sourceHasChanged`, but let the error pass and be handled in `TransformFailureHandler` Details: The failure: ``` Caused by: org.elasticsearch.action.search.SearchPhaseExecutionException: Search rejected due to missing shards [[...][0], [...][0]]. Consider using `allow_partial_search_results` setting to bypass this error. at org.elasticsearch.action.search.AbstractSearchAsyncAction.run(AbstractSearchAsyncAction.java:245) ~[elasticsearch-8.5.1.jar:?] ```
https://github.com/elastic/elasticsearch/issues/92133
https://github.com/elastic/elasticsearch/pull/92762
d6373680513e3b38c165920bbac176264db27234
cff3d7b9e9ae5deddef390d77cebfb152221b22f
"2022-12-06T08:20:53Z"
java
"2023-01-11T12:37:21Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,098
["docs/reference/modules/cluster/misc.asciidoc"]
Allocation settings docs also include miscellaneous (unrelated) cluster settings
[This docs page](https://www.elastic.co/guide/en/elasticsearch/reference/8.5/modules-cluster.html) covers various settings related to shard allocation, but everything from the heading `Miscellaneous cluster settings` onwards is unrelated to shard allocation and should probably have its own page.
https://github.com/elastic/elasticsearch/issues/92098
https://github.com/elastic/elasticsearch/pull/92150
f989f0f7ec803d3c6dd8a5af1aea1ce683d0292c
e130617b1b5ada8a0a8c1020f203a3e94ba92c3f
"2022-12-05T13:45:07Z"
java
"2022-12-06T14:29:20Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,092
["docs/changelog/92586.yaml", "libs/grok/src/main/java/org/elasticsearch/grok/GrokCaptureExtracter.java", "libs/grok/src/main/java/org/elasticsearch/grok/GrokCaptureType.java", "libs/grok/src/test/java/org/elasticsearch/grok/GrokTests.java", "modules/ingest-common/src/test/java/org/elasticsearch/ingest/common/GrokProcessorTests.java"]
Grok processor extracts only the first value if there are multiple matches
### Elasticsearch Version 7.17.6, 8.x ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version Doesn't depend on the OS Version ### Problem Description The Grok processor in the elasticsearch ingest pipelines does not extract multiple value that match a group but only the first one. For example the following Grok expression: ``` ^%{IPORHOST:source.address} (%{IPORHOST:source.address} )? ``` when given the following input: ``` "127.0.0.1 127.0.0.2" ``` It should match both values and not only the first one. ### Steps to Reproduce ``` POST /_ingest/pipeline/_simulate { "pipeline": { "description": "_description", "processors": [ { "grok": { "field": "message", "patterns": [ "^%{IPORHOST:source.address} (%{IPORHOST:source.address} )?" ] } } ] }, "docs": [ { "_index": "index", "_id": "id", "_source": { "message": "82.10.222.126 192.168.10.1" } } ] } ``` The `source.addresses` in the response is: ``` { "docs": [ { "doc": { "_index": "index", "_id": "id", "_version": "-3", "_source": { "message": "82.10.222.126 192.168.10.1", "apache": { "access": { "user": { "identity": "jean" } } }, "source": { "address": "82.10.222.126" } }, "_ingest": { "timestamp": "2022-12-01T09:10:24.439912308Z" } } } ] } ``` While the expected value of `source.address` is: ``` { "docs": [ { "doc": { "_index": "index", "_id": "id", "_version": "-3", "_source": { "message": "82.10.222.126 192.168.10.1", "apache": { "access": { "user": { "identity": "jean" } } }, "source": { "address": [ "82.10.222.126", "192.168.10.1" ] } }, "_ingest": { "timestamp": "2022-12-01T09:10:24.439912308Z" } } } ] } ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/92092
https://github.com/elastic/elasticsearch/pull/92586
8fc2d6af4cb8441985b964979ce8096c5d6c33e3
e053f21780b79250adab851011fb41d5f0d3b600
"2022-12-05T12:21:28Z"
java
"2023-01-10T08:44:23Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,037
["server/src/internalClusterTest/java/org/elasticsearch/index/engine/MaxDocsLimitIT.java"]
[CI] MaxDocsLimitIT.testMaxDocsLimit
### CI Link https://gradle-enterprise.elastic.co/s/ttoy2fz7vpo3a/tests/:server:internalClusterTest/org.elasticsearch.index.engine.MaxDocsLimitIT/testMaxDocsLimit ### Repro line `./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.index.engine.MaxDocsLimitIT.testMaxDocsLimit" -Dtests.seed=87A99F29C5284169 -Dtests.locale=es-PR -Dtests.timezone=America/Mazatlan -Druntime.java=17` ### Does it reproduce? Yes ### Applicable branches main ### Failure history https://gradle-enterprise.elastic.co/scans/tests?search.timeZoneId=Europe/Berlin&tests.container=org.elasticsearch.index.engine.MaxDocsLimitIT&tests.test=testMaxDocsLimit# ### Failure excerpt ``` org.elasticsearch.ResourceAlreadyExistsException: index [test/JWxXBgp8T0CNYCD7JwrRlw] already exists at __randomizedtesting.SeedInfo.seed([87A99F29C5284169:39D24887ACAF7B57]:0) at org.elasticsearch.cluster.metadata.MetadataCreateIndexService.validateIndexName(MetadataCreateIndexService.java:175) at org.elasticsearch.cluster.metadata.MetadataCreateIndexService.validate(MetadataCreateIndexService.java:1360) at org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:343) at org.elasticsearch.cluster.metadata.MetadataCreateIndexService$1.execute(MetadataCreateIndexService.java:298) at org.elasticsearch.cluster.service.MasterService$UnbatchedExecutor.execute(MasterService.java:551) at org.elasticsearch.cluster.service.MasterService.innerExecuteTasks(MasterService.java:1052) at org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:1017) at org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:278) at org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:170) at org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:110) at org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:148) at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:850) at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:257) at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:223) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/92037
https://github.com/elastic/elasticsearch/pull/92600
b27e6eb8cabd08139d38e07c960b381ea5147710
c40615c3155a90bd54f68254d183c54df2752367
"2022-12-01T10:29:39Z"
java
"2022-12-30T12:53:35Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
92,032
["docs/changelog/92042.yaml", "modules/transport-netty4/src/main/java/org/elasticsearch/http/netty4/Netty4HttpServerTransport.java", "modules/transport-netty4/src/test/java/org/elasticsearch/http/netty4/Netty4HttpClient.java", "modules/transport-netty4/src/test/java/org/elasticsearch/http/netty4/Netty4HttpServerTransportTests.java"]
Chunked HTTP APIs send (final/empty) chunk in response to HEAD requests
Responses to `HEAD` requests should contain no body, but we send an empty body instead. That's indistinguishable for one-shot APIs, but with chunked encoding this means we send a single empty chunk as a terminator: ``` 00000000 48 45 41 44 20 2f 5f 61 6c 6c 20 48 54 54 50 2f HEAD /_a ll HTTP/ 00000010 31 2e 31 0d 0a 48 6f 73 74 3a 20 6c 6f 63 61 6c 1.1..Hos t: local 00000020 68 6f 73 74 3a 39 32 30 30 0d 0a 41 63 63 65 70 host:920 0..Accep 00000030 74 2d 45 6e 63 6f 64 69 6e 67 3a 20 67 7a 69 70 t-Encodi ng: gzip 00000040 0d 0a 0d 0a .... 00000000 48 54 54 50 2f 31 2e 31 20 32 30 30 20 4f 4b 0d HTTP/1.1 200 OK. 00000010 0a 58 2d 65 6c 61 73 74 69 63 2d 70 72 6f 64 75 .X-elast ic-produ 00000020 63 74 3a 20 45 6c 61 73 74 69 63 73 65 61 72 63 ct: Elas ticsearc 00000030 68 0d 0a 63 6f 6e 74 65 6e 74 2d 74 79 70 65 3a h..conte nt-type: 00000040 20 61 70 70 6c 69 63 61 74 69 6f 6e 2f 6a 73 6f applica tion/jso 00000050 6e 0d 0a 54 72 61 6e 73 66 65 72 2d 45 6e 63 6f n..Trans fer-Enco 00000060 64 69 6e 67 3a 20 63 68 75 6e 6b 65 64 0d 0a 0d ding: ch unked... 00000070 0a 30 0d 0a 0d 0a .0.... ^^ should have stopped here! ``` This became particularly noticeable with https://github.com/elastic/elasticsearch/pull/92016 because `HEAD /<index>` is the recognised way to determine if an index exists, but really this is a general problem with the infrastructure introduced in https://github.com/elastic/elasticsearch/pull/88311.
https://github.com/elastic/elasticsearch/issues/92032
https://github.com/elastic/elasticsearch/pull/92042
d80f4a68afbc49ef6e2defd5f91a298f7825480e
d5ee6ab648f372c8c5ba5f2a3a5f4d6d91235d4a
"2022-11-30T23:25:27Z"
java
"2022-12-01T16:11:29Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
91,965
["server/src/main/java/org/elasticsearch/action/admin/cluster/node/shutdown/NodesRemovalPrevalidation.java", "server/src/main/java/org/elasticsearch/action/admin/cluster/node/shutdown/PrevalidateNodeRemovalRequest.java"]
[CI] MixedClusterClientYamlTestSuiteIT test {p0=cluster.prevalidate_node_removal/10_basic/Prevalidation with non-existing node} failing
**Build scan:** https://gradle-enterprise.elastic.co/s/btzkiuku4g4am/tests/:qa:mixed-cluster:v8.6.0%23mixedClusterTest/org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT/test%20%7Bp0=cluster.prevalidate_node_removal%2F10_basic%2FPrevalidation%20with%20non-existing%20node%7D **Reproduction line:** ``` ./gradlew ':qa:mixed-cluster:v8.6.0#mixedClusterTest' -Dtests.class="org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT" -Dtests.method="test {p0=cluster.prevalidate_node_removal/10_basic/Prevalidation with non-existing node}" -Dtests.seed=740BD306EE3016D3 -Dtests.bwc=true -Dtests.locale=en-CA -Dtests.timezone=Asia/Qyzylorda -Druntime.java=17 ``` **Applicable branches:** main **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT&tests.test=test%20%7Bp0%3Dcluster.prevalidate_node_removal/10_basic/Prevalidation%20with%20non-existing%20node%7D **Failure excerpt:** ``` java.lang.AssertionError: Failure at [cluster.prevalidate_node_removal/10_basic:51]: expected [404] status code but api [_internal.prevalidate_node_removal] returned [503 Service Unavailable] [{"error":{"root_cause":[{"type":"master_not_discovered_exception","reason":null,"stack_trace":"org.elasticsearch.discovery.MasterNotDiscoveredException\n\tat [email protected]/org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction$2.onTimeout(TransportMasterNodeAction.java:316)\n\tat [email protected]/org.elasticsearch.cluster.ClusterStateObserver$ContextPreservingListener.onTimeout(ClusterStateObserver.java:326)\n\tat [email protected]/org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:264)\n\tat [email protected]/org.elasticsearch.cluster.service.ClusterApplierService$NotifyTimeout.run(ClusterApplierService.java:642)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:850)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"}],"type":"master_not_discovered_exception","reason":null,"stack_trace":"org.elasticsearch.discovery.MasterNotDiscoveredException\n\tat [email protected]/org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction$2.onTimeout(TransportMasterNodeAction.java:316)\n\tat [email protected]/org.elasticsearch.cluster.ClusterStateObserver$ContextPreservingListener.onTimeout(ClusterStateObserver.java:326)\n\tat [email protected]/org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:264)\n\tat [email protected]/org.elasticsearch.cluster.service.ClusterApplierService$NotifyTimeout.run(ClusterApplierService.java:642)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:850)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"},"status":503}] Expected: <404> but: was <503> at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:520) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:480) at jdk.internal.reflect.GeneratedMethodAccessor18.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java: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:833) Caused by: java.lang.AssertionError: expected [404] status code but api [_internal.prevalidate_node_removal] returned [503 Service Unavailable] [{"error":{"root_cause":[{"type":"master_not_discovered_exception","reason":null,"stack_trace":"org.elasticsearch.discovery.MasterNotDiscoveredException\n\tat [email protected]/org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction$2.onTimeout(TransportMasterNodeAction.java:316)\n\tat [email protected]/org.elasticsearch.cluster.ClusterStateObserver$ContextPreservingListener.onTimeout(ClusterStateObserver.java:326)\n\tat [email protected]/org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:264)\n\tat [email protected]/org.elasticsearch.cluster.service.ClusterApplierService$NotifyTimeout.run(ClusterApplierService.java:642)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:850)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"}],"type":"master_not_discovered_exception","reason":null,"stack_trace":"org.elasticsearch.discovery.MasterNotDiscoveredException\n\tat [email protected]/org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction$2.onTimeout(TransportMasterNodeAction.java:316)\n\tat [email protected]/org.elasticsearch.cluster.ClusterStateObserver$ContextPreservingListener.onTimeout(ClusterStateObserver.java:326)\n\tat [email protected]/org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:264)\n\tat [email protected]/org.elasticsearch.cluster.service.ClusterApplierService$NotifyTimeout.run(ClusterApplierService.java:642)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:850)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"},"status":503}] Expected: <404> but: was <503> at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.elasticsearch.test.rest.yaml.section.DoSection.assertStatusCode(DoSection.java:527) at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:375) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:500) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:480) at jdk.internal.reflect.GeneratedMethodAccessor18.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java: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:833) ```
https://github.com/elastic/elasticsearch/issues/91965
https://github.com/elastic/elasticsearch/pull/91972
75424c0416ab1440dac39fe6229c50e5e9479ed9
29aea35a9efab3194ef6a33c403b821ebe8bda94
"2022-11-28T12:28:07Z"
java
"2022-11-28T16:25:55Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
91,964
["docs/changelog/93878.yaml", "gradle/verification-metadata.xml", "modules/ingest-attachment/build.gradle", "modules/ingest-attachment/licenses/commons-logging-NOTICE.txt", "modules/ingest-attachment/licenses/jcl-over-slf4j-LICENSE.txt", "modules/ingest-attachment/licenses/jcl-over-slf4j-NOTICE.txt", "modules/ingest-attachment/licenses/slf4j-nop-LICENSE.txt", "modules/ingest-attachment/licenses/slf4j-nop-NOTICE.txt", "modules/ingest-attachment/src/main/config/log4j2.properties"]
Elasticsearch ingest attachment node crashes
### Elasticsearch Version Version: 8.5.2, Build: deb/a846182fa16b4ebfcc89aa3c11a11fd5adf3de04/2022-11-17T18:56:17.538630285Z, JVM: 19.0.1 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version Linux ldc-data04 5.15.0-1023-azure #29~20.04.1-Ubuntu SMP Wed Oct 26 19:18:25 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux ### Problem Description Hey! I wrote a small application for our company which indexes all documents on our file server with the ingest attachment processor. In 7.x (as an extra plugin) it was working fine, since the change to 8.x (buildin ingest attachment) the ingest node crashes every time. The indexer application runs just fine, doesn't get any errors, and the cluster accepts every new document even if the ingest node has crashed. Which makes it hard to find the document that kills the node. The service keeps running, but no new documents can get processed. Also, the log file explodes and has over 30mb, that's a little much for around 5000 successfully indexed documents. At the end are mostly "java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "getenv.*")" exceptions and the last stacktrace is also cutted. [Compressed Logfile](https://github.com/saschanke/logs/blob/main/ldc-elastic.log.gz?raw=true) ### Steps to Reproduce I haven't found the problematic documents yet. It always happens when i reindex the folder and after a while the node crashes. ### Logs (if relevant) ``` [2022-11-24T09:25:23,276][INFO ][o.a.p.h.c.Chunk ] [ldc-data04] Command of type 31 not processed! [2022-11-24T09:25:23,290][WARN ][stderr ] [ldc-data04] The system environment variables are not available to Log4j due to security restrictions: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "getenv.*") [2022-11-24T09:25:23,290][WARN ][stderr ] [ldc-data04] java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "getenv.*") [2022-11-24T09:25:23,291][WARN ][stderr ] [ldc-data04] at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:485) [2022-11-24T09:25:23,291][WARN ][stderr ] [ldc-data04] at java.base/java.security.AccessController.checkPermission(AccessController.java:1068) [2022-11-24T09:25:23,291][WARN ][stderr ] [ldc-data04] at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:411) [2022-11-24T09:25:23,291][WARN ][stderr ] [ldc-data04] at java.base/java.lang.System.getenv(System.java:1198) [2022-11-24T09:25:23,291][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.util.EnvironmentPropertySource.containsProperty(EnvironmentPropertySource.java:99) [2022-11-24T09:25:23,291][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.util.PropertiesUtil$Environment.get(PropertiesUtil.java:513) [2022-11-24T09:25:23,291][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.util.PropertiesUtil$Environment.access$200(PropertiesUtil.java:434) [2022-11-24T09:25:23,291][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.util.PropertiesUtil.getStringProperty(PropertiesUtil.java:382) [2022-11-24T09:25:23,291][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.util.PropertiesUtil.getBooleanProperty(PropertiesUtil.java:169) [2022-11-24T09:25:23,292][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.status.StatusLogger.isDebugPropertyEnabled(StatusLogger.java:143) [2022-11-24T09:25:23,292][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.status.StatusLogger.isEnabled(StatusLogger.java:426) [2022-11-24T09:25:23,292][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.status.StatusLogger.isEnabled(StatusLogger.java:354) [2022-11-24T09:25:23,292][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.spi.AbstractLogger.logIfEnabled(AbstractLogger.java:1914) [2022-11-24T09:25:23,292][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.spi.AbstractLogger.debug(AbstractLogger.java:463) [2022-11-24T09:25:23,292][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.core.appender.rolling.PatternProcessor.formatFileName(PatternProcessor.java:291) [2022-11-24T09:25:23,292][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.core.appender.rolling.PatternProcessor.formatFileName(PatternProcessor.java:278) [2022-11-24T09:25:23,292][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.core.appender.rolling.AbstractRolloverStrategy.getEligibleFiles(AbstractRolloverStrategy.java:94) [2022-11-24T09:25:23,292][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.core.appender.rolling.AbstractRolloverStrategy.getEligibleFiles(AbstractRolloverStrategy.java:87) [2022-11-24T09:25:23,292][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.core.appender.rolling.DefaultRolloverStrategy.rollover(DefaultRolloverStrategy.java:524) [2022-11-24T09:25:23,293][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.core.appender.rolling.RollingFileManager.rollover(RollingFileManager.java:504) [2022-11-24T09:25:23,293][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.core.appender.rolling.RollingFileManager.rollover(RollingFileManager.java:394) [2022-11-24T09:25:23,293][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.core.appender.rolling.RollingFileManager.checkRollover(RollingFileManager.java:308) [2022-11-24T09:25:23,293][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.core.appender.RollingFileAppender.append(RollingFileAppender.java:300) [2022-11-24T09:25:23,293][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.core.config.AppenderControl.tryCallAppender(AppenderControl.java:161) [2022-11-24T09:25:23,293][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.core.config.AppenderControl.callAppender0(AppenderControl.java:134) [2022-11-24T09:25:23,293][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.core.config.AppenderControl.callAppenderPreventRecursion(AppenderControl.java:125) [2022-11-24T09:25:23,293][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:89) [2022-11-24T09:25:23,293][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.core.config.LoggerConfig.callAppenders(LoggerConfig.java:675) [2022-11-24T09:25:23,293][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.core.config.LoggerConfig.processLogEvent(LoggerConfig.java:633) [2022-11-24T09:25:23,293][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:616) [2022-11-24T09:25:23,294][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:552) [2022-11-24T09:25:23,294][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.core.config.AwaitCompletionReliabilityStrategy.log(AwaitCompletionReliabilityStrategy.java:82) [2022-11-24T09:25:23,294][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.core.Logger.log(Logger.java:161) [2022-11-24T09:25:23,294][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.spi.AbstractLogger.logMessage(AbstractLogger.java:2106) [2022-11-24T09:25:23,294][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.internal.DefaultLogBuilder.logMessage(DefaultLogBuilder.java:234) [2022-11-24T09:25:23,294][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.internal.DefaultLogBuilder.log(DefaultLogBuilder.java:162) [2022-11-24T09:25:23,294][WARN ][stderr ] [ldc-data04] at org.apache.poi.hdgf.chunks.Chunk.processCommands(Chunk.java:184) [2022-11-24T09:25:23,294][WARN ][stderr ] [ldc-data04] at org.apache.poi.hdgf.chunks.ChunkFactory.createChunk(ChunkFactory.java:207) [2022-11-24T09:25:23,294][WARN ][stderr ] [ldc-data04] at org.apache.poi.hdgf.streams.ChunkStream.findChunks(ChunkStream.java:66) [2022-11-24T09:25:23,294][WARN ][stderr ] [ldc-data04] at org.apache.poi.hdgf.streams.PointerContainingStream.findChildren(PointerContainingStream.java:70) [2022-11-24T09:25:23,294][WARN ][stderr ] [ldc-data04] at org.apache.poi.hdgf.streams.PointerContainingStream.findChildren(PointerContainingStream.java:77) [2022-11-24T09:25:23,294][WARN ][stderr ] [ldc-data04] at org.apache.poi.hdgf.streams.PointerContainingStream.findChildren(PointerContainingStream.java:77) [2022-11-24T09:25:23,294][WARN ][stderr ] [ldc-data04] at org.apache.poi.hdgf.HDGFDiagram.<init>(HDGFDiagram.java:89) [2022-11-24T09:25:23,294][WARN ][stderr ] [ldc-data04] at org.apache.poi.hdgf.extractor.VisioTextExtractor.<init>(VisioTextExtractor.java:52) [2022-11-24T09:25:23,294][WARN ][stderr ] [ldc-data04] at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:232) [2022-11-24T09:25:23,295][WARN ][stderr ] [ldc-data04] at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:175) [2022-11-24T09:25:23,295][WARN ][stderr ] [ldc-data04] at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:298) [2022-11-24T09:25:23,295][WARN ][stderr ] [ldc-data04] at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:180) [2022-11-24T09:25:23,295][WARN ][stderr ] [ldc-data04] at org.apache.tika.parser.DelegatingParser.parse(DelegatingParser.java:71) [2022-11-24T09:25:23,295][WARN ][stderr ] [ldc-data04] at org.apache.tika.extractor.ParsingEmbeddedDocumentExtractor.parseEmbedded(ParsingEmbeddedDocumentExtractor.java:108) [2022-11-24T09:25:23,295][WARN ][stderr ] [ldc-data04] at org.apache.tika.parser.microsoft.ooxml.AbstractOOXMLExtractor.handleEmbeddedFile(AbstractOOXMLExtractor.java:406) [2022-11-24T09:25:23,295][WARN ][stderr ] [ldc-data04] at org.apache.tika.parser.microsoft.ooxml.AbstractOOXMLExtractor.handleEmbeddedOLE(AbstractOOXMLExtractor.java:351) [2022-11-24T09:25:23,295][WARN ][stderr ] [ldc-data04] at org.apache.tika.parser.microsoft.ooxml.AbstractOOXMLExtractor.handleEmbeddedPart(AbstractOOXMLExtractor.java:267) [2022-11-24T09:25:23,295][WARN ][stderr ] [ldc-data04] at org.apache.tika.parser.microsoft.ooxml.AbstractOOXMLExtractor.handleEmbeddedParts(AbstractOOXMLExtractor.java:217) [2022-11-24T09:25:23,295][WARN ][stderr ] [ldc-data04] at org.apache.tika.parser.microsoft.ooxml.AbstractOOXMLExtractor.getXHTML(AbstractOOXMLExtractor.java:138) [2022-11-24T09:25:23,295][WARN ][stderr ] [ldc-data04] at org.apache.tika.parser.microsoft.ooxml.OOXMLExtractorFactory.parse(OOXMLExtractorFactory.java:242) [2022-11-24T09:25:23,295][WARN ][stderr ] [ldc-data04] at org.apache.tika.parser.microsoft.ooxml.OOXMLParser.parse(OOXMLParser.java:115) [2022-11-24T09:25:23,295][WARN ][stderr ] [ldc-data04] at org.apache.tika.parser.ParserDecorator.parse(ParserDecorator.java:152) [2022-11-24T09:25:23,295][WARN ][stderr ] [ldc-data04] at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:298) [2022-11-24T09:25:23,295][WARN ][stderr ] [ldc-data04] at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:180) [2022-11-24T09:25:23,295][WARN ][stderr ] [ldc-data04] at org.apache.tika.Tika.parseToString(Tika.java:525) [2022-11-24T09:25:23,295][WARN ][stderr ] [ldc-data04] at org.elasticsearch.ingest.attachment.TikaImpl.lambda$parse$0(TikaImpl.java:97) [2022-11-24T09:25:23,295][WARN ][stderr ] [ldc-data04] at java.base/java.security.AccessController.doPrivileged(AccessController.java:712) [2022-11-24T09:25:23,295][WARN ][stderr ] [ldc-data04] at org.elasticsearch.ingest.attachment.TikaImpl.parse(TikaImpl.java:96) [2022-11-24T09:25:23,295][WARN ][stderr ] [ldc-data04] at org.elasticsearch.ingest.attachment.AttachmentProcessor.execute(AttachmentProcessor.java:116) [2022-11-24T09:25:23,296][WARN ][stderr ] [ldc-data04] at [email protected]/org.elasticsearch.ingest.CompoundProcessor.innerExecute(CompoundProcessor.java:174) [2022-11-24T09:25:23,296][WARN ][stderr ] [ldc-data04] at [email protected]/org.elasticsearch.ingest.CompoundProcessor.execute(CompoundProcessor.java:152) [2022-11-24T09:25:23,296][WARN ][stderr ] [ldc-data04] at [email protected]/org.elasticsearch.ingest.Pipeline.execute(Pipeline.java:129) [2022-11-24T09:25:23,296][WARN ][stderr ] [ldc-data04] at [email protected]/org.elasticsearch.ingest.IngestDocument.executePipeline(IngestDocument.java:831) [2022-11-24T09:25:23,296][WARN ][stderr ] [ldc-data04] at [email protected]/org.elasticsearch.ingest.IngestService.innerExecute(IngestService.java:895) [2022-11-24T09:25:23,296][WARN ][stderr ] [ldc-data04] at [email protected]/org.elasticsearch.ingest.IngestService.executePipelines(IngestService.java:745) [2022-11-24T09:25:23,296][WARN ][stderr ] [ldc-data04] at [email protected]/org.elasticsearch.ingest.IngestService$1.doRun(IngestService.java:707) [2022-11-24T09:25:23,296][WARN ][stderr ] [ldc-data04] at [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:892) [2022-11-24T09:25:23,296][WARN ][stderr ] [ldc-data04] at [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) [2022-11-24T09:25:23,296][WARN ][stderr ] [ldc-data04] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) [2022-11-24T09:25:23,296][WARN ][stderr ] [ldc-data04] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) [2022-11-24T09:25:23,296][WARN ][stderr ] [ldc-data04] at java.base/java.lang.Thread.run(Thread.java:1589) [2022-11-24T09:25:23,296][WARN ][stderr ] [ldc-data04] The system environment variables are not available to Log4j due to security restrictions: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "getenv.*") [2022-11-24T09:25:23,297][WARN ][stderr ] [ldc-data04] java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "getenv.*") [2022-11-24T09:25:23,297][WARN ][stderr ] [ldc-data04] at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:485) [2022-11-24T09:25:23,297][WARN ][stderr ] [ldc-data04] at java.base/java.security.AccessController.checkPermission(AccessController.java:1068) [2022-11-24T09:25:23,297][WARN ][stderr ] [ldc-data04] at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:411) [2022-11-24T09:25:23,297][WARN ][stderr ] [ldc-data04] at java.base/java.lang.System.getenv(System.java:1198) [2022-11-24T09:25:23,297][WARN ][stderr ] [ldc-data04] at [email protected]/org.apache.logging.log4j.util.EnvironmentPropertySource.containsProperty(EnvironmentPropertySource.java:99) ```
https://github.com/elastic/elasticsearch/issues/91964
https://github.com/elastic/elasticsearch/pull/93878
c63d0afb210e2edb9d5d95c36b05f763ea6161f2
7ae08e2257864dbcf0d435282c36d57f79858500
"2022-11-28T12:24:24Z"
java
"2023-02-27T14:53:55Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
91,952
["docs/changelog/92192.yaml", "modules/repository-gcs/src/internalClusterTest/java/org/elasticsearch/repositories/gcs/ForwardedViaProxyHandler.java", "modules/repository-gcs/src/internalClusterTest/java/org/elasticsearch/repositories/gcs/GcsProxyIntegrationTests.java", "modules/repository-gcs/src/internalClusterTest/java/org/elasticsearch/repositories/gcs/WebProxyServer.java", "modules/repository-gcs/src/main/java/org/elasticsearch/repositories/gcs/GoogleCloudStorageClientSettings.java", "modules/repository-gcs/src/main/java/org/elasticsearch/repositories/gcs/GoogleCloudStorageService.java", "modules/repository-gcs/src/test/java/org/elasticsearch/repositories/gcs/GoogleCloudStorageClientSettingsTests.java", "modules/repository-gcs/src/test/java/org/elasticsearch/repositories/gcs/GoogleCloudStorageServiceTests.java", "modules/repository-gcs/src/test/java/org/elasticsearch/repositories/gcs/MockHttpProxyServer.java", "modules/repository-gcs/src/test/java/org/elasticsearch/repositories/gcs/MockHttpProxyServerTests.java"]
HTTP proxy settings are not consistently configured in the GCS client
### Elasticsearch Version 8.x (any version where we have added support for proxies with a GCS repo) ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version N/A ### Problem Description When configuring a GCS repository with HTTP proxy settings ([doc](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/repository-gcs.html#repository-gcs-client)), we do not pass along the proxy settings to other `HttpTransportOptions` instances that we create. This can lead to timeout errors when the GCS Client tries to get a token, with the following error message: ``` Error getting access token for service account: Connect timed out, iss: ... ``` The workaround is to set the HTTP proxy settings on the JVM level rather than when defining the GCS repository, using `java.net.useSystemProxies` or `http.proxyHost`/`http.proxyPort`. ### Steps to Reproduce [Setting up a GCS repository](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/repository-gcs.html) with HTTP proxy settings (while every other non-proxied GCP call is blocked) could lead to this issue. ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/91952
https://github.com/elastic/elasticsearch/pull/92192
f2f34c9955bc0c5de9181f625abc85cf40fa01b6
b3ff847da1972efa079bf7aae8d844d1203c536d
"2022-11-28T09:04:43Z"
java
"2023-02-14T09:08:46Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
91,944
["docs/changelog/92920.yaml", "plugins/mapper-annotated-text/src/main/java/org/elasticsearch/index/mapper/annotatedtext/AnnotatedPassageFormatter.java", "plugins/mapper-annotated-text/src/test/java/org/elasticsearch/index/mapper/annotatedtext/AnnotatedTextHighlighterTests.java"]
Annotated highlight not maching when search contains both annotation and annotated term
### Elasticsearch Version v8.5.2 ### Installed Plugins mapper-annotated-text ### Java Version _bundled_ ### OS Version Linux 5.15.0-52-generic #58~20.04.1-Ubuntu SMP Thu Oct 13 13:09:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux ### Problem Description Hi, We use the `mapper-annotated-text` plugin in production to tag named-entities and found an particularly bad behavior during highlighting. Basically, if we have a text `aaaa [bbbb cccc](annotated) dddd`, and search for `bbbb annotated` we'll get the highlight `aaaa [bbbb](_hit_term=bbbb) cccc dddd` where we'd expect `bbbb cccc` due to `annotated` being in the query too. On the other hand, searching for `cccc annotated` produces the expected result of `aaaa [bbbb cccc](_hit_term=annotated&annotated) dddd`. This happens because the annotation process receives the passage matches sorted by ascending offset order, and when a match overlaps with a previously seen one, it ignores it. So in the first case, it sees `bbbb` first and when it sees `annotated` it discards it because it overlaps with `bbbb`. On the latter case, `cccc` is the one discarded since it appears later in the list of offsets. We've prototype a fix in [this branch](https://github.com/jusbrasil/elasticsearch/commit/aef49112d8795fac3d0425e2f810f1820c9a3d5e) and would be glad to iterate on it and advance with a PR if this is considered as an issue. ### Steps to Reproduce ``` PUT example { "mappings": { "properties": { "body": { "type": "annotated_text" } } } } POST example/_doc { "body": "aaaa [bbbb cccc](annotated) dddd" } POST example/_search { "query": { "match_all": {} }, "highlight": { "type": "annotated", "order": "score", "fields": { "body": { "highlight_query": { "bool": { "must": { "match": { "body": { "query": "bbbb annotated" } } } } } } } } } ``` ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/91944
https://github.com/elastic/elasticsearch/pull/92920
62028e40ee32d92237929d5a8d49bbc59a5ee198
09ccaa02b86fcb1161f9f5c154e456f6163e2a39
"2022-11-25T17:24:40Z"
java
"2023-01-23T13:15:46Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
91,950
["docs/reference/docs/bulk.asciidoc"]
[Docs] Bulk API doc is missing required index privilege for optional refresh argument
The Bulk API has an optional argument `refresh` that issues a call to `/index/_refresh` after completion of indexing documents. When using Elasticsearch authentication, specifying `refresh: true` will fail if the authorization context is missing one of the required index privileges `[maintenance,manage,all]`. Example of code that will trigger a 403: ``` client.BulkAll(batch, b => b .Index("index") .Pipeline("pipeline") .RefreshOnCompleted(); ``` The [Bulk prerequisites](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html#docs-bulk-api-prereqs) should be updated to specify this requirement when using the refresh argument. ``` One or more errors occurred. (Refreshing after all documents have indexed failed) ( Request failed to execute. Call: Status code 403 from: POST /redacted/_refresh. ServerError: Type: security_exception Reason: "action [indices:admin/refresh] is unauthorized for user [redacted] with roles [redacted], this action is granted by the index privileges [maintenance,manage,all]" ) --- End of inner exception stack trace --- ```
https://github.com/elastic/elasticsearch/issues/91950
https://github.com/elastic/elasticsearch/pull/92237
f2c20c87f4520132f7a7acb2450afffda767890b
0f9ccbd30ee0294fbec906c76e476731af796195
"2022-11-25T08:39:54Z"
java
"2022-12-12T15:06:16Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
91,889
["docs/plugins/plugin-script.asciidoc"]
[docs] Elasticsearch plugin update/upgrade section missing in the documentation
### Problem Description The Elasticsearch documentation for the plugin management at https://www.elastic.co/guide/en/elasticsearch/reference/8.5/modules-plugins.html links to the "Plugins and Integration" documentation at https://www.elastic.co/guide/en/elasticsearch/plugins/8.5/listing-removing-updating.html. The title says `Listing, Removing and Updating Installed Plugins` but the page does not contain a section about how to update/upgrade plugins. This is missing in the 8.5 documentation and the 7.17 branch. I think this should be corrected and backported. <img width="1241" alt="Screenshot 2022-11-24 at 13 25 14" src="https://user-images.githubusercontent.com/55087308/203784103-d3efa05b-33ed-4c63-b832-919b9f611748.png">
https://github.com/elastic/elasticsearch/issues/91889
https://github.com/elastic/elasticsearch/pull/91976
d3fbb3efe65c060f35734ee6a9b3d650b602da29
f2512d4694b8b13cab3bbc7d376c8395687c137d
"2022-11-24T12:25:34Z"
java
"2022-11-29T17:40:01Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
91,893
["docs/changelog/91917.yaml", "x-pack/plugin/ml/qa/ml-with-security/build.gradle", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/MachineLearningUsageTransportAction.java", "x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/ml/jobs_get_stats.yml"]
.ml indices that are closed prevent Kibana monitoring from displaying.
### Elasticsearch Version 8.3.3, 8.4.3 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version any ### Problem Description .ml indices that are closed prevent Kibana monitoring from displaying. Using the GET _ml/anomaly_detectors/_stats endpoint: ``` { "error": { "root_cause": [ { "type": "cluster_block_exception", "reason": "index [.ml-anomalies-shared] blocked by: [FORBIDDEN/4/index closed];" } ], "type": "cluster_block_exception", "reason": "index [.ml-anomalies-shared] blocked by: [FORBIDDEN/4/index closed];" }, "status": 403 } ``` ### Steps to Reproduce (Reproduced) 1. Started with the closed .ml indices. (In ESS) Run a plan to change Logging and Monitoring to send to itself (self-monitoring), not a dedicated monitoring cluster. 2. Plan change completed but the cluster's Stack Monitoring page would not render any data, it shows the message that you need to enable it in the console. 3. Opened the .ml* indices and the Stack Monitoring data is displayed. ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/91893
https://github.com/elastic/elasticsearch/pull/91917
7dbc1ea36e258ed718db3adc94c2b8a77aa9d78f
2d74bb795f1e7619a806aad3059eafec677a36b6
"2022-11-22T16:41:01Z"
java
"2022-11-24T17:53:15Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
91,814
["x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/cache/full/CacheService.java"]
[CI] CacheServiceTests testProcessShardEviction failing
**Build scan:** https://gradle-enterprise.elastic.co/s/xow72etevme2m/tests/:x-pack:plugin:searchable-snapshots:test/org.elasticsearch.xpack.searchablesnapshots.cache.full.CacheServiceTests/testProcessShardEviction **Reproduction line:** ``` ./gradlew ':x-pack:plugin:searchable-snapshots:test' --tests "org.elasticsearch.xpack.searchablesnapshots.cache.full.CacheServiceTests.testProcessShardEviction" -Dtests.seed=4A4817D6257EF2CB -Dtests.locale=fi-FI -Dtests.timezone=America/Argentina/San_Luis -Druntime.java=17 ``` **Applicable branches:** 8.5 **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.searchablesnapshots.cache.full.CacheServiceTests&tests.test=testProcessShardEviction **Failure excerpt:** ``` java.lang.AssertionError: (No message provided) at __randomizedtesting.SeedInfo.seed([4A4817D6257EF2CB:B2D9476556ADF10]:0) at org.junit.Assert.fail(Assert.java:86) at org.junit.Assert.assertTrue(Assert.java:41) at org.junit.Assert.assertTrue(Assert.java:52) at org.elasticsearch.xpack.searchablesnapshots.cache.full.CacheServiceTests.testProcessShardEviction(CacheServiceTests.java:324) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java: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:833) ```
https://github.com/elastic/elasticsearch/issues/91814
https://github.com/elastic/elasticsearch/pull/91855
3ad3ad4a73011bf3be50d8b637528f31d3d8dadd
1c6d9a90be5ebea22d89d847e5c927d6d87a4310
"2022-11-22T15:44:46Z"
java
"2022-11-23T15:02:19Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
91,758
["docs/reference/alias.asciidoc", "docs/reference/data-streams/change-mappings-and-settings.asciidoc"]
Elasticsearch - Document how to update or add an alias to a data stream
To change the alias of a data stream, one would need to use [the Alias API](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html#indices-aliases) to do so, but it's not clearly indicated in [the data stream documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html), and it would be nice if it was added in the drop down list or referenced somewhere more intuitively: ![image](https://user-images.githubusercontent.com/94469565/203064082-feccc822-cb06-49cd-9646-5495d18838e6.png) Ideally, a new section could be created titled "Modify a data stream" that would contain the general "How To's" of data streams, and contain a reference to the Alias API documentation on how to modify aliases, amongst others.
https://github.com/elastic/elasticsearch/issues/91758
https://github.com/elastic/elasticsearch/pull/94110
3205d1f5a0ce91fd3264e43cd9c510b22ee081ca
ccc2d94baff30606b92997f1595cd4f35e980831
"2022-11-21T13:19:58Z"
java
"2023-03-21T14:34:00Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
91,728
["x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/utils/NativeMemoryCalculator.java"]
NativeMemoryCalculatorTests » testActualNodeSizeCalculationConsistency
### CI Link https://gradle-enterprise.elastic.co/s/znzaabr7xk2nq ### Repro line ``` ./gradlew ':x-pack:plugin:ml:test' --tests "org.elasticsearch.xpack.ml.utils.NativeMemoryCalculatorTests.testActualNodeSizeCalculationConsistency" -Dtests.seed=A70DC496F83A52CF ``` ### Does it reproduce? Yes ### Applicable branches main ### Failure history _No response_ ### Failure excerpt ```java org.elasticsearch.xpack.ml.utils.NativeMemoryCalculatorTests > testActualNodeSizeCalculationConsistency FAILED java.lang.AssertionError: native memory [113246208] smaller than original native memory [113669306] Expected: a value equal to or greater than <113669305L> but: <113246208L> was less than <113669305L> at __randomizedtesting.SeedInfo.seed([A70DC496F83A52CF:8204CD95D7187768]:0) at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.elasticsearch.xpack.ml.utils.NativeMemoryCalculatorTests.lambda$testActualNodeSizeCalculationConsistency$0(NativeMemoryCalculatorTests.java:170) at org.elasticsearch.xpack.ml.utils.NativeMemoryCalculatorTests.testActualNodeSizeCalculationConsistency(NativeMemoryCalculatorTests.java:207) ```
https://github.com/elastic/elasticsearch/issues/91728
https://github.com/elastic/elasticsearch/pull/91732
dc8ed67c0c88ae981d85234c6b7b0e21e324a747
c21bd63cbfdc02eaa3f918546ea43c71765063ea
"2022-11-18T21:46:30Z"
java
"2022-11-21T08:17:08Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
91,609
["server/src/test/java/org/elasticsearch/plugins/UberModuleClassLoaderTests.java", "test/framework/src/main/java/org/elasticsearch/test/compiler/InMemoryJavaCompiler.java"]
[CI] UberModuleClassLoaderTests failing
### CI Link https://gradle-enterprise.elastic.co/s/jfyygdphnhmu6 ### Repro line ./gradlew ':server:test' --tests "org.elasticsearch.plugins.UberModuleClassLoaderTests" -Dtests.seed=A39D03284C84C6A2 -Dtests.locale=en-US -Dtests.timezone=Atlantic/Reykjavik -Druntime.java=19 ### Does it reproduce? No ### Applicable branches main ### Failure history https://gradle-enterprise.elastic.co/scans/tests?search.timeZoneId=Europe/Bucharest&tests.container=org.elasticsearch.plugins.UberModuleClassLoaderTests&tests.test=classMethod ### Failure excerpt ``` 2> java.io.IOException: Could not remove the following files (in the order of attempts): C:\Users\jenkins\workspace\platform-support\479\server\build\testrun\test\temp\org.elasticsearch.plugins.UberModuleClassLoaderTests_A39D03284C84C6A2-001\libs-002: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\479\server\build\testrun\test\temp\org.elasticsearch.plugins.UberModuleClassLoaderTests_A39D03284C84C6A2-001\libs-002 C:\Users\jenkins\workspace\platform-support\479\server\build\testrun\test\temp\org.elasticsearch.plugins.UberModuleClassLoaderTests_A39D03284C84C6A2-001\libs-002\parent.jar: java.nio.file.AccessDeniedException: C:\Users\jenkins\workspace\platform-support\479\server\build\testrun\test\temp\org.elasticsearch.plugins.UberModuleClassLoaderTests_A39D03284C84C6A2-001\libs-002\parent.jar C:\Users\jenkins\workspace\platform-support\479\server\build\testrun\test\temp\org.elasticsearch.plugins.UberModuleClassLoaderTests_A39D03284C84C6A2-001\libs-002\optional.jar: java.nio.file.AccessDeniedException: C:\Users\jenkins\workspace\platform-support\479\server\build\testrun\test\temp\org.elasticsearch.plugins.UberModuleClassLoaderTests_A39D03284C84C6A2-001\libs-002\optional.jar C:\Users\jenkins\workspace\platform-support\479\server\build\testrun\test\temp\org.elasticsearch.plugins.UberModuleClassLoaderTests_A39D03284C84C6A2-001\libs-002\modular.jar: java.nio.file.AccessDeniedException: C:\Users\jenkins\workspace\platform-support\479\server\build\testrun\test\temp\org.elasticsearch.plugins.UberModuleClassLoaderTests_A39D03284C84C6A2-001\libs-002\modular.jar C:\Users\jenkins\workspace\platform-support\479\server\build\testrun\test\temp\org.elasticsearch.plugins.UberModuleClassLoaderTests_A39D03284C84C6A2-001\libs-002\non-modular.jar: java.nio.file.AccessDeniedException: C:\Users\jenkins\workspace\platform-support\479\server\build\testrun\test\temp\org.elasticsearch.plugins.UberModuleClassLoaderTests_A39D03284C84C6A2-001\libs-002\non-modular.jar C:\Users\jenkins\workspace\platform-support\479\server\build\testrun\test\temp\org.elasticsearch.plugins.UberModuleClassLoaderTests_A39D03284C84C6A2-001: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\479\server\build\testrun\test\temp\org.elasticsearch.plugins.UberModuleClassLoaderTests_A39D03284C84C6A2-001 at __randomizedtesting.SeedInfo.seed([A39D03284C84C6A2]: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.base/java.lang.Thread.run(Thread.java:1589) 2> REPRODUCE WITH: gradlew ':server:test' --tests "org.elasticsearch.plugins.UberModuleClassLoaderTests" -Dtests.seed=A39D03284C84C6A2 -Dtests.locale=en-US -Dtests.timezone=Atlantic/Reykjavik -Druntime.java=19 2> NOTE: test params are: codec=Lucene94, sim=Asserting(RandomSimilarity(queryNorm=true): {}), locale=sq-AL, timezone=Asia/Manila 2> NOTE: Windows Server 2012 R2 6.3 amd64/Oracle Corporation 19.0.1 (64-bit)/cpus=32,threads=1,free=331172344,total=536870912 ```
https://github.com/elastic/elasticsearch/issues/91609
https://github.com/elastic/elasticsearch/pull/97123
6e7bc276222ea39cc655986373e745c9e135bd2f
178769bc85db42779459ece13cd4281738d64f14
"2022-11-16T11:00:42Z"
java
"2023-06-27T17:32:54Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
91,592
["docs/changelog/91615.yaml", "modules/data-streams/src/javaRestTest/java/org/elasticsearch/datastreams/TsdbDataStreamRestIT.java", "server/src/main/java/org/elasticsearch/cluster/metadata/MetadataIndexTemplateService.java", "server/src/test/java/org/elasticsearch/cluster/metadata/MetadataIndexTemplateServiceTests.java"]
Error when updating component template when index template has `"index.mode=time_series"`
While working on a Fleet [feature](https://github.com/elastic/kibana/issues/144530) came across an issue: In Fleet, added `index.mode=time_series` setting to `metrics-system.cpu` Index Template, and relying on [ES automation](https://github.com/elastic/elasticsearch/pull/86790) to fill the `routing_path` field. This worked fine regards to generating the `routing_path` field in the data streams. However, when subsequently trying to update a parent `metrics-system.cpu@custom` Component Template, I ran into an issue saying that the resulting template is invalid, see error below. After discussing with @martijnvg on Slack, the conclusion was that this should be fixed in elasticsearch: When the put component template api validates an index template that a component template it is updating is using, we should generate the routing path as well. Also, the update should fail if there are no dimension fields in the mappings. Error message: ``` { "name": "ResponseError", "meta": { "body": { "error": { "root_cause": [ { "type": "illegal_argument_exception", "reason": "updating component template [metrics-system.cpu@custom] results in invalid composable template [metrics-system.cpu] after templates are merged" } ], "type": "illegal_argument_exception", "reason": "updating component template [metrics-system.cpu@custom] results in invalid composable template [metrics-system.cpu] after templates are merged", "caused_by": { "type": "illegal_argument_exception", "reason": "[index.mode=time_series] requires a non-empty [index.routing_path]" } }, "status": 400 }, "statusCode": 400, "headers": { "x-opaque-id": "59e2d33e-d6c8-4ed4-8d4a-14c412f64871;kibana::management:", "x-elastic-product": "Elasticsearch", "content-type": "application/json;charset=utf-8", "content-length": "549" }, "meta": { "context": null, "request": { "params": { "method": "PUT", "path": "/_component_template/metrics-system.cpu%40custom", "body": "{\"template\":{\"settings\":{},\"mappings\":{\"properties\":{\"dummy\":{\"type\":\"text\"}}}},\"_meta\":{\"package\":{\"name\":\"system\"},\"managed_by\":\"fleet\",\"managed\":true}}", "querystring": "", "headers": { "user-agent": "Kibana/8.6.0", "x-elastic-product-origin": "kibana", "authorization": "Basic ZWxhc3RpYzpjaGFuZ2VtZQ==", "x-opaque-id": "59e2d33e-d6c8-4ed4-8d4a-14c412f64871;kibana::management:", "x-elastic-client-meta": "es=8.4.0p,js=16.18.1,t=8.2.0,hc=16.18.1", "content-type": "application/vnd.elasticsearch+json; compatible-with=8", "accept": "application/vnd.elasticsearch+json; compatible-with=8", "content-length": "154" } }, "options": { "opaqueId": "59e2d33e-d6c8-4ed4-8d4a-14c412f64871;kibana::management:", "headers": { "x-elastic-product-origin": "kibana", "user-agent": "Kibana/8.6.0", "authorization": "Basic ZWxhc3RpYzpjaGFuZ2VtZQ==", "x-opaque-id": "59e2d33e-d6c8-4ed4-8d4a-14c412f64871", "x-elastic-client-meta": "es=8.4.0p,js=16.18.1,t=8.2.0,hc=16.18.1" } }, "id": 2 }, "name": "elasticsearch-js", "connection": { "url": "http://localhost:9200/", "id": "http://localhost:9200/", "headers": {}, "status": "alive" }, "attempts": 0, "aborted": false }, "warnings": null } } ``` <img width="1536" alt="image" src="https://user-images.githubusercontent.com/90178898/201917776-361e905c-851a-47c5-8348-da6d3509bf37.png"> <img width="1608" alt="image" src="https://user-images.githubusercontent.com/90178898/201918150-c0fa7bb0-3d3d-45b9-8d4f-8dd9860f18c4.png"> _Originally posted by @juliaElastic in https://github.com/elastic/elasticsearch/issues/74660#issuecomment-1315232668_
https://github.com/elastic/elasticsearch/issues/91592
https://github.com/elastic/elasticsearch/pull/91615
53e500db539a52bb714c9ec7dd27de52032ba69a
6a240b9e23d9f169e65dc531263cac8b29e4d000
"2022-11-15T15:10:15Z"
java
"2022-11-22T10:55:22Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
91,550
["docs/changelog/91622.yaml", "x-pack/plugin/transform/qa/multi-cluster-tests-with-security/src/test/resources/rest-api-spec/test/multi_cluster/80_transform.yml", "x-pack/plugin/transform/qa/multi-cluster-tests-with-security/src/test/resources/rest-api-spec/test/remote_cluster/80_transform.yml", "x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/checkpoint/DefaultCheckpointProvider.java", "x-pack/plugin/transform/src/test/java/org/elasticsearch/xpack/transform/checkpoint/DefaultCheckpointProviderTests.java"]
[Transform] Transform can fail resolving indices from CCS clusters
**Affected version:** 8.2 - 8.5.2 **Fixed in:** 8.5.3 ### Problem Description The problem applies to transforms that use more than 1 CCS cluster or 1 local and 1 CCS as source. A typical source could look like this (the important part: `remotes*`): ``` "index" : [ "remotes*:filebeat*" ], ``` If 2 indices share the same name the transform might fail with an error similar to this: ``` Failed to retrieve checkpoint due to: Duplicate key logs-2022-11-14 (attempted merging values [... and ...] ``` Similar to the above the `_stats` call is broken for such a transform, it can fail with an error message starting with: ``` Failure during checkpoint retrieval ``` This can happen even if the transform is in state `STOPPED` or `FAILED`. ### Mitigation Choose _one_ of the following mitigations: - split your transforms to use max 1 CCS/local indices _or_ - avoid upgrading to 8.2, until the issue got resolved (this is a regression of #80984) _or_ - avoid duplicate names for your indices even on remote cluster, e.g. name the index: `remote1-filebeat...`, `remote2-filebeat...` ### Solution This is a regression of #80984 which introduced a new way of check-pointing. The remote needs to be prefixed to the index name.
https://github.com/elastic/elasticsearch/issues/91550
https://github.com/elastic/elasticsearch/pull/91622
312a0e2b2bf0648131ef2d0bf24f6adeb5c2d2c6
4c521d069e2dbc159dd913a8d0f644247bc8afe1
"2022-11-14T13:32:10Z"
java
"2022-11-18T14:31:48Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
91,517
["docs/changelog/91659.yaml", "server/src/main/java/org/elasticsearch/cluster/routing/allocation/allocator/DesiredBalanceReconciler.java", "server/src/test/java/org/elasticsearch/cluster/routing/allocation/allocator/DesiredBalanceReconcilerTests.java", "server/src/test/java/org/elasticsearch/cluster/routing/allocation/allocator/DesiredBalanceShardsAllocatorTests.java"]
[CI] rolling-upgrade-multi-cluster tests failing to start node
I've seen three builds fail now witht he same error and this started happening on Nov 7 so it's likely we've introduced something here: https://gradle-enterprise.elastic.co/scans/failures?failures.failureClassification=all_failures&failures.failureMessage=Execution%20failed%20for%20task%20%27:x-pack:qa:rolling-upgrade-multi-cluster:v8.6.0%23follower%23oneThirdUpgradedTest%27.%0A%3E%20%60cluster%7B:x-pack:qa:rolling-upgrade-multi-cluster:v8.6.0-follower%7D%60%20failed%20to%20wait%20for%20cluster%20health%20yellow%20after%2040%20SECONDS%0A%20%20%20%20IO%20error%20while%20waiting%20cluster%0A%20%20%20%20%20%20503%20Service%20Unavailable&search.relativeStartTime=P28D&search.timeZoneId=America/Los_Angeles# ``` * What went wrong: Execution failed for task ':x-pack:qa:rolling-upgrade-multi-cluster:v8.6.0#follower#oneThirdUpgradedTest'. > `cluster{:x-pack:qa:rolling-upgrade-multi-cluster:v8.6.0-follower}` failed to wait for cluster health yellow after 40 SECONDS IO error while waiting cluster 503 Service Unavailable ``` It seems the follower cluster is having issues coming back up after upgrade.
https://github.com/elastic/elasticsearch/issues/91517
https://github.com/elastic/elasticsearch/pull/91659
81d5859f616b6ef6263614cde82731675d4e0c39
4a392e295227ee7c2e7bbd33a54450f2addfc268
"2022-11-10T17:51:19Z"
java
"2022-11-18T10:28:44Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
91,505
["modules/aggregations/build.gradle"]
[CI] InternalTimeSeriesTests testEqualsAndHashcode failing
Possibly related to: https://github.com/elastic/elasticsearch/pull/91356 But I did not dig into this. **Build scan:** https://gradle-enterprise.elastic.co/s/dp5alw3k4kcse/tests/:modules:aggregations:test/org.elasticsearch.aggregations.bucket.timeseries.InternalTimeSeriesTests/testEqualsAndHashcode **Reproduction line:** ``` ./gradlew ':modules:aggregations:test' --tests "org.elasticsearch.aggregations.bucket.timeseries.InternalTimeSeriesTests.testEqualsAndHashcode" -Dtests.seed=6BD1B6D6DB4E8976 -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=ar-AE -Dtests.timezone=Asia/Jayapura -Druntime.java=17 ``` **Applicable branches:** main **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.aggregations.bucket.timeseries.InternalTimeSeriesTests&tests.test=testEqualsAndHashcode **Failure excerpt:** ``` java.lang.IllegalArgumentException: Unknown NamedWriteable [org.elasticsearch.search.aggregations.InternalAggregation][time_series] at __randomizedtesting.SeedInfo.seed([6BD1B6D6DB4E8976:1ADECE1B14A9C059]:0) at org.elasticsearch.common.io.stream.NamedWriteableRegistry.throwOnUnknownWritable(NamedWriteableRegistry.java:142) at org.elasticsearch.common.io.stream.NamedWriteableRegistry.getReader(NamedWriteableRegistry.java:123) at org.elasticsearch.common.io.stream.NamedWriteableRegistry.getReader(NamedWriteableRegistry.java:106) at org.elasticsearch.common.io.stream.NamedWriteableAwareStreamInput.readNamedWriteable(NamedWriteableAwareStreamInput.java:55) at org.elasticsearch.common.io.stream.NamedWriteableAwareStreamInput.readNamedWriteable(NamedWriteableAwareStreamInput.java:32) at org.elasticsearch.test.ESTestCase.lambda$copyNamedWriteable$15(ESTestCase.java:1483) at org.elasticsearch.test.ESTestCase.copyInstance(ESTestCase.java:1500) at org.elasticsearch.test.ESTestCase.copyNamedWriteable(ESTestCase.java:1479) at org.elasticsearch.test.AbstractNamedWriteableTestCase.copyInstance(AbstractNamedWriteableTestCase.java:36) at org.elasticsearch.test.AbstractNamedWriteableTestCase.copyInstance(AbstractNamedWriteableTestCase.java:24) at org.elasticsearch.test.AbstractWireTestCase.copyInstance(AbstractWireTestCase.java:199) at org.elasticsearch.test.EqualsHashCodeTestUtils.checkEqualsAndHashCode(EqualsHashCodeTestUtils.java:76) at org.elasticsearch.test.AbstractWireTestCase.testEqualsAndHashcode(AbstractWireTestCase.java:58) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java: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:833) ```
https://github.com/elastic/elasticsearch/issues/91505
https://github.com/elastic/elasticsearch/pull/91507
509b636d254facf692db308b65175c4c58fcbab0
bec3bce8b6cbd34c60512d7f2a2706b2c1c582ce
"2022-11-10T12:45:48Z"
java
"2022-11-10T16:18:31Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
91,496
["docs/reference/query-dsl/script-score-query.asciidoc", "docs/reference/vectors/vector-functions.asciidoc"]
Make it clear script score functions don't work in a loop
There have been a couple of issues trying to run script score functions in a loop, #70437, #89602 - which doesn't work properly (and is not intended to work). There should be some mention on the [documentation about scoring functions](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-script-score-query.html#script-score-predefined-functions) that they are optimised for single documents and not for use in a loop. If customers need these functions in a loop they should implement the function themselves.
https://github.com/elastic/elasticsearch/issues/91496
https://github.com/elastic/elasticsearch/pull/91864
20d947fd6a0c795969c2ae29e26d39e73130339a
7d01d768c2cd8cfef2af8d36dab3f57fb6684847
"2022-11-10T10:20:28Z"
java
"2022-12-12T08:43:46Z"