status
stringclasses 1
value | repo_name
stringlengths 9
24
| repo_url
stringlengths 28
43
| issue_id
int64 1
104k
| updated_files
stringlengths 8
1.76k
| title
stringlengths 4
369
| body
stringlengths 0
254k
⌀ | issue_url
stringlengths 37
56
| pull_url
stringlengths 37
54
| before_fix_sha
stringlengths 40
40
| after_fix_sha
stringlengths 40
40
| report_datetime
timestamp[ns, tz=UTC] | language
stringclasses 5
values | commit_datetime
timestamp[us, tz=UTC] |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 85,336 | ["docs/changelog/85340.yaml", "server/src/main/java/org/elasticsearch/plugins/PluginInfo.java", "server/src/test/java/org/elasticsearch/plugins/PluginInfoTests.java"] | Check for empty version while verifying Elasticsearch plugins | ### Elasticsearch Version
8.2
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
Any
### Problem Description
The PluginInfo verification code in Elasticsearch ensures that plugins must match the Elasticsearch they are being installed into. However, if the plugin descriptor properties file contains an empty string, the Version.fromString call would simply return the latest Elasticsearch version.
The bug relates to the following code:
```
final String esVersionString = propsMap.remove("elasticsearch.version");
if (esVersionString == null) {
throw new IllegalArgumentException("property [elasticsearch.version] is missing for plugin [" + name + "]");
}
final Version esVersion = Version.fromString(esVersionString);
```
Apart from checking esVersionString for null, we should also check for the String being empty, e.g `Strings.hasLength(esVersionString) == false`.
### Steps to Reproduce
- Take any Elasticsearch plugin from a version other than the current
- Manually edit the plugin-descriptor.properties file in the jar and set `elasticsearch.version=`
- Deploy the plugin in the latest version of Elasticsearch
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/85336 | https://github.com/elastic/elasticsearch/pull/85340 | da8d8b17dd0b106060699a705f720f1e61f9b056 | 62448a0a70031cb67430b6f9871c428add6a3a28 | 2022-03-24T16:59:59Z | java | 2022-03-28T18:27:28Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 85,308 | ["rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.snapshots/10_basic.yml"] | [CI] ClientYamlTestSuiteIT test {yaml=cat.snapshots/10_basic/Test cat snapshots output} failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/pwjaj4ctq7wvc/tests/:rest-api-spec:yamlRestTest/org.elasticsearch.test.rest.ClientYamlTestSuiteIT/test%20%7Byaml=cat.snapshots%2F10_basic%2FTest%20cat%20snapshots%20output%7D
**Reproduction line:**
`gradlew ':rest-api-spec:yamlRestTest' --tests "org.elasticsearch.test.rest.ClientYamlTestSuiteIT" -Dtests.method="test {yaml=cat.snapshots/10_basic/Test cat snapshots output}" -Dtests.seed=E5AA625E88882A24 -Dtests.locale=da -Dtests.timezone=Asia/Ulaanbaatar -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.test.rest.ClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dcat.snapshots/10_basic/Test%20cat%20snapshots%20output%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [cat.snapshots/10_basic:76]: field [$body] was expected to match the provided regex but didn't
Expected: ^ snap1\s+ test_cat_snapshots_1\s+ SUCCESS\s+ \d+\s+ \d\d\:\d\d\:\d\d\s+ \d+\s+ \d\d\:\d\d\:\d\d\s+ \S+\s+ 2\s+ 2\s+ 0\s+ 2\s*\n
snap2\s+ test_cat_snapshots_1\s+ SUCCESS\s+ \d+\s+ \d\d\:\d\d\:\d\d\s+ \d+\s+ \d\d\:\d\d\:\d\d\s+ \S+\s+ 2\s+ 2\s+ 0\s+ 2\s*\n
$
but: was "snap1 test_cat_snapshots_1 SUCCESS 1648110374 08:26:14 1648110374 08:26:14 0s 3 3 0 3\nsnap2 test_cat_snapshots_1 SUCCESS 1648110374 08:26:14 1648110374 08:26:14 0s 3 3 0 3\n"
at __randomizedtesting.SeedInfo.seed([E5AA625E88882A24:6DFE5D84267447DC]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:493)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.AssertionError: field [$body] was expected to match the provided regex but didn't
Expected: ^ snap1\s+ test_cat_snapshots_1\s+ SUCCESS\s+ \d+\s+ \d\d\:\d\d\:\d\d\s+ \d+\s+ \d\d\:\d\d\:\d\d\s+ \S+\s+ 2\s+ 2\s+ 0\s+ 2\s*\n
snap2\s+ test_cat_snapshots_1\s+ SUCCESS\s+ \d+\s+ \d\d\:\d\d\:\d\d\s+ \d+\s+ \d\d\:\d\d\:\d\d\s+ \S+\s+ 2\s+ 2\s+ 0\s+ 2\s*\n
$
but: was "snap1 test_cat_snapshots_1 SUCCESS 1648110374 08:26:14 1648110374 08:26:14 0s 3 3 0 3\nsnap2 test_cat_snapshots_1 SUCCESS 1648110374 08:26:14 1648110374 08:26:14 0s 3 3 0 3\n"
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.elasticsearch.test.rest.yaml.section.MatchAssertion.doAssert(MatchAssertion.java:64)
at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:482)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/85308 | https://github.com/elastic/elasticsearch/pull/85997 | e70dc48220042b2184d4056f0dd99ea47ae3d4c7 | bf1a3a3a7088b799642ddf9f35bd745fe8cb7919 | 2022-03-24T09:35:18Z | java | 2022-04-26T08:14:24Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 85,249 | ["docs/changelog/85325.yaml", "server/src/main/java/org/elasticsearch/cluster/coordination/JoinHelper.java", "server/src/main/java/org/elasticsearch/cluster/coordination/JoinTask.java", "server/src/main/java/org/elasticsearch/cluster/coordination/JoinTaskExecutor.java", "server/src/test/java/org/elasticsearch/cluster/coordination/JoinTaskExecutorTests.java", "server/src/test/java/org/elasticsearch/indices/cluster/ClusterStateChanges.java"] | Investigate possible election retry loop | I observed a 7.12 cluster that was struggling to complete an election, with at least one node holding over a million `elected-as-master` tasks in its pending task queue. I suspect there were two such nodes because they were just constantly winning elections and then failing because of the next election and so on...
It's currently unclear exactly how we got into this state, but it doesn't seem completely impossible if something else causes a bunch of spurious elections somehow while the master service was blocked. There were some faulty nodes involved for sure.
In any case I believe we can and should take steps to avoid processing stale `elected-as-master` tasks. | https://github.com/elastic/elasticsearch/issues/85249 | https://github.com/elastic/elasticsearch/pull/85325 | 3dec58dabe719e34fdf7627cea36317090156b5d | e4888dd80814a75d45c1f0dad4b1314a3419cd7c | 2022-03-22T22:14:42Z | java | 2022-03-28T16:14:23Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 85,243 | ["docs/changelog/86132.yaml", "x-pack/plugin/autoscaling/src/main/java/org/elasticsearch/xpack/autoscaling/storage/ProactiveStorageDeciderService.java", "x-pack/plugin/autoscaling/src/main/java/org/elasticsearch/xpack/autoscaling/storage/ReactiveStorageDeciderService.java", "x-pack/plugin/autoscaling/src/main/java/org/elasticsearch/xpack/autoscaling/storage/ShardsSize.java", "x-pack/plugin/autoscaling/src/test/java/org/elasticsearch/xpack/autoscaling/storage/ReactiveReasonTests.java", "x-pack/plugin/autoscaling/src/test/java/org/elasticsearch/xpack/autoscaling/storage/ReactiveStorageDeciderDecisionTests.java", "x-pack/plugin/autoscaling/src/test/java/org/elasticsearch/xpack/autoscaling/storage/ReactiveStorageDeciderReasonWireSerializationTests.java"] | Provide more information about autoscaling policy decisions to improve debugging | In some contexts is unclear why an autoscaling policy decides to request
more resources, i.e. if there's an unassigned shard that remains unassigned
even after adding more resources. It would be help to have more information
around the decisions taken by the deciders so it is easier to understand and
track them. | https://github.com/elastic/elasticsearch/issues/85243 | https://github.com/elastic/elasticsearch/pull/86132 | f615744512b0e90dbb019670a68848e7499ff47a | 666e85be0919327cc252157e24cdb1382bc879bb | 2022-03-22T18:35:34Z | java | 2022-06-08T06:45:36Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 85,227 | ["build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/release/GenerateReleaseNotesTask.java"] | Release notes generation fails on new patch releases | When trying to generate release notes we're seeing the following error:
```
Execution failed for task ':generateReleaseNotes'.
> Failed to find git tags prior to [v8.1.1-SNAPSHOT]
```
I believe the root cause is our handling of version qualifiers [here](https://github.com/elastic/elasticsearch/blob/bafdcbd2f179c54e3a1479ef53da7bc959f57cd5/build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/release/GenerateReleaseNotesTask.java#L182). Since the current version is _always_ a snapshot we seem to not correctly identified older release versions. | https://github.com/elastic/elasticsearch/issues/85227 | https://github.com/elastic/elasticsearch/pull/85264 | d0c2b098a781e54bbdf4bdeaf4e3b202fd5eb440 | b95aa4f5b48c3d5dfb5ee819b37aa9b14b89d400 | 2022-03-22T14:30:48Z | java | 2022-03-23T14:23:50Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 85,222 | ["docs/changelog/88013.yaml", "docs/reference/modules/discovery/discovery-settings.asciidoc", "server/src/main/java/org/elasticsearch/cluster/coordination/Coordinator.java", "server/src/main/java/org/elasticsearch/common/settings/ClusterSettings.java", "server/src/test/java/org/elasticsearch/cluster/coordination/CoordinatorTests.java"] | More helpful logs if a single-node cluster has nontrivial discovery config | Users sometimes accidentally auto-bootstrap their nodes into single-node clusters and then try and join them all together later by setting `discovery.seed_hosts` or similar. Elasticsearch doesn't care if discovery points to a few extra nodes so today it reports no problems, but it's frustrating to the user that it doesn't do what they expect it to do and also doesn't indicate why.
It's almost certainly incorrect to have a nontrivial discovery config in a single-node cluster: `discovery.seed_hosts` and `discovery.seed_providers` should both be unset or empty[^1], so this is a strong indicator that the user is trying to form a multi-node cluster incorrectly. We can therefore be more helpful to these users by emitting periodic warnings in a single-node cluster with nontrivial discovery config:
> `This node is a fully-formed single-node cluster with cluster UUID [{clusterUUID}], but [{setting}] is set to [{value}] as if to discover other nodes and form a multi-node cluster. Fully-formed clusters do not attempt to discover other nodes, and nodes with different cluster UUIDs cannot belong to the same cluster. The cluster UUID persists across restarts and can only be changed by deleting the contents of the node's data path(s). Remove the discovery configuration to suppress this message.`
[^1]: it's also (kind of) acceptable if `discovery.seed_hosts` contains just the node's own publish address, or we're using just the `file` provider and `unicast_hosts.txt` contains just the node's own publish address. | https://github.com/elastic/elasticsearch/issues/85222 | https://github.com/elastic/elasticsearch/pull/88013 | 4cdfe7e1b1afaae3646b681009f89e4b527bf191 | 50d2cf31b83505430c1d12b49a5f873082ea592a | 2022-03-22T12:38:23Z | java | 2022-06-30T13:35:15Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 85,207 | ["server/src/main/java/org/elasticsearch/cluster/metadata/MetadataIndexStateService.java"] | MetadataIndexStateService block log messages are confusing | Tiny supportability nit: today we emit these log messages when adding a write block to an index:
```
[2022-03-22T19:43:26,897][INFO ][o.e.c.m.MetadataIndexStateService] [node_t1] adding block write to indices [[test-blocks/eLkrYpm_S3WNemfWpXrhPA]]
[2022-03-22T19:43:26,933][INFO ][o.e.c.m.MetadataIndexStateService] [node_t1] completed adding block write to indices [test-blocks]
```
This is kind of confusing, a `block write` sounds like we're writing a block of data. It's not clear that `write` is variable (we also say `block read`) or the name of a block setting. I think we should word this as `adding [index.blocks.write] block to indices` instead. | https://github.com/elastic/elasticsearch/issues/85207 | https://github.com/elastic/elasticsearch/pull/85237 | 942e5fd9fca2e49e70c2b6b3f4e21884615368c1 | 4e1a0631e860f20a116a2879a0dfe562bece9879 | 2022-03-22T09:54:14Z | java | 2022-08-03T15:21:35Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 85,203 | ["docs/changelog/85656.yaml", "docs/reference/search/profile.asciidoc", "server/src/main/java/org/elasticsearch/search/profile/query/ProfileWeight.java", "server/src/main/java/org/elasticsearch/search/profile/query/QueryTimingType.java", "server/src/test/java/org/elasticsearch/search/profile/query/QueryProfilerTests.java"] | ProfileWeight should instrument `Weight#count`. | ### Description
As we are about to start leveraging `Weight#count` to compute total hit counts (https://github.com/elastic/elasticsearch/pull/84778) and aggregation counts (https://github.com/elastic/elasticsearch/pull/81322), we should start instrumenting it so that we can get information about time spent in `Weight#count`. | https://github.com/elastic/elasticsearch/issues/85203 | https://github.com/elastic/elasticsearch/pull/85656 | bb3698cfee7c0a3e74d9bca09214df9aeb1e4a33 | 7e9ce33e8483825c56c62c4f095416c3e4a32d28 | 2022-03-22T08:33:11Z | java | 2022-11-21T12:32:48Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 85,198 | ["server/src/test/java/org/elasticsearch/search/aggregations/bucket/filter/FiltersAggregatorTests.java"] | [CI] FiltersAggregatorTests testDocValuesFieldExistsForKeyword failing | It failed on my PR but it is reproducible on the master branch. It also has nothing to do with fips even though it failed with the fips version of CI.
**Build scan:**
https://gradle-enterprise.elastic.co/s/r7bdkoaz66rms/tests/:server:test/org.elasticsearch.search.aggregations.bucket.filter.FiltersAggregatorTests/testDocValuesFieldExistsForKeyword
**Reproduction line:**
`./gradlew ':server:test' --tests "org.elasticsearch.search.aggregations.bucket.filter.FiltersAggregatorTests.testDocValuesFieldExistsForKeyword" -Dtests.seed=33AD43F5C4C9C241 -Dtests.locale=fr -Dtests.timezone=Africa/Kigali -Druntime.java=17 -Dtests.fips.enabled=true`
**Applicable branches:**
master
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.search.aggregations.bucket.filter.FiltersAggregatorTests&tests.test=testDocValuesFieldExistsForKeyword
**Failure excerpt:**
```
java.lang.AssertionError: Expected a map containing
test: a map containing
filters: a list containing
0: a map containing
specialized_for: "docvalues_field_exists"
results_from_metadata: expected <0> but was <1>
query: "DocValuesFieldExistsQuery [field=f]" unexpected but ok
segments_with_doc_count_field: <0> unexpected but ok
segments_with_deleted_docs: <0> unexpected but ok
segments_counted: <2> unexpected but ok
segments_collected: <0> unexpected but ok
at __randomizedtesting.SeedInfo.seed([33AD43F5C4C9C241:31BE1CE509971395]:0)
at org.elasticsearch.test.MapMatcher.assertMap(MapMatcher.java:82)
at org.elasticsearch.test.MapMatcher.assertMap(MapMatcher.java:65)
at org.elasticsearch.search.aggregations.bucket.filter.FiltersAggregatorTests.lambda$docValuesFieldExistsTestCase$51(FiltersAggregatorTests.java:1356)
at org.elasticsearch.search.aggregations.AggregatorTestCase.debugTestCase(AggregatorTestCase.java:783)
at org.elasticsearch.search.aggregations.AggregatorTestCase.lambda$debugTestCase$11(AggregatorTestCase.java:734)
at org.elasticsearch.search.aggregations.AggregatorTestCase.withIndex(AggregatorTestCase.java:698)
at org.elasticsearch.search.aggregations.AggregatorTestCase.debugTestCase(AggregatorTestCase.java:734)
at org.elasticsearch.search.aggregations.bucket.filter.FiltersAggregatorTests.docValuesFieldExistsTestCase(FiltersAggregatorTests.java:1342)
at org.elasticsearch.search.aggregations.bucket.filter.FiltersAggregatorTests.testDocValuesFieldExistsForKeyword(FiltersAggregatorTests.java:1323)
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:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/85198 | https://github.com/elastic/elasticsearch/pull/85650 | 4a3f9bbf14122276f6da18add98a40be0a9bc75b | 796b73f43ffcb1ae2145d8e06b274324cb3d0bb9 | 2022-03-22T03:58:09Z | java | 2022-04-01T21:00:03Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 85,175 | ["x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm/PolicyStepsRegistry.java", "x-pack/plugin/ilm/src/test/java/org/elasticsearch/xpack/ilm/PolicyStepsRegistryTests.java"] | [CI] DataTiersMigrationsTests testUserOptsOutOfTierMigration failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/aodpvg6m2oba4/tests/:x-pack:plugin:ilm:internalClusterTest/org.elasticsearch.xpack.ilm.DataTiersMigrationsTests/testUserOptsOutOfTierMigration
**Reproduction line:**
`./gradlew ':x-pack:plugin:ilm:internalClusterTest' --tests "org.elasticsearch.xpack.ilm.DataTiersMigrationsTests.testUserOptsOutOfTierMigration" -Dtests.seed=D3FF350541188AFA -Dtests.locale=ar-IQ -Dtests.timezone=Asia/Famagusta -Druntime.java=18`
**Applicable branches:**
8.1
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.ilm.DataTiersMigrationsTests&tests.test=testUserOptsOutOfTierMigration
**Failure excerpt:**
```
java.lang.AssertionError:
Expected: is "warm"
but: was "new"
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.ilm.DataTiersMigrationsTests.lambda$testUserOptsOutOfTierMigration$3(DataTiersMigrationsTests.java:192)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1070)
at org.elasticsearch.xpack.ilm.DataTiersMigrationsTests.testUserOptsOutOfTierMigration(DataTiersMigrationsTests.java:187)
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:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/85175 | https://github.com/elastic/elasticsearch/pull/85346 | bd6b27c699de8ad807d862492e174f33fb3b2002 | ff517c57c4cbb4fc638e855805ff0e376c39a865 | 2022-03-21T15:54:47Z | java | 2022-03-28T14:31:10Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 85,158 | ["server/src/internalClusterTest/java/org/elasticsearch/action/admin/indices/diskusage/IndexDiskUsageAnalyzerIT.java"] | [CI] IndexDiskUsageAnalyzerIT testFailingTargetShards failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/mn5kr7oybp3yw/tests/:server:internalClusterTest/org.elasticsearch.action.admin.indices.diskusage.IndexDiskUsageAnalyzerIT/testFailingTargetShards
**Reproduction line:**
`./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.action.admin.indices.diskusage.IndexDiskUsageAnalyzerIT.testFailingTargetShards" -Dtests.seed=207CE714E9B75D5F -Dtests.locale=zh-Hant-HK -Dtests.timezone=Turkey -Druntime.java=18`
**Applicable branches:**
master
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.action.admin.indices.diskusage.IndexDiskUsageAnalyzerIT&tests.test=testFailingTargetShards
**Failure excerpt:**
```
java.lang.AssertionError:
Expected: <2>
but: was <1>
at __randomizedtesting.SeedInfo.seed([207CE714E9B75D5F:E389ABB16156CF93]: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.action.admin.indices.diskusage.IndexDiskUsageAnalyzerIT.testFailingTargetShards(IndexDiskUsageAnalyzerIT.java:344)
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.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/85158 | https://github.com/elastic/elasticsearch/pull/85169 | f6e46c93cac916066ee86715250172ac55b97880 | 0507f89cb0b87d9c0b0f8cd13346af69002c143c | 2022-03-21T12:58:22Z | java | 2022-03-22T13:00:23Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 85,147 | ["x-pack/plugin/ccr/qa/security/src/test/java/org/elasticsearch/xpack/ccr/FollowIndexSecurityIT.java"] | [CI] FollowIndexSecurityIT testFollowIndex failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/iuuchmzstcy7m/tests/:x-pack:plugin:ccr:qa:security:follow-cluster/org.elasticsearch.xpack.ccr.FollowIndexSecurityIT/testFollowIndex
**Reproduction line:**
`./gradlew ':x-pack:plugin:ccr:qa:security:follow-cluster' --tests "org.elasticsearch.xpack.ccr.FollowIndexSecurityIT.testFollowIndex" -Dtests.seed=7E4A8B8D7A291AAB -Dtests.locale=zh-Hant-TW -Dtests.timezone=Asia/Seoul -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.ccr.FollowIndexSecurityIT&tests.test=testFollowIndex
**Failure excerpt:**
```
java.lang.AssertionError:
Expected: <1>
but: was <2>
at __randomizedtesting.SeedInfo.seed([7E4A8B8D7A291AAB:9D2644BF43912321]: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.ccr.FollowIndexSecurityIT.testFollowIndex(FollowIndexSecurityIT.java:69)
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:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/85147 | https://github.com/elastic/elasticsearch/pull/85401 | 105cdebb2c2d52647fa4a64967c74f08b39f8784 | 92c45385f128ccdd872b93122af77c3bd6847d03 | 2022-03-21T08:24:40Z | java | 2022-03-30T06:18:26Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 85,130 | ["docs/reference/tab-widgets/api-call.asciidoc", "docs/reference/tab-widgets/quick-start-cleanup.asciidoc", "docs/reference/tab-widgets/quick-start-install.asciidoc"] | [DOCS] Quick start `curl` documentation for http and not https | ### Elasticsearch Version
8.0.0
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
Linux reinoso 5.8.0-59-generic #66~20.04.1-Ubuntu SMP Thu Jun 17 11:14:10 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
### Problem Description
On documentation: https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started.html#send-requests-to-elasticsearch
You can see to use:
```bash
curl -X GET http://localhost:9200/
```
But if you use default self-management, you have a certificate and credentials.
### Steps to Reproduce
One time installed Elasticsearch 8.1.0 from Docker, you can't use:
```bash
$ curl -X GET http://localhost:9200/
curl: (52) Empty reply from server
```
I'm not sure the correct fix, but it works with `curl:`
```bash
curl -k -u elastic:<password> -X GET https://localhost:9200/
```
Where:
- `-k` is for ignore the credentials from Elasticsearch. I don't think that's a good option, but for now I don't know how to get Elasticsearch credentials.
- https, by default Elasticsearch works with https
- `-u` You need a credential in Elasticsearch by default now. And the default user is `elastic`.
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/85130 | https://github.com/elastic/elasticsearch/pull/86145 | a733f4287acd7816571cf2d8ad643d47a8d68a28 | 336965201b102019abcb5a28309e013748414d7d | 2022-03-19T19:41:54Z | java | 2022-04-27T12:43:00Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 85,127 | ["docs/changelog/85774.yaml", "x-pack/plugin/analytics/src/main/java/org/elasticsearch/xpack/analytics/topmetrics/TopMetricsAggregator.java", "x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/analytics/nested_top_metrics_sort.yml"] | array_index_out_of_bounds_exception when terms agg ordered by top_metrics agg | ### Elasticsearch Version
8.2
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
OSX 11.6
### Problem Description
A `terms` aggregation on a keyword field ordered by a `top_metrics` aggregation on a date field for a particular time range results in an `array_index_out_of_bounds_exception` on the Elasticsearch side.
### Steps to Reproduce
Add the `kibana_sample_data_ecommerce` to the cluster (I was using the 8.2 snapshot). Then, run the following query that runs a `terms` agg ordered by a `top_metrics` agg.
```
{
"aggs": {
"0": {
"terms": {
"field": "customer_first_name.keyword",
"order": {
"1-bucket>1-metric[customer_birth_date]": "desc"
},
"size": 5
},
"aggs": {
"1-bucket": {
"filter": {
"bool": {
"must": [],
"filter": [
{
"bool": {
"should": [
{
"exists": {
"field": "customer_birth_date"
}
}
],
"minimum_should_match": 1
}
}
],
"should": [],
"must_not": []
}
},
"aggs": {
"1-metric": {
"top_metrics": {
"metrics": {
"field": "customer_birth_date"
},
"size": 1,
"sort": {
"order_date": "desc"
}
}
}
}
}
}
}
},
"size": 0,
"fields": [
{
"field": "customer_birth_date",
"format": "date_time"
},
{
"field": "order_date",
"format": "date_time"
},
{
"field": "products.created_on",
"format": "date_time"
}
],
"script_fields": {},
"stored_fields": [
"*"
],
"runtime_mappings": {},
"_source": {
"excludes": []
},
"query": {
"bool": {
"must": [],
"filter": [
{
"range": {
"order_date": {
"format": "strict_date_optional_time",
"gte": "2021-12-03T23:36:40.426Z",
"lte": "2022-03-18T22:36:40.426Z"
}
}
}
],
"should": [],
"must_not": []
}
}
}
```
### Logs (if relevant)
## Response Body
```
{
"error" : {
"root_cause" : [
{
"type" : "array_index_out_of_bounds_exception",
"reason" : "Index 8 out of bounds for length 1"
}
],
"type" : "search_phase_execution_exception",
"reason" : "all shards failed",
"phase" : "query",
"grouped" : true,
"failed_shards" : [
{
"shard" : 0,
"index" : "kibana_sample_data_ecommerce",
"node" : "AS6pXentQHKWbWhGkdGVUQ",
"reason" : {
"type" : "array_index_out_of_bounds_exception",
"reason" : "Index 8 out of bounds for length 1"
}
}
],
"caused_by" : {
"type" : "array_index_out_of_bounds_exception",
"reason" : "Index 8 out of bounds for length 1",
"caused_by" : {
"type" : "array_index_out_of_bounds_exception",
"reason" : "Index 8 out of bounds for length 1"
}
}
},
"status" : 500
}
```
## Elasticsearch Logs
```
path: /kibana_sample_data_ecommerce/_search, params: {pretty=true, index=kibana_sample_data_ecommerce}
org.elasticsearch.action.search.SearchPhaseExecutionException: all shards failed
at org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseFailure(AbstractSearchAsyncAction.java:730) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:417) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseDone(AbstractSearchAsyncAction.java:762) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.action.search.AbstractSearchAsyncAction.onShardFailure(AbstractSearchAsyncAction.java:514) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.action.search.AbstractSearchAsyncAction$1.onFailure(AbstractSearchAsyncAction.java:348) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.action.ActionListener$Delegating.onFailure(ActionListener.java:66) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.action.ActionListenerResponseHandler.handleException(ActionListenerResponseHandler.java:48) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.action.search.SearchTransportService$ConnectionCountingHandler.handleException(SearchTransportService.java:651) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.transport.TransportService$4.handleException(TransportService.java:724) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1349) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:1458) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1432) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:50) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.action.support.ChannelActionListener.onFailure(ChannelActionListener.java:47) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.action.ActionRunnable.onFailure(ActionRunnable.java:77) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:28) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:33) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:773) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: org.elasticsearch.ElasticsearchException$1: Index 8 out of bounds for length 1
at org.elasticsearch.ElasticsearchException.guessRootCauses(ElasticsearchException.java:638) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:415) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
... 20 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 8 out of bounds for length 1
at jdk.internal.util.Preconditions$1.apply(Preconditions.java:177) ~[?:?]
at jdk.internal.util.Preconditions$1.apply(Preconditions.java:174) ~[?:?]
at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:62) ~[?:?]
at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) ~[?:?]
at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266) ~[?:?]
at java.lang.invoke.VarHandleByteArrayAsLongs$ArrayHandle.index(VarHandleByteArrayAsLongs.java:103) ~[?:?]
at java.lang.invoke.VarHandleByteArrayAsLongs$ArrayHandle.get(VarHandleByteArrayAsLongs.java:120) ~[?:?]
at org.elasticsearch.common.util.BigArrays$ByteArrayAsLongArrayWrapper.get(BigArrays.java:224) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xpack.analytics.topmetrics.TopMetricsAggregator$LongMetricValues.doubleValue(TopMetricsAggregator.java:363) ~[?:?]
at org.elasticsearch.xpack.analytics.topmetrics.TopMetricsAggregator$Metrics.metric(TopMetricsAggregator.java:177) ~[?:?]
at org.elasticsearch.xpack.analytics.topmetrics.TopMetricsAggregator.metric(TopMetricsAggregator.java:113) ~[?:?]
at org.elasticsearch.search.aggregations.metrics.NumericMetricsAggregator$MultiValue.lambda$bucketComparator$0(NumericMetricsAggregator.java:64) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.search.aggregations.InternalOrder$Aggregation.lambda$partiallyBuiltBucketComparator$0(InternalOrder.java:68) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.search.aggregations.InternalOrder$CompoundOrder.lambda$partiallyBuiltBucketComparator$1(InternalOrder.java:192) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.search.aggregations.bucket.terms.BucketPriorityQueue.lessThan(BucketPriorityQueue.java:25) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.apache.lucene.util.PriorityQueue.upHeap(PriorityQueue.java:245) ~[lucene-core-9.1.0-snapshot-5b522487ba8.jar:9.1.0-snapshot-5b522487ba8 5b522487ba8e0f1002b50a136817ca037aec9686 - jenkins - 2022-03-16 13:04:11]
at org.apache.lucene.util.PriorityQueue.add(PriorityQueue.java:129) ~[lucene-core-9.1.0-snapshot-5b522487ba8.jar:9.1.0-snapshot-5b522487ba8 5b522487ba8e0f1002b50a136817ca037aec9686 - jenkins - 2022-03-16 13:04:11]
at org.apache.lucene.util.PriorityQueue.insertWithOverflow(PriorityQueue.java:142) ~[lucene-core-9.1.0-snapshot-5b522487ba8.jar:9.1.0-snapshot-5b522487ba8 5b522487ba8e0f1002b50a136817ca037aec9686 - jenkins - 2022-03-16 13:04:11]
at org.elasticsearch.search.aggregations.bucket.terms.GlobalOrdinalsStringTermsAggregator$ResultStrategy$1.accept(GlobalOrdinalsStringTermsAggregator.java:613) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.search.aggregations.bucket.terms.GlobalOrdinalsStringTermsAggregator$RemapGlobalOrds.forEach(GlobalOrdinalsStringTermsAggregator.java:561) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.search.aggregations.bucket.terms.GlobalOrdinalsStringTermsAggregator$ResultStrategy.buildAggregations(GlobalOrdinalsStringTermsAggregator.java:602) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.search.aggregations.bucket.terms.GlobalOrdinalsStringTermsAggregator.buildAggregations(GlobalOrdinalsStringTermsAggregator.java:182) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.search.aggregations.Aggregator.buildTopLevel(Aggregator.java:154) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.search.aggregations.AggregationPhase.execute(AggregationPhase.java:112) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:94) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.indices.IndicesService.lambda$loadIntoContext$27(IndicesService.java:1516) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.indices.IndicesService.lambda$cacheShardLevelResult$28(IndicesService.java:1582) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.indices.IndicesRequestCache$Loader.load(IndicesRequestCache.java:178) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elast
icsearch.indices.IndicesRequestCache$Loader.load(IndicesRequestCache.java:161) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.common.cache.Cache.computeIfAbsent(Cache.java:418) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.indices.IndicesRequestCache.getOrCompute(IndicesRequestCache.java:124) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.indices.IndicesService.cacheShardLevelResult(IndicesService.java:1588) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.indices.IndicesService.loadIntoContext(IndicesService.java:1510) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:460) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:625) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.search.SearchService.lambda$executeQueryPhase$2(SearchService.java:487) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.action.ActionRunnable.lambda$supply$0(ActionRunnable.java:47) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.action.ActionRunnable$2.doRun(ActionRunnable.java:62) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
``` | https://github.com/elastic/elasticsearch/issues/85127 | https://github.com/elastic/elasticsearch/pull/85774 | 33a553f61ff3811156885ab1755e70d4a9ddfe14 | 3b78a4ca23175e6f4fe41318c3b0446883a9face | 2022-03-19T01:47:04Z | java | 2022-04-19T07:06:07Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 85,110 | ["docs/changelog/85118.yaml", "server/src/main/java/org/elasticsearch/search/aggregations/AggregatorBase.java", "server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/random/RandomSamplerAggregator.java", "server/src/test/java/org/elasticsearch/search/aggregations/bucket/sampler/random/RandomSamplerAggregatorTests.java"] | Skip sampling for min/max aggregation if value can be determined via point reader | ### Description
Min/Max aggregations do not require any scaling for the random_sampler results. Additionally, if the min/max an be determined via the pointReader (i.e. not by individual doc values), we should use that as it means that sampler doesn't need to supply documents to the min/max agg, potentially speeding things up significantly and improving accuracy.
related to: https://github.com/elastic/elasticsearch/issues/84353 | https://github.com/elastic/elasticsearch/issues/85110 | https://github.com/elastic/elasticsearch/pull/85118 | 64372da8a20fa30f83b65ae1ad1e9ab535e56d52 | 689e62877d327b43cbfa1a5232081715a07ac7cd | 2022-03-18T14:39:46Z | java | 2022-04-28T18:40:36Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 85,105 | ["docs/changelog/85106.yaml", "x-pack/plugin/ql/src/main/java/org/elasticsearch/xpack/ql/expression/predicate/operator/math/Maths.java", "x-pack/plugin/sql/qa/server/src/main/resources/math.csv-spec", "x-pack/plugin/sql/qa/server/src/main/resources/math.sql-spec", "x-pack/plugin/sql/qa/server/src/main/resources/unsigned-long.csv-spec", "x-pack/plugin/sql/qa/server/src/main/resources/unsigned-long.sql-spec", "x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/expression/function/scalar/math/BinaryOptionalMathProcessor.java", "x-pack/plugin/sql/src/test/java/org/elasticsearch/xpack/sql/expression/function/scalar/math/BinaryMathProcessorTests.java"] | SQL: ROUND() of big numbers leads to wrong results | - for Long values, the conversion from long to double can lead to loss of precision. Eg.
```
SELECT CAST(ROUND(922337203685477580) AS LONG) as a
```
returns
```
922337203685477632
```
- for floating point values, when the two numbers passed to ROUND() funciton are too big, the values are truncated to Long.MAX_VALUE and hence wrongly rounded. Eg.
```
SELECT ROUND(100000000000.0, 8) as a
```
returns
```
9.223372036854776E10
``` | https://github.com/elastic/elasticsearch/issues/85105 | https://github.com/elastic/elasticsearch/pull/85106 | 92c45385f128ccdd872b93122af77c3bd6847d03 | 087bd1d5fc7d5b08d141896f59bcf80ff211bd22 | 2022-03-18T14:18:52Z | java | 2022-03-30T06:50:43Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 85,090 | ["x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/rest/action/profile/RestSearchProfilesAction.java", "x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/rest/action/profile/RestSearchProfilesActionTests.java"] | Search User Profiles needs to support "source" paremter | ### Description
In Elasticsearch, all GET requests that have a body must also support that body being passed as a URL parameter named `source`. (This is because GET requests with a body are not standardized and not all clients can support it.)
The `RestSearchProfilesAction` does not support the "source" parameter, as shown in this test failure:
```
./gradlew ':x-pack:plugin:yamlRestTest' \
--tests "org.elasticsearch.xpack.test.rest.XPackRestIT.test {p0=user_profile/10_basic/Test search user profile}" \
-Dtests.seed=70BB2C6E68358B31 -Dtests.locale=lv -Dtests.timezone=Europe/Skopje \
-Druntime.java=17 -Dtests.fips.enabled=true
```
You can solve this by switching `hasContent` + `contentParser` to `hasContentOrSourceParam()` + `contentOrSourceParamParser()` (for an example, see `RestQueryApiKeyAction`)
| https://github.com/elastic/elasticsearch/issues/85090 | https://github.com/elastic/elasticsearch/pull/85139 | 9ec646302dfbea6d1ffd2bdd1607799f3a599048 | 0d3295a15b7309fa3a8be2c6a362e0329b19ff23 | 2022-03-18T06:40:02Z | java | 2022-03-21T12:29:20Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 85,087 | ["server/src/test/java/org/elasticsearch/cluster/coordination/CoordinatorTests.java"] | [CI] CoordinatorTests testReportsConnectBackProblemsDuringJoining failing | FIPS isn't important for reproduction, but the seed is.
**Build scan:**
https://gradle-enterprise.elastic.co/s/v3dsh3drezfug/tests/:server:test/org.elasticsearch.cluster.coordination.CoordinatorTests/testReportsConnectBackProblemsDuringJoining
**Reproduction line:**
`./gradlew ':server:test' --tests "org.elasticsearch.cluster.coordination.CoordinatorTests.testReportsConnectBackProblemsDuringJoining" -Dtests.seed=6F96290EB87A5EDE -Dtests.locale=es-VE -Dtests.timezone=America/Ojinaga -Druntime.java=17 -Dtests.fips.enabled=true`
**Applicable branches:**
master
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.cluster.coordination.CoordinatorTests&tests.test=testReportsConnectBackProblemsDuringJoining
**Failure excerpt:**
```
java.lang.AssertionError: (No message provided)
at __randomizedtesting.SeedInfo.seed([6F96290EB87A5EDE:F3F0B3A70F0E0906]: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.cluster.coordination.CoordinatorTests$6.assertMatched(CoordinatorTests.java:1707)
at org.elasticsearch.test.MockLogAppender.assertAllExpectationsMatched(MockLogAppender.java:55)
at org.elasticsearch.cluster.coordination.CoordinatorTests.testReportsConnectBackProblemsDuringJoining(CoordinatorTests.java:1719)
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:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/85087 | https://github.com/elastic/elasticsearch/pull/85101 | 55b52a25d2a56b4c648d2700e0eb04e37742db37 | ceb143b834d8e8dc3f6f8d8a9abb4ae44066314b | 2022-03-18T03:37:19Z | java | 2022-03-21T07:14:33Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 85,075 | ["x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm/PolicyStepsRegistry.java", "x-pack/plugin/ilm/src/test/java/org/elasticsearch/xpack/ilm/PolicyStepsRegistryTests.java"] | [CI] ILMMultiNodeIT testShrinkOnTiers failing | Started failing in this way about 10 days ago (3-7-22). Seems to be affecting 7.17 and 8.1 branches.
**Build scan:**
https://gradle-enterprise.elastic.co/s/kg23spzlawfu6/tests/:x-pack:plugin:ilm:internalClusterTest/org.elasticsearch.xpack.ilm.ILMMultiNodeIT/testShrinkOnTiers
**Reproduction line:**
`./gradlew ':x-pack:plugin:ilm:internalClusterTest' --tests "org.elasticsearch.xpack.ilm.ILMMultiNodeIT.testShrinkOnTiers" -Dtests.seed=F8EDA3E765E3F9DC -Dtests.locale=fr-LU -Dtests.timezone=Etc/GMT-6 -Druntime.java=11`
**Applicable branches:**
7.17, 8.1
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.ilm.ILMMultiNodeIT&tests.test=testShrinkOnTiers
**Failure excerpt:**
```
java.lang.AssertionError: Unable to find an ilm explain output for the shrunk index of myindex
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.junit.Assert.assertNotNull(Assert.java:712)
at org.elasticsearch.xpack.ilm.ILMMultiNodeIT.lambda$testShrinkOnTiers$0(ILMMultiNodeIT.java:154)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1142)
at org.elasticsearch.xpack.ilm.ILMMultiNodeIT.testShrinkOnTiers(ILMMultiNodeIT.java:137)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:566)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1750)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:938)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:974)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:988)
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:368)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:817)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:468)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:947)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:832)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:883)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:894)
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:368)
at java.lang.Thread.run(Thread.java:829)
``` | https://github.com/elastic/elasticsearch/issues/85075 | https://github.com/elastic/elasticsearch/pull/85346 | bd6b27c699de8ad807d862492e174f33fb3b2002 | ff517c57c4cbb4fc638e855805ff0e376c39a865 | 2022-03-17T20:00:04Z | java | 2022-03-28T14:31:10Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 85,056 | ["modules/data-streams/src/test/java/org/elasticsearch/datastreams/DataStreamGetWriteIndexTests.java"] | [CI] DataStreamGetWriteIndexTests testPickingBackingIndicesPredefinedDates failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/xyy3qgfryjs2y/tests/:modules:data-streams:test/org.elasticsearch.datastreams.DataStreamGetWriteIndexTests/testPickingBackingIndicesPredefinedDates
**Reproduction line:**
`./gradlew ':modules:data-streams:test' --tests "org.elasticsearch.datastreams.DataStreamGetWriteIndexTests.testPickingBackingIndicesPredefinedDates" -Dtests.seed=123E35694A81242C -Dtests.locale=da-DK -Dtests.timezone=Asia/Pontianak -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.datastreams.DataStreamGetWriteIndexTests&tests.test=testPickingBackingIndicesPredefinedDates
**Failure excerpt:**
```
java.lang.AssertionError:
Expected: not null
but: was null
at __randomizedtesting.SeedInfo.seed([123E35694A81242C:DA947B7805F37533]:0)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.datastreams.DataStreamGetWriteIndexTests.testPickingBackingIndicesPredefinedDates(DataStreamGetWriteIndexTests.java:93)
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:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/85056 | https://github.com/elastic/elasticsearch/pull/85061 | 73226d2d52d78fee4747a4c3f3e92854530832f1 | 087106ab99c457bc99b095e5057b56bebb484df6 | 2022-03-17T10:21:40Z | java | 2022-03-17T13:34:45Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 85,046 | ["docs/reference/redirects.asciidoc", "x-pack/docs/en/security/configuring-stack-security.asciidoc", "x-pack/docs/en/security/images/elastic-security-overview.png", "x-pack/docs/en/security/index.asciidoc", "x-pack/docs/en/security/securing-communications/security-minimal-setup.asciidoc", "x-pack/docs/en/security/security-manual-configuration.asciidoc"] | 8.x security setup docs don't describe how to set up kibana | ### Description
As part of security on by default we removed a lot of the existing "setting up security" documentation, because it was no longer relevant.
However, that means that we have a gap in our docs for people who want to turn on security on an existing cluster.
In particular the 7.x docs have a page for [setting up passwords and configuring Kibana](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html#security-create-builtin-users) but there is no obvious replacement in 8.x
The docs jump straight into setting up TLS, and skip the Kibana authentication process.
| https://github.com/elastic/elasticsearch/issues/85046 | https://github.com/elastic/elasticsearch/pull/88393 | 2605b9e1215041e1a7cc4983fbe919e94df86b12 | 1441367d0b14eb891b221f9a21846b791aa89cc7 | 2022-03-17T00:50:11Z | java | 2022-07-19T14:01:34Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 85,043 | ["docs/changelog/85287.yaml", "x-pack/plugin/watcher/src/main/java/org/elasticsearch/xpack/watcher/support/WatcherIndexTemplateRegistry.java"] | Watcher history created as index with wrong mapping instead of data stream after 8.0 upgrade | ### Elasticsearch Version
8.0.1
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
Elastic Cloud
### Problem Description
After upgrading from 7.17 to 8.0.1 we noticed that some watches would not write their history.
The ES logs has many log lines similar to
`[instance-0000000115] watch history could not be written [mywatch_5a0585ef-b8b1-4526-8b24-9fb9bf58981d-2022-03-15T11:29:32.801579308Z], failure [org.elasticsearch.index.mapper.MapperParsingException: failed to parse]`
I noticed that `.watcher-history-16` has the wrong mapping as everything just has default `.text`+`.keyword`, and the index template has a lot more specific fields. But the index template applies to a data stream, but `.watcher-history-16` got created as an index, so the template didn't apply. It should have been created as a data stream after https://github.com/elastic/elasticsearch/pull/64252, but somehow it didn't.
### Steps to Reproduce
(unconfirmed)
Create a 7.17 cluster with multiple nodes
Create multiple watches that fire rapidly.
Upgrade ES to 8.x
`.watcher-history-16` should be created as data stream, but got created as an index.
I tried it with a simple cluster and one watch firing every second and it upgraded to datastream, so it might be a race condition or depend on how many watches/how many nodes (we have ~80 watches/12 nodes)
### Logs (if relevant)
_No response_
This looks a bit similar to https://github.com/elastic/elasticsearch/issues/56732 except now that it's a data stream it won't be "fixed" by waiting until roll over. | https://github.com/elastic/elasticsearch/issues/85043 | https://github.com/elastic/elasticsearch/pull/85287 | f484d5f22cfe354f7dd98619b621fd5159782051 | 45d3b962b7fc5656d5f13145c32427556b08c3ca | 2022-03-16T21:58:15Z | java | 2022-03-23T20:54:25Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 85,036 | ["x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm/PolicyStepsRegistry.java", "x-pack/plugin/ilm/src/test/java/org/elasticsearch/xpack/ilm/PolicyStepsRegistryTests.java"] | [CI] org.elasticsearch.xpack.ilm.TimeseriesMoveToStepIT.testMoveToRolloverStep fails | ### CI Link
https://gradle-enterprise.elastic.co/s/deqtxspnhxyva
### Repro line
./gradlew ':x-pack:plugin:ilm:qa:multi-node:javaRestTest' --tests "org.elasticsearch.xpack.ilm.TimeseriesMoveToStepIT.testMoveToRolloverStep" -Dtests.seed=81FF6263145E4101 -Dtests.locale=es-ES -Dtests.timezone=America/Godthab -Druntime.java=8
### Does it reproduce?
No
### Applicable branches
7.17
### Failure history
Failed two times in the last 30 days, all very recent: https://gradle-enterprise.elastic.co/s/yp56iltyyinha
### Failure excerpt
The tests `TimeseriesMoveToStepIT.testMoveToRolloverStep` and `TimeseriesMoveToStepIT.testMoveToAllocateStep` both failed.
I'm not sure what is the root cause but this is maybe interesting:
```
» [2022-03-16T10:55:00,346][ERROR][o.e.ExceptionsHelper ] [javaRestTest-0] fatal error
» at org.elasticsearch.ExceptionsHelper.lambda$maybeDieOnAnotherThread$4(ExceptionsHelper.java:287)
» at java.util.Optional.ifPresent(Optional.java:159)
» at org.elasticsearch.ExceptionsHelper.maybeDieOnAnotherThread(ExceptionsHelper.java:277)
» at org.elasticsearch.xpack.core.scheduler.SchedulerEngine$ActiveSchedule.run(SchedulerEngine.java:229)
» at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
» at java.util.concurrent.FutureTask.run(FutureTask.java:266)
» at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
» at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
» at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
» at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
» at java.lang.Thread.run(Thread.java:748)
» [2022-03-16T10:55:00,347][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [javaRestTest-0] fatal error in thread [Thread-4], exiting
» java.lang.AssertionError: policy step registry cache failed sanity check
» at org.elasticsearch.xpack.ilm.PolicyStepsRegistry.getStep(PolicyStepsRegistry.java:378) ~[?:?]
» at org.elasticsearch.xpack.ilm.IndexLifecycleRunner.getCurrentStep(IndexLifecycleRunner.java:108) ~[?:?]
» at org.elasticsearch.xpack.ilm.IndexLifecycleRunner.runPeriodicStep(IndexLifecycleRunner.java:173) ~[?:?]
» at org.elasticsearch.xpack.ilm.IndexLifecycleService.triggerPolicies(IndexLifecycleService.java:418) ~[?:?]
» at org.elasticsearch.xpack.ilm.IndexLifecycleService.triggered(IndexLifecycleService.java:349) ~[?:?]
» at org.elasticsearch.xpack.core.scheduler.SchedulerEngine.notifyListeners(SchedulerEngine.java:186) ~[?:?]
» at org.elasticsearch.xpack.core.scheduler.SchedulerEngine$ActiveSchedule.run(SchedulerEngine.java:220) ~[?:?]
» at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_301]
» at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_301]
» at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) ~[?:1.8.0_301]
» at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) ~[?:1.8.0_301]
» at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_301]
» at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_301]
» at java.lang.Thread.run(Thread.java:748) [?:1.8.0_301]
» ↓ last 40 non err
```
As well as :
```
"action":"init","step":"ERROR","step_time":"1647428098374"},"error_details":"{\"type\":\"initialize_policy_exception\",\"reason\":\"unable to initialize policy [policy-zZOnT] for index [retryinit-20xx-01-10]\",\"caused_by\":{\"type\":\"illegal_argument_exception\",\"reason\":\"index name [retryinit-20xx-01-10] does not match pattern
```
The test `ShrinkActionIT.testShrinkDuringSnapshot` also failed but I suspect it is more a consequence of the other failures. | https://github.com/elastic/elasticsearch/issues/85036 | https://github.com/elastic/elasticsearch/pull/85346 | bd6b27c699de8ad807d862492e174f33fb3b2002 | ff517c57c4cbb4fc638e855805ff0e376c39a865 | 2022-03-16T15:26:16Z | java | 2022-03-28T14:31:10Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,981 | ["x-pack/plugin/spatial/src/test/java/org/elasticsearch/xpack/spatial/search/aggregations/bucket/geogrid/GeoGridTilerTestCase.java"] | [CI] GeoHashTilerTests testGeoGridSetValuesBoundingBoxes_BoundedGeoShapeCellValues failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/ask5vfgjvbbuo/tests/:x-pack:plugin:spatial:test/org.elasticsearch.xpack.spatial.search.aggregations.bucket.geogrid.GeoHashTilerTests/testGeoGridSetValuesBoundingBoxes_BoundedGeoShapeCellValues
**Reproduction line:**
`./gradlew ':x-pack:plugin:spatial:test' --tests "org.elasticsearch.xpack.spatial.search.aggregations.bucket.geogrid.GeoHashTilerTests.testGeoGridSetValuesBoundingBoxes_BoundedGeoShapeCellValues" -Dtests.seed=7484FE1A8DCD8AE6 -Dtests.locale=pt -Dtests.timezone=Brazil/Acre -Druntime.java=11 -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.xpack.spatial.search.aggregations.bucket.geogrid.GeoHashTilerTests&tests.test=testGeoGridSetValuesBoundingBoxes_BoundedGeoShapeCellValues
**Failure excerpt:**
```
java.lang.IllegalArgumentException: Unable to Tessellate shape [[2.6667632497094215E-156, -4.1009676073883347E-303] [2.6667632497094215E-156, -2.606373471402386E-280] [1.8928815155191063E-270, -2.606373471402386E-280] [1.8928815155191063E-270, -4.1009676073883347E-303] [2.6667632497094215E-156, -4.1009676073883347E-303] ]. Possible malformed shape detected.
at __randomizedtesting.SeedInfo.seed([7484FE1A8DCD8AE6:78F04FD79E29BB77]:0)
at org.apache.lucene.geo.Tessellator.tessellate(Tessellator.java:116)
at org.apache.lucene.document.LatLonShape.createIndexableFields(LatLonShape.java:72)
at org.elasticsearch.index.mapper.GeoShapeIndexer$LuceneGeometryIndexer.visit(GeoShapeIndexer.java:246)
at org.elasticsearch.index.mapper.GeoShapeIndexer$LuceneGeometryIndexer.visit(GeoShapeIndexer.java:178)
at org.elasticsearch.geometry.Polygon.visit(Polygon.java:84)
at org.elasticsearch.index.mapper.GeoShapeIndexer.indexShape(GeoShapeIndexer.java:174)
at org.elasticsearch.xpack.spatial.util.GeoTestUtils.binaryGeoShapeDocValuesField(GeoTestUtils.java:54)
at org.elasticsearch.xpack.spatial.util.GeoTestUtils.geoShapeValue(GeoTestUtils.java:60)
at org.elasticsearch.xpack.spatial.search.aggregations.bucket.geogrid.GeoGridTilerTestCase.testGeoGridSetValuesBoundingBoxes_BoundedGeoShapeCellValues(GeoGridTilerTestCase.java:116)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:566)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1750)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:938)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:974)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:988)
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:368)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:817)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:468)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:947)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:832)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:883)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:894)
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:368)
at java.lang.Thread.run(Thread.java:834)
``` | https://github.com/elastic/elasticsearch/issues/84981 | https://github.com/elastic/elasticsearch/pull/84986 | f0dd106ad7052d2553e45dea9f59c05b52da2209 | 52726892b8396217d078e773224fd7906184df61 | 2022-03-15T12:01:57Z | java | 2022-03-18T14:16:11Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,980 | ["x-pack/plugin/security/src/internalClusterTest/java/org/elasticsearch/xpack/security/profile/ProfileDomainIntegTests.java"] | [CI] ProfileDomainIntegTests testConcurrentCreationOfNewProfiles failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/nmjznurkclizw/tests/:x-pack:plugin:security:internalClusterTest/org.elasticsearch.xpack.security.profile.ProfileDomainIntegTests/testConcurrentCreationOfNewProfiles
**Reproduction line:**
`./gradlew ':x-pack:plugin:security:internalClusterTest' --tests "org.elasticsearch.xpack.security.profile.ProfileDomainIntegTests.testConcurrentCreationOfNewProfiles" -Dtests.seed=DF7A58E7374EF2C7 -Dtests.locale=id-ID -Dtests.timezone=Europe/Ljubljana -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.security.profile.ProfileDomainIntegTests&tests.test=testConcurrentCreationOfNewProfiles
**Failure excerpt:**
```
com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=339, name=Thread-17, state=RUNNABLE, group=TGRP-ProfileDomainIntegTests]
Caused by: java.lang.AssertionError: caught error when creating new profile: org.elasticsearch.action.UnavailableShardsException: at least one primary shard for the index [.security-profile-8] is unavailable
at __randomizedtesting.SeedInfo.seed([DF7A58E7374EF2C7]:0)
at org.junit.Assert.fail(Assert.java:88)
at org.elasticsearch.xpack.security.profile.ProfileDomainIntegTests.lambda$testConcurrentCreationOfNewProfiles$0(ProfileDomainIntegTests.java:321)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84980 | https://github.com/elastic/elasticsearch/pull/85012 | 9d83874ba462fe4dc4b9b4c50cca5bd3b6af5ede | 33421e050300cc08f1338e8a0ebf3c4440a5786c | 2022-03-15T11:59:42Z | java | 2022-03-16T03:26:17Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,979 | ["x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm/PolicyStepsRegistry.java", "x-pack/plugin/ilm/src/test/java/org/elasticsearch/xpack/ilm/PolicyStepsRegistryTests.java"] | [CI] ChangePolicyforIndexIT.testChangePolicyForIndex | ### CI Link
https://gradle-enterprise.elastic.co/s/yp56iltyyinha
### Repro line
./gradlew ':x-pack:plugin:ilm:qa:multi-node:javaRestTest' --tests "org.elasticsearch.xpack.ilm.ChangePolicyforIndexIT.testChangePolicyForIndex" -Dtests.seed=8825024EAE3089DD -Dtests.locale=en-PH -Dtests.timezone=Asia/Karachi -Druntime.java=16
### Does it reproduce?
No
### Applicable branches
7.17 (probably all 8+)
### Failure history
_No response_
### Failure excerpt
This is rather concerning
```
java.lang.AssertionError: policy step registry cache failed sanity check
at org.elasticsearch.xpack.ilm.PolicyStepsRegistry.getStep(PolicyStepsRegistry.java:378) ~[?:?]
at org.elasticsearch.xpack.ilm.IndexLifecycleRunner.getCurrentStep(IndexLifecycleRunner.java:108) ~[?:?]
at org.elasticsearch.xpack.ilm.IndexLifecycleRunner.runPolicyAfterStateChange(IndexLifecycleRunner.java:430) ~[?:?]
at org.elasticsearch.xpack.ilm.IndexLifecycleService.triggerPolicies(IndexLifecycleService.java:416) ~[?:?]
at org.elasticsearch.xpack.ilm.IndexLifecycleService.clusterChanged(IndexLifecycleService.java:319) ~[?:?]
at org.elasticsearch.cluster.service.ClusterApplierService.callClusterStateListener(ClusterApplierService.java:573) ~[elasticsearch-7.17.2-SNAPSHOT.jar:7.17.2-SNAPSHOT]
at org.elasticsearch.cluster.service.ClusterApplierService.callClusterStateListeners(ClusterApplierService.java:559) ~[elasticsearch-7.17.2-SNAPSHOT.jar:7.17.2-SNAPSHOT]
at org.elasticsearch.cluster.service.ClusterApplierService.applyChanges(ClusterApplierService.java:519) ~[elasticsearch-7.17.2-SNAPSHOT.jar:7.17.2-SNAPSHOT]
at org.elasticsearch.cluster.service.ClusterApplierService.runTask(ClusterApplierService.java:428) ~[elasticsearch-7.17.2-SNAPSHOT.jar:7.17.2-SNAPSHOT]
at org.elasticsearch.cluster.service.ClusterApplierService.access$000(ClusterApplierService.java:56) ~[elasticsearch-7.17.2-SNAPSHOT.jar:7.17.2-SNAPSHOT]
at org.elasticsearch.cluster.service.ClusterApplierService$UpdateTask.run(ClusterApplierService.java:154) ~[elasticsearch-7.17.2-SNAPSHOT.jar:7.17.2-SNAPSHOT]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:718) ~[elasticsearch-7.17.2-SNAPSHOT.jar:7.17.2-SNAPSHOT]
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:262) ~[elasticsearch-7.17.2-SNAPSHOT.jar:7.17.2-SNAPSHOT]
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:225) ~[elasticsearch-7.17.2-SNAPSHOT.jar:7.17.2-SNAPSHOT]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[?:?]
at java.lang.Thread.run(Thread.java:831) [?:?]
[2022-03-15T09:34:09.657115416Z] [BUILD] Stopping node
``` | https://github.com/elastic/elasticsearch/issues/84979 | https://github.com/elastic/elasticsearch/pull/85346 | bd6b27c699de8ad807d862492e174f33fb3b2002 | ff517c57c4cbb4fc638e855805ff0e376c39a865 | 2022-03-15T11:58:50Z | java | 2022-03-28T14:31:10Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,975 | ["rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/indices.forcemerge/10_basic.yml"] | [CI] ClientYamlTestSuiteIT test {yaml=indices.get_alias/10_basic/Get alias with local flag} failing | Similar to #82151 - needs to be prepared to encounter system indices (ie. .tasks)
**Build scan:**
https://gradle-enterprise.elastic.co/s/uhzvmq7tvt5jw/tests/:rest-api-spec:yamlRestTest/org.elasticsearch.test.rest.ClientYamlTestSuiteIT/test%20%7Byaml=indices.get_alias%2F10_basic%2FGet%20alias%20with%20local%20flag%7D
**Reproduction line:**
`./gradlew ':rest-api-spec:yamlRestTest' --tests "org.elasticsearch.test.rest.ClientYamlTestSuiteIT" -Dtests.method="test {yaml=indices.get_alias/10_basic/Get alias with local flag}" -Dtests.seed=ED7A1E2FB2CC2351 -Dtests.locale=ko -Dtests.timezone=Etc/GMT+3 -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.test.rest.ClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dindices.get_alias/10_basic/Get%20alias%20with%20local%20flag%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [indices.get_alias/10_basic:302]: got unexpected warning header [
299 Elasticsearch-8.2.0-SNAPSHOT-61c3b82c2ed805ab9fa8de764a16e96b41488510 "this request accesses system indices: [.tasks], but in a future major version, direct access to system indices will be prevented by default"
]
at __randomizedtesting.SeedInfo.seed([ED7A1E2FB2CC2351:652E21F51C304EA9]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:493)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.AssertionError: got unexpected warning header [
299 Elasticsearch-8.2.0-SNAPSHOT-61c3b82c2ed805ab9fa8de764a16e96b41488510 "this request accesses system indices: [.tasks], but in a future major version, direct access to system indices will be prevented by default"
]
at org.junit.Assert.fail(Assert.java:88)
at org.elasticsearch.test.rest.yaml.section.DoSection.checkWarningHeaders(DoSection.java:514)
at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:372)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:482)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84975 | https://github.com/elastic/elasticsearch/pull/85683 | 378736ac320afe5d4d82fcfb38e196346d63ca5b | 92852f3eac3c6dfe7689c61a5a852aba1d6ecb07 | 2022-03-15T11:20:41Z | java | 2022-04-04T21:26:52Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,972 | ["rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.allocation/10_basic.yml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.indices/10_basic.yml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.indices/20_hidden.yml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.shards/10_basic.yml"] | [CI] ClientYamlTestSuiteIT test {yaml=cat.indices/20_hidden/Test cat indices output for dot-hidden index and dot-prefixed pattern} failing | Similar to #82151
These regexes need to be prepared to see .tasks (and other system indices)
**Build scan:**
https://gradle-enterprise.elastic.co/s/amzx7q7wv6472/tests/:rest-api-spec:yamlRestTest/org.elasticsearch.test.rest.ClientYamlTestSuiteIT/test%20%7Byaml=cat.indices%2F20_hidden%2FTest%20cat%20indices%20output%20for%20dot-hidden%20index%20and%20dot-prefixed%20pattern%7D
**Reproduction line:**
`./gradlew ':rest-api-spec:yamlRestTest' --tests "org.elasticsearch.test.rest.ClientYamlTestSuiteIT" -Dtests.method="test {yaml=cat.indices/20_hidden/Test cat indices output for dot-hidden index and dot-prefixed pattern}" -Dtests.seed=BBE00A4907456C0D -Dtests.locale=und -Dtests.timezone=America/Argentina/Ushuaia -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.test.rest.ClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dcat.indices/20_hidden/Test%20cat%20indices%20output%20for%20dot-hidden%20index%20and%20dot-prefixed%20pattern%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [cat.indices/20_hidden:62]: field [$body] was expected to match the provided regex but didn't
Expected: ^(green \s+
open \s+
\.index1 \s+
([a-zA-Z0-9=/_+]|[\\\-]){22} \s+
1 \s+
0 \s+
0 \s+
0 \s+
(\d+|\d+[.]\d+)(kb|b) \s+
(\d+|\d+[.]\d+)(kb|b) \s*
)
$
but: was "green open .index1 EoB3_v1ZRna6bjWL6dEVZg 1 0 0 0 225b 225b\ngreen open .tasks bpEwrkQXQ32__CwtJPROgA 1 0 0 0 225b 225b\n"
at __randomizedtesting.SeedInfo.seed([BBE00A4907456C0D:33B43593A9B901F5]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:493)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.AssertionError: field [$body] was expected to match the provided regex but didn't
Expected: ^(green \s+
open \s+
\.index1 \s+
([a-zA-Z0-9=/_+]|[\\\-]){22} \s+
1 \s+
0 \s+
0 \s+
0 \s+
(\d+|\d+[.]\d+)(kb|b) \s+
(\d+|\d+[.]\d+)(kb|b) \s*
)
$
but: was "green open .index1 EoB3_v1ZRna6bjWL6dEVZg 1 0 0 0 225b 225b\ngreen open .tasks bpEwrkQXQ32__CwtJPROgA 1 0 0 0 225b 225b\n"
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.elasticsearch.test.rest.yaml.section.MatchAssertion.doAssert(MatchAssertion.java:64)
at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:482)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84972 | https://github.com/elastic/elasticsearch/pull/84539 | 8a1632235daa140f3904cfe46f8215537c75ded3 | c4b1f18f32aa337253664d1295bc1b59233b3d44 | 2022-03-15T11:02:23Z | java | 2022-03-24T19:08:51Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,948 | ["server/src/main/java/org/elasticsearch/transport/ForkingResponseHandlerRunnable.java", "server/src/main/java/org/elasticsearch/transport/InboundHandler.java", "server/src/main/java/org/elasticsearch/transport/TransportService.java", "server/src/test/java/org/elasticsearch/transport/TransportServiceLifecycleTests.java", "test/framework/src/main/java/org/elasticsearch/transport/AbstractSimpleTransportTestCase.java"] | LEAK resource not cleaned up RelocationIT testRelocationEstablishedPeerRecoveryRetentionLeases | ### CI Link
https://gradle-enterprise.elastic.co/s/coilrchnhdicw
### Repro line
./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.recovery.RelocationIT.testRelocationEstablishedPeerRecoveryRetentionLeases" -Dtests.seed=48DD4597C7EC8FF7 -Dtests.locale=es-PA -Dtests.timezone=Europe/Bucharest -Druntime.java=17
### Does it reproduce?
No
### Applicable branches
master
### Failure history
https://gradle-enterprise.elastic.co/scans/tests?search.relativeStartTime=P7D&search.timeZoneId=Europe/Bucharest&tests.container=org.elasticsearch.recovery.RelocationIT&tests.sortField=FAILED&tests.test=testRelocationEstablishedPeerRecoveryRetentionLeases&tests.unstableOnly=true
### Failure excerpt
1> [2022-03-14T13:43:38,122][INFO ][o.e.r.RelocationIT ] [testRelocationEstablishedPeerRecoveryRetentionLeases] [RelocationIT#testRelocationEstablishedPeerRecoveryRetentionLeases]: cleaned up after test
2> REPRODUCE WITH: ./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.recovery.RelocationIT.testRelocationEstablishedPeerRecoveryRetentionLeases" -Dtests.seed=48DD4597C7EC8FF7 -Dtests.locale=es-PA -Dtests.timezone=Europe/Bucharest -Druntime.java=17
2> java.lang.AssertionError:
Expected: an empty collection
but: <[LEAK: resource was not cleaned up before it was garbage-collected.
Recent access records:
Created at:
org.elasticsearch.common.util.MockPageCacheRecycler.wrap(MockPageCacheRecycler.java:32)
org.elasticsearch.common.util.MockPageCacheRecycler.bytePage(MockPageCacheRecycler.java:72)
org.elasticsearch.transport.BytesRefRecycler.obtain(BytesRefRecycler.java:27)
org.elasticsearch.common.io.stream.RecyclerBytesStreamOutput.ensureCapacityFromPosition(RecyclerBytesStreamOutput.java:211)
org.elasticsearch.common.io.stream.RecyclerBytesStreamOutput.ensureCapacity(RecyclerBytesStreamOutput.java:202)
org.elasticsearch.common.io.stream.RecyclerBytesStreamOutput.writeBytes(RecyclerBytesStreamOutput.java:77)
org.elasticsearch.common.io.Streams$FlushOnCloseOutputStream.writeBytes(Streams.java:274)
org.elasticsearch.common.io.stream.StreamOutput.write(StreamOutput.java:482)
java.base/java.io.OutputStream.write(OutputStream.java:127)
org.elasticsearch.common.compress.DeflateCompressor.threadLocalOutputStream(DeflateCompressor.java:179)
org.elasticsearch.cluster.coordination.PublicationTransportHandler.serializeDiffClusterState(PublicationTransportHandler.java:266)
org.elasticsearch.cluster.coordination.PublicationTransportHandler$PublicationContext.lambda$buildDiffAndSerializeStates$2(PublicationTransportHandler.java:329)
java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1220)
org.elasticsearch.cluster.coordination.PublicationTransportHandler$PublicationContext.buildDiffAndSerializeStates(PublicationTransportHandler.java:327)
org.elasticsearch.cluster.coordination.PublicationTransportHandler.newPublicationContext(PublicationTransportHandler.java:213)
org.elasticsearch.cluster.coordination.Coordinator.publish(Coordinator.java:1368)
org.elasticsearch.cluster.service.MasterService.publish(MasterService.java:416)
org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:309)
org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:153)
org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:114)
org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:170)
org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:717)
org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:260)
org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:223)
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
java.base/java.lang.Thread.run(Thread.java:833)]>
at __randomizedtesting.SeedInfo.seed([48DD4597C7EC8FF7:886D486B4E0323C8]: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.test.ESTestCase.checkStaticState(ESTestCase.java:639)
at org.elasticsearch.test.ESTestCase.after(ESTestCase.java:427)
at jdk.internal.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
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$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:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.base/java.lang.Thread.run(Thread.java:833)
1> [2022-03-14T13:43:38,149][INFO ][o.e.r.RelocationIT ] [testIndexSearchAndRelocateConcurrently] before test
1> [2022-03-14T13:43:38,149][INFO ][o.e.r.RelocationIT ] [testIndexSearchAndRelocateConcurrently] [RelocationIT#testIndexSearchAndRelocateConcurrently]: setting up test
1> [2022-03-14T13:43:38,150][INFO ][o.e.t.InternalTestCluster] [testIndexSearchAndRelocateConcurrently] Setup InternalTestCluster [TEST-TEST_WORKER_VM=[471]-CLUSTER_SEED=[-2805428162336455921]-HASH=[1322FA3E367]-cluster] with seed [D9111DF33D0F030F] using [0] dedicated masters, [0] (data) nodes and [0] coord only nodes (master nodes are [auto-managed]) | https://github.com/elastic/elasticsearch/issues/84948 | https://github.com/elastic/elasticsearch/pull/85131 | fd76f9c5d12b50eab2dd3f3c64353661d37fb071 | 8f9d2fa924bb50a0eb604c599da41ed5810d0bfa | 2022-03-14T13:10:49Z | java | 2022-03-22T17:25:10Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,943 | ["docs/changelog/87082.yaml", "docs/reference/modules/threadpool.asciidoc", "server/src/main/java/org/elasticsearch/threadpool/ThreadPool.java", "server/src/test/java/org/elasticsearch/threadpool/ThreadPoolTests.java"] | Increase force_merge thread_pool based on allocated processors | ### Description
Today, [force merge is assigned one thread](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-threadpool.html) only.
> For [force merge](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-forcemerge.html) operations. Thread pool type is fixed with a size of 1 and an unbounded queue size.
In a large cluster where there are many processors available, there could be a backlog of force merge queued up. Perhaps we should look into changing the default of force merge thread_pool to a max of `min(1, (# of allocated processors) / 8)` | https://github.com/elastic/elasticsearch/issues/84943 | https://github.com/elastic/elasticsearch/pull/87082 | fbf335dcf147ccc65843cc83e9ca96804269a4ca | beadcaf631c5541e16b1c81e137aa7c030327059 | 2022-03-14T10:37:24Z | java | 2022-05-25T13:45:28Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,927 | ["rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.aggregation/470_significant_texts.yml"] | [CI] SmokeTestMultiNodeClientYamlTestSuiteIT test {yaml=search.aggregation/470_significant_texts/*} failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/wshfsmsab4tk4/tests/:qa:smoke-test-multinode:integTest/org.elasticsearch.smoketest.SmokeTestMultiNodeClientYamlTestSuiteIT/test%20%7Byaml=search.aggregation%2F470_significant_texts%2Fsignificant_texts%20with%20min_doc_count%7D
**Reproduction line:**
`./gradlew ':qa:smoke-test-multinode:integTest' --tests "org.elasticsearch.smoketest.SmokeTestMultiNodeClientYamlTestSuiteIT" -Dtests.method="test {yaml=search.aggregation/470_significant_texts/significant_texts with min_doc_count}" -Dtests.seed=A31EEA51FD9A97F7 -Dtests.locale=zh-CN -Dtests.timezone=America/Lima -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.smoketest.SmokeTestMultiNodeClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dsearch.aggregation/470_significant_texts/significant_texts%20with%20min_doc_count%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [search.aggregation/470_significant_texts:136]: field [aggregations.significant_texts.keywords.buckets] doesn't have length [1]
Expected: <1>
but: was <0>
at __randomizedtesting.SeedInfo.seed([A31EEA51FD9A97F7:2B4AD58B5366FA0F]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:493)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.AssertionError: field [aggregations.significant_texts.keywords.buckets] doesn't have length [1]
Expected: <1>
but: was <0>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.elasticsearch.test.rest.yaml.section.LengthAssertion.doAssert(LengthAssertion.java:65)
at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:482)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84927 | https://github.com/elastic/elasticsearch/pull/84998 | 61cd70be16e8f156173fa98c9e004cba16c835af | b0de0683f632b4ffc9bcf76cf902902cdc653cb2 | 2022-03-14T00:02:01Z | java | 2022-03-17T10:25:05Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,888 | ["x-pack/plugin/ccr/qa/security/build.gradle", "x-pack/plugin/ccr/qa/security/follower-roles.yml", "x-pack/plugin/ccr/qa/security/leader-roles.yml", "x-pack/plugin/ccr/qa/security/src/test/java/org/elasticsearch/xpack/ccr/FollowIndexSecurityIT.java", "x-pack/plugin/ccr/qa/src/main/java/org/elasticsearch/xpack/ccr/ESCCRRestTestCase.java"] | [CI] FollowIndexSecurityIT testAutoFollowPatterns failing | This and `testFollowIndex` have failed a few times with the same error. Couldn't reproduce locally.
**Build scan:**
https://gradle-enterprise.elastic.co/s/pqz55bchjt7l6/tests/:x-pack:plugin:ccr:qa:security:follow-cluster/org.elasticsearch.xpack.ccr.FollowIndexSecurityIT/testAutoFollowPatterns
**Reproduction line:**
`./gradlew ':x-pack:plugin:ccr:qa:security:follow-cluster' --tests "org.elasticsearch.xpack.ccr.FollowIndexSecurityIT.testAutoFollowPatterns" -Dtests.seed=706D9EF1E410A031 -Dtests.locale=es-PY -Dtests.timezone=Asia/Colombo -Druntime.java=17`
**Applicable branches:**
master, 8.1
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.ccr.FollowIndexSecurityIT&tests.test=testAutoFollowPatterns
**Failure excerpt:**
```
java.lang.AssertionError:
Expected: a value equal to or greater than <1>
but: <0> was less than <1>
at __randomizedtesting.SeedInfo.seed([706D9EF1E410A031:D9CA20DA2CFE31B5]: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.ccr.ESCCRRestTestCase.verifyAutoFollowMonitoring(ESCCRRestTestCase.java:247)
at org.elasticsearch.xpack.ccr.FollowIndexSecurityIT.lambda$testAutoFollowPatterns$15(FollowIndexSecurityIT.java:183)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1070)
at org.elasticsearch.xpack.ccr.FollowIndexSecurityIT.testAutoFollowPatterns(FollowIndexSecurityIT.java:181)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84888 | https://github.com/elastic/elasticsearch/pull/87853 | b318cd6f80aaa94fcd074fae2509dc5e028c1b31 | 2582ceca6625ec40e6b9251ac6057cff73022023 | 2022-03-10T20:12:57Z | java | 2022-06-21T15:18:48Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,885 | ["x-pack/plugin/enrich/qa/common/src/main/java/org/elasticsearch/test/enrich/CommonEnrichRestTestCase.java"] | [CI] EnrichSecurityIT testBasicFlowDate failing | ```
org.elasticsearch.client.ResponseException: method [DELETE], host [http://[::1]:35575], URI [/_enrich/policy/my_policy], status line [HTTP/1.1 409 Conflict]
{"error":{"root_cause":[{"type":"status_exception","reason":"Could not delete policy [my_policy] because a pipeline is referencing it [my_pipeline]"}],"type":"status_exception","reason":"Could not delete policy [my_policy] because a pipeline is referencing it [my_pipeline]"},"status":409}
at app//org.elasticsearch.client.RestClient.convertResponse(RestClient.java:346)
at app//org.elasticsearch.client.RestClient.performRequest(RestClient.java:312)
at app//org.elasticsearch.client.RestClient.performRequest(RestClient.java:287)
at app//org.elasticsearch.test.enrich.CommonEnrichRestTestCase.deletePolicies(CommonEnrichRestTestCase.java:45)
at [email protected]/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at [email protected]/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
```
**Build scan:**
https://gradle-enterprise.elastic.co/s/ooruaod473f74/tests/:x-pack:plugin:enrich:qa:rest-with-security:javaRestTest/org.elasticsearch.xpack.enrich.EnrichSecurityIT/testBasicFlowDate
**Reproduction line:**
`./gradlew ':x-pack:plugin:enrich:qa:rest-with-security:javaRestTest' --tests "org.elasticsearch.xpack.enrich.EnrichSecurityIT.testBasicFlowDate" -Dtests.seed=14AEA6846D2CD5B -Dtests.locale=mk-MK -Dtests.timezone=America/Moncton -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.enrich.EnrichSecurityIT&tests.test=testBasicFlowDate
**Failure excerpt:**
```
org.elasticsearch.client.WarningFailureException: method [PUT], host [http://127.0.0.1:34431], URI [/my-index/_doc/1?pipeline=my_pipeline], status line [HTTP/1.1 201 Created]
Warnings: [index name [.monitoring-es-7-2022.03.10] starts with a dot '.', in the next major version, index names starting with a dot are reserved for hidden indices and system indices]
{"_index":"my-index","_id":"1","_version":1,"result":"created","_shards":{"total":2,"successful":1,"failed":0},"_seq_no":0,"_primary_term":1}
at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:342)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:312)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:287)
at org.elasticsearch.test.enrich.CommonEnrichRestTestCase.setupGenericLifecycleTest(CommonEnrichRestTestCase.java:122)
at org.elasticsearch.test.enrich.CommonEnrichRestTestCase.testBasicFlowDate(CommonEnrichRestTestCase.java:148)
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:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84885 | https://github.com/elastic/elasticsearch/pull/85469 | b1b54d53e974597ca27d937447d36bb7d494ccbf | 42b0b39a6b49d1b17aad74b92835b38f7fec44e1 | 2022-03-10T17:20:20Z | java | 2022-03-30T13:13:16Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,869 | ["server/src/main/java/org/elasticsearch/cluster/metadata/SystemIndexMetadataUpgradeService.java", "server/src/main/java/org/elasticsearch/index/IndexService.java"] | [CI] ':x-pack:qa:full-cluster-restart:v7.5.0#upgradedClusterTest' | ### CI Link
https://gradle-enterprise.elastic.co/s/j4ilhrcoxxn64
### Repro line
./gradlew ':x-pack:qa:full-cluster-restart:v7.5.0#upgradedClusterTest'
### Does it reproduce?
Yes
### Applicable branches
master
### Failure history
https://gradle-enterprise.elastic.co/scans/failures?failures.failureClassification=all_failures&failures.failureMessage=Execution%20failed%20for%20task%20*%0A%3E%20process%20was%20found%20dead%20while%20waiting%20for%20cluster%20health%20yellow%2C%20*&search.relativeStartTime=P7D&search.timeZoneId=America/Chicago
### Failure excerpt
```
» [2022-03-10T15:01:58,728][WARN ][o.e.t.RemoteClusterConnection] [v7.5.0-0] fetching nodes from external cluster [foo] failed
» org.elasticsearch.transport.ConnectTransportException: [][127.0.0.1:9200] connect_exception
» at org.elasticsearch.transport.TcpTransport$ChannelsConnectedListener.onFailure(TcpTransport.java:989) ~[elasticsearch-7.5.0.jar:7.5.0]
» at org.elasticsearch.action.ActionListener.lambda$toBiConsumer$3(ActionListener.java:162) ~[elasticsearch-7.5.0.jar:7.5.0]
...
org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:223) ~[elasticsearch-8.1.1-SNAPSHOT.jar:8.1.1-SNAPSHOT]
» at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
» at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
» at java.lang.Thread.run(Thread.java:833) [?:?]
» Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: 127.0.0.1/127.0.0.1:45187
» Caused by: java.net.ConnectException: Connection refused
» at sun.nio.ch.Net.pollConnect(Native Method) ~[?:?]
» at sun.nio.ch.Net.pollConnectNow(Net.java:672) ~[?:?]
» at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:946) ~[?:?]
» at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330) ~[?:?]
» at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334) ~[?:?]
» at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:710) ~[?:?]
» at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:623) ~[?:?]
» at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:586) ~[?:?]
» at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496) ~[?:?]
» at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986) ~[?:?]
» at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[?:?]
» ... 1 more
``` | https://github.com/elastic/elasticsearch/issues/84869 | https://github.com/elastic/elasticsearch/pull/84994 | 91379ea21e7d987272ba49e385e74ec55a904d84 | 351a410ebfdbaf97d15971ad0a438f17d1126573 | 2022-03-10T15:19:33Z | java | 2022-03-16T07:34:09Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,862 | ["docs/reference/setup/bootstrap-checks.asciidoc", "server/src/main/java/org/elasticsearch/bootstrap/BootstrapSettings.java", "server/src/test/java/org/elasticsearch/bootstrap/BootstrapChecksTests.java"] | The docs still reference bootstrap.system_call_filter | ### Description
The [bootstrap checks docs for 8.1](https://github.com/elastic/elasticsearch/blob/8.1/docs/reference/setup/bootstrap-checks.asciidoc#system-call-filter-check) still have a [section for disabling system call filters](https://www.elastic.co/guide/en/elasticsearch/reference/8.1/_system_call_filter_check.html) even though that setting was removed in 8.0 (#72848) and its removal is [listed in the breaking changes](https://www.elastic.co/guide/en/elastic-stack/8.0/elasticsearch-breaking-changes.html)
| https://github.com/elastic/elasticsearch/issues/84862 | https://github.com/elastic/elasticsearch/pull/85964 | 8f5998142e5e64d767737f7b88a85f7489e9ea0c | 88600d156b23ff709be97d7b15da371b00eca172 | 2022-03-10T10:42:21Z | java | 2022-04-18T23:33:00Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,820 | ["docs/changelog/84988.yaml", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/nlp/ZeroShotClassificationProcessor.java", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/nlp/tokenizers/BertTokenizer.java", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/nlp/tokenizers/NlpTokenizer.java", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/nlp/tokenizers/RobertaTokenizer.java"] | [ML] improve zero_shot_classification speed by caching sequence tokenizations | ### Description
When completing a zero_shot classification task, there is the input sequence (provided by the user), and labels (also provided by the user).
Tokenization as it is done now tokenizes the input sequence len(labels) times. We should really only do it once and pass those tokenized values to request builder.
Some of the changes introduce here: https://github.com/elastic/elasticsearch/pull/84777 should make implementing this simpler (as there will be a unified temporary tokenization result object). | https://github.com/elastic/elasticsearch/issues/84820 | https://github.com/elastic/elasticsearch/pull/84988 | 273eeddc14601988ad0a70f0b199d163c6e09f1d | 31ccf3ac09e955c446a61a7bd4a10c3b00dbcabc | 2022-03-09T15:46:59Z | java | 2022-03-15T16:05:46Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,801 | ["docs/changelog/88785.yaml", "docs/reference/indices/diskusage.asciidoc", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/indices.stats/50_disk_usage.yml", "server/src/main/java/org/elasticsearch/action/admin/indices/diskusage/IndexDiskUsageAnalyzer.java", "server/src/main/java/org/elasticsearch/action/admin/indices/diskusage/IndexDiskUsageStats.java", "server/src/test/java/org/elasticsearch/action/admin/indices/diskusage/IndexDiskUsageAnalyzerTests.java"] | Add support for vectors to the disk usage API | ### Description
We now support storing KNN vectors as part of our indexed data. These vectors should be included in the disk usage API. | https://github.com/elastic/elasticsearch/issues/84801 | https://github.com/elastic/elasticsearch/pull/88785 | 9b5cd671ec9137466677269f28f599f11a59621a | abd561a277c4a232170485d1a4b66474aaeb5a00 | 2022-03-09T12:31:16Z | java | 2022-07-26T14:57:47Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,789 | ["server/src/internalClusterTest/java/org/elasticsearch/action/admin/indices/diskusage/IndexDiskUsageAnalyzerIT.java"] | [CI] IndexDiskUsageAnalyzerIT testFailOnFlush failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/obt4wmny6bivc/tests/:server:internalClusterTest/org.elasticsearch.action.admin.indices.diskusage.IndexDiskUsageAnalyzerIT/testFailOnFlush
**Reproduction line:**
`./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.action.admin.indices.diskusage.IndexDiskUsageAnalyzerIT.testFailOnFlush" -Dtests.seed=C9ACFD2D8D81F5D6 -Dtests.locale=sr-ME -Dtests.timezone=Canada/Mountain -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.action.admin.indices.diskusage.IndexDiskUsageAnalyzerIT&tests.test=testFailOnFlush
**Failure excerpt:**
```
java.lang.AssertionError: timed out waiting for green state
at __randomizedtesting.SeedInfo.seed([C9ACFD2D8D81F5D6:81E2B346E6E36417]:0)
at org.junit.Assert.fail(Assert.java:88)
at org.elasticsearch.test.ESIntegTestCase.ensureColor(ESIntegTestCase.java:960)
at org.elasticsearch.test.ESIntegTestCase.ensureGreen(ESIntegTestCase.java:899)
at org.elasticsearch.test.ESIntegTestCase.ensureGreen(ESIntegTestCase.java:888)
at org.elasticsearch.action.admin.indices.diskusage.IndexDiskUsageAnalyzerIT.testFailOnFlush(IndexDiskUsageAnalyzerIT.java:163)
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:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84789 | https://github.com/elastic/elasticsearch/pull/84814 | 4eaedb265dfddd1020e6e39d0797d378b8ce62a1 | 0a99a66bbdfeba9f2b4202f709dc60e00f89283c | 2022-03-09T08:40:53Z | java | 2022-03-09T15:24:18Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,788 | ["docs/changelog/87505.yaml", "server/src/internalClusterTest/java/org/elasticsearch/cluster/metadata/AutoExpandReplicasIT.java", "server/src/main/java/org/elasticsearch/cluster/metadata/AutoExpandReplicas.java", "server/src/test/java/org/elasticsearch/cluster/metadata/AutoExpandReplicasTests.java"] | Auto-expand replicas should clamp to closest value | ### Elasticsearch Version
All
### Installed Plugins
N/A
### Java Version
_bundled_
### OS Version
N/A
### Problem Description
Today if an index has an `index.auto_expand_replicas` setting which cannot be realised in the cluster then the number of replicas is left unchanged by `AllocationService#adaptAutoExpandReplicas()`. Instead, I think we should change the number of replicas to the closest value within the permitted range.
For instance: if a cluster has a single data node which is marked as shutting down for restart then auto-expand replicas considers this cluster to have zero data nodes, and hence requires -1 replicas. If an index is created with `index.auto_expand_replicas: "0-1"` then it will not be adjusted to have zero replicas, even though this would be better than leaving it at the default value of 1 replica, and will ultimately be the correct setting.
### Steps to Reproduce
1. Create a cluster with one data node.
2. Put a `RESTART` shutdown marker on the data node.
3. Create an index with `index.auto_expand_replicas: "0-1"`
4. Observe that this results in an unassigned replica.
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/84788 | https://github.com/elastic/elasticsearch/pull/87505 | 10200b40b7520f7cbf1f7651c0f15214b0c95deb | 60efb9d0e7dc1bf8ce0db5e7f220b9dee00297c8 | 2022-03-09T08:17:13Z | java | 2022-06-13T15:23:53Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,772 | ["x-pack/plugin/logstash/src/main/java/org/elasticsearch/xpack/logstash/action/TransportGetPipelineAction.java", "x-pack/plugin/logstash/src/test/java/org/elasticsearch/xpack/logstash/action/TransportGetPipelineActionTests.java"] | Logstash central management API cluster side wildcard matching | ### Description
Logstash uses the endpoint `_logstash/pipeline` to retrieve the pipelines configuration from Central Management.
Logstash permit to use the `*` wildcard operator to specify the pipeline names, so a user is not required to list all the pipelines, but just capture the common not changing part of the name.
Suppose the user has a pipelines with common prefix (for example `pipeline_proxy_1`..`pipeline_proxy_10`), he could also add `pipeline_11` without restarting Logstash and changing the option `xpack.management.pipeline.id`.
Actually the feature is implemented on Logstash side, retrieving all the pipelines and then filtering out the ones that doesn't match; this is a waste.
This feature request asks to implement the wildcard operator selector on Elasticsearch side.
The rules for wildcard in pipeline names are:
must begin with a letter or underscore and contain only letters, underscores, dashes, and numbers wildcard character `*` is also acceptable and follows globbing rules.
The regexp is defined [here](https://github.com/elastic/logstash/blob/0887d7609df9ba72a5d0cd003c639b16da198622/x-pack/lib/config_management/bootstrap_check.rb#L17-L19).
We could imagine to use the `_logstash/pipeline/<pipeline_id>` where the pipeline_id is a list of comma-separated id (like it's today) but permitting the pipeline_id to use the wildcard operator.
Related:
- Logstash ER https://github.com/elastic/logstash/issues/13868
| https://github.com/elastic/elasticsearch/issues/84772 | https://github.com/elastic/elasticsearch/pull/85847 | 54efc59effdef98dd2ca7c87404c38c3844d65b2 | b48c92013d6968f104855da2646d314298815de0 | 2022-03-08T17:01:30Z | java | 2022-05-16T16:09:40Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,765 | ["rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.allocation/10_basic.yml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.indices/10_basic.yml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.indices/20_hidden.yml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.shards/10_basic.yml"] | [CI] ClientYamlTestSuiteIT test {yaml=cat.indices/20_hidden/Test cat indices output with a hidden index, dot-hidden alias and dot pattern} failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/u542s62n2rpu6/tests/:rest-api-spec:yamlRestTest/org.elasticsearch.test.rest.ClientYamlTestSuiteIT/test%20%7Byaml=cat.indices%2F20_hidden%2FTest%20cat%20indices%20output%20with%20a%20hidden%20index,%20dot-hidden%20alias%20and%20dot%20pattern%7D
**Reproduction line:**
`./gradlew ':rest-api-spec:yamlRestTest' --tests "org.elasticsearch.test.rest.ClientYamlTestSuiteIT" -Dtests.method="test {yaml=cat.indices/20_hidden/Test cat indices output with a hidden index, dot-hidden alias and dot pattern}" -Dtests.seed=8BC046FB4B140AC -Dtests.locale=da-DK -Dtests.timezone=Asia/Tomsk -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.test.rest.ClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dcat.indices/20_hidden/Test%20cat%20indices%20output%20with%20a%20hidden%20index,%20dot-hidden%20alias%20and%20dot%20pattern%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [cat.indices/20_hidden:225]: field [$body] was expected to match the provided regex but didn't
Expected: ^(green \s+
open \s+
index1 \s+
([a-zA-Z0-9=/_+]|[\\\-]){22} \s+
1 \s+
0 \s+
0 \s+
0 \s+
(\d+|\d+[.]\d+)(kb|b) \s+
(\d+|\d+[.]\d+)(kb|b) \s*
)
$
but: was "green open index1 qZ_OW205TNOPCu8s1CSMQw 1 0 0 0 225b 225b\ngreen open .tasks M5_QYgQhQxygThYUVqMM8w 1 0 0 0 225b 225b\n"
at __randomizedtesting.SeedInfo.seed([8BC046FB4B140AC:80E83BB51A4D2D54]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:493)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.AssertionError: field [$body] was expected to match the provided regex but didn't
Expected: ^(green \s+
open \s+
index1 \s+
([a-zA-Z0-9=/_+]|[\\\-]){22} \s+
1 \s+
0 \s+
0 \s+
0 \s+
(\d+|\d+[.]\d+)(kb|b) \s+
(\d+|\d+[.]\d+)(kb|b) \s*
)
$
but: was "green open index1 qZ_OW205TNOPCu8s1CSMQw 1 0 0 0 225b 225b\ngreen open .tasks M5_QYgQhQxygThYUVqMM8w 1 0 0 0 225b 225b\n"
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.elasticsearch.test.rest.yaml.section.MatchAssertion.doAssert(MatchAssertion.java:64)
at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:482)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84765 | https://github.com/elastic/elasticsearch/pull/84539 | 8a1632235daa140f3904cfe46f8215537c75ded3 | c4b1f18f32aa337253664d1295bc1b59233b3d44 | 2022-03-08T14:56:26Z | java | 2022-03-24T19:08:51Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,739 | ["docs/changelog/84894.yaml", "docs/reference/settings/notification-settings.asciidoc", "x-pack/plugin/watcher/src/main/java/org/elasticsearch/xpack/watcher/notification/email/EmailService.java", "x-pack/plugin/watcher/src/test/java/org/elasticsearch/xpack/watcher/notification/email/EmailServiceTests.java"] | Add configurable list of allowed domains for Watcher email action | ### Description
When using the Watcher email action, it would be beneficial to be able to specify a list of allowed domains to which emails are allowed to be sent. This would probably be a non-dynamic setting, and allow specifying multiple domains. | https://github.com/elastic/elasticsearch/issues/84739 | https://github.com/elastic/elasticsearch/pull/84894 | 6a960ac1e677e1d1103b0d35eabcdb582207723b | ef01949562b80dcb5f6bf53d251a46d6caa3e478 | 2022-03-07T22:40:49Z | java | 2022-03-16T14:03:58Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,709 | ["x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/job/process/autodetect/AutodetectProcessManager.java", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/job/process/autodetect/JobModelSnapshotUpgrader.java", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/job/snapshot/upgrader/SnapshotUpgradeTask.java"] | [CI] XPackRestIT test {p0=ml/upgrade_job_snapshot/Test existing but corrupt snapshot} failing | It's timing out in feature reset. This implies we should be more brutal about killing in-progress model snapshot upgrades in feature reset. There's no point waiting for them to complete gracefully when we're resetting ML to empty.
**Build scan:**
https://gradle-enterprise.elastic.co/s/eagejrwl4tbqg/tests/:x-pack:plugin:yamlRestTest/org.elasticsearch.xpack.test.rest.XPackRestIT/test%20%7Bp0=ml%2Fupgrade_job_snapshot%2FTest%20existing%20but%20corrupt%20snapshot%7D
**Reproduction line:**
`./gradlew ':x-pack:plugin:yamlRestTest' --tests "org.elasticsearch.xpack.test.rest.XPackRestIT.test {p0=ml/upgrade_job_snapshot/Test existing but corrupt snapshot}" -Dtests.seed=E303315D855D1857 -Dtests.locale=es-EC -Dtests.timezone=Asia/Urumqi -Druntime.java=17`
**Applicable branches:**
8.1
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.test.rest.XPackRestIT&tests.test=test%20%7Bp0%3Dml/upgrade_job_snapshot/Test%20existing%20but%20corrupt%20snapshot%7D
**Failure excerpt:**
```
org.elasticsearch.client.ResponseException: method [POST], host [http://[::1]:41815], URI [/_features/_reset], status line [HTTP/1.1 500 Internal Server Error]
{"error":{"root_cause":[{"type":"timeout_exception","reason":"Timed out waiting for completion of [org.elasticsearch.xpack.ml.job.snapshot.upgrader.SnapshotUpgradeTask@7e68ad0d]"}],"type":"failed_node_exception","reason":"Failed node [6kCknKSqQE-fAlVRXhtMVQ]","node_id":"6kCknKSqQE-fAlVRXhtMVQ","caused_by":{"type":"timeout_exception","reason":"Timed out waiting for completion of [org.elasticsearch.xpack.ml.job.snapshot.upgrader.SnapshotUpgradeTask@7e68ad0d]"}},"status":500}
at __randomizedtesting.SeedInfo.seed([E303315D855D1857:6B570E872BA175AF]:0)
at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:346)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:312)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:287)
at org.elasticsearch.xpack.core.ml.integration.MlRestTestStateCleaner.resetFeatures(MlRestTestStateCleaner.java:36)
at org.elasticsearch.xpack.test.rest.AbstractXPackRestTest.clearMlState(AbstractXPackRestTest.java:131)
at org.elasticsearch.xpack.test.rest.AbstractXPackRestTest.cleanup(AbstractXPackRestTest.java:115)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:1004)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84709 | https://github.com/elastic/elasticsearch/pull/85121 | 53108045c4395fe7af19ac86831613c8ec0c1a2e | bd6b27c699de8ad807d862492e174f33fb3b2002 | 2022-03-07T15:28:56Z | java | 2022-03-28T14:20:30Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,698 | ["x-pack/plugin/security/src/internalClusterTest/java/org/elasticsearch/xpack/security/authc/SecurityRealmSettingsTests.java", "x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/RealmsTests.java"] | [CI] SecurityRealmSettingsTests testClusterStarted failing | Started failing since Feb 23. Failed 24 times since then.
Error message
```
java.lang.AssertionError: One or more realm type are not configured [file, ldap, native, jwt, saml, kerberos, oidc, active_directory, pki]
Expected: iterable with items ["saml", "pki", "active_directory", "native", "ldap", "oidc", "kerberos", "file"] in any order
but: not matched: "jwt"
```
**Build scan:**
https://gradle-enterprise.elastic.co/s/2vka6xxi4qcvc/tests/:x-pack:plugin:security:internalClusterTest/org.elasticsearch.xpack.security.authc.SecurityRealmSettingsTests/testClusterStarted
**Reproduction line:**
`./gradlew ':x-pack:plugin:security:internalClusterTest' --tests "org.elasticsearch.xpack.security.authc.SecurityRealmSettingsTests.testClusterStarted" -Dtests.seed=6082151451A37D92 -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=nb-NO -Dtests.timezone=America/Buenos_Aires -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.security.authc.SecurityRealmSettingsTests&tests.test=testClusterStarted
**Failure excerpt:**
```
java.lang.AssertionError: One or more realm type are not configured [file, ldap, native, jwt, saml, kerberos, oidc, active_directory, pki]
Expected: iterable with items ["saml", "pki", "active_directory", "native", "ldap", "oidc", "kerberos", "file"] in any order
but: not matched: "jwt"
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.elasticsearch.xpack.security.authc.SecurityRealmSettingsTests.nodeSettings(SecurityRealmSettingsTests.java:111)
at org.elasticsearch.test.ESIntegTestCase$1.nodeSettings(ESIntegTestCase.java:1985)
at org.elasticsearch.test.InternalTestCluster.getSettings(InternalTestCluster.java:468)
at org.elasticsearch.test.InternalTestCluster.getNodeSettings(InternalTestCluster.java:707)
at org.elasticsearch.test.InternalTestCluster.reset(InternalTestCluster.java:1148)
at org.elasticsearch.test.InternalTestCluster.beforeTest(InternalTestCluster.java:1085)
at org.elasticsearch.test.ESIntegTestCase.lambda$beforeInternal$0(ESIntegTestCase.java:358)
at com.carrotsearch.randomizedtesting.RandomizedContext.runWithPrivateRandomness(RandomizedContext.java:187)
at com.carrotsearch.randomizedtesting.RandomizedContext.runWithPrivateRandomness(RandomizedContext.java:211)
at org.elasticsearch.test.ESIntegTestCase.beforeInternal(ESIntegTestCase.java:367)
at org.elasticsearch.test.ESIntegTestCase.setupTestCluster(ESIntegTestCase.java:2194)
at jdk.internal.reflect.GeneratedMethodAccessor10.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$9.evaluate(RandomizedRunner.java:980)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84698 | https://github.com/elastic/elasticsearch/pull/84738 | 27ae82139a751748e726eb9c340ad4bbeb399993 | 54317d6aada2a76c98971bd11343ef4f80c141fa | 2022-03-07T10:18:07Z | java | 2022-03-08T11:42:25Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,690 | ["docs/changelog/85815.yaml", "server/src/main/java/org/elasticsearch/search/fetch/subphase/highlight/FastVectorHighlighter.java", "server/src/main/java/org/elasticsearch/search/fetch/subphase/highlight/SourceScoreOrderFragmentsBuilder.java", "server/src/main/java/org/elasticsearch/search/fetch/subphase/highlight/SourceSimpleFragmentsBuilder.java", "server/src/main/java/org/elasticsearch/search/lookup/SourceLookup.java", "server/src/test/java/org/elasticsearch/search/fetch/subphase/highlight/FastVectorHighlighterTests.java", "test/framework/src/main/java/org/elasticsearch/search/fetch/HighlighterTestCase.java"] | Possible problem with Fast Vector Highlighter + Multi-Fields between 7.10.2 and 7.16.3 | ### Elasticsearch Version
7.16.3
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
Linux (Mint 20), W10
### Problem Description
The same mappings and query DSL dict which work fine to produce multi-word, multi-colour highlighting in v 7.10.2 don't seem to work with v 7.16.3: on both Linux and W10 I have had to revert to 7.10.2. I'd love it if an expert could check on what's going on: maybe there has been a substantive documented change between the two ES versions.
I had a look at the latest version (8.0) for this [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/highlighting.html), but nothing jumped out at me. However, in the section on fvh and multi-fields I noticed that nothing was said about using `pre-tags` and `post-tags`. The point about my example is that different terms are highlighted with different colours (in fact backgrounds).
I have [posted this](https://discuss.elastic.co/t/multi-field-mapping-search-highlighting-difference-between-7-10-2-and-7-16-3/298739) in the ES forum. No replies after a few days, hence my opening of an issue here.
### Steps to Reproduce
Given this mapping:
```
mappings = \
{
"mappings": {
"properties": {
"esdoc_text": {
"type": "text",
"term_vector": "with_positions_offsets",
"fields": {
"stemmed": {
"type": "text",
"analyzer": "english",
"term_vector": "with_positions_offsets",
}
}
}
}
}
}
```
and this query DSL dict:
```
data = \
{
'query': {
'simple_query_string': {
'query': self.search_string,
'fields': [
self.text_field
]
}
},
'highlight': {
'fields': {
self.text_field: {
'type': 'fvh',
'pre_tags': [
'<span style="background-color: yellow">',
'<span style="background-color: skyblue">',
'<span style="background-color: lightgreen">',
'<span style="background-color: plum">',
'<span style="background-color: lightcoral">',
'<span style="background-color: silver">',
],
'post_tags': [
'</span>', '</span>', '</span>',
'</span>', '</span>', '</span>',
]
}
},
'number_of_fragments': 0
}
}
```
... I get beautiful highlighted results using 7.10.2. But using 7.16.3, the hits are returned, but there is no "highlight" key at all in the returned response.json().
NB in the above, clearly and as one might surmise from the mapping, `self.text_field` is set to either "esdoc_text" (for standard analyser results) or "esdoc_text.stemmed" (for english stemmer analyser results).
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/84690 | https://github.com/elastic/elasticsearch/pull/85815 | cce3d924754a06634a8e353fa227be3af2eeca62 | a69cdd0ff3c23df49b19c35b258b99fc18794476 | 2022-03-06T14:05:50Z | java | 2022-04-12T14:19:36Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,656 | ["docs/changelog/86601.yaml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.shards/10_basic.yml", "server/src/main/java/org/elasticsearch/rest/action/cat/RestShardsAction.java"] | GET _cat/shards returns partial data for hidden indices | ### Elasticsearch Version
8.0.0 (still true in `master` tho)
### Installed Plugins
N/A
### Java Version
_bundled_
### OS Version
N/A
### Problem Description
`GET _cat/shards` reports a line for every shard in the cluster, but any lines for shards that belong to hidden indices are mostly blank. The reason is that this API performs two transport actions. The first action retrieves the cluster state from the master, and the result determines the list of indices to show but does not use `IndicesOptions` to filter any of them out. The second action retrieves stats from each shard, and this action accepts an `IndicesOptions` to control which ones are shown. No `IndicesOptions` is given, however, so it follows the default behaviour which skips hidden indices.
### Steps to Reproduce
1. Start a cluster
2. Use some features that create hidden indices
3. Execute `GET _cat/shards` and notice that some data is missing.
### Logs (if relevant)
<details>
<summary>Expand for output</summary>
```
GET /_cat/shards?h=*&v
# 200 OK
# index shard prirep state docs store ip id node sync_id unassigned.reason unassigned.at unassigned.for unassigned.details recoverysource.type completion.size fielddata.memory_size fielddata.evictions query_cache.memory_size query_cache.evictions flush.total flush.total_time get.current get.time get.total get.exists_time get.exists_total get.missing_time get.missing_total indexing.delete_current indexing.delete_time indexing.delete_total indexing.index_current indexing.index_time indexing.index_total indexing.index_failed merges.current merges.current_docs merges.current_size merges.total merges.total_docs merges.total_size merges.total_time refresh.total refresh.time refresh.external_total refresh.external_time refresh.listeners search.fetch_current search.fetch_time search.fetch_total search.open_contexts search.query_current search.query_time search.query_total search.scroll_current search.scroll_time search.scroll_total segments.count segments.memory segments.index_writer_memory segments.version_map_memory segments.fixed_bitset_memory seq_no.max seq_no.local_checkpoint seq_no.global_checkpoint warmer.current warmer.total warmer.total_time path.data path.state bulk.total_operations bulk.total_time bulk.total_size_in_bytes bulk.avg_time bulk.avg_size_in_bytes
# .ds-.logs-deprecation.elasticsearch-default-2022.02.27-000006 0 p STARTED 172.27.127.208 FIWiKrPpSx2Ik6IO-mMaWA instance-0000000000
# .ds-.logs-deprecation.elasticsearch-default-2022.02.27-000006 0 r STARTED 172.27.47.21 bfcMDTiDRkietFb9v_di7w instance-0000000004
# .security-7 0 p STARTED 117 322kb 172.27.127.208 FIWiKrPpSx2Ik6IO-mMaWA instance-0000000000 0b 0b 0 0b 0 2 16ms 0 0s 5 0s 0 0s 5 0 3ms 2 0 118ms 115 0 0 0 0b 13 1232 3.3mb 849ms 126 1.8s 121 2s 0 0 26.8s 601846 0 0 45.7s 601846 0 1.5m 140176 9 0b 0b 0b 0b 702 702 702 0 120 4ms /app/data /app/data 117 125ms 634926 1ms 8656
# .security-7 0 r STARTED 117 322kb 172.27.47.21 bfcMDTiDRkietFb9v_di7w instance-0000000004 0b 0b 0 0b 0 2 19ms 0 0s 4 0s 0 0s 4 0 3ms 2 0 136ms 115 0 0 0 0b 13 1232 3.3mb 662ms 123 1.5s 121 1.6s 0 0 9.7s 303496 0 0 26.2s 303496 0 1.3m 40954 9 0b 0b 0b 0b 702 702 702 0 120 7ms /app/data /app/data 117 142ms 634926 1ms 8655
# .monitoring-kibana-7-2022.03.02 0 p STARTED 17280 9.4mb 172.27.127.208 FIWiKrPpSx2Ik6IO-mMaWA instance-0000000000 0b 288b 0 376b 0 1 0s 0 0s 0 0s 0 0s 0 0 0s 0 0 9.1s 17280 0 0 0 0b 634 2527360 1.3gb 33.7s 6363 48s 6311 53s 0 0 1s 13973 0 0 2.3m 39262 0 0s 0 2 0b 0b 0b 0b 17279 17279 17279 0 6310 217ms /app/data /app/data 8640 9.4s 15964133 1ms 1850
# .monitoring-kibana-7-2022.03.02 0 r STARTED 17280 9.5mb 172.27.47.21 bfcMDTiDRkietFb9v_di7w instance-0000000004 0b 432b 0 0b 0 2 22ms 0 0s 0 0s 0 0s 0 0 0s 0 0 10s 17278 0 0 0 0b 629 2506122 1.2gb 32.3s 6238 46.8s 6235 51.8s 0 0 920ms 11947 0 0 2m 36617 0 0s 0 7 0b 0b 0b 0b 17279 17279 17279 0 6234 197ms /app/data /app/data 8639 10.2s 15962280 1ms 1850
# .kibana_7.17.0_001 0 p STARTED 366 10.6mb 172.27.127.208 FIWiKrPpSx2Ik6IO-mMaWA instance-0000000000 0b 0b 0 0b 0 1 0s 0 7ms 32 7ms 27 0s 5 0 0s 0 0 0s 0 0 0 0 0b 0 0 0b 0s 6 0s 2 1ms 0 0 44ms 35 0 0 20ms 49 0 0s 0 9 0b 0b 0b 472b 407 407 407 0 1 1ms /app/data /app/data 0 0s 0 0s 0
# .kibana_7.17.0_001 0 r STARTED 366 10.6mb 172.27.47.21 bfcMDTiDRkietFb9v_di7w instance-0000000004 0b 0b 0 0b 0 1 0s 0 6ms 17 6ms 16 0s 1 0 0s 0 0 0s 0 0 0 0 0b 0 0 0b 0s 3 0s 2 5ms 0 0 1ms 22 0 0 13ms 28 0 0s 0 9 0b 0b 0b 472b 407 407 407 0 1 5ms /app/data /app/data 0 0s 0 0s 0
# .ds-.slm-history-5-2022.01.16-000013 0 p STARTED 172.27.127.208 FIWiKrPpSx2Ik6IO-mMaWA instance-0000000000
# .ds-.slm-history-5-2022.01.16-000013 0 r STARTED 172.27.47.21 bfcMDTiDRkietFb9v_di7w instance-0000000004
# .metrics-endpoint.metadata_united_default 0 p STARTED 172.27.127.208 FIWiKrPpSx2Ik6IO-mMaWA instance-0000000000
# .metrics-endpoint.metadata_united_default 0 r STARTED 172.27.47.21 bfcMDTiDRkietFb9v_di7w instance-0000000004
# .monitoring-alerts-7 0 p STARTED 25 78.6kb 172.27.127.208 FIWiKrPpSx2Ik6IO-mMaWA instance-0000000000 0b 0b 0 0b 0 5 110ms 0 0s 0 0s 0 0s 0 0 0s 0 0 12ms 9 0 0 0 0b 0 0 0b 0s 33 92ms 20 95ms 0 0 10.7s 273647 0 0 52.3s 273647 0 0s 0 9 0b 0b 0b 0b 80337 80337 80337 0 19 0s /app/data /app/data 9 13ms 4918 0s 330
# .monitoring-alerts-7 0 r STARTED 25 87.5kb 172.27.47.21 bfcMDTiDRkietFb9v_di7w instance-0000000004 0b 0b 0 0b 0 5 122ms 0 0s 0 0s 0 0s 0 0 0s 0 0 11ms 9 0 0 0 0b 0 0 0b 0s 22 105ms 16 106ms 0 0 11.9s 264643 0 0 49.5s 264643 0 0s 0 9 0b 0b 0b 0b 80337 80337 80337 0 15 0s /app/data /app/data 9 12ms 4918 0s 330
# .kibana_5 0 p STARTED 336 10.5mb 172.27.127.208 FIWiKrPpSx2Ik6IO-mMaWA instance-0000000000 0b 0b 0 0b 0 1 0s 0 0s 0 0s 0 0s 0 0 0s 0 0 0s 0 0 0 0 0b 0 0 0b 0s 6 0s 2 1ms 0 0 0s 0 0 0 0s 0 0 0s 0 8 0b 0b 0b 424b 2590 2590 2590 0 1 1ms /app/data /app/data 0 0s 0 0s 0
# .kibana_5 0 r STARTED 336 10.5mb 172.27.47.21 bfcMDTiDRkietFb9v_di7w instance-0000000004 0b 0b 0 0b 0 1 0s 0 0s 0 0s 0 0s 0 0 0s 0 0 0s 0 0 0 0 0b 0 0 0b 0s 3 0s 2 2ms 0 0 0s 0 0 0 0s 0 0 0s 0 8 0b 0b 0b 424b 2590 2590 2590 0 1 2ms /app/data /app/data 0 0s 0 0s 0
# .ds-.slm-history-5-2021.12.17-000011 0 p STARTED 172.27.127.208 FIWiKrPpSx2Ik6IO-mMaWA instance-0000000000
# .ds-.slm-history-5-2021.12.17-000011 0 r STARTED 172.27.47.21 bfcMDTiDRkietFb9v_di7w instance-0000000004
# .ds-.logs-deprecation.elasticsearch-default-2022.02.13-000005 0 p STARTED 172.27.127.208 FIWiKrPpSx2Ik6IO-mMaWA instance-0000000000
# .ds-.logs-deprecation.elasticsearch-default-2022.02.13-000005 0 r STARTED 172.27.47.21 bfcMDTiDRkietFb9v_di7w instance-0000000004
# .kibana-event-log-7.14.0-000008 0 p STARTED 172.27.127.208 FIWiKrPpSx2Ik6IO-mMaWA instance-0000000000
# .kibana-event-log-7.14.0-000008 0 r STARTED 172.27.47.21 bfcMDTiDRkietFb9v_di7w instance-0000000004
# .kibana_3 0 r STARTED 109 10.5mb 172.27.127.208 FIWiKrPpSx2Ik6IO-mMaWA instance-0000000000 0b 0b 0 0b 0 1 0s 0 0s 0 0s 0 0s 0 0 0s 0 0 0s 0 0 0 0 0b 0 0 0b 0s 3 0s 2 1ms 0 0 0s 0 0 0 0s 0 0 0s 0 8 0b 0b 0b 392b 360 360 360 0 1 1ms /app/data /app/data 0 0s 0 0s 0
# .kibana_3 0 p STARTED 109 10.5mb 172.27.47.21 bfcMDTiDRkietFb9v_di7w instance-0000000004 0b 0b 0 0b 0 1 0s 0 0s 0 0s 0 0s 0 0 0s 0 0 0s 0 0 0 0 0b 0 0 0b 0s 6 0s 2 3ms 0 0 0s 0 0 0 0s 0 0 0s 0 8 0b 0b 0b 392b 360 360 360 0 1 3ms /app/data /app/data 0 0s 0 0s 0
# ilm-history-3-000005 0 p STARTED 0 208b 172.27.127.208 FIWiKrPpSx2Ik6IO-mMaWA instance-0000000000 0b 0b 0 0b 0 1 0s 0 0s 0 0s 0 0s 0 0 0s 0 0 0s 0 0 0 0 0b 0 0 0b 0s 7 0s 2 0s 0 0 0s 0 0 0 0s 0 0 0s 0 0 0b 0b 0b 0b -1 -1 -1 0 1 0s /app/data /app/data 0 0s 0 0s 0
# ilm-history-3-000005 0 r STARTED 0 208b 172.27.47.21 bfcMDTiDRkietFb9v_di7w instance-0000000004 0b 0b 0 0b 0 1 0s 0 0s 0 0s 0 0s 0 0 0s 0 0 0s 0 0 0 0 0b 0 0 0b 0s 3 0s 2 0s 0 0 0s 0 0 0 0s 0 0 0s 0 0 0b 0b 0b 0b -1 -1 -1 0 1 0s /app/data /app/data 0 0s 0 0s 0
# .ds-ilm-history-5-2021.12.17-000011 0 p STARTED 172.27.127.208 FIWiKrPpSx2Ik6IO-mMaWA instance-0000000000
# .ds-ilm-history-5-2021.12.17-000011 0 r STARTED 172.27.47.21 bfcMDTiDRkietFb9v_di7w instance-0000000004
# .kibana-event-log-7.16.2-000001 0 r STARTED 172.27.127.208 FIWiKrPpSx2Ik6IO-mMaWA instance-0000000000
# .kibana-event-log-7.16.2-000001 0 p STARTED 172.27.47.21 bfcMDTiDRkietFb9v_di7w instance-0000000004
# .ds-.slm-history-5-2021.11.17-000010 0 r STARTED 172.27.127.208 FIWiKrPpSx2Ik6IO-mMaWA instance-0000000000
# .ds-.slm-history-5-2021.11.17-000010 0 p STARTED 172.27.47.21 bfcMDTiDRkietFb9v_di7w instance-0000000004
# .fleet-policies-7 0 p STARTED 4 25.5kb 172.27.127.208 FIWiKrPpSx2Ik6IO-mMaWA instance-0000000000 0b 0b 0 0b 0 2 12ms 0 0s 0 0s 0 0s 0 0 0s 0 0 3ms 3 0 0 0 0b 0 0 0b 0s 11 39ms 6 40ms 0 0 0s 1 0 0 1ms 2 0 0s 0 4 0b 0b 0b 0b 3 3 3 0 5 0s /app/data /app/data 3 4ms 10404 0s 1014
# .fleet-policies-7 0 r STARTED 4 25.5kb 172.27.47.21 bfcMDTiDRkietFb9v_di7w instance-0000000004 0b 0b 0 0b 0 2 12ms 0 0s 0 0s 0 0s 0 0 0s 0 0 3ms 3 0 0 0 0b 0 0 0b 0s 8 26ms 6 26ms 0 0 0s 1 0 0 2ms 2 0 0s 0 4 0b 0b 0b 0b 3 3 3 0 5 0s /app/data /app/data 3 3ms 10404 0s 1014
# .ds-.watcher-history-16-2022.03.01-000011 0 p STARTED 172.27.127.208 FIWiKrPpSx2Ik6IO-mMaWA instance-0000000000
# .ds-.watcher-history-16-2022.03.01-000011 0 r STARTED 172.27.47.21 bfcMDTiDRkietFb9v_di7w instance-0000000004
# ilm-history-2-000018 0 p STARTED 172.27.127.208 FIWiKrPpSx2Ik6IO-mMaWA instance-0000000000
# ilm-history-2-000018 0 r STARTED 172.27.47.21 bfcMDTiDRkietFb9v_di7w instance-0000000004
# .kibana-event-log-7.9.1-000018 0 p STARTED 172.27.127.208 FIWiKrPpSx2Ik6IO-mMaWA instance-0000000000
...
```
</details> | https://github.com/elastic/elasticsearch/issues/84656 | https://github.com/elastic/elasticsearch/pull/86601 | 8e08c75aa6268615121de201eba8dff21161399c | 326bb25c08ca25bdc016083d1ced5ece406241b3 | 2022-03-04T12:18:56Z | java | 2022-05-11T06:50:12Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,644 | ["docs/reference/setup/install/deb.asciidoc"] | [DOCS] Use of apt-key is deprecated. Install instructions should be updated | From `apt-key(8)`:
```
Use of apt-key is deprecated, except for the use of apt-key del in maintainer
scripts to remove existing keys from the main keyring. If such usage of apt-key
is desired the additional installation of the GNU Privacy Guard suite (packaged
in gnupg) is required.
apt-key(8) will last be available in Debian 11 and Ubuntu 22.04.
```
The installation instructions for Debian should be updated accordingly. | https://github.com/elastic/elasticsearch/issues/84644 | https://github.com/elastic/elasticsearch/pull/84645 | 6f7c1582881367aa7905e57663a1b172a4ff40da | 26307bbef3df4853554224cf7f7d619c908dafc5 | 2022-03-03T22:25:47Z | java | 2022-03-07T17:24:50Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,627 | ["docs/changelog/84632.yaml", "x-pack/plugin/sql/qa/server/src/main/resources/math.sql-spec", "x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/expression/function/scalar/math/MathProcessor.java", "x-pack/plugin/sql/src/test/java/org/elasticsearch/xpack/sql/expression/function/scalar/math/MathFunctionProcessorTests.java"] | SQL: `RANDOM(null)` is not always `null` | ### Elasticsearch Version
8.1.0-SNAPSHOT (but also affects 7.x releases)
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
OSX
### Problem Description
While the docs state that `RANDOM(null) = null` that's not always the case.
### Steps to Reproduce
```
GET _sql?format=txt
{
"query": """
SELECT random(n), n FROM longs
"""
}
```
yields
```
random(n) | n
------------------+---------------
0.7308781907032909|1
0.7311469360199058|2
0.3860252809814635|null
```
Expected would be `null` for the last row.
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/84627 | https://github.com/elastic/elasticsearch/pull/84632 | dfe20f3db71cff445281a8935212a3c2d314a223 | ccea769364a0fc72d31e9d6856a25bd0d3e1523a | 2022-03-03T15:09:56Z | java | 2022-03-14T16:55:49Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,602 | ["docs/changelog/84606.yaml", "server/src/main/java/org/elasticsearch/action/support/replication/ReplicationOperation.java", "server/src/main/java/org/elasticsearch/index/engine/Engine.java"] | Transport worker thread blocked while closing shard | ### Elasticsearch Version
7.16.3 (but seems similar in `master` too)
### Installed Plugins
N/A
### Java Version
_bundled_
### OS Version
N/A
### Problem Description
A `transport_worker` thread might call `IndexShard#failShard`, which can block whilst waiting for some other IO to complete.
### Steps to Reproduce
Unclear, but from the stack trace it looks like an attempt to fail a replica itself failed.
### Logs (if relevant)
```
0.0% [cpu=0.0%, other=0.0%] (0s out of 500ms) cpu usage by thread 'elasticsearch[data-edcr-es1-03-es-iz4-hot-7][transport_worker][T#9]'
10/10 snapshots sharing following 65 elements
[email protected]/java.lang.Object.wait(Native Method)
app//org.apache.lucene.index.IndexWriter.doWait(IndexWriter.java:4983)
app//org.apache.lucene.index.IndexWriter.abortMerges(IndexWriter.java:2668)
app//org.apache.lucene.index.IndexWriter.rollbackInternalNoCommit(IndexWriter.java:2425)
app//org.apache.lucene.index.IndexWriter.rollbackInternal(IndexWriter.java:2409)
app//org.apache.lucene.index.IndexWriter.rollback(IndexWriter.java:2402)
app//org.elasticsearch.index.engine.InternalEngine.closeNoLock(InternalEngine.java:2474)
app//org.elasticsearch.index.engine.Engine.failEngine(Engine.java:1179)
app//org.elasticsearch.index.shard.IndexShard.failShard(IndexShard.java:1581)
app//org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryShardReference.failShard(TransportReplicationAction.java:1137)
app//org.elasticsearch.action.support.replication.ReplicationOperation.onNoLongerPrimary(ReplicationOperation.java:337)
app//org.elasticsearch.action.support.replication.ReplicationOperation.access$1100(ReplicationOperation.java:46)
app//org.elasticsearch.action.support.replication.ReplicationOperation$2.lambda$onFailure$2(ReplicationOperation.java:261)
app//org.elasticsearch.action.support.replication.ReplicationOperation$2$$Lambda$8313/0x0000000801c36800.accept(Unknown Source)
app//org.elasticsearch.action.ActionListener$1.onFailure(ActionListener.java:144)
app//org.elasticsearch.action.ActionListener.onFailure(ActionListener.java:313)
app//org.elasticsearch.action.ResultDeduplicator$CompositeListener.onFailure(ResultDeduplicator.java:105)
app//org.elasticsearch.cluster.action.shard.ShardStateAction$1.handleException(ShardStateAction.java:195)
app//org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1481)
app//org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1481)
app//org.elasticsearch.transport.InboundHandler.lambda$handleException$3(InboundHandler.java:368)
app//org.elasticsearch.transport.InboundHandler$$Lambda$8185/0x0000000801dba530.run(Unknown Source)
app//org.elasticsearch.common.util.concurrent.EsExecutors$DirectExecutorService.execute(EsExecutors.java:285)
app//org.elasticsearch.transport.InboundHandler.handleException(InboundHandler.java:366)
app//org.elasticsearch.transport.InboundHandler.handlerResponseError(InboundHandler.java:358)
app//org.elasticsearch.transport.InboundHandler.messageReceived(InboundHandler.java:132)
app//org.elasticsearch.transport.InboundHandler.inboundMessage(InboundHandler.java:88)
app//org.elasticsearch.transport.TcpTransport.inboundMessage(TcpTransport.java:743)
org.elasticsearch.transport.netty4.Netty4MessageChannelHandler$$Lambda$5965/0x00000008019cc630.accept(Unknown Source)
app//org.elasticsearch.transport.InboundPipeline.forwardFragments(InboundPipeline.java:147)
app//org.elasticsearch.transport.InboundPipeline.doHandleBytes(InboundPipeline.java:119)
app//org.elasticsearch.transport.InboundPipeline.handleBytes(InboundPipeline.java:84)
``` | https://github.com/elastic/elasticsearch/issues/84602 | https://github.com/elastic/elasticsearch/pull/84606 | cb32227202dc2581d5da1c17076fe7b4b9a18763 | e5dd7d4635a4e1c1343169288d4f3c5ffa9bdd72 | 2022-03-03T08:23:36Z | java | 2022-03-03T10:43:31Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,599 | ["docs/changelog/85120.yaml", "server/src/main/java/org/elasticsearch/common/geo/GeoUtils.java", "server/src/test/java/org/elasticsearch/index/mapper/GeoPointFieldTypeTests.java", "server/src/test/java/org/elasticsearch/index/search/geo/GeoPointParsingTests.java", "server/src/test/java/org/elasticsearch/index/search/geo/GeoUtilsTests.java", "server/src/test/java/org/elasticsearch/search/geo/GeoPointShapeQueryTests.java", "test/framework/src/main/java/org/elasticsearch/search/geo/GeoPointShapeQueryTestCase.java"] | Support GeoJson on geo_point fields | geo_point field does not support GeoJson which can be a PITA if your data is in such a format. Indexing it as a geo_shape is an option but very wasteful. | https://github.com/elastic/elasticsearch/issues/84599 | https://github.com/elastic/elasticsearch/pull/85120 | 938f74ba1b104eda52384f07b513fc6c9a372500 | 042b96437d05c62c96ef235e92d99149f4a43e97 | 2022-03-03T07:49:48Z | java | 2022-03-23T15:54:24Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,595 | ["server/src/internalClusterTest/java/org/elasticsearch/search/aggregations/bucket/RandomSamplerIT.java"] | [CI] Failure in RandomSamplerIT#testRandomSamplerHistogram | ### CI Link
https://gradle-enterprise.elastic.co/s/l7kmxsv3tsale
### Repro line
./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.search.aggregations.bucket.RandomSamplerIT.testRandomSamplerHistogram" -Dtests.seed=AED6446652EDAB2B -Dtests.locale=cs -Dtests.timezone=Africa/Bangui -Druntime.java=17
### Does it reproduce?
No
### Applicable branches
master
### Failure history
_No response_
### Failure excerpt
```
org.elasticsearch.search.aggregations.bucket.RandomSamplerIT > testRandomSamplerHistogram FAILED
java.lang.AssertionError:
Expected: a value less than <127.55000000000001>
but: <145.07999999999993> was greater than <127.55000000000001>
at __randomizedtesting.SeedInfo.seed([AED6446652EDAB2B:B3962E383F3EDAC]:0)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.search.aggregations.bucket.RandomSamplerIT.testRandomSamplerHistogram(RandomSamplerIT.java:157)
``` | https://github.com/elastic/elasticsearch/issues/84595 | https://github.com/elastic/elasticsearch/pull/84846 | f7dbca3130170532cafd9bc2bbff53b354cd14a6 | bb858cf4b7f7d0ac589a72fec2c19533712dd988 | 2022-03-03T01:04:10Z | java | 2022-03-16T11:31:29Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,587 | ["modules/reindex/src/internalClusterTest/java/org/elasticsearch/migration/SystemIndexMigrationIT.java"] | Failure in SystemIndexMigrationIT#testSystemIndexMigrationCanBeInterruptedWithShutdown | ### CI Link
https://gradle-enterprise.elastic.co/s/xe5tsxwd6ky64
### Repro line
./gradlew ':modules:reindex:internalClusterTest' --tests "org.elasticsearch.migration.SystemIndexMigrationIT.testSystemIndexMigrationCanBeInterruptedWithShutdown" -Dtests.seed=21ABF49FDF24F147 -Dtests.locale=ar-DZ -Dtests.timezone=Europe/Vatican -Druntime.java=17
### Does it reproduce?
No
### Applicable branches
8.0
### Failure history
Looks like the first time it has failed
### Failure excerpt
```
org.elasticsearch.migration.SystemIndexMigrationIT > testSystemIndexMigrationCanBeInterruptedWithShutdown FAILED
java.lang.AssertionError: expected migration to fail due to restarting only data node
Expected: <ERROR>
but: was <NO_MIGRATION_NEEDED>
at __randomizedtesting.SeedInfo.seed([21ABF49FDF24F147:5E92BED7875328A5]:0)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.elasticsearch.migration.SystemIndexMigrationIT.lambda$testSystemIndexMigrationCanBeInterruptedWithShutdown$1(SystemIndexMigrationIT.java:119)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1069)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1042)
at org.elasticsearch.migration.SystemIndexMigrationIT.testSystemIndexMigrationCanBeInterruptedWithShutdown(SystemIndexMigrationIT.java:110)
``` | https://github.com/elastic/elasticsearch/issues/84587 | https://github.com/elastic/elasticsearch/pull/84723 | 9ef2873e9f6a16a09bb30a89f0ce1e6554c17169 | 2cf203a5a1b09d0f3b649a9eac992cdfbcdd591b | 2022-03-02T21:11:48Z | java | 2022-03-07T19:59:19Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,586 | ["x-pack/qa/third-party/active-directory/src/test/java/org/elasticsearch/xpack/security/authc/ldap/AbstractAdLdapRealmTestCase.java"] | [CI] GroupMappingIT testGroupMapping failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/fmiiv5kmsm2uu/tests/:x-pack:qa:third-party:active-directory:test/org.elasticsearch.xpack.security.authc.ldap.GroupMappingIT/testGroupMapping
**Reproduction line:**
`./gradlew ':x-pack:qa:third-party:active-directory:test' --tests "org.elasticsearch.xpack.security.authc.ldap.GroupMappingIT.testGroupMapping" -Dtests.seed=D51FD3E394A6008D -Dtests.locale=es-GT -Dtests.timezone=Europe/Sarajevo -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.security.authc.ldap.GroupMappingIT&tests.test=testGroupMapping
**Failure excerpt:**
```
org.elasticsearch.ElasticsearchSecurityException: unable to authenticate user [odin] for action [indices:data/write/index]
at __randomizedtesting.SeedInfo.seed([D51FD3E394A6008D:9718CF59E5601BBC]:0)
at org.elasticsearch.xpack.core.security.support.Exceptions.authenticationError(Exceptions.java:20)
at org.elasticsearch.xpack.core.security.authc.DefaultAuthenticationFailureHandler.createAuthenticationError(DefaultAuthenticationFailureHandler.java:186)
at org.elasticsearch.xpack.core.security.authc.DefaultAuthenticationFailureHandler.failedAuthentication(DefaultAuthenticationFailureHandler.java:106)
at org.elasticsearch.xpack.security.authc.AuthenticationService$AuditableTransportRequest.authenticationFailed(AuthenticationService.java:332)
at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.consumeNullUser(RealmsAuthenticator.java:269)
at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.lambda$consumeToken$3(RealmsAuthenticator.java:212)
at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136)
at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31)
at org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:132)
at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.lambda$consumeToken$0(RealmsAuthenticator.java:190)
at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136)
at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.lambda$authenticateWithCache$3(CachingUsernamePasswordRealm.java:221)
at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136)
at org.elasticsearch.xpack.security.authc.ldap.LdapRealm$LdapSessionActionListener.onFailure(LdapRealm.java:308)
at org.elasticsearch.action.support.ContextPreservingActionListener.onFailure(ContextPreservingActionListener.java:38)
at org.elasticsearch.xpack.security.authc.ldap.ActiveDirectorySessionFactory.lambda$getSessionWithoutPool$2(ActiveDirectorySessionFactory.java:163)
at org.elasticsearch.action.ActionListener$1.onFailure(ActionListener.java:144)
at org.elasticsearch.action.ActionRunnable.onFailure(ActionRunnable.java:77)
at org.elasticsearch.xpack.security.authc.ldap.support.LdapUtils$2.onFailure(LdapUtils.java:204)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:28)
at org.elasticsearch.xpack.security.authc.ldap.support.LdapUtils.maybeForkAndRun(LdapUtils.java:102)
at org.elasticsearch.xpack.security.authc.ldap.support.LdapUtils.maybeForkThenBind(LdapUtils.java:212)
at org.elasticsearch.xpack.security.authc.ldap.ActiveDirectorySessionFactory$ADAuthenticator.authenticate(ActiveDirectorySessionFactory.java:320)
at org.elasticsearch.xpack.security.authc.ldap.ActiveDirectorySessionFactory.getSessionWithoutPool(ActiveDirectorySessionFactory.java:161)
at org.elasticsearch.xpack.security.authc.ldap.PoolingSessionFactory.session(PoolingSessionFactory.java:110)
at org.elasticsearch.xpack.security.authc.ldap.LdapRealm.lambda$doAuthenticate$1(LdapRealm.java:147)
at org.elasticsearch.xpack.security.authc.ldap.LdapRealm$CancellableLdapRunnable.doRun(LdapRealm.java:343)
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:776)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84586 | https://github.com/elastic/elasticsearch/pull/84748 | 5e35112d00113b86982dd1f92c568290de5ebcd2 | 1e6b30ee1e387677942ec94b60acf3e8b211c39e | 2022-03-02T21:05:25Z | java | 2022-03-18T02:58:52Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,578 | ["docs/changelog/84753.yaml", "modules/analysis-common/src/main/java/org/elasticsearch/analysis/common/MinHashTokenFilterFactory.java", "modules/analysis-common/src/test/java/org/elasticsearch/analysis/common/MinHashFilterFactoryTests.java"] | MinHash token filter parameters not working | ### Elasticsearch Version
8.0.0
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
macOS 12.2.1
### Problem Description
The [MinHash](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-minhash-tokenfilter.html) token filter has four configurable parameters: `bucket_count`, `hash_count`, `hash_set_size`, and `with_rotation`. Currently both `bucket_count` and `hash_set_size` have no effect, because there appears to be a bug in the code that interfaces with the underlying Lucene class.
Snippet from [MinHashTokenFilterFactory](https://github.com/elastic/elasticsearch/blob/524d1ea757938cc4a05eb596dc0e93f888933d50/modules/analysis-common/src/main/java/org/elasticsearch/analysis/common/MinHashTokenFilterFactory.java):
Map<String, String> settingMap = new HashMap<>();
if (settings.hasValue("hash_count")) {
settingMap.put("hashCount", settings.get("hash_count"));
}
if (settings.hasValue("bucketCount")) {
settingMap.put("bucketCount", settings.get("bucket_count"));
}
if (settings.hasValue("hashSetSize")) {
settingMap.put("hashSetSize", settings.get("hash_set_size"));
}
if (settings.hasValue("with_rotation")) {
settingMap.put("withRotation", settings.get("with_rotation"));
}
Notice the camel-case `bucketCount` and `hashSetSize` in the `hasValue` lines. These should be `bucket_count` and `hash_set_size`, since those are the parameter names that would appear (and be fetched on the following lines) from the `settings` object. It looks like this bug was introduced with commit [524d1ea757938cc4a05eb596dc0e93f888933d50](https://github.com/elastic/elasticsearch/commit/524d1ea757938cc4a05eb596dc0e93f888933d50#diff-698ceed90738735edfc93b7e9c6d2d17808733c12277672c8f0d0ee3cfe1a1f2) on 21 Sep 2021.
### Steps to Reproduce
Here are two examples that demonstrate the issue with the `bucket_count` parameter, and which could potentially be used as the basis for additional [tests](https://github.com/elastic/elasticsearch/blob/26c86871fc091900952e88e252c36fbfedf8d5fa/modules/analysis-common/src/test/java/org/elasticsearch/analysis/common/MinHashFilterFactoryTests.java), as well as a third example that could be used to test the `hash_set_size` parameter.
**Example 1**
Define a [custom analyzer](https://www.elastic.co/guide/en/elasticsearch/reference/current/configuring-analyzers.html) that includes a MinHash token filter configured with a single hash function and a single bucket:
PUT my-index-1
{
"settings": {
"analysis": {
"analyzer": {
"my_analyzer": {
"type": "custom",
"tokenizer": "standard",
"filter": ["my_minhash_filter"]
}
},
"filter": {
"my_minhash_filter": {
"type": "min_hash",
"hash_count": 1,
"bucket_count": 1,
"hash_set_size": 1,
"with_rotation": true
}
}
}
}
}
POST my-index-1/_analyze
{
"analyzer": "my_analyzer",
"text": "test"
}
Expected output: `{ "tokens": [<1 token>] }`
Observed output: `{ "tokens": [<512 identical tokens>] }`
The reason for the 512 tokens is that the single input token is being hashed and placed into one of the hash function's 512 buckets (the default number), and because rotation is enabled that hashed token is being used as output from the empty buckets as well. If the `bucket_count: 1` configuration had worked, we would only have seen a single output token.
**Example 2**
With _k_ hash functions each paired with a single bucket (and hash set size 1), we should get _k_ MinHash tokens regardless of the number of input tokens:
...
"filter": {
"my_minhash_filter": {
"type": "min_hash",
"hash_count": 1,
"bucket_count": 1,
"hash_set_size": 1,
"with_rotation": false
}
}
...
POST my-index-1/_analyze
{
"analyzer": "my_analyzer",
"text": "another, longer test"
}
Expected output: `{ "tokens": [<1 token>] }`
Observed output: `{ "tokens": [<3 tokens>] }`
The three input tokens are being placed into three distinct buckets (in this case there are no clashes), and since rotation is disabled three tokens are being returned.
**Example 3**
Once the bug has been fixed and the bucket count can be set, a simple test for the `hash_set_size` parameter might be:
...
"filter": {
"my_minhash_filter": {
"type": "min_hash",
"hash_count": 1,
"bucket_count": 1,
"hash_set_size": 2,
"with_rotation": false
}
}
...
POST my-index-1/_analyze
{
"analyzer": "my_analyzer",
"text": "another, longer test"
}
Expected output: `{ "tokens": [<2 tokens>] }` (unless all of the hashes clash)
Observed output: `{ "tokens": [<3 tokens>] }` (because the tokens are being placed into distinct buckets, and only a single hash can be drawn from each)
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/84578 | https://github.com/elastic/elasticsearch/pull/84753 | 01059c4c8a9f4349cd3eefa3942248b045fc0ae1 | 4341cc7e9b2f84d576a52344dad8010c9d6dc7b0 | 2022-03-02T16:48:10Z | java | 2022-03-09T09:31:08Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,569 | ["docs/changelog/85785.yaml", "modules/repository-gcs/src/main/java/org/elasticsearch/repositories/gcs/GoogleCloudStoragePlugin.java", "modules/repository-gcs/src/test/java/org/elasticsearch/repositories/gcs/GoogleCloudStoragePluginTests.java"] | Repository GCS Plugin makes the elasticsearch crash on startup when client's proxy settings are specified in elasticsearch.yml. | ### Elasticsearch Version
8.0
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
win10
### Problem Description
I am using GCP plugin with Elasticsearch 8.0 and it seems that the settings that are specified in the documentation [here](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/repository-gcs.html) are not available to use in Elasticsearch. I have further gone into investigation to investigate GCS repository plugin and below are my observations:
The settings are declared in GoogleCloudStorageClientSettings.java class [here](https://github.com/elastic/elasticsearch/blob/690bac5dc375b5a1e8f6b3b091d38ee6cdeb0b05/modules/repository-gcs/src/main/java/org/elasticsearch/repositories/gcs/GoogleCloudStorageClientSettings.java#L101) but they are not loaded in the implementation getSettings() method [here](https://github.com/elastic/elasticsearch/blob/690bac5dc375b5a1e8f6b3b091d38ee6cdeb0b05/modules/repository-gcs/src/main/java/org/elasticsearch/repositories/gcs/GoogleCloudStoragePlugin.java#L66).
Due to this elasticsearch.bat is throwing error and exiting instead of starting Elasticsearch.
### Steps to Reproduce
1. Specify the below settings in elasticsearch.yml:
gcs.client.default:
proxy.host: "abc.com"
proxy.port: 80
proxy.type: "http"
2. Start elasticsearch.bat and this will generate **java.lang.IllegalArgumentException: unknown setting [gcs.client.default.proxy.host] please check that any required plugins are installed, or check the breaking changes documentation for removed settings** followed by exiting the bat script.
### Logs (if relevant)
@KarenSumner @liladler Could you please help prioritize of fixing this bug?
<img width="947" alt="elastic_bug" src="https://user-images.githubusercontent.com/100778274/156373380-203706a9-ad1d-423d-a51f-4c40189f6c92.PNG">
| https://github.com/elastic/elasticsearch/issues/84569 | https://github.com/elastic/elasticsearch/pull/85785 | 6fdb6fda6863a88bba6e182756d96f51bdb5afb2 | 026fb09329db7ed7ce3824fcee56e8e1632a2624 | 2022-03-02T13:49:49Z | java | 2022-04-12T17:50:08Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,566 | ["x-pack/plugin/transform/qa/multi-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/transform/integration/continuous/HistogramGroupByIT.java"] | [CI] TransformContinuousIT testContinousEvents failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/mhybe253jnjki/tests/:x-pack:plugin:transform:qa:multi-node-tests:javaRestTest/org.elasticsearch.xpack.transform.integration.continuous.TransformContinuousIT/testContinousEvents
**Reproduction line:**
`./gradlew ':x-pack:plugin:transform:qa:multi-node-tests:javaRestTest' --tests "org.elasticsearch.xpack.transform.integration.continuous.TransformContinuousIT.testContinousEvents" -Dtests.seed=18433A1EF0D114A7 -Dtests.locale=sr-Latn-BA -Dtests.timezone=America/Ojinaga -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.transform.integration.continuous.TransformContinuousIT&tests.test=testContinousEvents
**Failure excerpt:**
```
java.lang.AssertionError: Error in test case [continuous-histogram-pivot-test].If you want to mute the test, please mute [org.elasticsearch.xpack.transform.integration.continuous.HistogramGroupByIT] only, but _not_ [org.elasticsearch.xpack.transform.integration.continuous.TransformContinuousIT] as a whole.
at __randomizedtesting.SeedInfo.seed([18433A1EF0D114A7:23754B057ABA96F1]:0)
at org.elasticsearch.xpack.transform.integration.continuous.TransformContinuousIT.testContinousEvents(TransformContinuousIT.java:276)
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:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.AssertionError: (No message provided)
at org.junit.Assert.fail(Assert.java:86)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.junit.Assert.assertFalse(Assert.java:64)
at org.junit.Assert.assertFalse(Assert.java:74)
at org.elasticsearch.xpack.transform.integration.continuous.HistogramGroupByIT.testIteration(HistogramGroupByIT.java:153)
at org.elasticsearch.xpack.transform.integration.continuous.TransformContinuousIT.testContinousEvents(TransformContinuousIT.java:267)
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:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84566 | https://github.com/elastic/elasticsearch/pull/84571 | 891ad7b5b77bfcd04ae25008ed373ee53413bb44 | 421f93b3d84faae809a71ad4f20c0376f80e5297 | 2022-03-02T13:17:55Z | java | 2022-03-02T15:07:31Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,556 | ["x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/vectors/60_knn_and_binary_dv_fields_api.yml"] | [CI] XPackRestIT test {p0=vectors/60_knn_and_binary_dv_fields_api/query vector of wrong type errors} failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/vhhxrizrf5zp6/tests/:x-pack:plugin:yamlRestTest/org.elasticsearch.xpack.test.rest.XPackRestIT/test%20%7Bp0=vectors%2F60_knn_and_binary_dv_fields_api%2Fquery%20vector%20of%20wrong%20type%20errors%7D
**Reproduction line:**
`./gradlew ':x-pack:plugin:yamlRestTest' --tests "org.elasticsearch.xpack.test.rest.XPackRestIT.test {p0=vectors/60_knn_and_binary_dv_fields_api/query vector of wrong type errors}" -Dtests.seed=F957A39CD1F80D49 -Dtests.locale=nn-NO -Dtests.timezone=America/Metlakatla -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.test.rest.XPackRestIT&tests.test=test%20%7Bp0%3Dvectors/60_knn_and_binary_dv_fields_api/query%20vector%20of%20wrong%20type%20errors%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [vectors/60_knn_and_binary_dv_fields_api:816]: expected [400] status code but api [search] returned [200 OK] [---
took: 78
timed_out: false
_shards:
total: 2
successful: 1
skipped: 0
failed: 1
failures:
- shard: 0
index: "test-index"
node: "VEUrg51eToWWjs5JaSA9iw"
reason:
type: "script_exception"
reason: "runtime error"
script_stack:
- "org.elasticsearch.xpack.vectors.query.DenseVector.l2Norm(DenseVector.java:80)"
- "(int) field(params.field).get().l2Norm(params.query)\n"
- " ^---- HERE"
script: "(int) field(params.field).get().l2Norm(params.query) ..."
lang: "painless"
position:
offset: 45
start: 0
end: 53
caused_by:
type: "illegal_argument_exception"
reason: "Cannot use vector [one, two, three] with class [java.lang.String]\
\ as query vector"
hits:
total:
value: 0
relation: "eq"
max_score: null
hits: []
]
at __randomizedtesting.SeedInfo.seed([F957A39CD1F80D49:71039C467F0460B1]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:493)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor14.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.AssertionError: expected [400] status code but api [search] returned [200 OK] [---
took: 78
timed_out: false
_shards:
total: 2
successful: 1
skipped: 0
failed: 1
failures:
- shard: 0
index: "test-index"
node: "VEUrg51eToWWjs5JaSA9iw"
reason:
type: "script_exception"
reason: "runtime error"
script_stack:
- "org.elasticsearch.xpack.vectors.query.DenseVector.l2Norm(DenseVector.java:80)"
- "(int) field(params.field).get().l2Norm(params.query)\n"
- " ^---- HERE"
script: "(int) field(params.field).get().l2Norm(params.query) ..."
lang: "painless"
position:
offset: 45
start: 0
end: 53
caused_by:
type: "illegal_argument_exception"
reason: "Cannot use vector [one, two, three] with class [java.lang.String]\
\ as query vector"
hits:
total:
value: 0
relation: "eq"
max_score: null
hits: []
]
at org.junit.Assert.fail(Assert.java:88)
at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:360)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:482)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor14.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84556 | https://github.com/elastic/elasticsearch/pull/84575 | cae3a662dc03cfb247fdb2a0e84a04124dd92056 | eb18574e02de1408d4e8439538b478cdf432fd2e | 2022-03-02T09:29:13Z | java | 2022-03-02T17:51:54Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,520 | ["server/src/test/java/org/elasticsearch/cluster/routing/DelayedAllocationServiceTests.java"] | [CI] DelayedAllocationServiceTests testDelayedUnassignedScheduleRerouteRescheduledOnShorterDelay failing | This reproduces locally. https://github.com/elastic/elasticsearch/pull/84418 recently touched this area so perhaps it's related,
**Build scan:**
https://gradle-enterprise.elastic.co/s/yfdjcrugjoaju/tests/:server:test/org.elasticsearch.cluster.routing.DelayedAllocationServiceTests/testDelayedUnassignedScheduleRerouteRescheduledOnShorterDelay
**Reproduction line:**
`./gradlew ':server:test' --tests "org.elasticsearch.cluster.routing.DelayedAllocationServiceTests.testDelayedUnassignedScheduleRerouteRescheduledOnShorterDelay" -Dtests.seed=F4B6841BDF04C52E -Dtests.locale=ca -Dtests.timezone=Asia/Aden -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.cluster.routing.DelayedAllocationServiceTests&tests.test=testDelayedUnassignedScheduleRerouteRescheduledOnShorterDelay
**Failure excerpt:**
```
java.lang.AssertionError: Values should be different. Actual: org.elasticsearch.cluster.routing.DelayedAllocationService$DelayedRerouteTask@305ac796
at __randomizedtesting.SeedInfo.seed([F4B6841BDF04C52E:D96C68645E00C8A9]:0)
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failEquals(Assert.java:185)
at org.junit.Assert.assertNotEquals(Assert.java:161)
at org.junit.Assert.assertNotEquals(Assert.java:175)
at org.elasticsearch.cluster.routing.DelayedAllocationServiceTests.testDelayedUnassignedScheduleRerouteRescheduledOnShorterDelay(DelayedAllocationServiceTests.java:521)
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:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84520 | https://github.com/elastic/elasticsearch/pull/84524 | 8bd14981f2682cbf0776b3346af120789f820006 | 8364efa2fec3653bcc93721f11bf7d76a0b92910 | 2022-03-01T18:46:46Z | java | 2022-03-02T08:09:08Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,492 | ["x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/vector-tile/10_basic.yml", "x-pack/plugin/vector-tile/src/main/java/org/elasticsearch/xpack/vectortile/rest/RestVectorTileAction.java", "x-pack/plugin/vector-tile/src/main/java/org/elasticsearch/xpack/vectortile/rest/VectorTileRequest.java", "x-pack/plugin/vector-tile/src/test/java/org/elasticsearch/xpack/vectortile/rest/VectorTileRequestTests.java"] | Make vector tile buffer size configurable | Vector tiles buffer is used to include data that is just outside of the tile. This data is used to prevent border effects when rendering the geometries. It is currently [hardcoded to 5 pixels](https://github.com/elastic/elasticsearch/blob/de2781f98696c1e6cfad2b5bf46fe752a5e3edbb/x-pack/plugin/vector-tile/src/main/java/org/elasticsearch/xpack/vectortile/feature/FeatureFactory.java#L63) but it should probably need to be user configurable by adding a new property on the vector tiles API which can change the value.
| https://github.com/elastic/elasticsearch/issues/84492 | https://github.com/elastic/elasticsearch/pull/85450 | c9ed0c0e3d4b0f9954214ba9bcb0efb0a0ee4751 | 9a60aa8b64209740616266c2607b4600d90f3b6b | 2022-03-01T12:22:14Z | java | 2022-03-29T15:42:45Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,483 | ["server/src/main/java/org/elasticsearch/cluster/coordination/FollowersChecker.java"] | [CI] RolloverIT testRollover failing | Suspect this is a general problem related to #83576.
**Build scan:**
https://gradle-enterprise.elastic.co/s/zxsmvjenj7xro/tests/:server:internalClusterTest/org.elasticsearch.action.admin.indices.rollover.RolloverIT/testRollover
**Reproduction line:**
`./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.action.admin.indices.rollover.RolloverIT.testRollover" -Dtests.seed=58E68D6FC10A7415 -Dtests.locale=fr-CA -Dtests.timezone=America/Lower_Princes -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.action.admin.indices.rollover.RolloverIT&tests.test=testRollover
**Failure excerpt:**
```
com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=1168, name=elasticsearch[node_t0][scheduler][T#1], state=RUNNABLE, group=TGRP-RolloverIT]
at __randomizedtesting.SeedInfo.seed([58E68D6FC10A7415:D3FB80172FA618EA]:0)
Caused by: org.elasticsearch.common.util.concurrent.EsRejectedExecutionException: rejected execution of detected failure of {node_t1}{EahwztF4RJCdtcO0EytfvQ}{LuW7WWgCS4eGeQA7k6TZpw}{127.0.0.1}{127.0.0.1:33989}{cdfhilrstw} on EsThreadPoolExecutor[name = node_t0/cluster_coordination, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@4939db0f[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 140]] (shutdown)
at __randomizedtesting.SeedInfo.seed([58E68D6FC10A7415]:0)
at org.elasticsearch.common.util.concurrent.EsRejectedExecutionHandler.newRejectedException(EsRejectedExecutionHandler.java:36)
at org.elasticsearch.common.util.concurrent.EsAbortPolicy.rejectedExecution(EsAbortPolicy.java:34)
at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:833)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1365)
at org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor.execute(EsThreadPoolExecutor.java:66)
at org.elasticsearch.cluster.coordination.FollowersChecker$FollowerChecker.failNode(FollowersChecker.java:361)
at org.elasticsearch.cluster.coordination.FollowersChecker$FollowerChecker$1.handleException(FollowersChecker.java:354)
at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:665)
at org.elasticsearch.cluster.coordination.FollowersChecker$FollowerChecker.handleWakeUp(FollowersChecker.java:301)
at org.elasticsearch.cluster.coordination.FollowersChecker$FollowerChecker$3.run(FollowersChecker.java:387)
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:717)
at org.elasticsearch.threadpool.ThreadPool$1.run(ThreadPool.java:423)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
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/84483 | https://github.com/elastic/elasticsearch/pull/84484 | 23a7b6bb4d85c477ad8d6a6977e497df58e22edd | beb7c9ea9a20728f3a3085a35dcf95cff844a317 | 2022-03-01T09:54:15Z | java | 2022-03-01T12:46:28Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,426 | ["rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/snapshot.restore/10_basic.yml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/tsdb/30_snapshot.yml"] | [CI] ClientYamlTestSuiteIT test {yaml=tsdb/30_snapshot/Create a snapshot and then restore it} failing | Related and same root cause as https://github.com/elastic/elasticsearch/issues/83390
```
[2022-02-28T13:42:44,024][INFO ][o.e.t.r.ClientYamlTestSuiteIT] [test] Stash dump on test failure [{
11:44:20 1> "stash" : {
11:44:20 1> "body" : {
11:44:20 1> "snapshot" : {
11:44:20 1> "snapshot" : "test_restore_tsdb",
11:44:20 1> "uuid" : "czlnpu02T1-ON5U_MX-HuA",
11:44:20 1> "repository" : "test_repo",
11:44:20 1> "version_id" : 8020099,
11:44:20 1> "version" : "8.2.0",
11:44:20 1> "indices" : [
11:44:20 1> "test_index",
11:44:20 1> ".tasks"
11:44:20 1> ],
11:44:20 1> "data_streams" : [ ],
11:44:20 1> "include_global_state" : true,
11:44:20 1> "state" : "SUCCESS",
11:44:20 1> "start_time" : "2022-02-28T10:42:43.813Z",
11:44:20 1> "start_time_in_millis" : 1646044963813,
11:44:20 1> "end_time" : "2022-02-28T10:42:43.813Z",
11:44:20 1> "end_time_in_millis" : 1646044963813,
11:44:20 1> "duration_in_millis" : 0,
11:44:20 1> "failures" : [ ],
11:44:20 1> "shards" : {
11:44:20 1> "total" : 3,
11:44:20 1> "failed" : 0,
11:44:20 1> "successful" : 3
11:44:20 1> },
11:44:20 1> "feature_states" : [
11:44:20 1> {
11:44:20 1> "feature_name" : "tasks",
11:44:20 1> "indices" : [
11:44:20 1> ".tasks"
11:44:20 1> ]
```
**Build scan:**
https://gradle-enterprise.elastic.co/s/g37yeaagj2c24/tests/:rest-api-spec:yamlRestTest/org.elasticsearch.test.rest.ClientYamlTestSuiteIT/test%20%7Byaml=tsdb%2F30_snapshot%2FCreate%20a%20snapshot%20and%20then%20restore%20it%7D
**Reproduction line:**
`./gradlew ':rest-api-spec:yamlRestTest' --tests "org.elasticsearch.test.rest.ClientYamlTestSuiteIT.test {yaml=tsdb/30_snapshot/Create a snapshot and then restore it}" -Dtests.seed=FFA631E0AA63595F -Dtests.locale=es-PA -Dtests.timezone=Africa/Djibouti -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.test.rest.ClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dtsdb/30_snapshot/Create%20a%20snapshot%20and%20then%20restore%20it%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [tsdb/30_snapshot:109]:
Expected: <2>
but: was <3>
at __randomizedtesting.SeedInfo.seed([FFA631E0AA63595F:77F20E3A049F34A7]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:493)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.AssertionError:
Expected: <2>
but: was <3>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.test.rest.yaml.section.MatchAssertion.doAssert(MatchAssertion.java:99)
at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:482)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84426 | https://github.com/elastic/elasticsearch/pull/84755 | 52663b060a7f552f1e6625089c8e002b0b138a64 | 01059c4c8a9f4349cd3eefa3942248b045fc0ae1 | 2022-02-28T13:33:09Z | java | 2022-03-09T08:08:34Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,421 | ["x-pack/plugin/shutdown/src/internalClusterTest/java/org/elasticsearch/xpack/shutdown/NodeShutdownTasksIT.java"] | [CI] NodeShutdownTasksIT testTasksAreNotAssignedToShuttingDownNode failing | #84142 is introducing an assertion which verifies that the cluster state we write to disk can be loaded again. This build failure shows that this assertion currently does not hold due to an undeclared field called `task_name`.
NB doesn't fail on `master` directly you need to check the PR branch, but it represents a genuine bug on `master`: if a node crashed after writing this state then it would not be able to restart.
**Build scan:**
https://gradle-enterprise.elastic.co/s/zne65f5ti7kfo/tests/:x-pack:plugin:shutdown:internalClusterTest/org.elasticsearch.xpack.shutdown.NodeShutdownTasksIT/testTasksAreNotAssignedToShuttingDownNode
**Reproduction line:**
`./gradlew ':x-pack:plugin:shutdown:internalClusterTest' --tests "org.elasticsearch.xpack.shutdown.NodeShutdownTasksIT.testTasksAreNotAssignedToShuttingDownNode" -Dtests.seed=E2D8712A01541857 -Dtests.locale=es-PY -Dtests.timezone=Africa/Kinshasa -Druntime.java=17`
**Applicable branches:**
~master~ https://github.com/elastic/elasticsearch/pull/84142/commits/3eb6089edb1ead5e33f4a081c4b5a2719d9c4217
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.shutdown.NodeShutdownTasksIT&tests.test=testTasksAreNotAssignedToShuttingDownNode
**Failure excerpt:**
<details>
<summary>Expand for stack trace</summary>
```
WARNING: Uncaught exception in thread: Thread[elasticsearch[node_t0][cluster_coordination][T#1],5,TGRP-NodeShutdownTasksIT] |
-- | --
| java.lang.AssertionError: org.elasticsearch.gateway.CorruptStateException: org.elasticsearch.xcontent.XContentParseException: [-1:358] [persistent_tasks] failed to parse field [tasks] |
| at __randomizedtesting.SeedInfo.seed([E2D8712A01541857]:0) |
| at org.elasticsearch.gateway.PersistedClusterStateService$Writer.assertOnCommit(PersistedClusterStateService.java:1020) |
| at org.elasticsearch.gateway.PersistedClusterStateService$Writer.commit(PersistedClusterStateService.java:1007) |
| at org.elasticsearch.gateway.PersistedClusterStateService$Writer.writeIncrementalStateAndCommit(PersistedClusterStateService.java:823) |
| at org.elasticsearch.gateway.GatewayMetaState$LucenePersistedState.setLastAcceptedState(GatewayMetaState.java:507) |
| at org.elasticsearch.cluster.coordination.CoordinationState.handlePublishRequest(CoordinationState.java:392) |
| at org.elasticsearch.cluster.coordination.Coordinator.handlePublishRequest(Coordinator.java:418) |
| at org.elasticsearch.cluster.coordination.PublicationTransportHandler.acceptState(PublicationTransportHandler.java:200) |
| at org.elasticsearch.cluster.coordination.PublicationTransportHandler.handleIncomingPublishRequest(PublicationTransportHandler.java:183) |
| at org.elasticsearch.cluster.coordination.PublicationTransportHandler.lambda$new$0(PublicationTransportHandler.java:103) |
| at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:67) |
| at org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:917) |
| at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:776) |
| at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) |
| at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) |
| at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) |
| at java.base/java.lang.Thread.run(Thread.java:833) |
| Caused by: org.elasticsearch.gateway.CorruptStateException: org.elasticsearch.xcontent.XContentParseException: [-1:358] [persistent_tasks] failed to parse field [tasks] |
| at org.elasticsearch.gateway.PersistedClusterStateService.readXContent(PersistedClusterStateService.java:539) |
| at org.elasticsearch.gateway.PersistedClusterStateService.lambda$loadOnDiskState$2(PersistedClusterStateService.java:493) |
| at org.elasticsearch.gateway.PersistedClusterStateService.consumeFromType(PersistedClusterStateService.java:580) |
| at org.elasticsearch.gateway.PersistedClusterStateService.loadOnDiskState(PersistedClusterStateService.java:492) |
| at org.elasticsearch.gateway.PersistedClusterStateService$Writer.assertOnCommit(PersistedClusterStateService.java:1016) |
| ... 15 more |
| Caused by: org.elasticsearch.xcontent.XContentParseException: [-1:358] [persistent_tasks] failed to parse field [tasks] |
| at org.elasticsearch.xcontent.ObjectParser.throwFailedToParse(ObjectParser.java:626) |
| at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:621) |
| at org.elasticsearch.xcontent.ObjectParser.parseArray(ObjectParser.java:614) |
| at org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:647) |
| at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:319) |
| at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:258) |
| at org.elasticsearch.xcontent.ObjectParser.apply(ObjectParser.java:392) |
| at org.elasticsearch.persistent.PersistentTasksCustomMetadata.fromXContent(PersistentTasksCustomMetadata.java:208) |
| at org.elasticsearch.xcontent.NamedXContentRegistry$Entry.lambda$new$0(NamedXContentRegistry.java:54) |
| at org.elasticsearch.xcontent.NamedXContentRegistry.parseNamedObject(NamedXContentRegistry.java:147) |
| at org.elasticsearch.xcontent.support.AbstractXContentParser.namedObject(AbstractXContentParser.java:416) |
| at org.elasticsearch.cluster.metadata.Metadata$Builder.fromXContent(Metadata.java:2188) |
| at org.elasticsearch.gateway.PersistedClusterStateService.readXContent(PersistedClusterStateService.java:537) |
| ... 19 more |
| Caused by: org.elasticsearch.xcontent.XContentParseException: [-1:358] [tasks] failed to parse field [task] |
| at org.elasticsearch.xcontent.ObjectParser.throwFailedToParse(ObjectParser.java:626) |
| at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:621) |
| at org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:633) |
| at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:319) |
| at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:258) |
| at org.elasticsearch.xcontent.AbstractObjectParser.lambda$declareFieldArray$20(AbstractObjectParser.java:336) |
| at org.elasticsearch.xcontent.AbstractObjectParser.parseArray(AbstractObjectParser.java:418) |
| at org.elasticsearch.xcontent.AbstractObjectParser.lambda$declareFieldArray$21(AbstractObjectParser.java:336) |
| at org.elasticsearch.xcontent.ObjectParser.lambda$declareField$10(ObjectParser.java:441) |
| at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:619) |
| ... 30 more |
| Caused by: org.elasticsearch.xcontent.XContentParseException: [-1:358] [task] failed to parse field [task_name] |
| at org.elasticsearch.xcontent.ObjectParser.rethrowFieldParseFailure(ObjectParser.java:564) |
| at org.elasticsearch.xcontent.ObjectParser.lambda$declareNamedObjects$14(ObjectParser.java:504) |
| at org.elasticsearch.xcontent.ObjectParser.lambda$declareNamedObjects$15(ObjectParser.java:515) |
| at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:619) |
| ... 38 more |
| Caused by: org.elasticsearch.xcontent.XContentParseException: [-1:358] [named] failed to parse field [params] |
| at org.elasticsearch.xcontent.ObjectParser.throwFailedToParse(ObjectParser.java:626) |
| at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:621) |
| at org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:633) |
| at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:319) |
| at org.elasticsearch.persistent.PersistentTasksCustomMetadata.lambda$static$3(PersistentTasksCustomMetadata.java:97) |
| at org.elasticsearch.xcontent.ObjectParser.lambda$declareNamedObjects$14(ObjectParser.java:502) |
| ... 40 more |
| Caused by: org.elasticsearch.xcontent.NamedObjectNotFoundException: [-1:358] unknown field [task_name] |
| at org.elasticsearch.xcontent.NamedXContentRegistry.lookupParser(NamedXContentRegistry.java:162) |
| at org.elasticsearch.xcontent.NamedXContentRegistry.parseNamedObject(NamedXContentRegistry.java:146) |
| at org.elasticsearch.xcontent.support.AbstractXContentParser.namedObject(AbstractXContentParser.java:416) |
| at org.elasticsearch.persistent.PersistentTasksCustomMetadata.lambda$static$1(PersistentTasksCustomMetadata.java:89) |
| at org.elasticsearch.xcontent.ObjectParser.lambda$declareField$10(ObjectParser.java:441) |
| at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:619) |
| ... 44 more |
```
</details> | https://github.com/elastic/elasticsearch/issues/84421 | https://github.com/elastic/elasticsearch/pull/84445 | 7bda7d1a8daecb8e34ebd56a3a74ad837e5485de | 1ca2dbb7bb7403a59b49b708625dffd34a990d4d | 2022-02-28T12:39:55Z | java | 2022-02-28T22:00:14Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,419 | ["docs/changelog/84420.yaml", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/XPackClientPlugin.java", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/job/snapshot/upgrade/SnapshotUpgradeTaskParams.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ml/job/snapshot/upgrade/SnapshotUpgradeTaskParamsTests.java"] | Cluster state containing `xpack/ml/job/snapshot/upgrade` cannot be read | ### Elasticsearch Version
master (& likely more)
### Installed Plugins
Any
### Java Version
_bundled_
### OS Version
Any
### Problem Description
https://github.com/elastic/elasticsearch/pull/84142 is introducing an assertion which verifies that the cluster state we write to disk can be loaded again. https://gradle-enterprise.elastic.co/s/id2j2df47glfe shows that this assertion currently does not hold due to an undeclared field called `xpack/ml/job/snapshot/upgrade`.
```
[2022-02-28T10:58:18,391][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [v8.0.1-2] fatal error in thread [elasticsearch[v8.0.1-2][cluster_coordination][T#1]], exiting
java.lang.AssertionError: org.elasticsearch.gateway.CorruptStateException: org.elasticsearch.xcontent.XContentParseException: [-1:32756] [persistent_tasks] failed to parse field [tasks]
Caused by: org.elasticsearch.gateway.CorruptStateException: org.elasticsearch.xcontent.XContentParseException: [-1:32756] [persistent_tasks] failed to parse field [tasks]
Caused by: org.elasticsearch.xcontent.XContentParseException: [-1:32756] [persistent_tasks] failed to parse field [tasks]
Caused by: org.elasticsearch.xcontent.XContentParseException: [-1:32756] [tasks] failed to parse field [task]
Caused by: org.elasticsearch.xcontent.XContentParseException: [-1:32756] [task] failed to parse field [xpack/ml/job/snapshot/upgrade]
Caused by: org.elasticsearch.xcontent.XContentParseException: [-1:32756] [named] failed to parse field [params]
Caused by: org.elasticsearch.xcontent.NamedObjectNotFoundException: [-1:32756] unknown field [xpack/ml/job/snapshot/upgrade]
```
If a node crashed after writing this state then it would not be able to restart.
### Steps to Reproduce
Run the failing tests on https://github.com/elastic/elasticsearch/pull/84142/commits/3eb6089edb1ead5e33f4a081c4b5a2719d9c4217.
### Logs (if relevant)
<details>
<summary>Expand for stack trace</summary>
```
[2022-02-28T10:58:18,391][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [v8.0.1-2] fatal error in thread [elasticsearch[v8.0.1-2][cluster_coordination][T#1]], exiting
java.lang.AssertionError: org.elasticsearch.gateway.CorruptStateException: org.elasticsearch.xcontent.XContentParseException: [-1:32756] [persistent_tasks] failed to parse field [tasks]
at org.elasticsearch.gateway.PersistedClusterStateService$Writer.assertOnCommit(PersistedClusterStateService.java:1020) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService$Writer.commit(PersistedClusterStateService.java:1007) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService$Writer.writeIncrementalStateAndCommit(PersistedClusterStateService.java:823) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.GatewayMetaState$LucenePersistedState.setLastAcceptedState(GatewayMetaState.java:507) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.cluster.coordination.CoordinationState.handlePublishRequest(CoordinationState.java:392) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.cluster.coordination.Coordinator.handlePublishRequest(Coordinator.java:418) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.cluster.coordination.PublicationTransportHandler.acceptState(PublicationTransportHandler.java:203) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.cluster.coordination.PublicationTransportHandler.handleIncomingPublishRequest(PublicationTransportHandler.java:183) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.cluster.coordination.PublicationTransportHandler.lambda$new$0(PublicationTransportHandler.java:103) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor$ProfileSecuredRequestHandler$1.doRun(SecurityServerTransportInterceptor.java:253) ~[?:?]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor$ProfileSecuredRequestHandler$3.onResponse(SecurityServerTransportInterceptor.java:315) ~[?:?]
at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor$ProfileSecuredRequestHandler$3.onResponse(SecurityServerTransportInterceptor.java:305) ~[?:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService.authorizeSystemUser(AuthorizationService.java:610) ~[?:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService.authorize(AuthorizationService.java:251) ~[?:?]
at org.elasticsearch.xpack.security.transport.ServerTransportFilter.lambda$inbound$1(ServerTransportFilter.java:113) ~[?:?]
at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.action.ActionListener$MappedActionListener.onResponse(ActionListener.java:101) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xpack.security.authc.AuthenticatorChain.authenticateAsync(AuthenticatorChain.java:93) ~[?:?]
at org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:199) ~[?:?]
at org.elasticsearch.xpack.security.transport.ServerTransportFilter.inbound(ServerTransportFilter.java:105) ~[?:?]
at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor$ProfileSecuredRequestHandler.messageReceived(SecurityServerTransportInterceptor.java:326) ~[?:?]
at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:67) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.transport.InboundHandler$1.doRun(InboundHandler.java:287) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:776) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: org.elasticsearch.gateway.CorruptStateException: org.elasticsearch.xcontent.XContentParseException: [-1:32756] [persistent_tasks] failed to parse field [tasks]
at org.elasticsearch.gateway.PersistedClusterStateService.readXContent(PersistedClusterStateService.java:539) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.lambda$loadOnDiskState$2(PersistedClusterStateService.java:493) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.consumeFromType(PersistedClusterStateService.java:580) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.loadOnDiskState(PersistedClusterStateService.java:492) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService$Writer.assertOnCommit(PersistedClusterStateService.java:1016) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
... 28 more
Caused by: org.elasticsearch.xcontent.XContentParseException: [-1:32756] [persistent_tasks] failed to parse field [tasks]
at org.elasticsearch.xcontent.ObjectParser.throwFailedToParse(ObjectParser.java:626) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:621) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseArray(ObjectParser.java:614) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:647) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:319) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:258) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.apply(ObjectParser.java:392) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.persistent.PersistentTasksCustomMetadata.fromXContent(PersistentTasksCustomMetadata.java:208) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.NamedXContentRegistry$Entry.lambda$new$0(NamedXContentRegistry.java:54) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.NamedXContentRegistry.parseNamedObject(NamedXContentRegistry.java:147) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.support.AbstractXContentParser.namedObject(AbstractXContentParser.java:416) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.cluster.metadata.Metadata$Builder.fromXContent(Metadata.java:2188) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.readXContent(PersistedClusterStateService.java:537) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.lambda$loadOnDiskState$2(PersistedClusterStateService.java:493) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.consumeFromType(PersistedClusterStateService.java:580) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.loadOnDiskState(PersistedClusterStateService.java:492) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService$Writer.assertOnCommit(PersistedClusterStateService.java:1016) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
... 28 more
Caused by: org.elasticsearch.xcontent.XContentParseException: [-1:32756] [tasks] failed to parse field [task]
at org.elasticsearch.xcontent.ObjectParser.throwFailedToParse(ObjectParser.java:626) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:621) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:633) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:319) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:258) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.AbstractObjectParser.lambda$declareFieldArray$20(AbstractObjectParser.java:336) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.AbstractObjectParser.parseArray(AbstractObjectParser.java:418) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.AbstractObjectParser.lambda$declareFieldArray$21(AbstractObjectParser.java:336) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.lambda$declareField$10(ObjectParser.java:441) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:619) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseArray(ObjectParser.java:614) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:647) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:319) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:258) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.apply(ObjectParser.java:392) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.persistent.PersistentTasksCustomMetadata.fromXContent(PersistentTasksCustomMetadata.java:208) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.NamedXContentRegistry$Entry.lambda$new$0(NamedXContentRegistry.java:54) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.NamedXContentRegistry.parseNamedObject(NamedXContentRegistry.java:147) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.support.AbstractXContentParser.namedObject(AbstractXContentParser.java:416) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.cluster.metadata.Metadata$Builder.fromXContent(Metadata.java:2188) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.readXContent(PersistedClusterStateService.java:537) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.lambda$loadOnDiskState$2(PersistedClusterStateService.java:493) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.consumeFromType(PersistedClusterStateService.java:580) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.loadOnDiskState(PersistedClusterStateService.java:492) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService$Writer.assertOnCommit(PersistedClusterStateService.java:1016) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
... 28 more
Caused by: org.elasticsearch.xcontent.XContentParseException: [-1:32756] [task] failed to parse field [xpack/ml/job/snapshot/upgrade]
at org.elasticsearch.xcontent.ObjectParser.rethrowFieldParseFailure(ObjectParser.java:564) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.lambda$declareNamedObjects$14(ObjectParser.java:504) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.lambda$declareNamedObjects$15(ObjectParser.java:515) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:619) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:633) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:319) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:258) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.AbstractObjectParser.lambda$declareFieldArray$20(AbstractObjectParser.java:336) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.AbstractObjectParser.parseArray(AbstractObjectParser.java:418) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.AbstractObjectParser.lambda$declareFieldArray$21(AbstractObjectParser.java:336) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.lambda$declareField$10(ObjectParser.java:441) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:619) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseArray(ObjectParser.java:614) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:647) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:319) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:258) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.apply(ObjectParser.java:392) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.persistent.PersistentTasksCustomMetadata.fromXContent(PersistentTasksCustomMetadata.java:208) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.NamedXContentRegistry$Entry.lambda$new$0(NamedXContentRegistry.java:54) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.NamedXContentRegistry.parseNamedObject(NamedXContentRegistry.java:147) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.support.AbstractXContentParser.namedObject(AbstractXContentParser.java:416) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.cluster.metadata.Metadata$Builder.fromXContent(Metadata.java:2188) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.readXContent(PersistedClusterStateService.java:537) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.lambda$loadOnDiskState$2(PersistedClusterStateService.java:493) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.consumeFromType(PersistedClusterStateService.java:580) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.loadOnDiskState(PersistedClusterStateService.java:492) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService$Writer.assertOnCommit(PersistedClusterStateService.java:1016) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
... 28 more
Caused by: org.elasticsearch.xcontent.XContentParseException: [-1:32756] [named] failed to parse field [params]
at org.elasticsearch.xcontent.ObjectParser.throwFailedToParse(ObjectParser.java:626) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:621) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:633) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:319) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.persistent.PersistentTasksCustomMetadata.lambda$static$3(PersistentTasksCustomMetadata.java:97) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.lambda$declareNamedObjects$14(ObjectParser.java:502) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.lambda$declareNamedObjects$15(ObjectParser.java:515) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:619) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:633) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:319) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:258) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.AbstractObjectParser.lambda$declareFieldArray$20(AbstractObjectParser.java:336) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.AbstractObjectParser.parseArray(AbstractObjectParser.java:418) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.AbstractObjectParser.lambda$declareFieldArray$21(AbstractObjectParser.java:336) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.lambda$declareField$10(ObjectParser.java:441) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:619) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseArray(ObjectParser.java:614) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:647) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:319) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:258) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.apply(ObjectParser.java:392) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.persistent.PersistentTasksCustomMetadata.fromXContent(PersistentTasksCustomMetadata.java:208) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.NamedXContentRegistry$Entry.lambda$new$0(NamedXContentRegistry.java:54) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.NamedXContentRegistry.parseNamedObject(NamedXContentRegistry.java:147) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.support.AbstractXContentParser.namedObject(AbstractXContentParser.java:416) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.cluster.metadata.Metadata$Builder.fromXContent(Metadata.java:2188) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.readXContent(PersistedClusterStateService.java:537) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.lambda$loadOnDiskState$2(PersistedClusterStateService.java:493) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.consumeFromType(PersistedClusterStateService.java:580) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.loadOnDiskState(PersistedClusterStateService.java:492) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService$Writer.assertOnCommit(PersistedClusterStateService.java:1016) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
... 28 more
Caused by: org.elasticsearch.xcontent.NamedObjectNotFoundException: [-1:32756] unknown field [xpack/ml/job/snapshot/upgrade]
at org.elasticsearch.xcontent.NamedXContentRegistry.lookupParser(NamedXContentRegistry.java:162) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.NamedXContentRegistry.parseNamedObject(NamedXContentRegistry.java:146) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.support.AbstractXContentParser.namedObject(AbstractXContentParser.java:416) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.persistent.PersistentTasksCustomMetadata.lambda$static$1(PersistentTasksCustomMetadata.java:89) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.lambda$declareField$10(ObjectParser.java:441) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:619) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:633) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:319) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.persistent.PersistentTasksCustomMetadata.lambda$static$3(PersistentTasksCustomMetadata.java:97) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.lambda$declareNamedObjects$14(ObjectParser.java:502) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.lambda$declareNamedObjects$15(ObjectParser.java:515) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:619) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:633) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:319) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:258) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.AbstractObjectParser.lambda$declareFieldArray$20(AbstractObjectParser.java:336) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.AbstractObjectParser.parseArray(AbstractObjectParser.java:418) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.AbstractObjectParser.lambda$declareFieldArray$21(AbstractObjectParser.java:336) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.lambda$declareField$10(ObjectParser.java:441) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:619) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseArray(ObjectParser.java:614) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:647) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:319) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:258) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.ObjectParser.apply(ObjectParser.java:392) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.persistent.PersistentTasksCustomMetadata.fromXContent(PersistentTasksCustomMetadata.java:208) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.NamedXContentRegistry$Entry.lambda$new$0(NamedXContentRegistry.java:54) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.NamedXContentRegistry.parseNamedObject(NamedXContentRegistry.java:147) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.xcontent.support.AbstractXContentParser.namedObject(AbstractXContentParser.java:416) ~[elasticsearch-x-content-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.cluster.metadata.Metadata$Builder.fromXContent(Metadata.java:2188) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.readXContent(PersistedClusterStateService.java:537) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.lambda$loadOnDiskState$2(PersistedClusterStateService.java:493) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.consumeFromType(PersistedClusterStateService.java:580) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService.loadOnDiskState(PersistedClusterStateService.java:492) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
at org.elasticsearch.gateway.PersistedClusterStateService$Writer.assertOnCommit(PersistedClusterStateService.java:1016) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
... 28 more
```
</details> | https://github.com/elastic/elasticsearch/issues/84419 | https://github.com/elastic/elasticsearch/pull/84420 | 6f5541a9d6d8120de1fe9904cbbc8e0be015b1a4 | 87258d1c892f18339b7e007d6ed0499866f663ef | 2022-02-28T11:09:36Z | java | 2022-02-28T13:34:41Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,414 | [".github/CODEOWNERS"] | Create a Github CODEOWNER file | ### Description
We, the Elastic Agent team, would like to have a Github CODEOWNER file setup in order to be notified as soon as there is a PR trying to modify something we own.
It can be either fleet* indices or some java code.
Examples:
- https://github.com/elastic/elasticsearch/blob/master/x-pack/plugin/core/src/main/resources/fleet-policies.json
- https://github.com/elastic/elasticsearch/tree/master/x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet
cc
@ph | https://github.com/elastic/elasticsearch/issues/84414 | https://github.com/elastic/elasticsearch/pull/89155 | e63bcb550e16f9dbbcf0a55fea194ef554b169a5 | 5233229bfb29660e253246794b148634400b011a | 2022-02-28T09:57:56Z | java | 2022-08-09T13:54:35Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,362 | ["server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/InternalComposite.java"] | [CI] InternalCompositeTests testReduceRandom failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/jdlwrszl7eytk/tests/:server:test/org.elasticsearch.search.aggregations.bucket.composite.InternalCompositeTests/testReduceRandom
**Reproduction line:**
`./gradlew ':server:test' --tests "org.elasticsearch.search.aggregations.bucket.composite.InternalCompositeTests.testReduceRandom" -Dtests.seed=AF4A53AFCDB3506E -Dtests.locale=sr-RS -Dtests.timezone=Asia/Pontianak -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.search.aggregations.bucket.composite.InternalCompositeTests&tests.test=testReduceRandom
**Failure excerpt:**
```
java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 0
at __randomizedtesting.SeedInfo.seed([AF4A53AFCDB3506E:6F77FFBEEBEEC938]:0)
at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
at java.util.Objects.checkIndex(Objects.java:359)
at java.util.ArrayList.get(ArrayList.java:427)
at org.elasticsearch.search.aggregations.bucket.composite.InternalComposite.finalizeSampling(InternalComposite.java:264)
at org.elasticsearch.test.InternalAggregationTestCase.testReduceRandom(InternalAggregationTestCase.java:479)
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:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84362 | https://github.com/elastic/elasticsearch/pull/84370 | 95be11f6fbb2be82e5f566f2d1a03ad7fa1a694b | e9ce6ad18144597e5bed7e34cce136e3cc04cb5f | 2022-02-24T18:21:36Z | java | 2022-02-24T22:02:55Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,352 | ["x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/IndexLifecycleExplainResponse.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/IndexLifecycleExplainResponseTests.java"] | IndexLifecycleExplainResponseTests testConcurrentToXContent failure | ### CI Link
https://gradle-enterprise.elastic.co/s/2kxb4swf2na3m
### Repro line
`gradlew ':x-pack:plugin:core:test' --tests "org.elasticsearch.xpack.core.ilm.IndexLifecycleExplainResponseTests.testConcurrentToXContent" -Dtests.seed=F0ACC0B7F00E87C -Dtests.locale=he-IL -Dtests.timezone=America/Mazatlan -Druntime.java=17`
### Does it reproduce?
No
### Applicable branches
master
### Failure history
Failed three times in the past three weeks. Cannot repro locally, even after running it with `-Dtests.iters=10000`
### Failure excerpt
```
REPRODUCE WITH: ./gradlew ':x-pack:plugin:core:test' --tests "org.elasticsearch.xpack.core.ilm.IndexLifecycleExplainResponseTests.testConcurrentToXContent" -Dtests.seed=F0ACC0B7F00E87C -Dtests.locale=he-IL -Dtests.timezone=America/Mazatlan -Druntime.java=17
org.elasticsearch.xpack.core.ilm.IndexLifecycleExplainResponseTests > testConcurrentToXContent FAILED
java.util.concurrent.ExecutionException: java.lang.AssertionError: Failed to round trip over human readable VND_JSON
Canonical is:
{
"index" : "OdLNCOIKwA",
"managed" : true,
"policy" : "AUuNtYTjhg",
"index_creation_date" : "1986-08-05T02:55:06.458Z",
"index_creation_date_millis" : 523594506458,
"time_since_index_creation" : "12987.34d",
"lifecycle_date" : "1988-04-18T16:24:40.565Z",
"lifecycle_date_millis" : 577383880565,
"age" : "12364.78d",
"phase" : "wvePKgOTZU",
"phase_time" : "+152620375-08-31T14:02:46.038Z",
"phase_time_millis" : 4816171701842566038,
"action" : "NwsgagyYHU",
"action_time" : "+112419015-07-21T08:32:22.739Z",
"action_time_millis" : 3547539310408342739,
"step" : "BxpfxjHiJx",
"step_time" : "+67495741-05-23T01:58:56.303Z",
"step_time_millis" : 2129897704067936303,
"failed_step" : "vcYCDfQVtg",
"is_auto_retryable_error" : true,
"failed_step_retry_count" : 9,
"repository_name" : "MTMJajqKrm",
"snapshot_name" : "ewBcghonnw",
"shrink_index_name" : "XSCUxutXRS",
"step_info" : {
"HNLPXKQbuQ" : "GQBbwuCOmq"
},
"phase_execution" : {
"policy" : "PRgtD",
"phase_definition" : {
"min_age" : "0ms",
"actions" : {
"TEST_ACTION" : { }
}
},
"version" : 755898683045883943,
"modified_date" : "+38424792-04-16T02:03:27.661Z",
"modified_date_in_millis" : 1212507158695407661
}
}
Wanted : {"index":"OdLNCOIKwA","managed":true,"policy":"AUuNtYTjhg","index_creation_date":"1986-08-05T02:55:06.458Z","index_creation_date_millis":523594506458,"time_since_index_creation":"12987.34d","lifecycle_date":"1988-04-18T16:24:40.565Z","lifecycle_date_millis":577383880565,"age":"12364.77d","phase":"wvePKgOTZU","phase_time":"+152620375-08-31T14:02:46.038Z","phase_time_millis":4816171701842566038,"action":"NwsgagyYHU","action_time":"+112419015-07-21T08:32:22.739Z","action_time_millis":3547539310408342739,"step":"BxpfxjHiJx","step_time":"+67495741-05-23T01:58:56.303Z","step_time_millis":2129897704067936303,"failed_step":"vcYCDfQVtg","is_auto_retryable_error":true,"failed_step_retry_count":9,"repository_name":"MTMJajqKrm","snapshot_name":"ewBcghonnw","shrink_index_name":"XSCUxutXRS","step_info":{"HNLPXKQbuQ":"GQBbwuCOmq"},"phase_execution":{"policy":"PRgtD","phase_definition":{"min_age":"0ms","actions":{"TEST_ACTION":{}}},"version":755898683045883943,"modified_date":"+38424792-04-16T02:03:27.661Z","modified_date_in_millis":1212507158695407661}}
But got: {"index":"OdLNCOIKwA","managed":true,"policy":"AUuNtYTjhg","index_creation_date":"1986-08-05T02:55:06.458Z","index_creation_date_millis":523594506458,"time_since_index_creation":"12987.34d","lifecycle_date":"1988-04-18T16:24:40.565Z","lifecycle_date_millis":577383880565,"age":"12364.78d","phase":"wvePKgOTZU","phase_time":"+152620375-08-31T14:02:46.038Z","phase_time_millis":4816171701842566038,"action":"NwsgagyYHU","action_time":"+112419015-07-21T08:32:22.739Z","action_time_millis":3547539310408342739,"step":"BxpfxjHiJx","step_time":"+67495741-05-23T01:58:56.303Z","step_time_millis":2129897704067936303,"failed_step":"vcYCDfQVtg","is_auto_retryable_error":true,"failed_step_retry_count":9,"repository_name":"MTMJajqKrm","snapshot_name":"ewBcghonnw","shrink_index_name":"XSCUxutXRS","step_info":{"HNLPXKQbuQ":"GQBbwuCOmq"},"phase_execution":{"policy":"PRgtD","phase_definition":{"min_age":"0ms","actions":{"TEST_ACTION":{}}},"version":755898683045883943,"modified_date":"+38424792-04-16T02:03:27.661Z","modified_date_in_millis":1212507158695407661}}
at __randomizedtesting.SeedInfo.seed([F0ACC0B7F00E87C:6773E0E2321A101F]:0)
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
at org.elasticsearch.test.AbstractWireTestCase.concurrentTest(AbstractWireTestCase.java:99)
at org.elasticsearch.test.AbstractSerializingTestCase.testConcurrentToXContent(AbstractSerializingTestCase.java:82)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by:
java.lang.AssertionError: Failed to round trip over human readable VND_JSON
Canonical is:
{
"index" : "OdLNCOIKwA",
"managed" : true,
"policy" : "AUuNtYTjhg",
"index_creation_date" : "1986-08-05T02:55:06.458Z",
"index_creation_date_millis" : 523594506458,
"time_since_index_creation" : "12987.34d",
"lifecycle_date" : "1988-04-18T16:24:40.565Z",
"lifecycle_date_millis" : 577383880565,
"age" : "12364.78d",
"phase" : "wvePKgOTZU",
"phase_time" : "+152620375-08-31T14:02:46.038Z",
"phase_time_millis" : 4816171701842566038,
"action" : "NwsgagyYHU",
"action_time" : "+112419015-07-21T08:32:22.739Z",
"action_time_millis" : 3547539310408342739,
"step" : "BxpfxjHiJx",
"step_time" : "+67495741-05-23T01:58:56.303Z",
"step_time_millis" : 2129897704067936303,
"failed_step" : "vcYCDfQVtg",
"is_auto_retryable_error" : true,
"failed_step_retry_count" : 9,
"repository_name" : "MTMJajqKrm",
"snapshot_name" : "ewBcghonnw",
"shrink_index_name" : "XSCUxutXRS",
"step_info" : {
"HNLPXKQbuQ" : "GQBbwuCOmq"
},
"phase_execution" : {
"policy" : "PRgtD",
"phase_definition" : {
"min_age" : "0ms",
"actions" : {
"TEST_ACTION" : { }
}
},
"version" : 755898683045883943,
"modified_date" : "+38424792-04-16T02:03:27.661Z",
"modified_date_in_millis" : 1212507158695407661
}
}
Wanted : {"index":"OdLNCOIKwA","managed":true,"policy":"AUuNtYTjhg","index_creation_date":"1986-08-05T02:55:06.458Z","index_creation_date_millis":523594506458,"time_since_index_creation":"12987.34d","lifecycle_date":"1988-04-18T16:24:40.565Z","lifecycle_date_millis":577383880565,"age":"12364.77d","phase":"wvePKgOTZU","phase_time":"+152620375-08-31T14:02:46.038Z","phase_time_millis":4816171701842566038,"action":"NwsgagyYHU","action_time":"+112419015-07-21T08:32:22.739Z","action_time_millis":3547539310408342739,"step":"BxpfxjHiJx","step_time":"+67495741-05-23T01:58:56.303Z","step_time_millis":2129897704067936303,"failed_step":"vcYCDfQVtg","is_auto_retryable_error":true,"failed_step_retry_count":9,"repository_name":"MTMJajqKrm","snapshot_name":"ewBcghonnw","shrink_index_name":"XSCUxutXRS","step_info":{"HNLPXKQbuQ":"GQBbwuCOmq"},"phase_execution":{"policy":"PRgtD","phase_definition":{"min_age":"0ms","actions":{"TEST_ACTION":{}}},"version":755898683045883943,"modified_date":"+38424792-04-16T02:03:27.661Z","modified_date_in_millis":1212507158695407661}}
But got: {"index":"OdLNCOIKwA","managed":true,"policy":"AUuNtYTjhg","index_creation_date":"1986-08-05T02:55:06.458Z","index_creation_date_millis":523594506458,"time_since_index_creation":"12987.34d","lifecycle_date":"1988-04-18T16:24:40.565Z","lifecycle_date_millis":577383880565,"age":"12364.78d","phase":"wvePKgOTZU","phase_time":"+152620375-08-31T14:02:46.038Z","phase_time_millis":4816171701842566038,"action":"NwsgagyYHU","action_time":"+112419015-07-21T08:32:22.739Z","action_time_millis":3547539310408342739,"step":"BxpfxjHiJx","step_time":"+67495741-05-23T01:58:56.303Z","step_time_millis":2129897704067936303,"failed_step":"vcYCDfQVtg","is_auto_retryable_error":true,"failed_step_retry_count":9,"repository_name":"MTMJajqKrm","snapshot_name":"ewBcghonnw","shrink_index_name":"XSCUxutXRS","step_info":{"HNLPXKQbuQ":"GQBbwuCOmq"},"phase_execution":{"policy":"PRgtD","phase_definition":{"min_age":"0ms","actions":{"TEST_ACTION":{}}},"version":755898683045883943,"modified_date":"+38424792-04-16T02:03:27.661Z","modified_date_in_millis":1212507158695407661}}
at org.junit.Assert.fail(Assert.java:88)
at org.elasticsearch.test.AbstractSerializingTestCase.lambda$testConcurrentToXContent$3(AbstractSerializingTestCase.java:98)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
... 1 more
``` | https://github.com/elastic/elasticsearch/issues/84352 | https://github.com/elastic/elasticsearch/pull/84528 | 5d3bbfbf74346e9a056c3d09fb735e89d5dfd4d6 | 891ad7b5b77bfcd04ae25008ed373ee53413bb44 | 2022-02-24T16:10:44Z | java | 2022-03-02T14:41:12Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,349 | ["docs/changelog/84605.yaml", "x-pack/plugin/sql/qa/server/single-node/src/test/java/org/elasticsearch/xpack/sql/qa/single_node/RestSqlPaginationIT.java", "x-pack/plugin/sql/qa/server/src/main/java/org/elasticsearch/xpack/sql/qa/rest/BaseRestSqlTestCase.java", "x-pack/plugin/sql/qa/server/src/main/java/org/elasticsearch/xpack/sql/qa/rest/RestSqlPaginationTestCase.java", "x-pack/plugin/sql/qa/server/src/main/java/org/elasticsearch/xpack/sql/qa/rest/RestSqlTestCase.java", "x-pack/plugin/sql/src/internalClusterTest/java/org/elasticsearch/xpack/sql/action/SqlSearchPageTimeoutIT.java", "x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/execution/search/CompositeAggCursor.java", "x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/execution/search/Querier.java", "x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/execution/search/SearchHitCursor.java", "x-pack/plugin/sql/src/test/java/org/elasticsearch/xpack/sql/analysis/CancellationTests.java"] | SQL: Support consistent pagination for `GROUP BY` and `PIVOT` queries | ### Description
Only "search hits" based queries (no aggregations) provide a consistent view on the data when paginating through the result set. With point-in-time, it is possible to support transactional semantics for aggregation queries as well.
This issue is somewhat blocked by https://github.com/elastic/elasticsearch/issues/75528 because a PIT can not immediately be closed if the aggregation result set contains less than `fetch_size` records. This could cause some increased resource utilization due to open PITs. Especially if the client does not close the SQL cursor. | https://github.com/elastic/elasticsearch/issues/84349 | https://github.com/elastic/elasticsearch/pull/84605 | e56d3d3de67e198663a61c72047a4baf0accd9c8 | c4253ad29815d55b92746fd3e212ec33325ed54e | 2022-02-24T15:37:27Z | java | 2022-03-14T14:14:41Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,308 | [".idea/externalDependencies.xml", "x-pack/plugin/ml/build.gradle"] | Consume new ML artifacts when building plugin bundle | https://github.com/elastic/ml-cpp/pull/2163 introduced separate artifacts for ML code and upstream dependencies. This allows us to have better reuse of cached dependency artifacts since the ML dependencies rarely change and they make up the bulk of the downloaded artifact. Update our ML plugin bundling so that when downloading the latest snapshot we use these new dependencies.
Relates to https://github.com/elastic/elasticsearch/issues/76726 | https://github.com/elastic/elasticsearch/issues/84308 | https://github.com/elastic/elasticsearch/pull/84536 | 0acdd68aae9a939cfa021b04751bb680c8932905 | a34c0b44d6c24f3e812867a809ee4622650c7704 | 2022-02-23T17:19:27Z | java | 2022-03-04T18:11:17Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,290 | ["x-pack/plugin/ml/src/internalClusterTest/java/org/elasticsearch/xpack/ml/integration/DatafeedCcsIT.java"] | [CI] DatafeedCcsIT testDatafeedWithCcsRemoteHealthy failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/j2ejoyp6jzmis/tests/:x-pack:plugin:ml:internalClusterTest/org.elasticsearch.xpack.ml.integration.DatafeedCcsIT/testDatafeedWithCcsRemoteHealthy
**Reproduction line:**
`./gradlew ':x-pack:plugin:ml:internalClusterTest' --tests "org.elasticsearch.xpack.ml.integration.DatafeedCcsIT.testDatafeedWithCcsRemoteHealthy" -Dtests.seed=2B74FA46CB2D4E50 -Dtests.locale=zh-SG -Dtests.timezone=Etc/GMT-12 -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.ml.integration.DatafeedCcsIT&tests.test=testDatafeedWithCcsRemoteHealthy
**Failure excerpt:**
```
java.lang.AssertionError:
Expected: is <closed>
but: was <opened>
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.DatafeedCcsIT.lambda$testDatafeedWithCcsRemoteHealthy$0(DatafeedCcsIT.java:114)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1068)
at org.elasticsearch.xpack.ml.integration.DatafeedCcsIT.testDatafeedWithCcsRemoteHealthy(DatafeedCcsIT.java:112)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84290 | https://github.com/elastic/elasticsearch/pull/84291 | 7900a0bdaacccb8b5501ad21cf1fe3c8589f59de | 235142bb69cb8d9a4f978fe1f93e16e9761082cb | 2022-02-23T13:55:36Z | java | 2022-02-23T14:47:44Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,283 | ["x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/TransformSurvivesUpgradeIT.java"] | [CI] TransformSurvivesUpgradeIT testTransformRollingUpgrade failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/25orcgh4aq75m/tests/:x-pack:qa:rolling-upgrade:v8.2.0%23oldClusterTest/org.elasticsearch.upgrades.TransformSurvivesUpgradeIT/testTransformRollingUpgrade
**Reproduction line:**
`./gradlew ':x-pack:qa:rolling-upgrade:v8.2.0#oldClusterTest' -Dtests.class="org.elasticsearch.upgrades.TransformSurvivesUpgradeIT" -Dtests.method="testTransformRollingUpgrade" -Dtests.seed=1A9920CB87B03F50 -Dtests.bwc=true -Dtests.locale=ru-RU -Dtests.timezone=America/Louisville -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.upgrades.TransformSurvivesUpgradeIT&tests.test=testTransformRollingUpgrade
**Failure excerpt:**
```
java.lang.AssertionError:
Expected: <330L>
but: was <5L>
at __randomizedtesting.SeedInfo.seed([1A9920CB87B03F50:B5E415722CF6EC94]: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.upgrades.TransformSurvivesUpgradeIT.lambda$createAndStartContinuousTransform$4(TransformSurvivesUpgradeIT.java:134)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1068)
at org.elasticsearch.upgrades.TransformSurvivesUpgradeIT.createAndStartContinuousTransform(TransformSurvivesUpgradeIT.java:132)
at org.elasticsearch.upgrades.TransformSurvivesUpgradeIT.testTransformRollingUpgrade(TransformSurvivesUpgradeIT.java:90)
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:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84283 | https://github.com/elastic/elasticsearch/pull/84328 | fb5b44c522a5361f78cc6f995ffa80e99561fd6c | 078bea2d048e3ea09b0e19387ede6d6f6590d8d2 | 2022-02-23T13:14:19Z | java | 2022-02-24T10:10:57Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,262 | ["docs/changelog/86935.yaml", "server/src/internalClusterTest/java/org/elasticsearch/search/profile/aggregation/AggregationProfilerIT.java", "server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregator.java", "server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregatorTests.java", "server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregatorTests.java"] | Optimize date_histogram for single-valued fields | ### Description
Our most common aggregations should be optimized for single-valued fields. In general, our aggregations look like this:
```java
@Override
public LeafBucketCollector getLeafCollector(LeafReaderContext ctx, LeafBucketCollector sub) throws IOException {
if (valuesSource == null) {
return LeafBucketCollector.NO_OP_COLLECTOR;
}
SortedNumericDocValues values = valuesSource.longValues(ctx);
return new LeafBucketCollectorBase(sub, values) {
@Override
public void collect(int doc, long owningBucketOrd) throws IOException {
if (values.advanceExact(doc)) {
int valuesCount = values.docValueCount();
for (int i = 0; i < valuesCount; ++i) {
long value = values.nextValue();
// do something with value
}
}
}
};
}
```
The idea consists of optimizing for single-valued fields by unwrapping the single-valued doc-value iterator:
```java
@Override
public LeafBucketCollector getLeafCollector(LeafReaderContext ctx, LeafBucketCollector sub) throws IOException {
if (valuesSource == null) {
return LeafBucketCollector.NO_OP_COLLECTOR;
}
SortedNumericDocValues values = valuesSource.longValues(ctx);
NumericDocValues singleValues = DocValues.unwrapSingleton(values); // or FieldData.unwrapSingleton for doubles
if (singleValues != null) {
return new LeafBucketCollectorBase(sub, values) {
@Override
public void collect(int doc, long owningBucketOrd) throws IOException {
if (singleValues.advanceExact(doc)) {
long value = singleValues.longValue();
// do something with value
}
}
};
} else {
return new LeafBucketCollectorBase(sub, values) {
@Override
public void collect(int doc, long owningBucketOrd) throws IOException {
if (values.advanceExact(doc)) {
int valuesCount = values.docValueCount();
for (int i = 0; i < valuesCount; ++i) {
long value = values.nextValue();
// do something with value
}
}
}
};
}
}
```
The `terms` aggregation already does this, and e.g. `min` and `max` aggregations use similar tricks that also help optimize the single-valued case. But `date_histogram`, which is one of our most common aggregations, doesn't. Let's specialize the single-value case for date histograms too? | https://github.com/elastic/elasticsearch/issues/84262 | https://github.com/elastic/elasticsearch/pull/86935 | 9c5a2c1e4572c4de2323feecb6f5fe739986f229 | 01a3af096951db083a11b991885709fbb79dd013 | 2022-02-23T08:12:02Z | java | 2022-05-26T21:57:47Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,256 | ["docs/changelog/84675.yaml", "modules/data-streams/src/yamlRestTest/resources/rest-api-spec/test/data_stream/180_simulate_existing_data_stream.yml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/indices.simulate_index_template/10_basic.yml", "server/src/main/java/org/elasticsearch/action/admin/indices/template/post/TransportSimulateIndexTemplateAction.java"] | Simulate index fails when index name already exists and has an alias | ### Elasticsearch Version
8.2.0
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
Darwin Kernel Version 20.6.0
### Problem Description
The [simulate index API](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-simulate-index.html) returns an error if used with an index name that already exists and the existing index has an alias defined.
```
{
"error" : {
"root_cause" : [
{
"type" : "illegal_state_exception",
"reason" : "Cannot remove non-existent alias [my-index-alias] for index [my-index]"
}
],
"type" : "illegal_state_exception",
"reason" : "Cannot remove non-existent alias [my-index-alias] for index [my-index]"
},
"status" : 500
}
```
Previously in 8.0 the simulate index API would return the expected mappings, settings, and aliases even when used with an index name that already exists.
### Steps to Reproduce
1. Create a minimal index template that includes an alias
```
POST _index_template/my_template
{
"index_patterns": [
"my-index*"
],
"template": {
"aliases": {
"my-index-alias": {
"is_write_index": false
}
}
}
}
```
2. Create an index using the index template
```
PUT my-index
```
3. Simulate an index with the same name as the created index
```
POST _index_template/_simulate_index/my-index
```
### Logs (if relevant)
```
info [r.suppressed] [Marshalls-MacBook-Pro.local] path: /_index_template/_simulate_index/my-index, params: {pretty=true, name=my-index}
│ java.lang.IllegalStateException: Cannot remove non-existent alias [my-index-alias] for index [my-index]
│ at org.elasticsearch.cluster.metadata.Metadata$Builder.removeAlias(Metadata.java:1362) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.cluster.metadata.Metadata$Builder.updateAliases(Metadata.java:1333) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.cluster.metadata.Metadata$Builder.put(Metadata.java:1235) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.admin.indices.template.post.TransportSimulateIndexTemplateAction.resolveTemporaryState(TransportSimulateIndexTemplateAction.java:179) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.admin.indices.template.post.TransportSimulateIndexTemplateAction.masterOperation(TransportSimulateIndexTemplateAction.java:131) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.admin.indices.template.post.TransportSimulateIndexTemplateAction.masterOperation(TransportSimulateIndexTemplateAction.java:57) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.support.master.TransportMasterNodeAction.executeMasterOperation(TransportMasterNodeAction.java:121) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.lambda$doStart$3(TransportMasterNodeAction.java:215) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.ActionRunnable$2.doRun(ActionRunnable.java:62) ~[elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.common.util.concurrent.EsExecutors$DirectExecutorService.execute(EsExecutors.java:221) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.doStart(TransportMasterNodeAction.java:215) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.support.master.TransportMasterNodeAction.doExecute(TransportMasterNodeAction.java:152) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.support.master.TransportMasterNodeAction.doExecute(TransportMasterNodeAction.java:52) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:79) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.support.ActionFilter$Simple.apply(ActionFilter.java:53) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:77) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$applyInternal$3(SecurityActionFilter.java:162) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.ActionListener$DelegatingFailureActionListener.onResponse(ActionListener.java:219) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authz.AuthorizationService.lambda$authorizeAction$4(AuthorizationService.java:392) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authz.AuthorizationService$AuthorizationResultListener.onResponse(AuthorizationService.java:958) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authz.AuthorizationService$AuthorizationResultListener.onResponse(AuthorizationService.java:922) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authz.AuthorizationService.lambda$authorizeAction$5(AuthorizationService.java:406) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authz.RBACEngine.authorizeClusterAction(RBACEngine.java:165) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authz.AuthorizationService.authorizeAction(AuthorizationService.java:396) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authz.AuthorizationService.maybeAuthorizeRunAs(AuthorizationService.java:372) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authz.AuthorizationService.lambda$authorize$1(AuthorizationService.java:257) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authz.RBACEngine.lambda$resolveAuthorizationInfo$0(RBACEngine.java:138) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.lambda$getRoles$1(CompositeRolesStore.java:184) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.lambda$buildRole$0(RoleReferenceIntersection.java:47) [x-pack-core-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.support.GroupedActionListener.onResponse(GroupedActionListener.java:55) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.buildRoleFromRoleReference(CompositeRolesStore.java:232) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.lambda$buildRole$1(RoleReferenceIntersection.java:50) [x-pack-core-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at java.lang.Iterable.forEach(Iterable.java:75) [?:?]
│ at org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.buildRole(RoleReferenceIntersection.java:50) [x-pack-core-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.getRole(CompositeRolesStore.java:199) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.getRoles(CompositeRolesStore.java:174) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authz.RBACEngine.resolveAuthorizationInfo(RBACEngine.java:135) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authz.AuthorizationService.authorize(AuthorizationService.java:259) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$applyInternal$4(SecurityActionFilter.java:158) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.ActionListener$MappedActionListener.onResponse(ActionListener.java:101) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authc.AuthenticatorChain.authenti
│ info cateAsync(AuthenticatorChain.java:92) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:171) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.applyInternal(SecurityActionFilter.java:154) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.apply(SecurityActionFilter.java:113) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:77) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:54) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.tasks.TaskManager.registerAndExecute(TaskManager.java:170) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.client.internal.node.NodeClient.executeLocally(NodeClient.java:113) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.client.internal.node.NodeClient.doExecute(NodeClient.java:91) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.client.internal.support.AbstractClient.execute(AbstractClient.java:380) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.rest.action.admin.indices.RestSimulateIndexTemplateAction.lambda$prepareRequest$0(RestSimulateIndexTemplateAction.java:54) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:103) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.rest.SecurityRestFilter.lambda$handleRequest$0(SecurityRestFilter.java:112) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authc.support.SecondaryAuthenticator.lambda$authenticateAndAttachToContext$2(SecondaryAuthenticator.java:84) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authc.support.SecondaryAuthenticator.authenticate(SecondaryAuthenticator.java:94) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authc.support.SecondaryAuthenticator.authenticateAndAttachToContext(SecondaryAuthenticator.java:78) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.rest.SecurityRestFilter.lambda$handleRequest$2(SecurityRestFilter.java:106) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.ActionListener$MappedActionListener.onResponse(ActionListener.java:101) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.ActionListener$RunBeforeActionListener.onResponse(ActionListener.java:389) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authc.AuthenticatorChain.writeAuthToContext(AuthenticatorChain.java:350) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authc.AuthenticatorChain.finishAuthentication(AuthenticatorChain.java:326) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authc.AuthenticatorChain.maybeLookupRunAsUser(AuthenticatorChain.java:204) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$doAuthenticate$1(AuthenticatorChain.java:120) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:141) [x-pack-core-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$4(AuthenticatorChain.java:187) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.lambda$consumeToken$3(RealmsAuthenticator.java:217) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:141) [x-pack-core-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.lambda$consumeToken$0(RealmsAuthenticator.java:162) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.lambda$authenticateWithCache$1(CachingUsernamePasswordRealm.java:155) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.handleCachedAuthentication(CachingUsernamePasswordRealm.java:242) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.lambda$authenticateWithCache$2(CachingUsernamePasswordRealm.java:139) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.common.util.concurrent.ListenableFuture.notifyListenerDirectly(ListenableFuture.java:113) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.common.util.concurrent.ListenableFuture.addListener(ListenableFuture.java:55) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.authenticateWithCache(CachingUsernamePasswordRealm.java:134) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.authenticate(CachingUsernamePasswordRealm.java:105) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.lambda$consumeToken$2(RealmsAuthenticator.java:146) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.core.common.IteratingActionListener.run(IteratingActionListener.java:117) [x-pack-core-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.consumeToken(RealmsAuthenticator.java:233) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.authenticate(RealmsAuthenticator.java:82) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$5(AuthenticatorChain.java:179) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:135) [x-pack-core-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$5(AuthenticatorChain.java:157) [x-pack-security-8.2.0-SNA
│ info PSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:135) [x-pack-core-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$5(AuthenticatorChain.java:157) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:135) [x-pack-core-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$5(AuthenticatorChain.java:157) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.core.common.IteratingActionListener.run(IteratingActionListener.java:117) [x-pack-core-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authc.AuthenticatorChain.doAuthenticate(AuthenticatorChain.java:135) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authc.AuthenticatorChain.authenticateAsync(AuthenticatorChain.java:94) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:149) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:127) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.xpack.security.rest.SecurityRestFilter.handleRequest(SecurityRestFilter.java:100) [x-pack-security-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:391) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.rest.RestController.tryAllHandlers(RestController.java:470) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:306) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:385) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.http.AbstractHttpServerTransport.handleIncomingRequest(AbstractHttpServerTransport.java:464) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.http.AbstractHttpServerTransport.incomingRequest(AbstractHttpServerTransport.java:359) [elasticsearch-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:32) [transport-netty4-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:18) [transport-netty4-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.channelRead(Netty4HttpPipeliningHandler.java:48) [transport-netty4-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
│ at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [netty-codec-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:327) [netty-codec-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:299) [netty-codec-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286) [netty-handler-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.AbstractChannelHandle
│ info rContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:722) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:623) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:586) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496) [netty-transport-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986) [netty-common-4.1.73.Final.jar:4.1.73.Final]
│ at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-common-4.1.73.Final.jar:4.1.73.Final]
│ at java.lang.Thread.run(Thread.java:833) [?:?]
``` | https://github.com/elastic/elasticsearch/issues/84256 | https://github.com/elastic/elasticsearch/pull/84675 | 070fcaa0ada9ad055bc10960ed35829b7dfb943e | 9bba923bcd1c061051c42357ec4163e56d8e0ac0 | 2022-02-23T00:01:01Z | java | 2022-03-08T03:00:37Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,245 | ["modules/reindex/src/internalClusterTest/java/org/elasticsearch/migration/AbstractFeatureMigrationIntegTest.java", "modules/reindex/src/internalClusterTest/java/org/elasticsearch/migration/FeatureMigrationIT.java", "modules/reindex/src/internalClusterTest/java/org/elasticsearch/migration/MultiFeatureMigrationIT.java", "modules/reindex/src/internalClusterTest/java/org/elasticsearch/migration/SystemIndexMigrationIT.java", "server/src/main/java/org/elasticsearch/upgrades/SystemIndexMigrationTaskState.java", "server/src/test/java/org/elasticsearch/upgrades/SystemIndexMigrationTaskParamsXContentTests.java", "server/src/test/java/org/elasticsearch/upgrades/SystemIndexMigrationTaskStateXContentTests.java"] | Clean up Feature Migration tests | There's some cleanup to be done in `FeatureMigrationIT` and related classes.
- [x] Convert `static` `preMigrationHook` and `postMigrationHook` to use instance members, retrieved from the `internalCluster()`
- [x] Use Hamcrest matchers as described [in this comment](https://github.com/elastic/elasticsearch/pull/84192/files#r812224067) for better failure output
- [x] Rename `createSimpleSettings` to `createSettings`
- [x] Rename `createSimpleMapping` to `createMapping`
- [x] add support for unknown fields https://github.com/elastic/elasticsearch/pull/84258#pullrequestreview-890890422 | https://github.com/elastic/elasticsearch/issues/84245 | https://github.com/elastic/elasticsearch/pull/84281 | 3b6ea694a275453a9c41b5146fbc7be1ed0feb12 | 3d3eb316379729e8b2e29b8adae94e70c5e8b12e | 2022-02-22T21:36:22Z | java | 2022-03-21T10:53:25Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,243 | ["test/yaml-rest-runner/src/main/java/org/elasticsearch/test/rest/yaml/section/DoSection.java"] | Fix up version skips added in #84210 and friends | ### Description
In #84210 we added logic to bypass an assertion when running BWC tests against some released versions since the assertion is known to fail on them. At the time there were no released versions on which the assertion holds, although it does hold on all the the relevant branches. This means we cannot be sure which versions will eventually carry the fix. When fixed versions are released, we should update the logic to reflect reality. This'll need doing in every active 8.x branch. | https://github.com/elastic/elasticsearch/issues/84243 | https://github.com/elastic/elasticsearch/pull/86196 | cae53d1cd745ac466bd157efe2dc3ceb0cbaa597 | 7ea0ca9af33a9d8a01b29815cfe640d0e07a35fb | 2022-02-22T19:16:25Z | java | 2022-04-27T19:42:03Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,218 | ["server/src/internalClusterTest/java/org/elasticsearch/validate/SimpleValidateQueryIT.java"] | [CI] SimpleValidateQueryIT testExplainValidateQueryTwoNodes failing | Most likely caused by the latest Lucene update
**Build scan:**
https://gradle-enterprise.elastic.co/s/6ahxtbah2dssy/tests/:server:internalClusterTest/org.elasticsearch.validate.SimpleValidateQueryIT/testExplainValidateQueryTwoNodes
**Reproduction line:**
`./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.validate.SimpleValidateQueryIT.testExplainValidateQueryTwoNodes" -Dtests.seed=66F3B4FBAEE36850 -Dtests.locale=ja-JP-u-ca-japanese-x-lvariant-JP -Dtests.timezone=CTT -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.validate.SimpleValidateQueryIT&tests.test=testExplainValidateQueryTwoNodes
**Failure excerpt:**
```
java.lang.AssertionError:
Expected: a string containing "MatchNoDocsQuery(\"failed [bar] query, caused by number_format_exception:[For input string: \"foo\"]\")"
but: was "MatchNoDocsQuery("unmapped fields [*]")"
at __randomizedtesting.SeedInfo.seed([66F3B4FBAEE36850:4C317C82EF7F9C9]: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.validate.SimpleValidateQueryIT.testExplainValidateQueryTwoNodes(SimpleValidateQueryIT.java:215)
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:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84218 | https://github.com/elastic/elasticsearch/pull/84296 | 5bcbccfac8fdfd8a3ce3361e7bcf0e494cab5b54 | cefcc07d039aabe3ffe7b4f57cc6e4277335cbce | 2022-02-22T10:49:43Z | java | 2022-02-23T18:15:48Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,212 | ["server/src/test/java/org/elasticsearch/common/geo/GeometryIndexerTests.java"] | [CI] GeometryIndexerTests testPolygonAllCollinearPoints failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/ftuxsa236r6cu/tests/:server:test/org.elasticsearch.common.geo.GeometryIndexerTests/testPolygonAllCollinearPoints
**Reproduction line:**
`./gradlew ':server:test' --tests "org.elasticsearch.common.geo.GeometryIndexerTests.testPolygonAllCollinearPoints" -Dtests.seed=7A3F12A97826F39E -Dtests.locale=be -Dtests.timezone=Asia/Amman -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.common.geo.GeometryIndexerTests&tests.test=testPolygonAllCollinearPoints
**Failure excerpt:**
```
org.junit.ComparisonFailure: expected:<... to Tessellate shape[ [[1.0, 1.0] [-1.0, -1.0] [0.0, 0.0] [1.0, 1.0] ]]. Possible malformed...> but was:<... to Tessellate shape[]. Possible malformed...>
at __randomizedtesting.SeedInfo.seed([7A3F12A97826F39E:7B03788B9EF40493]:0)
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at org.elasticsearch.common.geo.GeometryIndexerTests.testPolygonAllCollinearPoints(GeometryIndexerTests.java:229)
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:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84212 | https://github.com/elastic/elasticsearch/pull/84228 | f3d622dd36157efc4ab21dc87e7e1e26d1ee6ae7 | e5ed7da7fb202aaed12267d6c6132b55816d3918 | 2022-02-22T09:55:37Z | java | 2022-02-22T15:21:15Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,198 | ["docs/changelog/84242.yaml", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/action/TransportStartTrainedModelDeploymentAction.java", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/job/JobNodeSelector.java", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/job/NodeLoadDetector.java", "x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/job/JobNodeSelectorTests.java"] | ML autoscaling decider is not taking into account that an existing node can be upscaled | ### Elasticsearch Version
8.0.0
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
Elastic Cloud
### Problem Description
Spotted in Elastic Cloud when autoscaling is enabled with only 1 zone for ML.
Using third party model deployments as an example, when the resources of a currently provisioned ML node have been exceeded, the user should still be able to start trained model deployments and the existing node resources should be scaled up.
**Current observed behavior**
If autoscaling is limited to just 1 ML node/zone, autoscaling doesn’t work if an ML node is provisioned but it doesn't have enough resources to fit new workloads.
### Steps to Reproduce
1. Create a deployment in Elastic Cloud using v8.0.0, autoscaling enabled and only 1 ML zone.
2. Upload and start a third party trained model deployment
3. Wait for autoscaling to provision an ML node
4. Try uploading/starting more third party trained model deployment until currently available resources are exceeded
5. Notice that instead of upscaling the ML node, the trained model start command fails claiming "not enough resources available".
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/84198 | https://github.com/elastic/elasticsearch/pull/84242 | c4686128f0142b8490aa33e56e7d3465dd62dc72 | 28758b0e261a12586305a961c8127c954320063d | 2022-02-21T17:24:05Z | java | 2022-02-23T12:54:06Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,188 | ["docs/changelog/84376.yaml", "modules/data-streams/src/internalClusterTest/java/org/elasticsearch/datastreams/DataStreamIT.java", "server/src/main/java/org/elasticsearch/cluster/metadata/MetadataIndexTemplateService.java", "server/src/test/java/org/elasticsearch/cluster/metadata/MetadataIndexTemplateServiceTests.java"] | Lower priority index template that matches data stream cannot be removed | ### Elasticsearch Version
7.x, 8.x
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
Darwin
### Problem Description
A data stream must have an index template that matches it in order to exist.
When managing index templates we want to make sure we don't leave a
data stream without a [corresponding index template](https://github.com/elastic/elasticsearch/blob/acf9968f9d397d755d5ad9fcf815cca23bbeda61/server/src/main/java/org/elasticsearch/cluster/metadata/MetadataIndexTemplateService.java#L918).
The `dataStreamsUsingTemplate` check uses the index pattern of the index
templates to conclude if a template is used by a data stream, however it should
be enhanced to check the priority too as there can only be only one index template
that matches a data stream and it's the one with the highest priority.
### Steps to Reproduce
Create an ILM policy
```
PUT _ilm/policy/testing_yo
{
"policy": {
"phases": {
"warm": {
"actions": {
"shrink": {
"number_of_shards": 1
}
}
}
}
}
}
```
Create an index template with the `data_stream` option:
```
PUT _index_template/logs_data_stream
{
"index_patterns": [ "logs*", "te*", "bar*" ],
"data_stream": {},
"priority": 100,
"template" : {
"settings": {
"index.number_of_shards": 3,
"index.lifecycle.name": "testing"
}
}
}
```
Create the data stream
```
POST logs_test/_doc
{
"message": "testing",
"@timestamp": "1591890611"
}
```
Create a new index template that would match this data stream with a higher priority
```
PUT _index_template/higher_logs_data_stream
{
"index_patterns": [ "logs*", "te*", "bar*" ],
"data_stream": {},
"priority": 500,
"template" : {
"settings": {
"index.number_of_shards": 3,
"index.lifecycle.name": "testing"
}
}
}
```
Attempt to delete the previous, lower priority index template:
```
DELETE _index_template/logs_data_stream
```
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/84188 | https://github.com/elastic/elasticsearch/pull/84376 | 50db05bc1cc0ba5c18d7de5073f2c95ed95fdc77 | 76a24890a2ea169992e98c6de7139b9cb13fcf39 | 2022-02-21T11:09:25Z | java | 2022-02-28T19:06:44Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,173 | ["docs/changelog/84873.yaml", "server/src/main/java/org/elasticsearch/action/DocWriteResponse.java", "server/src/test/java/org/elasticsearch/action/bulk/BulkItemResponseTests.java"] | bulk index response from 8.0.0 not compatible although headers are set | ### Elasticsearch Version
Elasticsearch 8.0.0 running from docker image
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
Elasticsearch docker
### Problem Description
When sending a bulk index request to Elasticsearch 8.0.0 with the compatibility headers set for a client version 7, the bulk response is missing the `_type` property in the index answer. This causes the client failing to parse the response.
```
Unable to parse response body for Response{requestLine=POST /_bulk?timeout=1m HTTP/1.1, host=http://localhost:9200, response=HTTP/1.1 200 OK}] with root cause
java.lang.NullPointerException: null
at java.base/java.util.Objects.requireNonNull(Objects.java:208) ~[na:na]
at org.elasticsearch.action.DocWriteResponse.<init>(DocWriteResponse.java:116) ~[elasticsearch-7.15.2.jar:7.15.2]
at org.elasticsearch.action.index.IndexResponse.<init>(IndexResponse.java:43) ~[elasticsearch-7.15.2.jar:7.15.2]
at org.elasticsearch.action.index.IndexResponse.<init>(IndexResponse.java:28) ~[elasticsearch-7.15.2.jar:7.15.2]
at org.elasticsearch.action.index.IndexResponse$Builder.build(IndexResponse.java:96) ~[elasticsearch-7.15.2.jar:7.15.2]
at org.elasticsearch.action.index.IndexResponse$Builder.build(IndexResponse.java:93) ~[elasticsearch-7.15.2.jar:7.15.2]
at org.elasticsearch.action.bulk.BulkItemResponse.fromXContent(BulkItemResponse.java:148) ~[elasticsearch-7.15.2.jar:7.15.2]
at org.elasticsearch.action.bulk.BulkResponse.fromXContent(BulkResponse.java:177) ~[elasticsearch-7.15.2.jar:7.15.2]
at org.elasticsearch.client.RestHighLevelClient.parseEntity(RestHighLevelClient.java:2011) ~[elasticsearch-rest-high-level-client-7.15.2.jar:7.15.2]
at org.elasticsearch.client.RestHighLevelClient.lambda$performRequestAndParseEntity$8(RestHighLevelClient.java:1673) ~[elasticsearch-rest-high-level-client-7.15.2.jar:7.15.2]
at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1749) ~[elasticsearch-rest-high-level-client-7.15.2.jar:7.15.2]
at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1702) ~[elasticsearch-rest-high-level-client-7.15.2.jar:7.15.2]
at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1672) ~[elasticsearch-rest-high-level-client-7.15.2.jar:7.15.2]
at org.elasticsearch.client.RestHighLevelClient.bulk(RestHighLevelClient.java:577) ~[elasticsearch-rest-high-level-client-7.15.2.jar:7.15.2]
```
### Steps to Reproduce
send a bulk index request with the `RestHighLevelClient` 7.15.2 to the cluster
```
POST http://localhost:9200/_bulk?timeout=1m HTTP/1.1
Accept: application/vnd.elasticsearch+json;compatible-with=7
Content-Type: application/vnd.elasticsearch+json;compatible-with=7
Authorization: Basic *****
Content-Length: 121
Host: localhost:9200
Proxy-Connection: Keep-Alive
User-Agent: elasticsearch-java/7.15.2-SNAPSHOT (Java/17.0.2)
X-Elastic-Client-Meta: es=7.15.2-SNAPSHOT,jv=17,t=7.15.2-SNAPSHOT,hc=4.1.5
```
```
{"index":{"_index":"entities","_id":"1"}}
{"id":"1","text":"text-1"}
```
This will return
```
HTTP/1.1 200 OK
X-elastic-product: Elasticsearch
content-type: application/vnd.elasticsearch+json;compatible-with=7
content-length: 202
```
```
{"took":13,"errors":false,"items":[{"index":{"_index":"entities","_id":"1","_version":5,"result":"updated","_shards":{"total":2,"successful":1,"failed":0},"_seq_no":40,"_primary_term":3,"status":200}}]}
```
When sending the same request to Elasticsearch 7.17.0 the following body is returned>
```
{"took":456,"errors":false,"items":[{"index":{"_index":"entities","_type":"_doc","_id":"1","_version":2,"result":"updated","_shards":{"total":2,"successful":1,"failed":0},"_seq_no":10,"_primary_term":2,"status":200}}]}
```
Here the `_type` field is returned which is missing in the response from 8.0.0 .
Btw, when not using bulk, but a normal index for a single document, then the `_type` is returned, it 's misisng in the bulk response.
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/84173 | https://github.com/elastic/elasticsearch/pull/84873 | e2930ea0e3f693f0051e3570cea0afb7dbd1b8ca | 123c90615e4f3e724d41f32f0d0cdcce1db0cc07 | 2022-02-19T13:29:32Z | java | 2022-03-14T08:36:37Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,172 | ["server/src/internalClusterTest/java/org/elasticsearch/discovery/StableMasterDisruptionIT.java"] | [CI] StableMasterDisruptionIT testFollowerCheckerDetectsUnresponsiveNodeAfterMasterReelection failing | Doesn't seem to reproduce, but seen a few times including on a local test run.
**Build scan:**
https://gradle-enterprise.elastic.co/s/rlfzaojrmr5fs/tests/:server:internalClusterTest/org.elasticsearch.discovery.StableMasterDisruptionIT/testFollowerCheckerDetectsUnresponsiveNodeAfterMasterReelection
**Reproduction line:**
`./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.discovery.StableMasterDisruptionIT.testFollowerCheckerDetectsUnresponsiveNodeAfterMasterReelection" -Dtests.seed=D3646D45AD35342 -Dtests.locale=sq -Dtests.timezone=Africa/Blantyre -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
~No~ Yes after a few iterations on an otherwise-stressed machine.
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.discovery.StableMasterDisruptionIT&tests.test=testFollowerCheckerDetectsUnresponsiveNodeAfterMasterReelection
**Failure excerpt:**
```
com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=1859, name=Thread-57, state=RUNNABLE, group=TGRP-StableMasterDisruptionIT]
at __randomizedtesting.SeedInfo.seed([D3646D45AD35342:8B4BBC8B276FEAF4]:0)
Caused by: java.lang.AssertionError: java.lang.IllegalArgumentException: remote node [{node_t1}{TGSMWMQ-RRaRBJF0h3JuFQ}{O_WeXHzdTTO0QySJOxau3g}{127.0.0.1}{127.0.0.1:37609}{d}] is build [22b7ed72a1bdfc47c1f01f757d4682f34859074d] of version [8.1.0] but this node is build [unknown] of version [8.1.0] which has an incompatible wire format
at __randomizedtesting.SeedInfo.seed([D3646D45AD35342]:0)
at org.elasticsearch.transport.InboundHandler.handleResponse(InboundHandler.java:346)
at org.elasticsearch.transport.InboundHandler.messageReceived(InboundHandler.java:142)
at org.elasticsearch.transport.InboundHandler.inboundMessage(InboundHandler.java:94)
at org.elasticsearch.transport.TcpTransport.inboundMessage(TcpTransport.java:796)
at org.elasticsearch.transport.InboundPipeline.forwardFragments(InboundPipeline.java:149)
at org.elasticsearch.transport.InboundPipeline.doHandleBytes(InboundPipeline.java:121)
at org.elasticsearch.transport.InboundPipeline.handleBytes(InboundPipeline.java:86)
at org.elasticsearch.transport.netty4.Netty4MessageChannelHandler.channelRead(Netty4MessageChannelHandler.java:74)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.handler.logging.LoggingHandler.channelRead(LoggingHandler.java:280)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:719)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:620)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:583)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.IllegalArgumentException: remote node [{node_t1}{TGSMWMQ-RRaRBJF0h3JuFQ}{O_WeXHzdTTO0QySJOxau3g}{127.0.0.1}{127.0.0.1:37609}{d}] is build [22b7ed72a1bdfc47c1f01f757d4682f34859074d] of version [8.1.0] but this node is build [unknown] of version [8.1.0] which has an incompatible wire format
at org.elasticsearch.transport.TransportService$HandshakeResponse.<init>(TransportService.java:582)
at org.elasticsearch.action.ActionListenerResponseHandler.read(ActionListenerResponseHandler.java:58)
at org.elasticsearch.action.ActionListenerResponseHandler.read(ActionListenerResponseHandler.java:25)
at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.read(TransportService.java:1330)
at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.read(TransportService.java:1317)
at org.elasticsearch.transport.InboundHandler.handleResponse(InboundHandler.java:338)
at org.elasticsearch.transport.InboundHandler.messageReceived(InboundHandler.java:142)
at org.elasticsearch.transport.InboundHandler.inboundMessage(InboundHandler.java:94)
at org.elasticsearch.transport.TcpTransport.inboundMessage(TcpTransport.java:796)
at org.elasticsearch.transport.InboundPipeline.forwardFragments(InboundPipeline.java:149)
at org.elasticsearch.transport.InboundPipeline.doHandleBytes(InboundPipeline.java:121)
at org.elasticsearch.transport.InboundPipeline.handleBytes(InboundPipeline.java:86)
at org.elasticsearch.transport.netty4.Netty4MessageChannelHandler.channelRead(Netty4MessageChannelHandler.java:74)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.handler.logging.LoggingHandler.channelRead(LoggingHandler.java:280)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:719)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:620)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:583)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84172 | https://github.com/elastic/elasticsearch/pull/84200 | 119fbcf64e85f31c6d7c208a826ea62257c06f62 | e853bf5f3faff537a974abb50a93610127b5b0b2 | 2022-02-19T12:16:26Z | java | 2022-02-22T08:21:23Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,171 | ["docs/changelog/84376.yaml", "modules/data-streams/src/internalClusterTest/java/org/elasticsearch/datastreams/DataStreamIT.java", "server/src/main/java/org/elasticsearch/cluster/metadata/MetadataIndexTemplateService.java", "server/src/test/java/org/elasticsearch/cluster/metadata/MetadataIndexTemplateServiceTests.java"] | Index Template cannot be deleted / error message seems incorrect | ### Elasticsearch Version
7.17
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
Not relevant
### Problem Description
Creating a match all index template is bad and we know it.
I needed it for a test and I created a new index template with a `*` `index_pattern`.
I wanted to delete it after few minutes (so that it wouldn't picked up by any new index creation) and I couldn't, unless updating it to match no index.
It seems to deny the deletion because it reports being used by data streams.
### Steps to Reproduce
Create a Index Template matching all:
```
PUT _index_template/matchall
{
"index_patterns": [
"*"
],
"priority": 1,
"template": {
"mappings": {
"_meta": {
"class": "lol"
}
}
}
}
```
Try to delete it:
```
DELETE _index_template/matchall
```
You get:
```
{
"error" : {
"root_cause" : [
{
"type" : "illegal_argument_exception",
"reason" : "unable to remove composable templates [matchall] as they are in use by a data streams [.fleet-actions-results, .logs-deprecation.elasticsearch-default, .slm-history-5, ilm-history-5, logs-elastic_agent-default, logs-elastic_agent.endpoint_security-default, logs-elastic_agent.filebeat-default, logs-elastic_agent.metricbeat-default, logs-endpoint.events.file-default, logs-endpoint.events.library-default, logs-endpoint.events.network-default, logs-endpoint.events.process-default, logs-endpoint.events.registry-default, logs-endpoint.events.security-default, logs-generic-default, logs-windows.powershell-default, logs-windows.powershell_operational-default, logs-windows.sysmon_operational-default, metrics-elastic_agent.elastic_agent-default, metrics-elastic_agent.endpoint_security-default, metrics-elastic_agent.filebeat-default, metrics-elastic_agent.metricbeat-default, metrics-endpoint.metadata-default, metrics-endpoint.metrics-default, metrics-endpoint.policy-default, metrics-system.cpu-default, metrics-system.diskio-default, metrics-system.memory-default, metrics-system.network-default, metrics-system.process-default, metrics-system.process_summary-default, metrics-system.socket_summary-default, metrics-system.uptime-default, metrics-windows.perfmon-default, metrics-windows.service-default]"
}
],
"type" : "illegal_argument_exception",
"reason" : "unable to remove composable templates [matchall] as they are in use by a data streams [.fleet-actions-results, .logs-deprecation.elasticsearch-default, .slm-history-5, ilm-history-5, logs-elastic_agent-default, logs-elastic_agent.endpoint_security-default, logs-elastic_agent.filebeat-default, logs-elastic_agent.metricbeat-default, logs-endpoint.events.file-default, logs-endpoint.events.library-default, logs-endpoint.events.network-default, logs-endpoint.events.process-default, logs-endpoint.events.registry-default, logs-endpoint.events.security-default, logs-generic-default, logs-windows.powershell-default, logs-windows.powershell_operational-default, logs-windows.sysmon_operational-default, metrics-elastic_agent.elastic_agent-default, metrics-elastic_agent.endpoint_security-default, metrics-elastic_agent.filebeat-default, metrics-elastic_agent.metricbeat-default, metrics-endpoint.metadata-default, metrics-endpoint.metrics-default, metrics-endpoint.policy-default, metrics-system.cpu-default, metrics-system.diskio-default, metrics-system.memory-default, metrics-system.network-default, metrics-system.process-default, metrics-system.process_summary-default, metrics-system.socket_summary-default, metrics-system.uptime-default, metrics-windows.perfmon-default, metrics-windows.service-default]"
},
"status" : 400
}
```
The list seems to be composed by all the data streams.
## Workaround
Update the `index_patterns` to something non-existing.
```
PUT _index_template/matchall
{
"index_patterns": [
"none"
],
"priority": 1,
"template": {
"mappings": {
"_meta": {
"class": "lol"
}
}
}
}
```
Then delete it:
```
DELETE _index_template/matchall
```
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/84171 | https://github.com/elastic/elasticsearch/pull/84376 | 50db05bc1cc0ba5c18d7de5073f2c95ed95fdc77 | 76a24890a2ea169992e98c6de7139b9cb13fcf39 | 2022-02-18T19:43:12Z | java | 2022-02-28T19:06:44Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,161 | ["docs/changelog/87717.yaml", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/store/ReservedRolesStore.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/authz/store/ReservedRolesStoreTests.java"] | Add [indices:admin/rollover] permission for remote_monitoring_user | ### Elasticsearch Version
8.0
The built-in `remote_monitoring_user` has [remote_monitoring_agent, remote_monitoring_collector] roles, which can't perform a rollover on metricbeat indices.
`
[org.elasticsearch.xpack.ilm.IndexLifecycleRunner] [instance-0000000001] policy [metricbeat] for index [metricbeat-7.15.2-2022.01.24-000001] failed on step [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}]. Moving to ERROR step
org.elasticsearch.ElasticsearchSecurityException: action [indices:admin/rollover] is unauthorized for user [remote_monitoring_user] with roles [remote_monitoring_agent,remote_monitoring_collector] on indices [metricbeat-7.15.2,metricbeat-7.15.2-2022.01.24-000001], this action is granted by the index privileges [manage_follow_index,manage,all]
` | https://github.com/elastic/elasticsearch/issues/84161 | https://github.com/elastic/elasticsearch/pull/87717 | aee3a253dd8f5c40be9d3b1686b8c7889556a2f3 | 12cbe31732e8f90ce46c809a8e97a3c9f5e368cb | 2022-02-18T05:32:07Z | java | 2022-06-20T21:34:56Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,159 | ["x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/SetSingleNodeAllocateStepTests.java"] | SetSingleNodeAllocateStepTests#testPerformActionAttrsRequestFails can fail with assertion | ### CI Link
https://gradle-enterprise.elastic.co/s/7dleq35dp5stm
### Repro line
./gradlew ':x-pack:plugin:core:test' --tests "org.elasticsearch.xpack.core.ilm.SetSingleNodeAllocateStepTests.testPerformActionAttrsRequestFails" -Dtests.seed=6B438F3C3DADE5D2 -Dtests.locale=nl -Dtests.timezone=Asia/Chongqin
### Does it reproduce?
Yes
### Applicable branches
8.1, 8.0
### Failure history
Seems to fail rarely, but has failed before. Example: https://gradle-enterprise.elastic.co/s/d33b4fzn7yoh6
### Failure excerpt
```
org.elasticsearch.xpack.core.ilm.SetSingleNodeAllocateStepTests > testPerformActionAttrsRequestFails FAILED
java.lang.AssertionError: Node roles must not be provided as attributes but saw attributes {ml=K}
at __randomizedtesting.SeedInfo.seed([C679BACC1DA27FA7:CB16887322D9C088]:0)
at org.elasticsearch.cluster.node.DiscoveryNode.<init>(DiscoveryNode.java:233)
at org.elasticsearch.cluster.node.DiscoveryNode.<init>(DiscoveryNode.java:175)
``` | https://github.com/elastic/elasticsearch/issues/84159 | https://github.com/elastic/elasticsearch/pull/84533 | 301231582a99897d56263ee5f5bc7463f4114afd | 51484a02586e63a92d110d422df8850d76a5dbd9 | 2022-02-18T00:20:15Z | java | 2022-03-01T22:45:13Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,158 | ["x-pack/plugin/searchable-snapshots/src/internalClusterTest/java/org/elasticsearch/xpack/searchablesnapshots/FrozenSearchableSnapshotsIntegTests.java"] | [CI] FrozenSearchableSnapshotsIntegTests testCreateAndRestorePartialSearchableSnapshot failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/4h5abnjwem6u4/tests/:x-pack:plugin:searchable-snapshots:internalClusterTest/org.elasticsearch.xpack.searchablesnapshots.FrozenSearchableSnapshotsIntegTests/testCreateAndRestorePartialSearchableSnapshot
**Reproduction line:**
`./gradlew ':x-pack:plugin:searchable-snapshots:internalClusterTest' --tests "org.elasticsearch.xpack.searchablesnapshots.FrozenSearchableSnapshotsIntegTests.testCreateAndRestorePartialSearchableSnapshot" -Dtests.seed=C120023F6C61A1B7 -Dtests.locale=pt -Dtests.timezone=Iceland -Druntime.java=17`
**Applicable branches:**
8.0, 8.1, master
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.searchablesnapshots.FrozenSearchableSnapshotsIntegTests&tests.test=testCreateAndRestorePartialSearchableSnapshot
**Failure excerpt:**
```
java.lang.AssertionError:
Expected: not <true>
but: was <true>
at __randomizedtesting.SeedInfo.seed([C120023F6C61A1B7:B5A7C3EE51068F55]: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.searchablesnapshots.BaseSearchableSnapshotsIntegTestCase.assertShardFolders(BaseSearchableSnapshotsIntegTestCase.java:248)
at org.elasticsearch.xpack.searchablesnapshots.FrozenSearchableSnapshotsIntegTests.lambda$testCreateAndRestorePartialSearchableSnapshot$2(FrozenSearchableSnapshotsIntegTests.java:312)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1069)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1042)
at org.elasticsearch.xpack.searchablesnapshots.FrozenSearchableSnapshotsIntegTests.testCreateAndRestorePartialSearchableSnapshot(FrozenSearchableSnapshotsIntegTests.java:312)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84158 | https://github.com/elastic/elasticsearch/pull/84942 | 5d670e45ac1d8048fd27c21d5aa509c6adfdece7 | b0ab9394c736ee519be23f106b567ec3fb2e8157 | 2022-02-18T00:03:52Z | java | 2022-03-18T10:55:52Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,152 | ["x-pack/plugin/spatial/src/test/java/org/elasticsearch/xpack/spatial/search/aggregations/bucket/geogrid/GeoGridTilerTestCase.java"] | GeoGridTilerTestCase.testGeoGridSetValuesBoundingBoxes_UnboundedGeoShapeCellValues fails with certain seed | ### CI Link
https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+pull-request+part-2/7561/
### Repro line
./gradlew ':x-pack:plugin:spatial:test' --tests "org.elasticsearch.xpack.spatial.search.aggregations.bucket.geogrid.GeoTileTilerTests.testGeoGridSetValuesBoundingBoxes_UnboundedGeoShapeCellValues" -Dtests.seed=B78DF2D3C6E9F87B -Dtests.locale=es-PA -Dtests.timezone=Asia/Magadan -Druntime.java=8
### Does it reproduce?
Yes
### Applicable branches
7.17
### Failure history
_No response_
### Failure excerpt
```
2> REPRODUCE WITH: ./gradlew ':x-pack:plugin:spatial:test' --tests "org.elasticsearch.xpack.spatial.search.aggregations.bucket.geogrid.GeoTileTilerTests.testGeoGridSetValuesBoundingBoxes_UnboundedGeoShapeCellValues" -Dtests.seed=B78DF2D3C6E9F87B -Dtests.locale=es-PA -Dtests.timezone=Asia/Magadan -Druntime.java=8
2> java.lang.IllegalArgumentException: Unable to Tessellate shape [[0.0, 0.0] [0.0, -3.7434056992857674E-259] [-6.00631214911533E-180, -3.7434056992857674E-259] [-6.00631214911533E-180, 0.0] [0.0, 0.0] ]. Possible malformed shape detected.
at __randomizedtesting.SeedInfo.seed([B78DF2D3C6E9F87B:C2BBC29EF3DD375D]:0)
at org.apache.lucene.geo.Tessellator.tessellate(Tessellator.java:116)
at org.apache.lucene.document.LatLonShape.createIndexableFields(LatLonShape.java:72)
at org.elasticsearch.index.mapper.GeoShapeIndexer$LuceneGeometryIndexer.visit(GeoShapeIndexer.java:246)
at org.elasticsearch.index.mapper.GeoShapeIndexer$LuceneGeometryIndexer.visit(GeoShapeIndexer.java:178)
at org.elasticsearch.geometry.Polygon.visit(Polygon.java:84)
at org.elasticsearch.index.mapper.GeoShapeIndexer.indexShape(GeoShapeIndexer.java:174)
at org.elasticsearch.xpack.spatial.util.GeoTestUtils.binaryGeoShapeDocValuesField(GeoTestUtils.java:54)
at org.elasticsearch.xpack.spatial.util.GeoTestUtils.geoShapeValue(GeoTestUtils.java:60)
at org.elasticsearch.xpack.spatial.search.aggregations.bucket.geogrid.GeoGridTilerTestCase.testGeoGridSetValuesBoundingBoxes_UnboundedGeoShapeCellValues(GeoGridTilerTestCase.java:161)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1750)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:938)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:974)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:988)
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:368)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:817)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:468)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:947)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:832)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:883)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:894)
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 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:368)
at java.lang.Thread.run(Thread.java:748)
``` | https://github.com/elastic/elasticsearch/issues/84152 | https://github.com/elastic/elasticsearch/pull/84164 | 31d703f24c266583529e4bdaef777e6096fff766 | 169618de62c414b825f17aa9355cf0d4ed4aa1dc | 2022-02-17T20:29:05Z | java | 2022-02-23T06:29:24Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,095 | ["server/src/internalClusterTest/java/org/elasticsearch/search/SearchCancellationIT.java"] | [CI] SearchCancellationIT testCancellationDuringTimeSeriesAggregation failing | Perhaps in this run the search was cancelled too early? Doesn't reproduce for me anyway so seems like some kind of race.
**Build scan:**
https://gradle-enterprise.elastic.co/s/gxwsmk4hxf5y2/tests/:server:internalClusterTest/org.elasticsearch.search.SearchCancellationIT/testCancellationDuringTimeSeriesAggregation
**Reproduction line:**
`./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.search.SearchCancellationIT.testCancellationDuringTimeSeriesAggregation" -Dtests.seed=B858CAC59575905 -Dtests.locale=sr-RS -Dtests.timezone=America/Catamarca -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.search.SearchCancellationIT&tests.test=testCancellationDuringTimeSeriesAggregation
**Failure excerpt:**
```
java.lang.AssertionError:
Expected: a string containing "TimeSeriesIndexSearcher"
but: was "Failed to execute phase [fetch], ; shardFailures {[5R6jMFYWQhyExkaRiv8xpA][test][0]: org.elasticsearch.transport.RemoteTransportException: [node_s0][127.0.0.1:36497][indices:data/read/search[phase/query]]
Caused by: org.elasticsearch.search.query.QueryPhaseExecutionException: Query Failed [Failed to execute main query]
at org.elasticsearch.search.query.QueryPhase.executeInternal(QueryPhase.java:205)
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:88)
at org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:462)
at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:625)
at org.elasticsearch.search.SearchService.lambda$executeQueryPhase$2(SearchService.java:487)
at org.elasticsearch.action.ActionRunnable.lambda$supply$0(ActionRunnable.java:47)
at org.elasticsearch.action.ActionRunnable$2.doRun(ActionRunnable.java:62)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
at org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:33)
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:776)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: org.elasticsearch.tasks.TaskCancelledException: task cancelled [by user request]
at org.elasticsearch.tasks.CancellableTask.getTaskCancelledException(CancellableTask.java:121)
at org.elasticsearch.tasks.CancellableTask.ensureNotCancelled(CancellableTask.java:97)
at org.elasticsearch.search.DefaultSearchContext.lambda$preProcess$0(DefaultSearchContext.java:269)
at org.elasticsearch.search.internal.ContextIndexSearcher$MutableQueryTimeout.checkCancelled(ContextIndexSearcher.java:337)
at org.elasticsearch.search.internal.ContextIndexSearcher.searchLeaf(ContextIndexSearcher.java:178)
at org.elasticsearch.search.internal.ContextIndexSearcher.search(ContextIndexSearcher.java:167)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:541)
at org.elasticsearch.search.query.QueryPhase.searchWithCollector(QueryPhase.java:232)
at org.elasticsearch.search.query.QueryPhase.executeInternal(QueryPhase.java:187)
... 13 more
}{[5R6jMFYWQhyExkaRiv8xpA][test][2]: org.elasticsearch.transport.RemoteTransportException: [node_s0][127.0.0.1:36497][indices:data/read/search[phase/query]]
Caused by: org.elasticsearch.tasks.TaskCancelledException: task cancelled [by user request]
at org.elasticsearch.tasks.CancellableTask.getTaskCancelledException(CancellableTask.java:121)
at org.elasticsearch.tasks.CancellableTask.ensureNotCancelled(CancellableTask.java:97)
at org.elasticsearch.search.SearchService.checkCancelled(SearchService.java:814)
at org.elasticsearch.search.SearchService.createContext(SearchService.java:965)
at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:621)
at org.elasticsearch.search.SearchService.lambda$executeQueryPhase$2(SearchService.java:487)
at org.elasticsearch.action.ActionRunnable.lambda$supply$0(ActionRunnable.java:47)
at org.elasticsearch.action.ActionRunnable$2.doRun(ActionRunnable.java:62)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
at org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:33)
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:776)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
}{[5R6jMFYWQhyExkaRiv8xpA][test][3]: org.elasticsearch.transport.RemoteTransportException: [node_s0][127.0.0.1:36497][indices:data/read/search[phase/query]]
Caused by: org.elasticsearch.tasks.TaskCancelledException: task cancelled [by user request]
at org.elasticsearch.tasks.CancellableTask.getTaskCancelledException(CancellableTask.java:121)
at org.elasticsearch.tasks.CancellableTask.ensureNotCancelled(CancellableTask.java:97)
at org.elasticsearch.search.SearchService.checkCancelled(SearchService.java:814)
at org.elasticsearch.search.SearchService.createContext(SearchService.java:965)
at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:621)
at org.elasticsearch.search.SearchService.lambda$executeQueryPhase$2(SearchService.java:487)
at org.elasticsearch.action.ActionRunnable.lambda$supply$0(ActionRunnable.java:47)
at org.elasticsearch.action.ActionRunnable$2.doRun(ActionRunnable.java:62)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
at org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:33)
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:776)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
}
at org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseFailure(AbstractSearchAsyncAction.java:716)
at org.elasticsearch.action.search.FetchSearchPhase$1.onFailure(FetchSearchPhase.java:103)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:28)
at org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:33)
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:776)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: org.elasticsearch.tasks.TaskCancelledException: Cancelled
at org.elasticsearch.search.aggregations.AggregationReduceContext.consumeBucketsAndMaybeBreak(AggregationReduceContext.java:117)
at org.elasticsearch.search.aggregations.timeseries.InternalTimeSeries.reduce(InternalTimeSeries.java:217)
at org.elasticsearch.search.aggregations.InternalAggregations.reduce(InternalAggregations.java:155)
at org.elasticsearch.search.aggregations.InternalAggregations.topLevelReduce(InternalAggregations.java:102)
at org.elasticsearch.action.search.SearchPhaseController.reduceAggs(SearchPhaseController.java:532)
at org.elasticsearch.action.search.SearchPhaseController.reducedQueryPhase(SearchPhaseController.java:501)
at org.elasticsearch.action.search.QueryPhaseResultConsumer.reduce(QueryPhaseResultConsumer.java:132)
at org.elasticsearch.action.search.FetchSearchPhase.innerRun(FetchSearchPhase.java:112)
at org.elasticsearch.action.search.FetchSearchPhase$1.doRun(FetchSearchPhase.java:98)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
... 6 more
"
at __randomizedtesting.SeedInfo.seed([B858CAC59575905:89ED0086CDB94051]:0)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.search.SearchCancellationIT.testCancellationDuringTimeSeriesAggregation(SearchCancellationIT.java:330)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84095 | https://github.com/elastic/elasticsearch/pull/84157 | 08c0fcd91ee9d9837464f20cf452d72226432ed4 | 0505d39f8016ab508343126bacacf8a2f3cbbfeb | 2022-02-17T10:58:08Z | java | 2022-02-22T23:38:40Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,048 | ["docs/changelog/84427.yaml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.aggregation/370_doc_count_field.yml", "server/src/main/java/org/elasticsearch/index/mapper/DocCountFieldMapper.java", "server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FilterByFilterAggregator.java", "server/src/main/java/org/elasticsearch/search/aggregations/support/AggregationContext.java", "server/src/test/java/org/elasticsearch/search/aggregations/bucket/filter/FiltersAggregatorTests.java", "server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregatorTests.java", "server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregatorTests.java"] | Aggs: filter_by_filter optimization kicks in automatically to *slow down* `term` when `_doc_count` is present | ### Elasticsearch Version
many
### Installed Plugins
none
### Java Version
_bundled_
### OS Version
all
### Problem Description
The `filter_by_filter` optimization should kick in when it makes aggs faster. We have a switch to turn it off, but we advise folks not to because it usually does a good job. Well, we've found a case where the heuristics do a bad job of picking the implementation - specifically I've seen a case when the `_doc_count` field exists and we're slower. I'm not really sure if this is universal, but it could be. I'm trying to figure out if this is an all the time thing or a sometimes thing.
### Steps to Reproduce
index docs with `_doc_count`. run a terms agg on a field with a cardinality in the ball park of 500.
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/84048 | https://github.com/elastic/elasticsearch/pull/84427 | cb920164c464385bc38b0746aa0ded2d34280569 | e6dfc8309afd93a9b5f5f958f695e998ccae910f | 2022-02-16T17:00:51Z | java | 2022-03-17T08:52:18Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,036 | ["docs/changelog/84089.yaml", "server/src/main/java/org/elasticsearch/snapshots/SnapshotsService.java"] | [CI] RepositoryHdfsClientYamlTestSuiteIT test {yaml=hdfs_repository_2/30_snapshot/take snapshot} failing | I tried reproduction a few times locally but without success.
**Build scan:**
https://gradle-enterprise.elastic.co/s/fngwbzlxxdsfa/tests/:plugins:repository-hdfs:integTest2/org.elasticsearch.repositories.hdfs.RepositoryHdfsClientYamlTestSuiteIT/test%20%7Byaml=hdfs_repository_2%2F30_snapshot%2Ftake%20snapshot%7D
**Reproduction line:**
`./gradlew ':plugins:repository-hdfs:integTest2' --tests "org.elasticsearch.repositories.hdfs.RepositoryHdfsClientYamlTestSuiteIT.test {yaml=hdfs_repository_2/30_snapshot/take snapshot}" -Dtests.seed=FE97822C475ED786 -Dtests.locale=et-EE -Dtests.timezone=Asia/Riyadh -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.repositories.hdfs.RepositoryHdfsClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dhdfs_repository_2/30_snapshot/take%20snapshot%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [hdfs_repository_2/30_snapshot:39]: Response is missing required X-Elastic-Product response header
at __randomizedtesting.SeedInfo.seed([FE97822C475ED786:76C3BDF6E9A2BA7E]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:493)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.AssertionError: Response is missing required X-Elastic-Product response header
at org.junit.Assert.fail(Assert.java:88)
at org.elasticsearch.test.rest.yaml.section.DoSection.checkElasticProductHeader(DoSection.java:398)
at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:370)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:482)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84036 | https://github.com/elastic/elasticsearch/pull/84089 | 35c9258e46c4865efc0efeeec1beaadeee9469ec | e27145030cfa4c6b269549f61f776cbe71520d45 | 2022-02-16T14:12:15Z | java | 2022-02-17T10:08:38Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,035 | ["x-pack/plugin/spatial/src/test/java/org/elasticsearch/xpack/spatial/search/aggregations/bucket/geogrid/GeoHexAggregationBuilderTests.java"] | [CI] GeoHexAggregationBuilderTests testEqualsAndHashcode failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/dfoblacit7njo/tests/:x-pack:plugin:spatial:test/org.elasticsearch.xpack.spatial.search.aggregations.bucket.geogrid.GeoHexAggregationBuilderTests/testEqualsAndHashcode
**Reproduction line:**
`./gradlew ':x-pack:plugin:spatial:test' --tests "org.elasticsearch.xpack.spatial.search.aggregations.bucket.geogrid.GeoHexAggregationBuilderTests.testEqualsAndHashcode" -Dtests.seed=4181ECF552FC3F73 -Dtests.locale=zh-CN -Dtests.timezone=Europe/Zaporozhye -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.spatial.search.aggregations.bucket.geogrid.GeoHexAggregationBuilderTests&tests.test=testEqualsAndHashcode
**Failure excerpt:**
```
java.lang.IllegalArgumentException: [shardSize] must be greater than 0. Found [0] in [_name]
at __randomizedtesting.SeedInfo.seed([4181ECF552FC3F73:308E94389D1B765C]:0)
at org.elasticsearch.search.aggregations.bucket.geogrid.GeoGridAggregationBuilder.shardSize(GeoGridAggregationBuilder.java:155)
at org.elasticsearch.xpack.spatial.search.aggregations.bucket.geogrid.GeoHexAggregationBuilderTests.createTestInstance(GeoHexAggregationBuilderTests.java:52)
at org.elasticsearch.xpack.spatial.search.aggregations.bucket.geogrid.GeoHexAggregationBuilderTests.createTestInstance(GeoHexAggregationBuilderTests.java:20)
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.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/84035 | https://github.com/elastic/elasticsearch/pull/84049 | 238cd20e88421024b2484d716eab3d85ce47d5e5 | ed6627f80432e83eab8109bd551c00e4a532f925 | 2022-02-16T14:08:27Z | java | 2022-02-17T06:00:01Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 84,009 | ["docs/reference/mapping/types/geo-shape.asciidoc"] | Cannot capture New Zealand using Orientation | ### Elasticsearch Version
7.16.2
### Installed Plugins
_No response_
### Java Version
openjdk version "1.8.0_292"
### OS Version
Darwin Kernel Version 20.6.0
### Problem Description
I'm using ES 7.16.2 and trying to capture New Zealand and having a horrible time of it.
This query does not capture NZ no matter the combinations of orientation values that I use.
```
POST /geo-test/_doc
{
"location" : {
"type" : "polygon",
"coordinates" : [
[
[-175.1235077, -28.8773225],
[165.7437641, -28.8773225],
[165.7437641, -52.7224663],
[-175.1235077, -52.7224663],
[-175.1235077, -28.8773225]
]
]
}
}
```
The only way I can get it to work is by translating the negative longitudes by +360.
```
POST /geo-test/_doc
{
"location" : {
"type" : "polygon",
"coordinates" : [
[
[185.1235077, -28.8773225],
[165.7437641, -28.8773225],
[165.7437641, -52.7224663],
[185.1235077, -52.7224663],
[185.1235077, -28.8773225]
]
]
}
}
```
Is that the intended method?
Note: I am viewing these polygons in the Kibana Map viewer. I suppose the issue could be there or I just really don't understand what Orientation is supposed to be doing here.
Thanks!
### Steps to Reproduce
Create index:
```
PUT /geo-test
{
"mappings":{
"properties": {
"location": {
"type": "geo_shape"
}
}
}
}
```
Use the queries listed above
View in Kibana Map viewer
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/84009 | https://github.com/elastic/elasticsearch/pull/84025 | 69e898db9f5bd1935a9dcca2d6d1f76d69b576cf | 6ad3f8bfdd7c7ea1b0d8e35cba90555d9fc73250 | 2022-02-16T05:05:32Z | java | 2022-02-17T15:33:06Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,948 | ["docs/reference/analysis.asciidoc"] | Lucene analysis link is broken from version 8 | ### Elasticsearch Version
8.0
### Installed Plugins
none
### Java Version
_bundled_
### OS Version
macos
### Problem Description
Refer to all the latest analysis pieces like [edge-n-gram token filter](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/analysis-edgengram-tokenfilter.html) which mention the underlying Lucene token filter it is using, as shown in attached screen-shot, when you click on the link, it's broken since es version 8.0, before that ES was using lucene 8.X and there path was like `https://lucene.apache.org/core/8_11_1/analyzers-common/org/apache/lucene/analysis` but ES since its 8.0 version is using Lucene 9.X, where analysis path is `https://lucene.apache.org/core/9_0_0/analysis/common/org/apache/lucene/analysis/`, notice that `analyzers-common` is replaces with `analysis/common` in the URL.
@cbuescher Let me know if I could work on this issue.
### Steps to Reproduce
1. Go to [Edge-n-gram token-filter](url) and open the Lucene link for the token filter.
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/83948 | https://github.com/elastic/elasticsearch/pull/84094 | 3d2617136c8d8e6880d486204f6e393c6a9b9e17 | 4e55efc09d46ef11f99de7347b325840fa5f0c93 | 2022-02-15T14:50:11Z | java | 2022-02-17T11:44:12Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,946 | ["docs/changelog/84051.yaml", "modules/legacy-geo/src/main/java/org/elasticsearch/legacygeo/builders/PolygonBuilder.java", "modules/legacy-geo/src/test/java/org/elasticsearch/legacygeo/ShapeBuilderTests.java", "modules/legacy-geo/src/test/java/org/elasticsearch/legacygeo/builders/PolygonBuilderTests.java", "server/src/main/java/org/elasticsearch/common/geo/GeoPolygonDecomposer.java", "server/src/test/java/org/elasticsearch/common/geo/GeometryIndexerTests.java", "server/src/test/java/org/elasticsearch/common/geo/GeometryNormalizerTests.java", "x-pack/plugin/spatial/src/test/java/org/elasticsearch/xpack/spatial/index/mapper/GeoShapeWithDocValuesFieldMapperTests.java"] | New polygon orientation logic breaks on small polygon | We recently upgraded from ES version 6 to 7.16.3. One of the shapes we have in our index worked fine in version 6 and is currently working fine in version 7 in the index we migrated over from 6, but when trying to recreate the index in version 7, it throws an "invalid_shape_exception" exception on one of the shapes.
This shape is a very narrow polygon wedge. It was the result of public land parcel data that was originally a linestring that ended up getting buffered into a polygon. It indexed fine in the last version of Elasticsearch and when I test the geojson in online viewers, it displays it just fine. See below for details on how to recreate.
**Search Index Settings:**
`PUT http://ServerName:PortNumber/test_index?include_type_name=true
{
"settings": {
"index": {
"codec": "best_compression"
},
"number_of_shards": 10,
"number_of_replicas": 0,
"refresh_interval": -1
},
"mappings": {
"datasetitems": {
"properties": {
"geography": {
"type": "geo_shape",
"tree": "quadtree",
"precision": "50.0m"
}
}
}
}
}`
**Post that returns error:**
`POST http://ServerName:PortNumber/_bulk
{ "create": { "_index" : "test_index", "_type" : "datasetitems", "_id": 1 } }
{"geography":{"type":"Polygon","coordinates":[[[-107.88180702965093,37.289285907909985],[-107.88179936541891,37.289278246132682],[-107.88180701456989,37.289285918063491],[-107.88180702965093,37.289285907909985]]]}}`
**Error I receive:**
`"error": {
"type": "mapper_parsing_exception",
"reason": "failed to parse",
"caused_by": {
"type": "invalid_shape_exception",
"reason": "Cannot determine orientation: signed area equal to 0"
}
}` | https://github.com/elastic/elasticsearch/issues/83946 | https://github.com/elastic/elasticsearch/pull/84051 | ed6627f80432e83eab8109bd551c00e4a532f925 | 3e1b6612ac259e9d9c5bc1a50d1a5068cdc02377 | 2022-02-15T14:20:28Z | java | 2022-02-17T07:12:52Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,927 | ["docs/changelog/86184.yaml", "server/src/main/java/org/elasticsearch/action/bulk/BulkRequest.java", "server/src/main/java/org/elasticsearch/action/bulk/Retry.java", "server/src/main/java/org/elasticsearch/action/index/IndexRequest.java"] | Our internal usage of BulkProcessor can fail indexing during retry | When BulkProcessor retries failed item requests then the same `IndexRequest` instance are used in a new `BulkRequest` for a retry. This is a problem when `BulkProcessor` is used from within Elasticsearch (this is the case for deprecation index logging, ilm/slm history and more), because the bulk request transport action may have set the `autoGeneratedTimestamp` field.
If that is the case then error such a these may appear in the logs and the `BulkProcessor` retry fails:
```
Bulk write of 1 deprecation logs failed: autoGeneratedTimestamp should not be set externally
java.lang.IllegalArgumentException: autoGeneratedTimestamp should not be set externally
at org.elasticsearch.action.bulk.TransportBulkAction.doInternalExecute(TransportBulkAction.java:223) ~[elasticsearch-7.16.1.jar:7.16.1]
at org.elasticsearch.action.bulk.TransportBulkAction$1.doRun(TransportBulkAction.java:192) ~[elasticsearch-7.16.1.jar:7.16.1]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) [elasticsearch-7.16.1.jar:7.16.1]
at org.elasticsearch.action.bulk.TransportBulkAction.doExecute(TransportBulkAction.java:200) [elasticsearch-7.16.1.jar:7.16.1]
at org.elasticsearch.action.bulk.TransportBulkAction.doExecute(TransportBulkAction.java:91) [elasticsearch-7.16.1.jar:7.16.1]
```
In the bulk transport action, for each bulk item request of the `BulkRequest` its `process()` method is invoked. Incase of `IndexRequest` when no _id has been specified an id is generated and in that case the `IndexRequest#autoGeneratedTimestamp ` field is set. If the bulk request fails at a later stage, for example because there was no capacity on the node that hosts a primary shard to index documents then the bulk response will contain a `EsRejectedExecutionException` exception in the `BulkResponse` for the bulk items this failure occurred for. This is normal behaviour. However the `BulkProcessor` has retry logic and `EsRejectedExecutionException` is deemed retry-able. The `BulkProcessor` [reuses the same bulk request item instances ](https://github.com/elastic/elasticsearch/blob/master/server/src/main/java/org/elasticsearch/action/bulk/Retry.java#L139)(`IndexRequest` in this case) upon retry. This causes the failure mentioned in the stack trace. | https://github.com/elastic/elasticsearch/issues/83927 | https://github.com/elastic/elasticsearch/pull/86184 | 3e581c66f1ec987d8a2334e2282ac943c3e2910d | 08c3bda45a63519007fa9f9437e2d3fd5a99618e | 2022-02-15T10:12:14Z | java | 2022-04-28T06:44:39Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,924 | ["server/src/test/java/org/elasticsearch/cluster/coordination/LeaderCheckerTests.java"] | [CI] LeaderCheckerTests testFollowerBehaviour failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/3qu566zbxdnqq/tests/:server:test/org.elasticsearch.cluster.coordination.LeaderCheckerTests/testFollowerBehaviour
**Reproduction line:**
`./gradlew ':server:test' --tests "org.elasticsearch.cluster.coordination.LeaderCheckerTests.testFollowerBehaviour" -Dtests.seed=36D4C5A01ACBC382 -Dtests.locale=es-PE -Dtests.timezone=Australia/North -Druntime.java=17`
**Applicable branches:**
8.0
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.cluster.coordination.LeaderCheckerTests&tests.test=testFollowerBehaviour
**Failure excerpt:**
```
java.lang.AssertionError:
Expected: a string starting with "[8] consecutive checks of the master node [{leader-2}{nMIL0ZM6SfiptaDAT29SUw}{0.0.0.0}{0.0.0.0:10}{cdfhilmrstvw}] were unsuccessful ([3] rejected, [5] timed out), restarting discovery; more details may be available in the master node logs [last unsuccessful check: "
but: was "[8] consecutive checks of the master node [{leader-2}{nMIL0ZM6SfiptaDAT29SUw}{0.0.0.0}{0.0.0.0:10}{cdfhilmrstvw}] were unsuccessful ([4] rejected, [4] timed out), restarting discovery; more details may be available in the master node logs [last unsuccessful check: simulated error]"
at __randomizedtesting.SeedInfo.seed([36D4C5A01ACBC382:7AE94EAA53E3F269]: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.cluster.coordination.LeaderCheckerTests.lambda$testFollowerBehaviour$1(LeaderCheckerTests.java:171)
at org.elasticsearch.cluster.coordination.LeaderChecker$CheckScheduler$2.run(LeaderChecker.java:337)
at org.elasticsearch.common.util.concurrent.DeterministicTaskQueue.runTask(DeterministicTaskQueue.java:144)
at org.elasticsearch.common.util.concurrent.DeterministicTaskQueue.runRandomTask(DeterministicTaskQueue.java:138)
at org.elasticsearch.common.util.concurrent.DeterministicTaskQueue.runAllRunnableTasks(DeterministicTaskQueue.java:88)
at org.elasticsearch.cluster.coordination.LeaderCheckerTests.testFollowerBehaviour(LeaderCheckerTests.java:223)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/83924 | https://github.com/elastic/elasticsearch/pull/83897 | efb76d8c162b1c58abb8fe706c3e4583eec01cb2 | c98a7299ee11d52123e896585048412326b577bb | 2022-02-15T09:12:03Z | java | 2022-02-15T15:07:50Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,923 | ["x-pack/plugin/ml/src/internalClusterTest/java/org/elasticsearch/xpack/ml/integration/TestFeatureLicenseTrackingIT.java"] | [CI] TestFeatureLicenseTrackingIT testFeatureTrackingInferenceModelPipeline failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/uxh3n4jdo6gnk/tests/:x-pack:plugin:ml:internalClusterTest/org.elasticsearch.xpack.ml.integration.TestFeatureLicenseTrackingIT/testFeatureTrackingInferenceModelPipeline
**Reproduction line:**
`./gradlew ':x-pack:plugin:ml:internalClusterTest' --tests "org.elasticsearch.xpack.ml.integration.TestFeatureLicenseTrackingIT.testFeatureTrackingInferenceModelPipeline" -Dtests.seed=3330A8C1DE35092D -Dtests.locale=en-AU -Dtests.timezone=Europe/Amsterdam -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.ml.integration.TestFeatureLicenseTrackingIT&tests.test=testFeatureTrackingInferenceModelPipeline
**Failure excerpt:**
```
java.lang.AssertionError: test leaves indices that were not deleted: .ml-annotations-000001
Expected: []
but: was [".ml-annotations-000001"]
at __randomizedtesting.SeedInfo.seed([3330A8C1DE35092D:3B4724E1DE5E0E49]:0)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.elasticsearch.test.ESSingleNodeTestCase.tearDown(ESSingleNodeTestCase.java:168)
at org.elasticsearch.xpack.ml.MlSingleNodeTestCase.tearDown(MlSingleNodeTestCase.java:112)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:1004)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/83923 | https://github.com/elastic/elasticsearch/pull/84020 | d465ee1be44fcc32783e8daa6eae8b5c87f3e3ff | 15e522ec414b482a4f347092128cb22b1113cc07 | 2022-02-15T08:43:23Z | java | 2022-02-16T12:41:19Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,917 | ["docs/changelog/83918.yaml", "modules/reindex/src/internalClusterTest/java/org/elasticsearch/migration/FeatureMigrationIT.java", "server/src/main/java/org/elasticsearch/action/admin/cluster/migration/TransportPostFeatureUpgradeAction.java"] | Feature migration refuses to run if all features requiring upgrade have encountered errors | ### Elasticsearch Version
7.17.0
### Installed Plugins
none
### Java Version
_bundled_
### OS Version
Doesn't matter
### Problem Description
If all features which still require migration have encountered an error, trying to start migration produces no results, only a response claiming no migration is necessary, even if that's not true. This means that transient errors that occur during migration are impossible to retry.
The only known workaround for this is a full-cluster restart, which will clear the migration upgrade result metadata.
### Steps to Reproduce
1. Start a cluster using a 6.x version.
2. Upgrade it to 7.17.0.
3. Run system index migration, but ensure that some indices fail (e.g. by triggering https://github.com/elastic/elasticsearch/issues/83779, which `.tasks` always will - fortunately that is easy enough to work around by removing the index)
4. Try to re-run migration. Migration will not try to re-run.
### Logs (if relevant)
The response will just say no migration is necessary:
```json
{
"accepted" : false,
"reason" : "No system indices require migration"
}
``` | https://github.com/elastic/elasticsearch/issues/83917 | https://github.com/elastic/elasticsearch/pull/83918 | 6ad3f8bfdd7c7ea1b0d8e35cba90555d9fc73250 | 4bc6a121c49cacc876562318c8a5325fe9def7bb | 2022-02-15T01:37:24Z | java | 2022-02-17T16:56:53Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,915 | ["docs/changelog/83920.yaml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/tsdb/05_dimension_and_metric_in_non_tsdb_index.yml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/tsdb/20_mapping.yml", "server/src/main/java/org/elasticsearch/index/mapper/IpFieldMapper.java", "server/src/main/java/org/elasticsearch/index/mapper/KeywordFieldMapper.java", "server/src/main/java/org/elasticsearch/index/mapper/NumberFieldMapper.java", "server/src/test/java/org/elasticsearch/index/mapper/NestedObjectMapperTests.java", "x-pack/plugin/mapper-unsigned-long/src/main/java/org/elasticsearch/xpack/unsignedlong/UnsignedLongFieldMapper.java"] | tsdb/05_dimension_and_metric_in_non_tsdb_index/nested dimensions | ### CI Link
local
### Repro line
./gradlew ':rest-api-spec:yamlRestTest' --tests "org.elasticsearch.test.rest.ClientYamlTestSuiteIT.test {yaml=tsdb/05_dimension_and_metric_in_non_tsdb_index/nested dimensions}" -Dtests.seed=CE43030603A1AB90 -Dtests.locale=en-PH -Dtests.timezone=Asia/Aqtau -Druntime.java=17
### Does it reproduce?
Yes
### Applicable branches
master
### Failure history
I just caused it
### Failure excerpt
```
java.lang.AssertionError: Failure at [tsdb/05_dimension_and_metric_in_non_tsdb_index:239]: expected [2xx] status code but api [index] returned [400 Bad Request] [{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"failed to parse field [nested.dim] of type [keyword] in document with id 'yF2M-n4BxnJzvZeHLUG1'. Preview of field's value: 'bar'","stack_trace":"org.elasticsearch.index.mapper.MapperParsingException: failed to parse field [nested.dim] of type [keyword] in document with id 'yF2M-n4BxnJzvZeHLUG1'. Preview of field's value: 'bar'\n\tat org.elasticsearch.index.mapper.FieldMapper.parse(FieldMapper.java:254)\n\tat org.elasticsearch.index.mapper.DocumentParser.parseObjectOrField(DocumentParser.java:356)\n\tat org.elasticsearch.index.mapper.DocumentParser.parseValue(DocumentParser.java:508)\n\tat org.elasticsearch.index.mapper.DocumentParser.innerParseObject(DocumentParser.java:296)\n\tat org.elasticsearch.index.mapper.DocumentParser.parseObjectOrNested(DocumentParser.java:260)\n\tat org.elasticsearch.index.mapper.DocumentParser.parseObjectOrField(DocumentParser.java:354)\n\tat org.elasticsearch.index.mapper.DocumentParser.parseObject(DocumentParser.java:387)\n\tat org.elasticsearch.index.mapper.DocumentParser.parseNonDynamicArray(DocumentParser.java:470)\n\tat org.elasticsearch.index.mapper.DocumentParser.parseArray(DocumentParser.java:428)\n\tat org.elasticsearch.index.mapper.DocumentParser.innerParseObject(DocumentParser.java:284)\n\tat org.elasticsearch.index.mapper.DocumentParser.parseObjectOrNested(DocumentParser.java:260)\n\tat org.elasticsearch.index.mapper.DocumentParser.internalParseDocument(DocumentParser.java:118)\n\tat org.elasticsearch.index.mapper.DocumentParser.parseDocument(DocumentParser.java:80)\n\tat org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:80)\n\tat org.elasticsearch.index.shard.IndexShard.prepareIndex(IndexShard.java:998)\n\tat org.elasticsearch.index.shard.IndexShard.applyIndexOperation(IndexShard.java:947)\n\tat org.elasticsearch.index.shard.IndexShard.applyIndexOperationOnPrimary(IndexShard.java:891)\n\tat org.elasticsearch.action.bulk.TransportShardBulkAction.executeBulkItemRequest(TransportShardBulkAction.java:320)\n\tat org.elasticsearch.action
``` | https://github.com/elastic/elasticsearch/issues/83915 | https://github.com/elastic/elasticsearch/pull/83920 | 8ff13361276416cc1d6de43e047902ce227bc6aa | c84c7d484e40925c82f0c3bca3a387cf2ff35125 | 2022-02-14T23:15:02Z | java | 2022-02-17T14:39:57Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,890 | ["docs/changelog/83896.yaml", "server/src/internalClusterTest/java/org/elasticsearch/indices/SystemIndexManagerIT.java", "server/src/main/java/org/elasticsearch/indices/SystemIndexManager.java", "server/src/test/java/org/elasticsearch/indices/SystemIndexManagerTests.java"] | SystemIndexManager doesn't cope with missing metadata | ### Elasticsearch Version
8.0.0, but probably affects all versions after system indices were introduced
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
n/a
### Problem Description
The following was observed in the logs of a cluster after upgrading to v8.0.0:
```
[instance-0000000049] failed to notify ClusterStateListener
java.lang.IllegalStateException: Cannot read version string in index .watches
at org.elasticsearch.indices.SystemIndexManager.readMappingVersion(SystemIndexManager.java:281) ~[elasticsearch-8.0.0.jar:8.0.0]
at org.elasticsearch.indices.SystemIndexManager.checkIndexMappingUpToDate(SystemIndexManager.java:268) ~[elasticsearch-8.0.0.jar:8.0.0]
```
`SystemIndexManager` expects to find the index's version in a particular, standard place, and in this case it didn’t.
However, I think there’s a gap here, because from looking back at the index templates we used to ship for .watches (for v6 and v7) they didn't set the version in what is now the expected place. We ought to have logic to handle moving from the old world to the new world, and that seems to be missing. I’m not sure that logic would be any different from the data simply being missing.
I’m confused though about why we haven’t hit this before now. It's also surprising because I don’t believe there’s anything special in v8.0.0 here - the problem ought to have surfaced in earlier versions
In terms of what we need to do, I think if `SystemIndexManager` can't find the version metadata, it could assume that the index comes from an earlier version and needs an upgrade. However, `SystemIndexManager` doesn't handle upgrades since they're specific to the plugin / service / whatever that owns the index. So in this case, we need some logic in the Watcher area to affect an upgrade, or at the very least a metadata update, to stop `SystemIndexManager` from complaining.
### Steps to Reproduce
Not sure. Presumably creating an old enough cluster with Watcher running, and upgrading to 8.0.0 would do it.
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/83890 | https://github.com/elastic/elasticsearch/pull/83896 | 2e7ca44666b4d3e4dadf07e51e24acca67095e9d | b2e351e379edcbc05385d32db9db20c4e3aa8b1c | 2022-02-14T13:30:26Z | java | 2022-02-14T18:59:03Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,857 | ["server/src/test/java/org/elasticsearch/cluster/coordination/LeaderCheckerTests.java"] | [CI] LeaderCheckerTests testFollowerBehaviour failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/kcigytunuhntm/tests/:server:test/org.elasticsearch.cluster.coordination.LeaderCheckerTests/testFollowerBehaviour
**Reproduction line:**
`./gradlew ':server:test' --tests "org.elasticsearch.cluster.coordination.LeaderCheckerTests.testFollowerBehaviour" -Dtests.seed=1F713940161A4A57 -Dtests.locale=hu -Dtests.timezone=America/Catamarca -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.cluster.coordination.LeaderCheckerTests&tests.test=testFollowerBehaviour
**Failure excerpt:**
```
java.lang.AssertionError:
Expected: a string starting with "[10] consecutive checks of the master node [{leader-1}{GkifWAN9QE-7ZV19sJb_ZA}{0.0.0.0}{0.0.0.0:5}{cdfhilmrstvw}] were unsuccessful ([2] rejected, [8] timed out), restarting discovery; more details may be available in the master node logs [last unsuccessful check: "
but: was "[10] consecutive checks of the master node [{leader-1}{GkifWAN9QE-7ZV19sJb_ZA}{0.0.0.0}{0.0.0.0:5}{cdfhilmrstvw}] were unsuccessful ([4] rejected, [6] timed out), restarting discovery; more details may be available in the master node logs [last unsuccessful check: simulated error]"
at __randomizedtesting.SeedInfo.seed([1F713940161A4A57:534CB24A5F327BBC]: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.cluster.coordination.LeaderCheckerTests.lambda$testFollowerBehaviour$1(LeaderCheckerTests.java:171)
at org.elasticsearch.cluster.coordination.LeaderChecker$CheckScheduler$2.run(LeaderChecker.java:337)
at org.elasticsearch.common.util.concurrent.DeterministicTaskQueue.runTask(DeterministicTaskQueue.java:144)
at org.elasticsearch.common.util.concurrent.DeterministicTaskQueue.runRandomTask(DeterministicTaskQueue.java:138)
at org.elasticsearch.common.util.concurrent.DeterministicTaskQueue.runAllRunnableTasks(DeterministicTaskQueue.java:88)
at org.elasticsearch.cluster.coordination.LeaderCheckerTests.testFollowerBehaviour(LeaderCheckerTests.java:223)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/83857 | https://github.com/elastic/elasticsearch/pull/83897 | efb76d8c162b1c58abb8fe706c3e4583eec01cb2 | c98a7299ee11d52123e896585048412326b577bb | 2022-02-11T19:31:53Z | java | 2022-02-15T15:07:50Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 83,828 | ["server/src/test/java/org/elasticsearch/index/shard/IndexShardTests.java"] | [CI] IndexShardTests testRestoreLocalHistoryFromTranslogOnPromotion failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/owcdxh7pdumwa/tests/:server:test/org.elasticsearch.index.shard.IndexShardTests/testRestoreLocalHistoryFromTranslogOnPromotion
**Reproduction line:**
`./gradlew ':server:test' --tests "org.elasticsearch.index.shard.IndexShardTests.testRestoreLocalHistoryFromTranslogOnPromotion" -Dtests.seed=9306AA362F7A9A42 -Dtests.locale=mt -Dtests.timezone=America/Argentina/Catamarca -Druntime.java=17`
**Applicable branches:**
master
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.index.shard.IndexShardTests&tests.test=testRestoreLocalHistoryFromTranslogOnPromotion
**Failure excerpt:**
```
java.lang.AssertionError:
Expected: <19L>
but: was <22L>
at __randomizedtesting.SeedInfo.seed([9306AA362F7A9A42:23CCD497DEBBAEBB]: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.index.shard.IndexShardTests.testRestoreLocalHistoryFromTranslogOnPromotion(IndexShardTests.java:1318)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/83828 | https://github.com/elastic/elasticsearch/pull/84027 | 3e1b6612ac259e9d9c5bc1a50d1a5068cdc02377 | aeed4ebe822c2948871dd4faf900f1abfaa34b56 | 2022-02-11T11:15:55Z | java | 2022-02-17T07:38:51Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.