status
stringclasses
1 value
repo_name
stringclasses
13 values
repo_url
stringclasses
13 values
issue_id
int64
1
104k
updated_files
stringlengths
11
1.76k
title
stringlengths
4
369
body
stringlengths
0
254k
issue_url
stringlengths
38
55
pull_url
stringlengths
38
53
before_fix_sha
stringlengths
40
40
after_fix_sha
stringlengths
40
40
report_datetime
unknown
language
stringclasses
5 values
commit_datetime
unknown
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
87,048
["docs/changelog/87076.yaml", "server/src/main/java/org/elasticsearch/cluster/metadata/DataStream.java", "server/src/main/java/org/elasticsearch/cluster/metadata/Metadata.java", "server/src/main/java/org/elasticsearch/cluster/metadata/MetadataIndexTemplateService.java", "x-pack/plugin/ccr/build.gradle", "x-pack/plugin/ccr/src/internalClusterTest/java/org/elasticsearch/xpack/ccr/AutoFollowIT.java", "x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/TransportPutFollowAction.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/ReplaceDataStreamBackingIndexStepTests.java"]
CCR AutoFollowCoordinator can trigger put-follow actions that can corrupt datastreams in an edge case
A transport put follow-action can be triggered for an index that is part of a data stream and already exists. Normally this is not an issue because the restore operation will just fail because the index already exists. If however, the index is currently closed (for example due to ILM doing a force-merge with codec change step on the index), this causes the currently closed index to be restored into. As a result we run into a bug in the following code in `org.elasticsearch.xpack.ccr.action.TransportPutFollowAction#createFollowerIndex`: ```java BiConsumer<ClusterState, Metadata.Builder> updater = (currentState, mdBuilder) -> { DataStream localDataStream = currentState.getMetadata().dataStreams().get(remoteDataStream.getName()); Index followerIndex = mdBuilder.get(followerIndexName).getIndex(); assert followerIndex != null; DataStream updatedDataStream = updateLocalDataStream(followerIndex, localDataStream, remoteDataStream); mdBuilder.put(updatedDataStream); }; restoreService.restoreSnapshot(restoreRequest, delegatelistener, updater); } ``` This code updates the local data stream when following an index without checking if that index already is part of the data stream, thus now creating two entries for the same `Index` in the data stream's indices list. Code like `org.elasticsearch.cluster.metadata.DataStream#removeBackingIndex` however assumes no duplicates and will when deleting an index, only remove it from the data stream once. Thus leaving a dangling `Index` instance that does not point to any existing index any more, corrupting the cluster state. cc @martijnvg thanks for the help with reasoning this out
https://github.com/elastic/elasticsearch/issues/87048
https://github.com/elastic/elasticsearch/pull/87076
ecd2c1b6554977680a7c0ebf2a6829bad36650fb
248918f142b870b18fd5168a3210947e6550d3df
"2022-05-23T14:05:51Z"
java
"2022-05-24T13:45:00Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
87,036
["docs/changelog/87123.yaml", "server/src/main/java/org/elasticsearch/index/mapper/DocumentParser.java", "server/src/test/java/org/elasticsearch/index/mapper/CopyToMapperTests.java"]
bad indexing performance in elasticsearch 8.2.0
### Elasticsearch Version 8.2.0 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version docker-image = docker.elastic.co/elasticsearch/elasticsearch:8.2.0 ### Problem Description We are trying to migrate from Elasticsearch 6.7.1 to Elasticsearch 8.2.0. With the same amount of documents per bulk request (100 docs per request), we always get a socket timeout in Elasticsearch 8.2.0. Everything works fine in Elasticsearch 6.7.1. I noticed that indexing the same document in Elasticsearch 8.2.0 takes 44152ms. In Elasticsearch 6.7.1, indexing takes 50ms. ### Steps to Reproduce [elasticsearch_8.2.0.txt](https://github.com/elastic/elasticsearch/files/8754299/elasticsearch_8.2.0.txt) [elasticsearch_6.7.1.txt](https://github.com/elastic/elasticsearch/files/8754300/elasticsearch_6.7.1.txt) ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/87036
https://github.com/elastic/elasticsearch/pull/87123
4640c03294bd2d20c1f1fd015040e44c70e67698
4e1f72552cda4b3335c46c34af98150228ee5f7d
"2022-05-23T12:00:42Z"
java
"2022-06-08T13:02:25Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
87,034
["docs/reference/analysis/tokenfilters/stop-tokenfilter.asciidoc"]
[Doc issue] Fix broken link of Lucene’s StopFilter in Elasticsearch Stop token filter
### Elasticsearch Version 8.2 ### Installed Plugins None ### Java Version _bundled_ ### OS Version NA ### Problem Description [Stop token filter](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-stop-tokenfilter.html) has a mention of Lucene stop filter. but clicking on that link doesn't work, and shows 404. Below screenshot shows the link that doesn't work. ![Screenshot 2022-05-23 at 5 15 40 PM](https://user-images.githubusercontent.com/4751393/169812395-9e2b7330-6e63-4aea-957c-58eaa8df5bfa.png) ### Steps to Reproduce Explained in Problem Description. ### Logs (if relevant) NA
https://github.com/elastic/elasticsearch/issues/87034
https://github.com/elastic/elasticsearch/pull/87037
862d72fefc57a4e5559b8ca6c7fadc5a63366d77
c3a61901732e3233cf4793b19882c279e13769d6
"2022-05-23T11:46:28Z"
java
"2022-05-23T18:06:35Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
87,026
["modules/legacy-geo/build.gradle", "server/build.gradle", "server/src/main/java/module-info.java", "x-pack/plugin/spatial/build.gradle", "x-pack/plugin/spatial/licenses/lucene-LICENSE.txt", "x-pack/plugin/spatial/licenses/lucene-NOTICE.txt", "x-pack/plugin/spatial/licenses/lucene-spatial3d-9.2.0.jar.sha1"]
Rework lucene spatial3d dependency on server
The server module has a dependency on lucene spatial3d library but it is never used. The only dependency on that library happens in the spatial module which is accessed via the server module at the moment. There might be a better way to handle this dependency so opening this issue to track it.
https://github.com/elastic/elasticsearch/issues/87026
https://github.com/elastic/elasticsearch/pull/87397
b3ff079794315494e5d4bd36104c3a41843a9028
f5c0be5c89009dd8afdbdabf0ca0c55eecdc5557
"2022-05-23T09:44:23Z"
java
"2022-06-07T19:54:11Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
87,003
["docs/changelog/87011.yaml", "qa/smoke-test-http/src/javaRestTest/java/org/elasticsearch/http/PointInTimeIT.java", "server/src/main/java/org/elasticsearch/action/search/OpenPointInTimeRequest.java"]
Creating a PIT without `?keep_alive` parameter returns 500 rather than 4xx
### Elasticsearch Version 8.2.0 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version Cloud ### Problem Description Creating a PIT without the required `?keep_alive` parameter throws a NPE which maps to HTTP status code `500 Internal Server Error` whereas really this isn't a server-side error, it's a bad request, so the status code should be something like `400 Bad Request` ### Steps to Reproduce ``` # Request: POST /_pit # Response: # 500 Internal Server Error # { # "status": 500, # "error": { # "reason": "[keep_alive] parameter must be non null", # "root_cause": [ # { # "reason": "[keep_alive] parameter must be non null", # "type": "null_pointer_exception" # } # ], # "type": "null_pointer_exception" # } # } ``` ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/87003
https://github.com/elastic/elasticsearch/pull/87011
bfdade4b9a3cf112d04d0255980df498c832010d
dea11179d2de76db807ad01e5b349d96a055345b
"2022-05-20T19:21:17Z"
java
"2022-05-31T00:54:44Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,977
["docs/changelog/87052.yaml", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/privilege/IndexPrivilege.java", "x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/security/authz/60_resolve_index.yml"]
Permissions issue for the resolve_index api
### Elasticsearch Version latest ### Installed Plugins _No response_ ### Java Version 18.0.1.1 ### OS Version Linux 5.17.6-1-MANJARO ### Problem Description We created a `hasData` service which utilizes the `resolve_index` api to check whether ES data exists. When making a call to `internal/index-pattern-management/resolve_index` to query whether data exists or not, in certain scenarios it fails with a 500 Internal Server Error. The ES error being - > security_exception: [security_exception] Reason: action [indices:admin/resolve/index] is unauthorized for user [test_user] with roles [test_dashboard_user,reporting_user], this action is granted by the index privileges [view_index_metadata,manage,all] The scenarios being: Scenario one: 1. There are 3 indices 2. User has `read` access to 1 of the indices, but not to the other two 3. The call fails with a 500 Internal Server Error. The user should be able to see the index they have access to. Scenario two: 1. This refers to a scenario where the user has `read` access to the index, but `no view_index_metadata` privileges. Original issue ticket in Kibana for reference - [#132478](https://github.com/elastic/kibana/issues/132478) ### Steps to Reproduce The user has `read` access to the index, but `no view_index_metadata` privileges. The api fails with a 500 due to the missing permissions. ### Logs (if relevant) security_exception: [security_exception] Reason: action [indices:admin/resolve/index] is unauthorized for user [test_user] with roles [test_dashboard_user,reporting_user], this action is granted by the index privileges [view_index_metadata,manage,all]
https://github.com/elastic/elasticsearch/issues/86977
https://github.com/elastic/elasticsearch/pull/87052
cf92a16a103095105b5d1a5c403b8de8aab0e32e
58d86b6a435ba62e584f8137ecfaed6b0abb2e25
"2022-05-20T14:25:49Z"
java
"2022-05-26T14:24:28Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,875
["CHANGELOG.md", "docs/changelog/88972.yaml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/field_caps/10_basic.yml", "server/src/main/java/org/elasticsearch/rest/action/RestFieldCapabilitiesAction.java", "server/src/test/java/org/elasticsearch/action/fieldcaps/FieldCapabilitiesRequestTests.java", "server/src/test/java/org/elasticsearch/rest/action/RestFieldCapabilitiesActionTests.java"]
Support fields under body as well as in url for field_caps API.
### Description Before ES 7.x it was possible to provide a list of fields by URL or BODY request for field_caps API. https://www.elastic.co/guide/en/elasticsearch/reference/6.8/search-field-caps.html `POST _field_caps { "fields" : ["rating"] }` Starting from 7.x this feature was removed, and only one possible way it uses URI but in this case, it is possible to have an error 414 (Request-URI Too Long). I would like to return this feature back.
https://github.com/elastic/elasticsearch/issues/86875
https://github.com/elastic/elasticsearch/pull/88972
b81f4187abe788f405be74cb95126066404f8fb4
f28f4545b24e7912a8623f5f3da9147f28e7d7ad
"2022-05-18T01:57:58Z"
java
"2022-08-04T17:44:50Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,813
["x-pack/plugin/searchable-snapshots/qa/azure/src/javaRestTest/java/org/elasticsearch/xpack/searchablesnapshots/AzureSearchableSnapshotsIT.java"]
[CI] AzureSearchableSnapshotsIT testSnapshotOfSearchableSnapshot failing
This smells like the snapshot not being removed between tests. **Build scan:** https://gradle-enterprise.elastic.co/s/ouan3uzvpq7y6/tests/:x-pack:plugin:searchable-snapshots:qa:azure:integTest/org.elasticsearch.xpack.searchablesnapshots.AzureSearchableSnapshotsIT/testSnapshotOfSearchableSnapshot **Reproduction line:** `./gradlew ':x-pack:plugin:searchable-snapshots:qa:azure:integTest' --tests "org.elasticsearch.xpack.searchablesnapshots.AzureSearchableSnapshotsIT.testSnapshotOfSearchableSnapshot" -Dtests.seed=4601A547785914AA -Dtests.locale=th-TH-u-nu-thai-x-lvariant-TH -Dtests.timezone=GMT0 -Druntime.java=17` **Applicable branches:** 8.2 **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.searchablesnapshots.AzureSearchableSnapshotsIT&tests.test=testSnapshotOfSearchableSnapshot **Failure excerpt:** ``` org.elasticsearch.client.ResponseException: method [PUT], host [http://127.0.0.1:45399], URI [_snapshot/repository/searchable-snapshot?wait_for_completion=true], status line [HTTP/1.1 400 Bad Request] {"error":{"root_cause":[{"type":"snapshot_name_already_in_use_exception","reason":"[repository:searchable-snapshot] Invalid snapshot name [searchable-snapshot], snapshot with the same name is already in-progress"}],"type":"snapshot_name_already_in_use_exception","reason":"[repository:searchable-snapshot] Invalid snapshot name [searchable-snapshot], snapshot with the same name is already in-progress"},"status":400} 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:302) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:287) at org.elasticsearch.test.rest.ESRestTestCase.createSnapshot(ESRestTestCase.java:1683) at org.elasticsearch.test.rest.ESRestTestCase.createSnapshot(ESRestTestCase.java:1675) at org.elasticsearch.xpack.searchablesnapshots.AbstractSearchableSnapshotsRestTestCase.runSearchableSnapshotsTest(AbstractSearchableSnapshotsRestTestCase.java:207) at org.elasticsearch.xpack.searchablesnapshots.AbstractSearchableSnapshotsRestTestCase.runSearchableSnapshotsTest(AbstractSearchableSnapshotsRestTestCase.java:86) at org.elasticsearch.xpack.searchablesnapshots.AbstractSearchableSnapshotsRestTestCase.runSearchableSnapshotsTest(AbstractSearchableSnapshotsRestTestCase.java:82) at org.elasticsearch.xpack.searchablesnapshots.AbstractSearchableSnapshotsRestTestCase.testSnapshotOfSearchableSnapshot(AbstractSearchableSnapshotsRestTestCase.java:353) 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/86813
https://github.com/elastic/elasticsearch/pull/87855
9ff9026871e27310c307020abb1c3fef0d4fc880
510c85a2099d3f7720cea62a240470c803845246
"2022-05-16T17:56:35Z"
java
"2022-06-21T09:54:25Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,804
["modules/reindex/src/yamlRestTest/resources/rest-api-spec/test/reindex/100_tsdb.yml"]
[CI] ReindexClientYamlTestSuiteIT test {yaml=reindex/100_tsdb/from tsdb to tsdb created by template while modifying dimension} failing
Fails with this specific test seed, but not with others. It looks like the relevant randomization has to do with `ESClientYamlSuiteTestCase` line 441 or so., where we add a global template depending on whether we are using the default number of shards. **Build scan:** https://gradle-enterprise.elastic.co/s/kfipuq66qzp44/tests/:modules:reindex:yamlRestTest/org.elasticsearch.index.reindex.ReindexClientYamlTestSuiteIT/test%20%7Byaml=reindex%2F100_tsdb%2Ffrom%20tsdb%20to%20tsdb%20created%20by%20template%20while%20modifying%20dimension%7D **Reproduction line:** `./gradlew ':modules:reindex:yamlRestTest' --tests "org.elasticsearch.index.reindex.ReindexClientYamlTestSuiteIT.test {yaml=reindex/100_tsdb/from tsdb to tsdb created by template while modifying dimension}" -Dtests.seed=B384201DDC198C9D -Dtests.locale=ko-KR -Dtests.timezone=GB-Eire -Druntime.java=17` **Applicable branches:** master **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.index.reindex.ReindexClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dreindex/100_tsdb/from%20tsdb%20to%20tsdb%20created%20by%20template%20while%20modifying%20dimension%7D **Failure excerpt:** ``` java.lang.AssertionError: Failure at [reindex/100_tsdb:444]: got unexpected warning header [ 299 Elasticsearch-8.3.0-SNAPSHOT-c17ab3643e2b2d3125d025e1865dc9f1e67806a6 "index template [test-composable-1] has index patterns [tsdb_templated_*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [test-composable-1] will take precedence during new index creation" ] at __randomizedtesting.SeedInfo.seed([B384201DDC198C9D:3BD01FC772E5E165]:0) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:503) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:472) 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: got unexpected warning header [ 299 Elasticsearch-8.3.0-SNAPSHOT-c17ab3643e2b2d3125d025e1865dc9f1e67806a6 "index template [test-composable-1] has index patterns [tsdb_templated_*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [test-composable-1] will take precedence during new index creation" ] at org.junit.Assert.fail(Assert.java:88) at org.elasticsearch.test.rest.yaml.section.DoSection.checkWarningHeaders(DoSection.java:511) at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:369) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:492) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:472) 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/86804
https://github.com/elastic/elasticsearch/pull/86980
300a578ad3bff3f2a5cfcd98a5ad5d0742c876c0
30bb96475eca985c414a75de49b734a29a348781
"2022-05-16T13:24:55Z"
java
"2022-05-20T15:59:18Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,803
[".ci/scripts/packaging-test.sh"]
BWC tests failing due to git permissions failure
BWC fail to run as git clone fails. This has failed a couple of times on ubuntu: - https://gradle-enterprise.elastic.co/s/62qrl2o67t5ja - https://gradle-enterprise.elastic.co/s/sc7o4hgjwfrpk ``` fatal: unsafe repository ('/var/lib/jenkins/workspace/elastic+elasticsearch+8.2+multijob+packaging-tests-upgrade/BWC_VERSION/7.17.4/os/ubuntu-20.04-packaging' is owned by someone else) |     | To add an exception for this directory, call: |     |   |     | git config --global --add safe.directory /var/lib/jenkins/workspace/elastic+elasticsearch+8.2+multijob+packaging-tests-upgrade/BWC_VERSION/7.17.4/os/ubuntu-20.04-packaging ```
https://github.com/elastic/elasticsearch/issues/86803
https://github.com/elastic/elasticsearch/pull/86812
793920255bcf7a2901bb67667337730fe637d1c4
05d743a81748c981c1af0b992d65102c7e25df87
"2022-05-16T11:47:40Z"
java
"2022-05-16T20:12:34Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,724
["docs/changelog/88470.yaml", "server/src/internalClusterTest/java/org/elasticsearch/snapshots/ConcurrentSnapshotsIT.java", "server/src/main/java/org/elasticsearch/snapshots/SnapshotsService.java", "server/src/test/java/org/elasticsearch/snapshots/SnapshotsServiceTests.java"]
[CI] SnapshotStressTestsIT testRandomActivities failing
**Build scan:** https://gradle-enterprise.elastic.co/s/anyfhhx6i7naw/tests/:server:internalClusterTest/org.elasticsearch.snapshots.SnapshotStressTestsIT/testRandomActivities **Reproduction line:** `./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.snapshots.SnapshotStressTestsIT.testRandomActivities" -Dtests.seed=EB88608F2635B7C9 -Dtests.locale=tr-TR -Dtests.timezone=Pacific/Wake -Druntime.java=17` **Applicable branches:** 8.2 **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.snapshots.SnapshotStressTestsIT&tests.test=testRandomActivities **Failure excerpt:** ``` java.lang.AssertionError: failed to acquire all permits: [repo-0, index-0, index-1, index-2, node_s5, node_s4, node_s3, node_s2, node_s1, node_s0] at org.junit.Assert.fail(Assert.java:88) at org.elasticsearch.snapshots.SnapshotStressTestsIT$TrackedCluster.run(SnapshotStressTestsIT.java:345) at org.elasticsearch.snapshots.SnapshotStressTestsIT.testRandomActivities(SnapshotStressTestsIT.java:84) 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/86724
https://github.com/elastic/elasticsearch/pull/88470
7382fa3a32457b03f083fe4435906f0cc149ae33
0e8f5e4d0a243eadc0cbb887b2379120ec5e3037
"2022-05-12T09:33:29Z"
java
"2022-07-27T08:12:14Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,705
["docs/changelog/87633.yaml", "server/src/main/java/org/elasticsearch/indices/recovery/RecoverySettings.java", "server/src/test/java/org/elasticsearch/indices/recovery/RecoverySettingsTests.java"]
snapshot-based peer recovery warning despite not using `indices.recovery.use_snapshots=true`
### Elasticsearch Version Version: 8.2.0, Build: default/tar/b174af62e8dd9f4ac4d25875e9381ffe2b9282c5/2022-04-20T10:35:10.180408517Z, JVM: 18 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version MacOS Darwin Kernel Version 21.4.0 ### Problem Description Elasticsearch throws snapshot-based peer recovery warnings despite setting `"indices.recovery.use_snapshots": false` + having `"use_for_peer_recovery": false` set on the repository. ### Steps to Reproduce This could be tested with a 2x node cluster consisting of 1x `master/data` and 1x `data` node. Create a snapshot repository with `"use_for_peer_recovery": false`: ``` PUT _snapshot/my_snapshot_repo { "type": "fs", "settings": { "location": "backups", "use_for_peer_recovery": false } } ``` Ensure `"indices.recovery.use_snapshots": false` is set: ``` PUT _cluster/settings { "persistent": { "indices.recovery.use_snapshots": false } } ``` Stop the data-only node and remove the contents of its `./data/indices` directory, then restart the node. The node should log warnings about not being able to perform snapshot-based peer recoveries. A couple other observations: - The log message (below) is a bit confusing because `indices.recovery.max_concurrent_snapshot_file_downloads` has been left at defaults. - These warnings can also be seen when using `"indices.recovery.use_snapshots": true` + ` "use_for_peer_recovery": true` but no valid snapshot of the index exists. ### Logs (if relevant) ``` [2022-05-11T14:51:14,538][INFO ][o.e.n.Node ] [node-c] started [2022-05-11T14:51:15,834][WARN ][o.e.i.r.RecoverySettings ] [node-c] Unable to acquire permit to use snapshot files during recovery, this recovery will recover index files from the source node. Ensure snapshot files can be used during recovery by setting [indices.recovery.max_concurrent_snapshot_file_downloads] to be no greater than [25] [2022-05-11T14:51:24,499][WARN ][o.e.i.r.RecoverySettings ] [node-c] Unable to acquire permit to use snapshot files during recovery, this recovery will recover index files from the source node. Ensure snapshot files can be used during recovery by setting [indices.recovery.max_concurrent_snapshot_file_downloads] to be no greater than [25] [2022-05-11T14:51:25,005][WARN ][o.e.i.r.RecoverySettings ] [node-c] Unable to acquire permit to use snapshot files during recovery, this recovery will recover index files from the source node. Ensure snapshot files can be used during recovery by setting [indices.recovery.max_concurrent_snapshot_file_downloads] to be no greater than [25] [2022-05-11T14:51:32,363][WARN ][o.e.i.r.RecoverySettings ] [node-c] Unable to acquire permit to use snapshot files during recovery, this recovery will recover index files from the source node. Ensure snapshot files can be used during recovery by setting [indices.recovery.max_concurrent_snapshot_file_downloads] to be no greater than [25] [2022-05-11T14:51:48,103][WARN ][o.e.i.r.RecoverySettings ] [node-c] Unable to acquire permit to use snapshot files during recovery, this recovery will recover index files from the source node. Ensure snapshot files can be used during recovery by setting [indices.recovery.max_concurrent_snapshot_file_downloads] to be no greater than [25] ```
https://github.com/elastic/elasticsearch/issues/86705
https://github.com/elastic/elasticsearch/pull/87633
ca7783c4296c72e70ba22139f589a8ee817cbffa
76eaa82099f3aa1fbd5c18f2d3990d6708cad231
"2022-05-11T19:50:34Z"
java
"2022-06-16T12:45:16Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,694
["docs/changelog/86732.yaml", "x-pack/docs/en/security/auditing/event-types.asciidoc", "x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/audit/AuditTrail.java", "x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/audit/AuditTrailService.java", "x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/audit/logfile/LoggingAuditTrail.java", "x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/transport/filter/IPFilter.java", "x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/audit/AuditTrailServiceTests.java", "x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/audit/logfile/LoggingAuditTrailFilterTests.java", "x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/audit/logfile/LoggingAuditTrailTests.java", "x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/transport/filter/IPFilterTests.java"]
Audit events do not consistently include the port number in "origin.address"
Some types of audit event samples from [our documentation](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/audit-event-types.html) include the port number in "origin.address", like **access_denied**: ```json {"type":"audit", "timestamp":"2020-12-30T22:30:06,949+0200", "node.id": "0RMNyghkQYCc_gVd1G6tZQ", "event.type":"transport", "event.action": "access_denied", "authentication.type":"REALM", "user.name":"user1", "user.realm":"default_native", "user.roles":["test_role"], "origin.type": "rest", "origin.address":"[::1]:52434", "request.id":"yKOgWn2CRQCKYgZRz3phJw", "action":"indices:admin/auto_create", "request.name":"CreateIndexRequest", "indices":["<index-{now/d+1d}>"]} ``` but other types like **connection_denied** from this issue does not include the port: ```json {"type":"audit", "timestamp":"2020-12-30T21:47:31,526+0200", "node.id": "0RMNyghkQYCc_gVd1G6tZQ", "event.type":"ip_filter", "event.action": "connection_denied", "origin.type":"rest", "origin.address":"10.10.0.20", "transport.profile":".http", "rule":"deny 10.10.0.0/16"} ``` I think we should be consistent here and always include the port number in the "origin.address" field.
https://github.com/elastic/elasticsearch/issues/86694
https://github.com/elastic/elasticsearch/pull/86732
fa4953adca7c82a749c983bef86f3e562138e31e
954d288f4587e014ba5b381bce2bd090ce12285c
"2022-05-11T15:46:56Z"
java
"2022-05-20T11:16:18Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,572
["docs/changelog/86574.yaml", "x-pack/plugin/ilm/qa/multi-node/src/javaRestTest/java/org/elasticsearch/xpack/MigrateToDataTiersIT.java", "x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm/action/TransportMigrateToDataTiersAction.java"]
Migrate to data tiers routing API doesn't reroute
### Elasticsearch Version 7.17, 8.x ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version Darwin ### Problem Description The migrate to data tiers routing API changes the allocation configuration for the indices that need migrating to data tiers routing. After such changes we should do a cluster re-route so the allocation changes take effect immediately. ### Steps to Reproduce 1. On a one node `data_hot,data_content,master` node create the following index ``` PUT datatiers_problem_index { "settings": { "index.routing.allocation.include._tier_preference": "data_hot", "index.routing.allocation.require.data": "hot" } } ``` 2. Migrate to data tiers and observe the shard is not allocated afterwards `POST _ilm/migrate_to_data_tiers` ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/86572
https://github.com/elastic/elasticsearch/pull/86574
7e17630e36d3aadeec441470b1e882514e83c550
17a62d19f93d6c53b4406c7d111baa02f9a424e1
"2022-05-09T13:59:40Z"
java
"2022-05-11T12:28:24Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,567
["client/test/src/main/java/org/elasticsearch/client/GraalVMThreadsFilter.java", "client/test/src/main/java/org/elasticsearch/client/RestClientTestCase.java"]
Client tests failing with ThreadLeakError
### CI Link https://gradle-enterprise.elastic.co/s/mw2zhgjnaroxk https://gradle-enterprise.elastic.co/s/og2cnfo5yzhyi In both cases the tests ran on the `graalvm-ce17` JVM. ### Repro line NA ### Does it reproduce? Didn't try ### Applicable branches main ### Failure history https://gradle-enterprise.elastic.co/scans/tests?search.timeZoneId=Europe/London&tests.container=org.elasticsearch.client.RestClientMultipleHostsTests&tests.test=classMethod ### Failure excerpt ``` com.carrotsearch.randomizedtesting.ThreadLeakError: There are still zombie threads that couldn't be terminated:   | 1) Thread[id=24, name=Libgraal MBean Registration, state=TIMED_WAITING, group=main] |     | at [email protected]/java.lang.Thread.sleep(Native Method) |     | at platform/jdk.internal.vm.compiler.management/org.graalvm.compiler.hotspot.management.Factory.run(Factory.java:111) |   ```
https://github.com/elastic/elasticsearch/issues/86567
https://github.com/elastic/elasticsearch/pull/86976
e51424deef25be00a93f14801d76863f3cd09df1
26d98d39ceaad20865c7d5a4f8f218d27499b0ad
"2022-05-09T12:03:06Z"
java
"2022-05-20T17:18:01Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,560
["docs/changelog/86555.yaml", "server/src/main/java/org/elasticsearch/common/geo/SimpleFeatureFactory.java", "x-pack/plugin/vector-tile/licenses/mapbox-vector-tile-NOTICE.txt", "x-pack/plugin/vector-tile/src/main/java/org/elasticsearch/xpack/vectortile/feature/FeatureFactory.java", "x-pack/plugin/vector-tile/src/main/java/org/elasticsearch/xpack/vectortile/feature/PatchedJtsAdapter.java", "x-pack/plugin/vector-tile/src/test/java/org/elasticsearch/xpack/vectortile/feature/FeatureFactoryTests.java"]
Foreground extrusions missing with vector tile returned by the vector tile search API
### Elasticsearch Version 8.2.0 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version Elastic Cloud on GCP ### Problem Description We use Mapbox GL JS to retrieve tiles from the new vector tile search API. Everything work as expected until we try to extrude the features to display it in 3D: ``` map.addLayer({ id: 'building_layer', type: "fill-extrusion", source: 'building_source', minzoom: 12, "source-layer": "hits", paint: { "fill-extrusion-color": "#00ade6", "fill-extrusion-height": 2, }, }); ``` As you can see on the image, the foreground extrusions is missing: ![Screen Shot 2022-05-06 at 4 44 36 PM](https://user-images.githubusercontent.com/8347022/167377262-420d7cef-dae7-4a4a-805a-93de5a0ebfac.png) When I decode the tile using node-mapnik I get: ``` [{"name":"hits","extent":4096,"version":2,"features":[{"type":3,"properties":{"_id":"59633","_index":"building-v1","id":59633,"gross_floor":180,"floor_nb":2,"unit_nb":1,"protected_rank":0,"principal_type":"Zone d'habitation de très faible densité","city_name":"La Tour-de-Peilz"},"geometry":[9,934,5244,26,22,18,6,7,21,17,15]}]},{"name":"meta","extent":4096,"version":2,"features":[{"type":3,"properties":{"_shards.failed":0,"_shards.skipped":0,"_shards.successful":1,"_shards.total":1,"timed_out":false,"took":1},"geometry":[9,0,8192,26,8192,0,0,8191,8191,0,15]}]}] ``` Then when I try to get the validity report of this tile with node-mapnik I got the following error: ``` [Error: Vector Tile has POLYGON with first ring clockwise. It is not valid according to v2 of VT spec.] ``` As @iverase mentionned it [here](https://discuss.elastic.co/t/foreground-extrusions-missing-with-vector-tile-returned-by-the-vector-tile-search-api/304137), this looks very similar to the bug fixed in the upstream library you are using and seems the fix has never been released: https://github.com/wdtinc/mapbox-vector-tile-java/issues/36 ### Steps to Reproduce Create any index with a geoshape: ``` PUT /extrusion_issue { "mappings": { "properties": { "location": { "type": "geo_shape" } } } } ``` Insert a document with polygon: ``` POST /extrusion_issue/_doc { "location" : { "type" : "Polygon", "coordinates" : [ [ [ 6.865488747, 46.459649483 ], [ 6.865734629, 46.459515699 ], [ 6.865794859, 46.45956863 ], [ 6.865549366, 46.459702596 ], [ 6.865488747, 46.459649483 ] ] ] } } ``` Use mapbox GL JS to retrieve the tile form the vector tile search API and extrude the polygon: ``` map.addLayer({ id: 'building_layer', type: "fill-extrusion", source: 'building_source', minzoom: 12, "source-layer": "hits", paint: { "fill-extrusion-color": "#00ade6", "fill-extrusion-height": 2, }, }); ``` ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/86560
https://github.com/elastic/elasticsearch/pull/86555
7f591b1217a5eafb4ab0ff7d7ebe528d0c6444bb
6efa188b5e3b54b3e44ae3f51821a75c15b5651b
"2022-05-09T10:04:45Z"
java
"2022-05-17T13:53:23Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,940
["distribution/tools/cli-launcher/src/main/java/org/elasticsearch/launcher/CliToolLauncher.java", "distribution/tools/cli-launcher/src/test/java/org/elasticsearch/launcher/CliToolLauncherTests.java"]
[Certs]: Java exceptions while creating certs using `elasticsearch-certutil` tool.
**Kibana version:** 8.3 Snapshot Kibana self-managed environment **Host OS and Browser version:** Windows, All **Build details:** ``` VERSION: 8.3.0 Snapshot self-managed BUILD: 52512 COMMIT: df225b213b188c81888141cee2ec191424fc0649 Elasticsearch artifact link: https://snapshots.elastic.co/8.3.0-6ba9f710/downloads/elasticsearch/elasticsearch-8.3.0-SNAPSHOT-windows-x86_64.zip ``` **Preconditions:** 1. 8.3 Snapshot Kibana self-managed environment should be available. **Steps to reproduce:** 1. Navigate to `C:\elk\elasticsearch\bin>` through cmd. 2. Run below command: `elasticsearch-certutil ca --pem` 3. Observe Java exceptions on running cert creation command. **Expected Result:** CA cert should be created on running `elasticsearch-certutil ca --pem` command. **Screenshot:** ![1](https://user-images.githubusercontent.com/77374876/167078819-20c28e8e-5886-443f-8ab7-1e58d80fb1e2.JPG)
https://github.com/elastic/elasticsearch/issues/86940
https://github.com/elastic/elasticsearch/pull/86944
8127080f5e139d568d617db5856b3da606a49a07
4b2d553e51ac5e0dd62d9ca6147e46f6a8a5b227
"2022-05-06T06:53:55Z"
java
"2022-05-20T00:07:59Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,428
["docs/changelog/85512.yaml", "x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/action/SecurityActionMapper.java", "x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/action/SecurityActionMapperTests.java", "x-pack/qa/runtime-fields/with-security/src/javaRestTest/java/org/elasticsearch/xpack/security/PermissionsIT.java"]
Resolve permissions issue with `cluster:admin/scripts/painless/execute`
2nd attempt at https://github.com/elastic/elasticsearch/issues/84591 references https://github.com/elastic/elasticsearch/issues/48856#issuecomment-831144741 tldr; the permission structure for the endpoint isn't useful for most users. If users can create runtime fields they should have access to this api, they shouldn't need a specific permission set.
https://github.com/elastic/elasticsearch/issues/86428
https://github.com/elastic/elasticsearch/pull/85512
40230125f50f6e87a3844dccc57ebf0e75aacca7
a48965decf34624e2494c37fc424c36f57d1c427
"2022-05-04T15:33:33Z"
java
"2022-05-17T15:22:42Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,409
["x-pack/docs/en/security/authentication/saml-guide.asciidoc"]
[DOCS] SAML role mapping of groups does not parse comma separated lists to string array
### Description Following the documentation for setting up SAML integration with Elastic, it mentions using a "groups" attribute so the SAML server can pass a list of groups back to ElasticSearch/Kibana: https://www.elastic.co/guide/en/elasticsearch/reference/current/saml-guide-stack.html You will notice here that the role mapping is specifying the group name "finance-team". ``` PUT /_security/role_mapping/saml-finance { "roles": [ "finance_data" ], "enabled": true, "rules": { "all": [ { "field": { "realm.name": "saml1" } }, { "field": { "groups": "finance-team" } } ] } } ``` In my case, we were unable to get this to work because the SAML server is actually passing a string that contains a comma separated list of security groups that the user belongs to and not just one single group. Therefore, it appears that Elastic is not converting this string to an array. I do not know if this is by design but the purpose of opening this feature request is to document that you can actually use wildcards in the role mapping: ![image](https://user-images.githubusercontent.com/5861587/166572732-c8121586-bc54-453c-8be7-6ab9148d30f4.png) To document this better, I think these questions will need to be answered: - Is Elastic supposed to parse the "groups" string from SAML into an array if it detects it is a comma separated string? - Are the wildcards actually supported on the "text" type for the user field "groups". It works, but I didn't see it documented and wondering if it could stop working in the future. This is what the SAML server is returning to Elastic/Kibana (example): ``` "rows": [ { "name": "mail", "value": "[email protected]", "claimType": null, "attrNameFormat": "urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified", "responsePosition": "BODY", "checkRequest": false, "returnResponse": true, "getInput": false }, { "name": "nameid", "value": "[email protected]", "claimType": null, "attrNameFormat": "urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified", "responsePosition": "BODY", "checkRequest": false, "returnResponse": true, "getInput": false }, { "name": "groups", "value": "Organization Management,Discovery Management,Mailbox Import and Export Role,Domain Admins,Denied RODC Password Replication Group,VPN Users,Offer Remote Assistance Helpers,MSSQL - Admins,Systems Analyst", "claimType": null, "attrNameFormat": "urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified", "responsePosition": "BODY", "checkRequest": false, "returnResponse": true, "getInput": false } ], ```
https://github.com/elastic/elasticsearch/issues/86409
https://github.com/elastic/elasticsearch/pull/86770
db08d619989a3e9e67aff376239ef8e35a010eed
7f591b1217a5eafb4ab0ff7d7ebe528d0c6444bb
"2022-05-03T21:59:36Z"
java
"2022-05-17T13:36:55Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,383
["docs/changelog/87841.yaml", "docs/reference/modules/cluster/disk_allocator.asciidoc", "server/src/internalClusterTest/java/org/elasticsearch/cluster/routing/allocation/DiskThresholdMonitorIT.java", "server/src/main/java/org/elasticsearch/cluster/InternalClusterInfoService.java", "server/src/main/java/org/elasticsearch/cluster/routing/allocation/DiskThresholdMonitor.java"]
Auto unlocking after recovering from flood-stage watermark (high disk usage) not working with threshold_enabled disabled
### Elasticsearch Version Version: 8.1.3, Build: default/rpm/39afaa3c0fe7db4869a161985e240bd7182d7a07/2022-04-19T08:13:25.444693396Z, JVM: 18 ### Installed Plugins translations,licensing,globalSearch,globalSearchProviders,features,mapsEms,licenseApiGuard,usageCollection,taskManager,telemetryCollectionManager,telemetryCollectionXpack,kibanaUsageCollection,sharedUX,share,embeddable,uiActionsEnhanced,screenshotMode,screenshotting,banners,telemetry,newsfeed,fieldFormats,expressions,dataViews,charts,esUiShared,bfetch,data,savedObjects,presentationUtil,expressionShape,expressionRevealImage,expressionRepeatImage,expressionMetric,expressionImage,customIntegrations,home,searchprofiler,painlessLab,grokdebugger,management,watcher,licenseManagement,advancedSettings,spaces,security,savedObjectsTagging,reporting,lists,fileUpload,ingestPipelines,encryptedSavedObjects,dataEnhanced,cloud,snapshotRestore,eventLog,actions,alerting,triggersActionsUi,transform,stackAlerts,ruleRegistry,savedObjectsManagement,console,controls,graph,fleet,indexManagement,remoteClusters,crossClusterReplication,indexLifecycleManagement,visualizations,canvas,visTypeXy,visTypeVislib,visTypeVega,visTypeTimeseries,rollup,visTypeTimelion,visTypeTagcloud,visTypeTable,visTypeMetric,visTypeHeatmap,visTypeMarkdown,dashboard,maps,dashboardEnhanced,expressionTagcloud,expressionPie,visTypePie,expressionMetricVis,expressionHeatmap,expressionGauge,dataViewFieldEditor,lens,cases,timelines,discover,osquery,observability,discoverEnhanced,dataVisualizer,ml,uptime,securitySolution,infra,upgradeAssistant,monitoring,logstash,enterpriseSearch,apm,dataViewManagement ### Java Version _bundled_ ### OS Version Linux kibana.q-mex.net 3.10.0-1160.59.1.el7.x86_64 #1 SMP Wed Feb 23 16:47:03 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux ### Problem Description Some parts of the internet / stackoverflow / forums, advise to disable the `cluster.routing.allocation.disk.threshold_enabled` setting. This also disables the unlocking if the cluster is in a locked state, effectively creating a perma-lock (until someone changes the setting back). This means indices stay locked even after disk usage dropped significantly. This is especially bothersome for indices like `.security` and `.async-search` which do not allow manual intervention. (Not that big of a deal, having figured out now what caused my lockup. I wanted to create this GH issue for sake of documentation - I'd be OK if this were closed as `wontfix`) ### Steps to Reproduce - Have a high disk usage to cause the lockup - ideally in a single-node deployment - Get your disk usage back to normal levels (63% in my case) - See that nothing happens ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/86383
https://github.com/elastic/elasticsearch/pull/87841
a054accf5f3dfe0c138e46a2c583220b47d72437
806d2976aa3e2ec18a1674fecad7ae25af6c7f6b
"2022-05-03T08:48:17Z"
java
"2022-07-26T12:26:43Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,382
["libs/core/src/main/java/org/elasticsearch/core/internal/provider/EmbeddedImplClassLoader.java", "libs/core/src/test/java/org/elasticsearch/core/internal/provider/EmbeddedImplClassLoaderTests.java", "test/framework/src/main/java/org/elasticsearch/bootstrap/BootstrapForTesting.java", "test/framework/src/main/java/org/elasticsearch/test/PrivilegedOperations.java", "test/framework/src/main/java/org/elasticsearch/test/compiler/InMemoryJavaCompiler.java"]
[CI] EmbeddedImplClassLoaderTests classMethod failing
It seems this error is windows specific **Build scan:** https://gradle-enterprise.elastic.co/s/6emvfcapta7xc/tests/:libs:elasticsearch-core:test/org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests/classMethod **Reproduction line:** `null` **Applicable branches:** master **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests&tests.test=classMethod **Failure excerpt:** ``` java.io.IOException: Could not remove the following files (in the order of attempts): C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-031\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-031\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-031: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-031 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-030\foo.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-030\foo.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-030\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-030\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-030: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-030 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-029\foo.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-029\foo.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-029\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-029\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-029: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-029 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-028\foo.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-028\foo.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-028\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-028\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-028: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-028 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-027\foo.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-027\foo.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-027\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-027\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-027: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-027 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-026\foo.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-026\foo.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-026\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-026\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-026: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-026 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-025\foo.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-025\foo.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-025\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-025\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-025: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-025 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-024\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-024\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-024: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-024 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-023\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-023\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-023: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-023 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-022\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-022\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-022: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-022 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-021\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-021\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-021: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-021 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-020\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-020\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-020: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-020 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-019\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-019\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-019: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-019 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-018\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-018\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-018: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-018 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-017\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-017\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-017: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-017 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-016\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-016\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-016: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-016 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-015\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-015\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-015: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-015 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-014\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-014\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-014: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-014 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-013\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-013\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-013: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-013 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-012\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-012\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-012: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-012 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-011\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-011\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-011: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-011 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-010\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-010\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-010: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-010 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-009\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-009\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-009: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-009 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-008\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-008\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-008: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-008 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-007\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-007\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-007: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-007 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-006\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-006\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-006: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-006 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-005\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-005\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-005: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-005 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-004\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-004\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-004: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-004 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-003\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-003\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-003: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-003 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-002\impl.jar: java.nio.file.FileSystemException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-002\impl.jar: The process cannot access the file because it is being used by another process C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-002: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001\tempDir-002 C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001: java.nio.file.DirectoryNotEmptyException: C:\Users\jenkins\workspace\platform-support\86\libs\core\build\testrun\test\temp\org.elasticsearch.core.internal.provider.EmbeddedImplClassLoaderTests_36EE57C60F909609-001 at __randomizedtesting.SeedInfo.seed([36EE57C60F909609]:0) at org.apache.lucene.util.IOUtils.rm(IOUtils.java:341) at org.apache.lucene.tests.util.TestRuleTemporaryFilesCleanup.afterAlways(TestRuleTemporaryFilesCleanup.java:209) at com.carrotsearch.randomizedtesting.rules.TestRuleAdapter$1.afterAlways(TestRuleAdapter.java:31) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java: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/86382
https://github.com/elastic/elasticsearch/pull/86413
b71e53209f7c93e5b0ebafd643ffcccdbb375d40
e30a0698392a6fe873aa36d134a9b0abf0fe3d11
"2022-05-03T08:47:28Z"
java
"2022-05-06T08:53:05Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,377
["docs/changelog/86582.yaml", "x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/analytics/nested_top_metrics_sort.yml"]
[CI] XPackRestIT test {p0=analytics/nested_top_metrics_sort/terms order by top metrics size greater than 1 rewrite_to_filter_by_filter true} failing
**Build scan:** https://gradle-enterprise.elastic.co/s/gunr75fkh2a6q/tests/:x-pack:plugin:yamlRestTest/org.elasticsearch.xpack.test.rest.XPackRestIT/test%20%7Bp0=analytics%2Fnested_top_metrics_sort%2Fterms%20order%20by%20top%20metrics%20size%20greater%20than%201%20rewrite_to_filter_by_filter%20true%7D **Reproduction line:** `./gradlew ':x-pack:plugin:yamlRestTest' --tests "org.elasticsearch.xpack.test.rest.XPackRestIT.test {p0=analytics/nested_top_metrics_sort/terms order by top metrics size greater than 1 rewrite_to_filter_by_filter true}" -Dtests.seed=B86B6FF5AB8C1A8B -Dtests.locale=zh-Hant-TW -Dtests.timezone=Antarctica/Palmer -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%3Danalytics/nested_top_metrics_sort/terms%20order%20by%20top%20metrics%20size%20greater%20than%201%20rewrite_to_filter_by_filter%20true%7D **Failure excerpt:** ``` java.lang.AssertionError: Failure at [analytics/nested_top_metrics_sort:804]: Expected: <3> but: was <4> at __randomizedtesting.SeedInfo.seed([B86B6FF5AB8C1A8B:303F502F05707773]:0) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:503) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:472) 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: <3> but: was <4> 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:492) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:472) 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/86377
https://github.com/elastic/elasticsearch/pull/86582
854d9d8a15b1107f6e08afd9c850bb0fbfeaf25c
29552f8484394822f387a22d0ffbbf218fe840ce
"2022-05-03T07:32:07Z"
java
"2022-05-09T18:54:51Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,352
["distribution/tools/plugin-cli/src/test/java/org/elasticsearch/plugins/cli/ListPluginsCommandTests.java", "docs/changelog/86408.yaml", "server/src/main/java/org/elasticsearch/plugins/PluginInfo.java"]
Support Windows line separators in PluginInfo.toString
We have hardcoded Unix-style newlines in PluginInfo.toString. We should use `System.lineSeparator()` instead.
https://github.com/elastic/elasticsearch/issues/86352
https://github.com/elastic/elasticsearch/pull/86408
286cb2b26c5dd37d6cca8973fa684d885c1f65e9
e71efbd21119f57ef2a0f5cfd6bf4e3c9427ca89
"2022-05-02T16:05:41Z"
java
"2022-05-04T13:00:39Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,334
["docs/reference/setup/add-nodes.asciidoc"]
[Docs] "Add and remove nodes" docs should link to security "Enroll additional nodes" docs
### Description In the **Set up Elasticsearch** section of the docs, there is a page for [Add and remove nodes in your cluster](https://www.elastic.co/guide/en/elasticsearch/reference/current/add-elasticsearch-nodes.html). It has these instructions: > 1. Set up a new Elasticsearch instance. > 2. Specify the name of the cluster with the cluster.name setting in elasticsearch.yml. For example, to add a node to the logging-prod cluster, add the line cluster.name: "logging-prod" to elasticsearch.yml. > 3. Start Elasticsearch. The node automatically discovers and joins the specified cluster. However, if security (including TLS between nodes) is enabled (which it is by default) those instructions will not work, because each node will generate its own set of certificates. Those steps should include some sort of link to the relevant security docs to [Enroll additional nodes in your cluster](https://www.elastic.co/guide/en/elasticsearch/reference/current/configuring-stack-security.html#stack-enroll-nodes)
https://github.com/elastic/elasticsearch/issues/86334
https://github.com/elastic/elasticsearch/pull/89393
65b05f858e3ea32f5df3f31fce55e489127cd158
2fad061394f62584f18693c985ad0a8b8b0c6db8
"2022-05-02T07:56:22Z"
java
"2022-08-25T12:51:03Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,273
["server/src/main/java/org/elasticsearch/search/aggregations/AggregationErrors.java", "server/src/main/java/org/elasticsearch/search/aggregations/support/AggregationPath.java", "server/src/test/java/org/elasticsearch/search/aggregations/support/AggregationPathTests.java"]
AggregationPath parsing throws the wrong exception type status code
When parsing `AggregationPath` strings, if we hit an error, we throw `AggregationExecutionException`, which is a 500 class error. But 500 class errors usually mean that retrying the request might improve the situation, where in this case we want to indicate that the user should not retry with the same request (they need to fix the path expression).
https://github.com/elastic/elasticsearch/issues/86273
https://github.com/elastic/elasticsearch/pull/86532
a13b050911ec12327686b2d0befa1934b8622dbd
a052a4b712e092e1a726994aeeb74830390515e4
"2022-04-28T19:40:28Z"
java
"2022-05-09T12:19:09Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,267
["docs/changelog/86191.yaml", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/termsenum/action/TransportTermsEnumAction.java", "x-pack/plugin/mapper-constant-keyword/src/main/java/org/elasticsearch/xpack/constantkeyword/mapper/ConstantKeywordFieldMapper.java", "x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/terms_enum/10_basic.yml"]
Terms enum API throws null pointer exception when remote shards fail
### Elasticsearch Version 8.3.0 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version arm64 ### Problem Description When using the `_terms_enum` API, if remote clusters return failures, but the local cluster doesn't, a null exception is thrown: ``` { "error": { "root_cause": [ { "type": "null_pointer_exception", "reason": "Cannot invoke \"java.util.List.add(Object)\" because \"shardFailures\" is null" } ], "type": "null_pointer_exception", "reason": "Cannot invoke \"java.util.List.add(Object)\" because \"shardFailures\" is null" }, "status": 500 } ``` ### Steps to Reproduce Call the _terms_enum API with a remote cluster that will return failures, e.g. because of this bug: https://github.com/elastic/elasticsearch/issues/86187 ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/86267
https://github.com/elastic/elasticsearch/pull/86191
b323e8e1db5ab0efda60c8b12e6658807fb20da3
bc5cfcf4b2f23801678d9b5bab59a2d5c185d517
"2022-04-28T13:44:36Z"
java
"2022-04-29T13:12:11Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,249
["docs/changelog/86315.yaml", "server/src/main/java/org/elasticsearch/transport/ClusterConnectionManager.java", "server/src/test/java/org/elasticsearch/transport/ClusterConnectionManagerTests.java"]
Incomplete remote response handler after transport close in integration tests
### CI Link https://gradle-enterprise.elastic.co/s/ma2rjwewae6hi ### Repro line ./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.action.termvectors.MultiTermVectorsIT" -Dtests.seed=D2D36E011E6F103B -Dtests.locale=en-US -Dtests.timezone=UTC -Druntime.java=17 ### Does it reproduce? No ### Applicable branches master ### Failure history _No response_ ### Failure excerpt I don't think the failed test suite (`MultiTermVectorsIT`) has anything to do with this failure. ``` Apr 28, 2022 7:07:07 AM com.carrotsearch.randomizedtesting.ThreadLeakControl checkThreadLeaks |   -- | --   | 2> SEVERE: 73 threads leaked from SUITE scope at org.elasticsearch.action.termvectors.MultiTermVectorsIT: |     | 2> 1) Thread[id=308, name=elasticsearch[node_s3][generic][T#1], state=WAITING, group=TGRP-MultiTermVectorsIT] |     | 2> at [email protected]/jdk.internal.misc.Unsafe.park(Native Method) |     | 2> at [email protected]/java.util.concurrent.locks.LockSupport.park(LockSupport.java:341) |     | 2> at [email protected]/java.util.concurrent.LinkedTransferQueue$Node.block(LinkedTransferQueue.java:470) |     | 2> at [email protected]/java.util.concurrent.ForkJoinPool.unmanagedBlock(ForkJoinPool.java:3463) |     | 2> at [email protected]/java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3434) |     | 2> at [email protected]/java.util.concurrent.LinkedTransferQueue.awaitMatch(LinkedTransferQueue.java:669) |     | 2> at [email protected]/java.util.concurrent.LinkedTransferQueue.xfer(LinkedTransferQueue.java:616) |     | 2> at [email protected]/java.util.concurrent.LinkedTransferQueue.take(LinkedTransferQueue.java:1286) |     | 2> at [email protected]/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1062) |     | 2> at [email protected]/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1122) |     | 2> at [email protected]/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) |     | 2> at [email protected]/java.lang.Thread.run(Thread.java:833) ``` And anther relevant snippet: ``` java.lang.RuntimeException: file handle leaks: [FileChannel(/dev/shm/elastic+elasticsearch+main+intake+multijob+part1/server/build/testrun/internalClusterTest/temp/org.elasticsearch.action.termvectors.MultiTermVectorsIT_D2D36E011E6F103B-001/tempDir-002/node_s2/_state/write.lock), FileChannel(/dev/shm/elastic+elasticsearch+main+intake+multijob+part1/server/build/testrun/internalClusterTest/temp/org.elasticsearch.action.termvectors.MultiTermVectorsIT_D2D36E011E6F103B-001/tempDir-002/node_s0/_state/write.lock), FileChannel(/dev/shm/elastic+elasticsearch+main+intake+multijob+part1/server/build/testrun/internalClusterTest/temp/org.elasticsearch.action.termvectors.MultiTermVectorsIT_D2D36E011E6F103B-001/tempDir-002/node_s1/node.lock), FileChannel(/dev/shm/elastic+elasticsearch+main+intake+multijob+part1/server/build/testrun/internalClusterTest/temp/org.elasticsearch.action.termvectors.MultiTermVectorsIT_D2D36E011E6F103B-001/tempDir-002/node_s2/_state/_m.cfs), FileChannel(/dev/shm/elastic+elasticsearch+main+intake+multijob+part1/server/build/testrun/internalClusterTest/temp/org.elasticsearch.action.termvectors.MultiTermVectorsIT_D2D36E011E6F103B-001/tempDir-002/node_s1/_state/write.lock), FileChannel(/dev/shm/elastic+elasticsearch+main+intake+multijob+part1/server/build/testrun/internalClusterTest/temp/org.elasticsearch.action.termvectors.MultiTermVectorsIT_D2D36E011E6F103B-001/tempDir-002/node_s3/node.lock), FileChannel(/dev/shm/elastic+elasticsearch+main+intake+multijob+part1/server/build/testrun/internalClusterTest/temp/org.elasticsearch.action.termvectors.MultiTermVectorsIT_D2D36E011E6F103B-001/tempDir-002/node_s2/node.lock), FileChannel(/dev/shm/elastic+elasticsearch+main+intake+multijob+part1/server/build/testrun/internalClusterTest/temp/org.elasticsearch.action.termvectors.MultiTermVectorsIT_D2D36E011E6F103B-001/tempDir-002/node_s0/node.lock)] |   -- | --   | at org.apache.lucene.tests.mockfile.LeakFS.onClose(LeakFS.java:63) |     | at org.apache.lucene.tests.mockfile.FilterFileSystem.close(FilterFileSystem.java:70) |     | at org.apache.lucene.tests.mockfile.FilterFileSystem.close(FilterFileSystem.java:71) |     | at org.apache.lucene.tests.util.TestRuleTemporaryFilesCleanup.afterAlways(TestRuleTemporaryFilesCleanup.java:223) |     | at com.carrotsearch.randomizedtesting.rules.TestRuleAdapter$1.afterAlways(TestRuleAdapter.java:31) |     | at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:43) |     | at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) |     | at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) |     | at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) |     | at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) |     | at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) |     | at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) |     | at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) |     | at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java: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.Exception |     | at org.apache.lucene.tests.mockfile.LeakFS.onOpen(LeakFS.java:46) |     | at org.apache.lucene.tests.mockfile.HandleTrackingFS.callOpenHook(HandleTrackingFS.java:82) |     | at org.apache.lucene.tests.mockfile.HandleTrackingFS.newFileChannel(HandleTrackingFS.java:202) |     | at org.apache.lucene.tests.mockfile.HandleTrackingFS.newFileChannel(HandleTrackingFS.java:171) |     | at java.base/java.nio.channels.FileChannel.open(FileChannel.java:298) |     | at java.base/java.nio.channels.FileChannel.open(FileChannel.java:357) |     | at org.apache.lucene.store.NativeFSLockFactory.obtainFSLock(NativeFSLockFactory.java:112) |     | at org.apache.lucene.store.FSLockFactory.obtainLock(FSLockFactory.java:43) |     | at org.apache.lucene.store.BaseDirectory.obtainLock(BaseDirectory.java:44) |     | at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:947) |     | at org.elasticsearch.gateway.PersistedClusterStateService.createIndexWriter(PersistedClusterStateService.java:254) |     | at org.elasticsearch.gateway.PersistedClusterStateService.createWriter(PersistedClusterStateService.java:216) |     | at org.elasticsearch.gateway.GatewayMetaState$LucenePersistedState.<init>(GatewayMetaState.java:448) |     | at org.elasticsearch.gateway.GatewayMetaState.start(GatewayMetaState.java:131) |     | at org.elasticsearch.node.Node.start(Node.java:1167) |     | at org.elasticsearch.test.InternalTestCluster$NodeAndClient.startNode(InternalTestCluster.java:982) |     | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) |     | at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) |     | at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:714) |     | 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 ``` Link to logs: https://gradle-enterprise.elastic.co/s/ma2rjwewae6hi/console-log#L9010
https://github.com/elastic/elasticsearch/issues/86249
https://github.com/elastic/elasticsearch/pull/86315
6b8e141272593cb39a59f2a6c258d04ce8d729a4
22136f056cff00d714cdec2e60fe03605cc60004
"2022-04-28T07:32:35Z"
java
"2022-05-02T07:49:30Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,203
["docs/changelog/89557.yaml", "docs/reference/ilm/actions/ilm-rollover.asciidoc", "docs/reference/settings/ilm-settings.asciidoc", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/LifecycleSettings.java", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/WaitForRolloverReadyStep.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/WaitForRolloverReadyStepTests.java", "x-pack/plugin/ilm/qa/multi-node/src/javaRestTest/java/org/elasticsearch/xpack/ilm/actions/RolloverActionIT.java", "x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm/IndexLifecycle.java"]
Prevent ILM from spuriously rolling over (many) empty indices
### Description This has been brought up a few times in different forms, see https://github.com/elastic/elasticsearch/issues/46161, https://github.com/elastic/elasticsearch/issues/73349, https://github.com/elastic/elasticsearch/issues/83039, https://github.com/elastic/elasticsearch/issues/85054. Any ILM policy with a `max_age` associated with the `rollover` action could trigger this scenario, but in order to talk about something concrete, I'll use metricbeat as an example (double emphasizing, though, this isn't unique to metricbeat, it's just the nature of the way `rollover` currently works with a `max_age`). With a test 8.1.3 Elasticsearch cluster, I ran `metricbeat-8.1.2` for a few seconds and then stopped it, and then `metricbeat-8.1.3` for a bit longer. The default `metricbeat` policy has rollover with `"max_age" : "30d"` (30 days) but in order to illustrate this problem better, I've set that to `"1m"` (1 minute) instead: ``` PUT /_cluster/settings { "persistent": { "indices.lifecycle.poll_interval": "5s" } } PUT _ilm/policy/metricbeat { "policy" : { "phases" : { "hot" : { "min_age" : "0ms", "actions" : { "rollover" : { "max_size" : "50gb", "max_age" : "1m" } } } } } } ``` After a few minutes, my cluster looks like this: ``` GET _cat/indices/.ds-metricbeat-*?s=index yellow open .ds-metricbeat-8.1.2-2022.04.26-000001 GBqDAprYSl2NmFzi81n9Ug 1 1 1134 0 652.2kb 652.2kb yellow open .ds-metricbeat-8.1.2-2022.04.26-000002 Ybd4SCiWT0-7W0v9zKPR4A 1 1 0 0 225b 225b yellow open .ds-metricbeat-8.1.2-2022.04.26-000003 3_9OmFkOSKaEfF_J-_D9TA 1 1 0 0 225b 225b yellow open .ds-metricbeat-8.1.2-2022.04.26-000004 4olQItwcTtCOWrBotcqoLw 1 1 0 0 225b 225b yellow open .ds-metricbeat-8.1.2-2022.04.26-000005 N9_gYkcORWSVfacUwnDegw 1 1 0 0 225b 225b yellow open .ds-metricbeat-8.1.3-2022.04.26-000001 kWW-N_bfRbO0vMR4z3F72g 1 1 862 0 639.2kb 639.2kb yellow open .ds-metricbeat-8.1.3-2022.04.26-000002 qzu-L-zZQqqm-6GQAZMtgA 1 1 235 0 431.2kb 431.2kb yellow open .ds-metricbeat-8.1.3-2022.04.26-000003 iW68NzFyTv-CCAg3Rsfj4A 1 1 265 0 494kb 494kb yellow open .ds-metricbeat-8.1.3-2022.04.26-000004 NaIa-gUjShKpEHzNcAxA3w 1 1 234 0 451.7kb 451.7kb yellow open .ds-metricbeat-8.1.3-2022.04.26-000005 lDhzxqtdR8miPnqvsf7HDQ 1 1 271 0 595.8kb 595.8kb ``` That is, for a little while, the first writer (metricbeat version 8.1.2) wrote documents, and then it stopped and was upgraded and replaced by the second writer (metricbeat version 8.1.3). Each of those writers uses a versioned datastream (`metricbeat-8.1.2` and `metricbeat-8.1.3` respectively). The problem is easy to see -- notice that we're getting a new empty (0 document) `.ds-metricbeat-8.1.2-[...]` index every minute, and that we'll keep accumulating them forever. ILM doesn't have any special logic around empty indices like this, i.e. empty indices are treated the same as non-empty indices as far as ILM is concerned. In this simple scenario, we know that the `metricbeat-8.1.2` datastream is done now, and can be retired. However, there's no particular point in time where Elasticsearch itself or some individual metricbeat process could know that. I'm using just one metricbeat writer, but I could be running one on each of N hosts. No one writer process in this scenario knows that it is special and should "turn off the lights when it's done". To further complicate matters, maybe I have a weekly batch process which will run on Sunday evening and write some logs after a long quiet period (and its logs are still being monitored by metricbeat version 8.1.2)-- when it does so we could end up with more data flowing into the current `metricbeat-8.1.2` write index. Let's call that the "sporadic writer" case. In that case, we'd end up with periods of no data flowing in and the accumulation of empty indices, followed by one or more non-empty indices, and then back to accumulating empty indices again. ILM doesn't know whether there's a sporadic writer out there or not, and ignorant of whether more documents will be coming one day, it dutifully executes the policy, rolling over the now defunct `metricbeat-8.1.2` datastream every minute and leaving a trail of empty `.ds-metricbeat-8.1.2-[...]` indices in its wake. An additional note: my illustration here is datastream specific, but in the broad strokes this issue could also exist in a pre-datastream indexing strategy built around aliases. It would be most excellent if we were able to solve both the datastream and alias -based versions of this empty index problem (but reserving a degree of freedom, I don't think the solution must necessarily be precisely the same in both cases).
https://github.com/elastic/elasticsearch/issues/86203
https://github.com/elastic/elasticsearch/pull/89557
eddfc250e8f1aeb81275fcde0f97ab995ebb7ef7
21356162eb6817c5af4a3678fc49da7b7ace4332
"2022-04-26T22:18:11Z"
java
"2022-09-19T22:37:41Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,136
["docs/changelog/90309.yaml", "server/src/main/java/org/elasticsearch/search/SearchUtils.java", "server/src/test/java/org/elasticsearch/search/SearchUtilsTests.java"]
The maximum number of clauses automatically gets set to 1024 when heap size is less than 1GB
The code to compute the maximum number of clauses looks like this: ```java public static int calculateMaxClauseValue(ThreadPool threadPool) { int searchThreadPoolSize = threadPool.info(ThreadPool.Names.SEARCH).getMax(); long heapSize = JvmStats.jvmStats().getMem().getHeapMax().getGb(); return calculateMaxClauseValue(searchThreadPoolSize, heapSize); } static int calculateMaxClauseValue(long threadPoolSize, double heapInGb) { if (threadPoolSize <= 0 || heapInGb <= 0) { return DEFAULT_MAX_CLAUSE_COUNT; } // In a worst-case scenario, each clause may end up using up to 16k of memory // to load postings, positions, offsets, impacts, etc. So we calculate the // maximum number of clauses we can support in a single thread pool by // dividing the heap by 16k (or the equivalent, multiplying the heap in GB by // 64k), and then divide that by the number of possible concurrent search // threads. int maxClauseCount = (int) (heapInGb * 65_536 / threadPoolSize); return Math.max(DEFAULT_MAX_CLAUSE_COUNT, maxClauseCount); } ``` @nkhristinin reported the following surprising behavior. Say you have 1 vCPU and 2 search threads, - If you have 1GB of heap to the JVM then `maxClauseCount` will be 32,768. - But if you give slightly less than 1GB to the heap, e.g. 1023MB, then `long heapSize` will be 0 because of the cast performed by the `getGB()` call, and `maxClauseCount` will be set to 1,024 because ef the `heapInGb <= 0` condition. It might not be a bad thing to be more careful with small heaps, but the code doesn't suggest that this behavior is intentional.
https://github.com/elastic/elasticsearch/issues/86136
https://github.com/elastic/elasticsearch/pull/90309
fb762487fd39a351eba78ff840e81f56ad93bf12
9d11e2168e2b56b48f4c596d91b35cf5184f2429
"2022-04-25T12:49:42Z"
java
"2022-09-29T14:30:13Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,121
["docs/reference/ccr/index.asciidoc"]
[DOCS] Document Cross Cluster Replication (CCR) limitations
### Elasticsearch Version 7.x, 8.x ### Problem Description Given the increased adoption of CCR, it seems it would make sense to provide a dedicated section or page to document any kind of limitations. For example, it is not clear whether system indices like `.security*` can or should be replicated or not. One might think that CCR is an easy way to replicate Kibana saved objects, Fleet/APM settings, and similar and given that `leader_index_exclusion_patterns` seems to be empty by default, it is not clear whether it is discouraged to replicate such system indices or not. For example https://github.com/elastic/enhancements/issues/11724
https://github.com/elastic/elasticsearch/issues/86121
https://github.com/elastic/elasticsearch/pull/87348
9660e8b1c2475a5a6c6f9d4fe95d048b0656c434
14ef513f2c6906f407c6be7dfeea784c42b725bd
"2022-04-25T07:10:25Z"
java
"2022-10-17T20:05:29Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,111
["modules/data-streams/build.gradle", "modules/data-streams/src/yamlRestTest/resources/rest-api-spec/test/data_stream/150_tsdb.yml", "server/src/main/java/org/elasticsearch/action/admin/cluster/state/TransportClusterStateAction.java", "server/src/main/java/org/elasticsearch/cluster/metadata/DataStream.java", "server/src/test/java/org/elasticsearch/cluster/metadata/DataStreamTests.java"]
DataStream: cat indices API in time_series mode is NPE
### Elasticsearch Version master ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version all ### Problem Description cat indices API in time_series mode is NPE, The reproduce steps is below: ### Steps to Reproduce ``` # step 1 PUT _index_template/test { "index_patterns": [ "test" ], "template": { "settings": { "index.routing_path": "foo" }, "mappings": { "properties": { "foo": { "type": "keyword", "time_series_dimension": true } } } }, "data_stream": { "index_mode": "time_series" } } # step 2 PUT _data_stream/test # step 3 GET _cluster/state/metadata/test GET _cat/indices/test?v ```
https://github.com/elastic/elasticsearch/issues/86111
https://github.com/elastic/elasticsearch/pull/86112
08c3bda45a63519007fa9f9437e2d3fd5a99618e
1e3ad0d3548fe4eb49014c55cbf59762d514e0cd
"2022-04-24T11:38:18Z"
java
"2022-04-28T06:50:24Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,058
["docs/changelog/86089.yaml", "x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/EnrichPolicyRunner.java", "x-pack/plugin/enrich/src/test/java/org/elasticsearch/xpack/enrich/EnrichPolicyRunnerTests.java"]
Null pointer exception executing a range enrich policy with an "object" field
### Elasticsearch Version 8.1.1 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version Darwin Kernel Version 21.4.0 ### Problem Description Under certain conditions, executing a range enrich policy on a field with wrong datatype gives a NPE instead of a more comprehensible error. ### Steps to Reproduce ``` PUT enrich_index { "mappings": { "properties": { "object": { "properties": { "field": { "type": "keyword" } } } } } } PUT /_enrich/policy/enrich_policy { "range": { "indices": "enrich_index", "match_field": "object", "enrich_fields": ["enrich_field"] } } POST /_enrich/policy/enrich_policy/_execute ``` Executing the policy returns: ```json { "error" : { "root_cause" : [ { "type" : "null_pointer_exception", "reason" : "Cannot invoke \"String.hashCode()\" because \"<local7>\" is null" } ], "type" : "null_pointer_exception", "reason" : "Cannot invoke \"String.hashCode()\" because \"<local7>\" is null" }, "status" : 500 } ``` Interestingly enough, if the enrich index were created like this (without subfield in `object`): ``` PUT enrich_index { "mappings": { "properties": { "object": { "properties": { } } } } } ``` Executing the policy would return a much better error: ```json { "error" : { "root_cause" : [ { "type" : "exception", "reason" : "Field 'object' has type [object] which doesn't appear to be a range type" } ], "type" : "exception", "reason" : "Field 'object' has type [object] which doesn't appear to be a range type" }, "status" : 500 } ``` ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/86058
https://github.com/elastic/elasticsearch/pull/86089
fbe1c59a7b5b960c7a11f7129b9980f16ae69cb8
f0a86b5e38f53e4a233148c5eb964332c8f8fb6a
"2022-04-21T07:34:52Z"
java
"2022-05-02T14:41:26Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,055
["docs/changelog/86580.yaml", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/DataTiersUsageTransportAction.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/DataTiersUsageTransportActionTests.java"]
Data tiers usage is 0 for partially mounted indices
### Elasticsearch Version 8.1.2 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version ESS on Azure ### Problem Description The `_xpack/usage` API reports the size of the data set per data tier. However, it uses the local disk size as the metric it reports on and this is 0 (zero) for partially mounted indices, hiding the size of the data set mounted on the frozen tier. We should switch to using the `total_data_set_size` metric that was introduced when we added the frozen tier/partially mounted indices. ### Steps to Reproduce Mount a partially mounted index on a dedicated frozen tier. Use the `_xpack/usage` API and see that no (or very little) data is reported on frozen tier. ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/86055
https://github.com/elastic/elasticsearch/pull/86580
7db1c807f2deb764e6519f8b47ea5713f27b5a13
d5a45867bcce65eb8251576bd0c18a36736bb296
"2022-04-21T06:49:19Z"
java
"2022-05-12T15:25:48Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,044
["docs/changelog/86458.yaml", "docs/reference/search/search-vector-tile-api.asciidoc", "rest-api-spec/src/main/resources/rest-api-spec/api/search_mvt.json", "x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/vector-tile/10_basic.yml", "x-pack/plugin/vector-tile/src/javaRestTest/java/org/elasticsearch/xpack/vectortile/VectorTileRestIT.java", "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"]
Add label features to vector tile search API response
### Description There are [2 labeling issues in Kibana when using Vector tiles](https://github.com/elastic/kibana/issues/130675). 1) Multiple labels for MultiPolygon and MultiLineString geometries. <img width="500" alt="Screen Shot 2022-04-20 at 9 32 26 AM" src="https://user-images.githubusercontent.com/373691/164268037-0d6088f3-5bd6-4e0e-9541-d551091af843.png"> 2) Multiple labels for features that span tiles. For example, hexagons that span tile boundaries. <img width="500" alt="Screen Shot 2022-04-20 at 9 35 52 AM" src="https://user-images.githubusercontent.com/373691/164268658-dfdd6b0e-10b7-46da-a1e9-15e99044fc38.png"> The recommended solution is to provide features for labels, where the feature geometry is the label location. To resolve these issues, I propose adding a new parameter, `withLabels`, to `_mvt` API that when `true` would add label features to the response. Label features could be added in 2 ways 1) another layer, "label", in the response. The "label" layer will contain Point feature for each hit and agg feature. For agg features, the Point feature will be the center of the hexagon. For hit features, the Point feature will be the centroid of the largest polygon for MultiPolygon and the centroid for the longest line for MultiLineString. 2) Include label feature in existing "hits" and "aggs" layers. Give label feature a property like "__EsIsLabelFeature" so filter expressions can be used exclude features in style rules. Kibana is creating these centroid features today for GeoJSON sources. Kibana includes label features in GeoJSON feature collection and uses filters to exclude features in style rules (option 2 above) cc @jsanz @thomasneirynck
https://github.com/elastic/elasticsearch/issues/86044
https://github.com/elastic/elasticsearch/pull/86458
acc22de4fd6ec6a5f11ac6afb981fd261eda7af4
db08d619989a3e9e67aff376239ef8e35a010eed
"2022-04-20T15:42:12Z"
java
"2022-05-17T13:33:29Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
86,041
["client/rest/src/main/java/org/elasticsearch/client/RestClient.java", "client/rest/src/test/java/org/elasticsearch/client/RestClientMultipleHostsIntegTests.java", "docs/changelog/87248.yaml"]
Low level rest client retrying scrolls, skipping pages
### Elasticsearch Version Doesn't matter ### Installed Plugins _No response_ ### Java Version all ### OS Version doesn't matter ### Problem Description When you send a `scroll` request to the low level rest client it uses it's standard retry mechanism which catches all errors and just retries against another ES instance. The trouble with that is that you *can't* retry a scroll - it generally consumes state on the server and moves to the next page. ### Steps to Reproduce Scroll with low level rest client. ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/86041
https://github.com/elastic/elasticsearch/pull/87248
ddcaff0cbbba2166d22caf94b4738d80ca62cbfc
4d2929bb281fb984c0176a59f76a886552b95ff7
"2022-04-20T13:52:46Z"
java
"2022-05-31T14:48:41Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,992
["build-tools-internal/src/main/resources/forbidden/jdk-deprecated.txt"]
Build fails with JDK 18 - Method not found while parsing signature: java.awt.color.ICC_Profile#finalize()
``` $./gradlew precommit ... FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':client:client-benchmark-noop-api-plugin:forbiddenApisMain'. > Parsing signatures failed: Method not found while parsing signature: java.awt.color.ICC_Profile#finalize() ... Publishing build scan... https://gradle-enterprise.elastic.co/s/rhm5f4imnnae2 ``` JDK 18 removed a number of deprecated-for-removal empty finalize() in java.desktop module, see https://bugs.openjdk.java.net/browse/JDK-8273103 The jdk-deprecated forbidden APIs list should be updated to reflect this.
https://github.com/elastic/elasticsearch/issues/85992
https://github.com/elastic/elasticsearch/pull/85994
af7525e1f05bfb0168bbc17f2acc7d1844944998
6532032dd94a1a4a8a97976f15d4b496839ad961
"2022-04-19T10:07:50Z"
java
"2022-04-22T18:51:09Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,946
["docs/reference/analysis/tokenfilters/keep-types-tokenfilter.asciidoc"]
Keyword tokenizer + keep_types filter causing empty string to be returned as only token
### Elasticsearch Version 8.1.2 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version latest linux docker version ### Problem Description Using a custom analyzer with the tokenizer set to "keyword", and putting a "keep_types" filter in it, result in no tokens. This should return a single token of "1234567890", but instead it returns just an empty string: "" If I replace the tokenizer with 'standard', I get the correct token back: "1234567890" Changing the types to ALPHANUM and/or changing the text to include letters, words, or spaces, all still result in an empty string returned. It is important to me to use the keyword tokenizer instead of the standard tokenizer because I want only 1 token (the entire string) being passed to all the filters. Using the standard tokenizer would result in a string like "1234 AB 56789" being turned into 3 tokens before it gets passed to the filters, which I don't want. ### Steps to Reproduce `POST _analyze` ```json { "tokenizer": "keyword", "filter": [ { "type": "keep_types", "types": [ "<NUM>" ] } ], "text": "1234567890" } ``` Returns an empty token instead of "1234567890" ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/85946
https://github.com/elastic/elasticsearch/pull/87553
29460adf7e2863d2deb2e4ee2791a01e401f5fdc
b5a635cae9e056a25df0cc694e8abf58a7199fad
"2022-04-16T10:12:01Z"
java
"2022-06-13T09:28:32Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,879
["build-tools-internal/build.gradle", "client/test/build.gradle", "test/framework/build.gradle"]
[CI] RoleReferenceIntersectionTests testBuildRoleForListOfRoleReferences failing
Looks like an issue with Mockito on Java 19 when trying to use `thenCalRealMethod()` on an interface default method. Looks like there was a similar regression with Java 17: https://github.com/mockito/mockito/issues/2587 Looks like the latest byte buddy release (1.12.9) supports Java 19 so it might just be a case of bumping that? **Build scan:** https://gradle-enterprise.elastic.co/s/cqspj36nvbq3w/tests/:x-pack:plugin:core:test/org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersectionTests/testBuildRoleForListOfRoleReferences **Reproduction line:** `./gradlew ':x-pack:plugin:core:test' --tests "org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersectionTests.testBuildRoleForListOfRoleReferences" -Dtests.seed=59168229211915B9 -Dtests.locale=sr-BA -Dtests.timezone=Pacific/Port_Moresby -Druntime.java=19` **Applicable branches:** master **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersectionTests&tests.test=testBuildRoleForListOfRoleReferences **Failure excerpt:** ``` org.mockito.exceptions.base.MockitoException: Cannot call abstract real method on java object! Calling real methods is only possible when mocking non abstract method. //correct example: when(mockOfConcreteClass.nonAbstractMethod()).thenCallRealMethod(); at __randomizedtesting.SeedInfo.seed([59168229211915B9:66D3411D71C06407]:0) at org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.lambda$buildRole$0(RoleReferenceIntersection.java:45) at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162) at org.elasticsearch.action.support.GroupedActionListener.onResponse(GroupedActionListener.java:55) at org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersectionTests.lambda$testBuildRoleForListOfRoleReferences$1(RoleReferenceIntersectionTests.java:62) at org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.lambda$buildRole$1(RoleReferenceIntersection.java:50) at java.util.ArrayList.forEach(ArrayList.java:1511) at org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.buildRole(RoleReferenceIntersection.java:50) at org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersectionTests.testBuildRoleForListOfRoleReferences(RoleReferenceIntersectionTests.java:66) at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.lang.reflect.Method.invoke(Method.java:578) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java: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:828) ```
https://github.com/elastic/elasticsearch/issues/85879
https://github.com/elastic/elasticsearch/pull/85881
e307f3222f89e00bf82a008757b5e7eb05a2e3e9
0b999c399eb282efa151df116c78eeec3e616e4f
"2022-04-13T21:05:51Z"
java
"2022-04-14T20:19:19Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,851
["docs/reference/eql/eql.asciidoc", "docs/reference/modules/indices/circuit_breaker.asciidoc", "docs/reference/settings/ml-settings.asciidoc"]
[DOCS] Consolidate CircuitBreakers
👋🏼 I see most CircuitBreakers returned via [GET Node Stats](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-stats.html) `GET _nodes/stats?filter_path=nodes.*.breakers` (v7.17.2, v8.1.2) are listed in the main Elasticsearch [CircuitBreaker Doc](https://www.elastic.co/guide/en/elasticsearch/reference/current/circuit-breaker.html). However, the following are randomly scattered with their parent topic instead of consolidated with the rest. - [`eql_sequence`](https://www.elastic.co/guide/en/elasticsearch/reference/current/eql.html#eql-circuit-breaker) - [`model_inference`](https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-settings.html#model-inference-circuit-breaker) Would y'all consider consolidating these from their topics (still referenced/linked) into the main Circuit Breaker page to ease discoverability? 🙏🏼
https://github.com/elastic/elasticsearch/issues/85851
https://github.com/elastic/elasticsearch/pull/90809
bd97e2bca06c9f524ea359aecb0d848308f6abc7
34ff7a9d98a80e15ca25e6707153be7c45efa9e4
"2022-04-13T02:28:15Z"
java
"2022-10-14T11:33:52Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,829
["docs/changelog/85830.yaml", "server/src/main/java/org/elasticsearch/cluster/routing/allocation/ShardsAvailabilityHealthIndicatorService.java", "server/src/main/java/org/elasticsearch/health/HealthIndicatorImpact.java", "server/src/main/java/org/elasticsearch/health/ImpactArea.java", "server/src/test/java/org/elasticsearch/cluster/routing/allocation/ShardsAvailabilityHealthIndicatorServiceTests.java", "server/src/test/java/org/elasticsearch/health/HealthIndicatorResultTests.java", "server/src/test/java/org/elasticsearch/health/HealthIndicatorServiceTests.java"]
Add `impact_areas` field to impacts
eg ``` "impacts": [ { "severity": 3, "description": "Searches might return slower than usual. Fewer redundant copies of the data exist on 2 indices [.ds-logslogslogs-2022.03.29-000001, my-index-000001].", "impact_areas": [ "search" ] } ] ```
https://github.com/elastic/elasticsearch/issues/85829
https://github.com/elastic/elasticsearch/pull/85830
4f58cf24f819f162ad2ec286c4bc2f6b956339f9
02fc46a9a226cb0c16faa60db4f818af1a4fca9b
"2022-04-12T16:50:39Z"
java
"2022-04-13T07:36:50Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,806
["x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/deprecation/10_basic.yml"]
[CI] XPackRestIT test {p0=deprecation/10_basic/Test Deprecations} failing
**Build scan:** https://gradle-enterprise.elastic.co/s/hfmf3gkkdknhw/tests/:x-pack:plugin:yamlRestTest/org.elasticsearch.xpack.test.rest.XPackRestIT/test%20%7Bp0=deprecation%2F10_basic%2FTest%20Deprecations%7D **Reproduction line:** `./gradlew ':x-pack:plugin:yamlRestTest' --tests "org.elasticsearch.xpack.test.rest.XPackRestIT.test {p0=deprecation/10_basic/Test Deprecations}" -Dtests.seed=5DAF017ED17971B0 -Dtests.locale=de -Dtests.timezone=Pacific/Guam -Druntime.java=17` **Applicable branches:** master, 8.2, 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%3Ddeprecation/10_basic/Test%20Deprecations%7D **Failure excerpt:** ``` java.lang.AssertionError: Failure at [deprecation/10_basic:13]: field [node_settings] doesn't have length [0] Expected: <0> but: was <1> at __randomizedtesting.SeedInfo.seed([5DAF017ED17971B0:D5FB3EA47F851C48]: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: field [node_settings] doesn't have length [0] Expected: <0> but: was <1> 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.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/85806
https://github.com/elastic/elasticsearch/pull/86141
a8f14599e9be9afdfafa9169abea809a378e954a
2a8c5a63bab3ac5f056f3a987013a4bdf6babab0
"2022-04-12T08:59:00Z"
java
"2022-04-25T15:22:39Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,803
["docs/changelog/85817.yaml", "plugins/discovery-gce/src/main/java/org/elasticsearch/cloud/gce/GceInstancesServiceImpl.java"]
Discovery GCE test fails on FIPS
### CI Link https://gradle-enterprise.elastic.co/s/mcboq4te6p7o6 ### Repro line ./gradlew :plugins:discovery-gce:qa:gce:check -Dtests.fips.enabled=true ### Does it reproduce? Yes ### Applicable branches master ### Failure history _No response_ ### Failure excerpt This seems to have started failing since #85132 ``` [2022-04-12T17:07:29,829][WARN ][o.e.c.g.GceInstancesServiceImpl] [yamlRestTest-1] unable to resolve default zone from metadata server for GCE discovery service java.security.KeyStoreException: Uninitialized keystore at java.security.KeyStore.size(KeyStore.java:1296) ~[?:?] at org.bouncycastle.jsse.provider.ProvTrustManagerFactorySpi.getTrustAnchors(ProvTrustManagerFactorySpi.java:227) ~[bctls-fips-1.0.9.jar:1.0.9] at org.bouncycastle.jsse.provider.ProvTrustManagerFactorySpi.engineInit(ProvTrustManagerFactorySpi.java:163) ~[bctls-fips-1.0.9.jar:1.0.9] at javax.net.ssl.TrustManagerFactory.init(TrustManagerFactory.java:282) ~[?:?] at com.google.api.client.util.SslUtils.initSslContext(SslUtils.java:107) ~[google-http-client-1.41.1.jar:1.41.1] ```
https://github.com/elastic/elasticsearch/issues/85803
https://github.com/elastic/elasticsearch/pull/85817
1045686698fece318e5ee0e06c3b40c5c7a869a9
b841b5f7d55651e9edd35bddf4d0205b5c6cd696
"2022-04-12T07:28:23Z"
java
"2022-04-13T08:57:37Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,824
["docs/reference/setup/install/targz.asciidoc", "docs/reference/setup/install/zip-windows.asciidoc"]
Path /etc/elasticsearch/config/certs/http_ca.crt is wrong when trying to verify Elasticsearch is running
https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html#rpm-running-systemd ![image](https://user-images.githubusercontent.com/8455957/162904102-ba963af0-93f7-421e-a242-96ccc3584074.png) <img width="909" alt="image" src="https://user-images.githubusercontent.com/8455957/162904178-7e2ec692-52eb-4c5a-bd62-42b69b888193.png">
https://github.com/elastic/elasticsearch/issues/85824
https://github.com/elastic/elasticsearch/pull/86390
ce9819fa6cc1aed8d52a09ec28503487e25bb6f8
6ebe562c5b1f46d6b07e3f78d4752f833ed4c457
"2022-04-12T07:24:30Z"
java
"2022-05-03T13:06:25Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,790
["docs/changelog/85926.yaml", "modules/ingest-common/src/main/java/org/elasticsearch/ingest/common/ScriptProcessor.java", "modules/ingest-common/src/yamlRestTest/resources/rest-api-spec/test/ingest/190_script_processor.yml", "server/src/main/java/org/elasticsearch/ingest/IngestService.java"]
Reduce script processor overhead from safety check
Currently 99% of a profiled `script` processor's execution time comes from the invocation of `CollectionUtils.ensureNoSelfReferences()`, not the script itself (this could vary with script intensity, but it stands to reason it would take a lot to change this dramatically). <img width="2552" alt="image" src="https://user-images.githubusercontent.com/7477841/162812089-a8d9f023-abf5-4249-b676-78b2adc459a1.png"> 1. Is there another way we could approach this self-reference guard rail? It's not completely fool-proof but after the first document passes this check we can be reasonably sure the Script doesn't cause self-references, except in the case of some very specific conditional behavior one would almost have to intentionally code in. As this measure is to help users prevent shooting themselves in the foot, an ostensible 100x overhead is too high a cost, surely. 2. As a half-measure, should we not execute the check if the processor has `ignore_errors` set to `true` anyway? This is the case even for some published integrations, and could benefit greatly from the reduced overhead. It's not ideal as this particular problem really should probably not be ignored since it will cause issues in a later step, but this would preserve existing behavior and reduce cost.
https://github.com/elastic/elasticsearch/issues/85790
https://github.com/elastic/elasticsearch/pull/85926
6aeec65d69b7be80439b24dd02d0a462fa7f1066
4b286d7aa6063b5c9f8ae66ef6a3c0d1ed389138
"2022-04-11T19:15:36Z"
java
"2022-05-02T17:38:35Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,756
["docs/changelog/85792.yaml", "modules/ingest-geoip/qa/full-cluster-restart/build.gradle", "modules/ingest-geoip/qa/full-cluster-restart/src/test/java/org/elasticsearch/ingest/geoip/FullClusterRestartIT.java", "modules/ingest-geoip/src/main/java/org/elasticsearch/ingest/geoip/DatabaseNodeService.java", "modules/ingest-geoip/src/main/java/org/elasticsearch/ingest/geoip/GeoIpDownloaderTaskExecutor.java", "modules/ingest-geoip/src/test/java/org/elasticsearch/ingest/geoip/DatabaseNodeServiceTests.java", "server/src/main/java/org/elasticsearch/cluster/metadata/IndexAbstraction.java", "test/fixtures/geoip-fixture/docker-compose.yml"]
GeoIP Ingest plugin should be not break with feature migration
### Bug It is possible for a system feature migration to break the geoip-ingest plugin on a cluster that has been upgraded from 7.17 to 8.x. The system features migration will reindex the `.geoip_databases` index into a new index called `.geoip_databases-reindexed-for-8`, then delete the original `.geoip_databases` index and replace it with an alias. The plugin is written to expect `.geoip_databases` to be a concrete index, so it fails to reload its database, and geoip ingest processors stop working. We need to fix the code so that running a system feature migration doesn't create this problem. ### Reproducing Steps to reproduce: 1. On a 7.17 cluster, [create a pipeline with a geoip processor](https://www.elastic.co/guide/en/elasticsearch/reference/current/geoip-processor.html). 2. Upgrade the cluster to 8.1. 3. Run a [system features migration](https://www.elastic.co/guide/en/elasticsearch/reference/current/feature-migration-api.html) and wait for it to complete. 4. Wait for the geoip-ingest plugin to reload its databases, or restart the cluster to make changes take effect 5. Ingest a document using the pipeline. Here are some curl commands I used on my local, single-node cluster: <details><summary>Expand for details</summary> ``` # ON 7.17 - create geoip processor curl -s -XPUT -H'content-type:application/json' \ 'localhost:9200/_ingest/pipeline/geoip' \ -d '{"description":"test","processors":[{"geoip":{"field":"ip"}}]}' curl -s -XPUT -H'content-type:application/json' \ 'localhost:9200/my-index-00001/_doc/pre_migration?pipeline=geoip' \ -d '{"ip":"8.8.8.8"}' curl -s -XGET 'localhost:9200/my-index-00001/_doc/pre_migration' # ON 7.17 - create snapshot curl -s -XPUT -H'content-type:application/json' \ 'localhost:9200/_snapshot/fs_backup' \ -d '{"type":"fs","settings":{"location":"/Users/wbrafford/work/es-builds/snapshots"}}' curl -s -XPUT -H'content-type:application/json' \ 'localhost:9200/_snapshot/fs_backup/pre_migration' \ -d '{"indices":"-*","feature_states":["geoip"],"include_global_state":false}' # ON 8.1 - run feature migration curl -s -XPOST 'localhost:9200/_migration/system_features' # ON 8.1 - restart and test doc curl -s -XPUT -H'content-type:application/json' \ 'localhost:9200/my-index-00001/_doc/post_migration?pipeline=geoip' \ -d '{"ip":"8.8.8.8"}' curl -s -XGET 'localhost:9200/my-index-00001/_doc/post_migration' # restore snapshot curl -s -XPOST -H'content-type:application/json' \ 'localhost:9200/_snapshot/fs_backup/pre_migration/_restore' \ -d '{"indices":"-*","feature_states":["geoip"],"include_global_state":false}' curl -s -XPUT -H'content-type:application/json' \ 'localhost:9200/my-index-00001/_doc/post_restore?pipeline=geoip' \ -d '{"ip":"8.8.8.8"}' curl -s -XGET 'localhost:9200/my-index-00001/_doc/post_restore' ``` </details> ### Workaround The only fix I know of is to restore a geoip feature state from a snapshot taken before the system feature migration: ``` POST /_snapshot/<repo_name>/<snapshot_name>/_restore { "indices": "-*", "feature_states": ["geoip"], "include_global_state": false } ``` It doesn't really matter how old the snapshot is, because once the plugin is restored to a good state, it can update the geoip index. ### Open questions What approach should we take to fix this? 1. The `.geoip_databases` index doesn't contain any user data. We could just "migrate" it by deleting it and recreating it. This kind of fix would be the responsibility of the core-infra team. 2. We could make the geoip ingest plugin robust for the case where `.geoip_databases` is an alias, not a concrete index. This doesn't seem like something the plugin needs intrinsically, but it might be easier to do than changing the migration code. We should also look at giving users a more convenient way to reset the state of the geoip-ingest plugin. https://github.com/elastic/elasticsearch/issues/70426 would have been really useful to have for this bug. cc @dakrone, @gwbrown, @joegallo
https://github.com/elastic/elasticsearch/issues/85756
https://github.com/elastic/elasticsearch/pull/85792
a30ab8649547e5694bcd66d171ccd5cd5779f183
cfe1f111475a09fffd0a4d208463dcb58fc70226
"2022-04-07T21:27:31Z"
java
"2022-05-03T19:47:32Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,748
["docs/changelog/89199.yaml", "x-pack/plugin/spatial/src/main/java/org/elasticsearch/xpack/spatial/search/aggregations/InternalGeoLine.java", "x-pack/plugin/spatial/src/test/java/org/elasticsearch/xpack/spatial/search/aggregations/GeoLineAggregatorTests.java"]
GeoLine aggregation can output corrupt geojson: a line with just 1 point
Reproduction (from the docs, but removed 2 of the 3 docs): ``` PUT test { "mappings": { "dynamic": "strict", "_source": { "enabled": false }, "properties": { "my_location": { "type": "geo_point" }, "group": { "type": "keyword" }, "@timestamp": { "type": "date" } } } } POST /test/_bulk?refresh {"index": {}} {"my_location": {"lat":37.3450570, "lon": -122.0499820}, "@timestamp": "2013-09-06T16:00:36"} POST /test/_search?filter_path=aggregations { "aggs": { "line": { "geo_line": { "point": {"field": "my_location"}, "sort": {"field": "@timestamp"} } } } } ``` This reports: ``` "geometry" : { "coordinates" : [ [ -122.049982, 37.345057 ] ], "type" : "LineString" }, ``` which is invalid as a line should have at least 2 points, e.g. elasticsearch errors if you try to index a line with just 1 point. If you use the geo-line aggregation in a transform, transform fails if it stumbles upon such a document. It seems to me that the geo-line aggregation should not report these points or it should report it as points.
https://github.com/elastic/elasticsearch/issues/85748
https://github.com/elastic/elasticsearch/pull/89199
08fb6ed6923fec089b2eb3eff2a39276491937f6
cd359b3d3993c034d8f4fe4296afcea2247cf8c4
"2022-04-07T14:24:37Z"
java
"2022-08-09T13:07:22Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,747
["x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/service/ElasticServiceAccounts.java", "x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/action/service/TransportGetServiceAccountActionTests.java", "x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/service/ServiceAccountServiceTests.java", "x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/service_accounts/10_basic.yml"]
[Fleet] Create new service account `elastic/fleet-server-remote` for remote agent connections
### Description **Background** As part of https://github.com/elastic/kibana/issues/104986 we will be adding the ability for Elastic Agents to send agent monitoring data to a remote Elasticsearch cluster. In order to achieve this, we will need a service token for the remote cluster which fleet server will use. This service account will need less permissions than the `elastic/fleet-server` as integration data will not be sent to remote clusters yet. **Service Account Details** Name: `elastic/fleet-server-remote` Permissions: - for indices `logs-*`, `metrics-*` privileges "write", "create_index", "auto_configure"
https://github.com/elastic/elasticsearch/issues/85747
https://github.com/elastic/elasticsearch/pull/100950
3ce905b75432e36648ae013a3580b1f12537cae9
63179d760adbb7b202d49150e1ee9c4fcb193b9e
"2022-04-07T13:44:46Z"
java
"2023-10-18T13:35:51Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,725
["docs/changelog/86192.yaml", "x-pack/plugin/searchable-snapshots/preallocate/src/main/java/org/elasticsearch/xpack/searchablesnapshots/preallocate/Preallocate.java"]
Windows bwcTestSnapshots unable to upgrade a node due to assertion failing
### CI Link https://gradle-enterprise.elastic.co/s/vn4gmfzui5s3q ### Repro line NONE ### Does it reproduce? Didn't try ### Applicable branches master, 8.2 ### Failure history _No response_ ### Failure excerpt ``` java.lang.AssertionError: expected file size 16777216 but was 0 |   -- | --   | » at org.elasticsearch.xpack.searchablesnapshots.cache.shared.SharedBytes.<init>(SharedBytes.java:64) |     | » at org.elasticsearch.xpack.searchablesnapshots.cache.shared.FrozenCacheService.<init>(FrozenCacheService.java:295) |     | » at org.elasticsearch.xpack.searchablesnapshots.SearchableSnapshots.createComponents(SearchableSnapshots.java:339) |     | » at org.elasticsearch.node.Node.lambda$new$16(Node.java:685) |     | » at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:273) |     | » at java.base/java.util.AbstractList$RandomAccessSpliterator.forEachRemaining(AbstractList.java:720) |     | » at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) |     | » at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) |     | » at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575) |     | » at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260) |     | » at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616) |     | » at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622) |     | » at java.base/java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627) |     | » at org.elasticsearch.node.Node.<init>(Node.java:699) |     | » at org.elasticsearch.node.Node.<init>(Node.java:291) |     | » at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:234) |     | » at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:234) |     | » at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:358) |     | » at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:166) |     | » at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:157) |     | » at org.elasticsearch.common.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:81) |     | » at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112) |     | » at org.elasticsearch.cli.Command.main(Command.java:77) |     | » at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:122) |     | » at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:80) ```
https://github.com/elastic/elasticsearch/issues/85725
https://github.com/elastic/elasticsearch/pull/86192
1e3ad0d3548fe4eb49014c55cbf59762d514e0cd
71c4c68c6e17b3b3d0e191647748dc51a467304c
"2022-04-06T13:28:18Z"
java
"2022-04-28T07:48:26Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,711
["docs/changelog/85713.yaml", "server/src/main/java/org/elasticsearch/search/aggregations/timeseries/TimeSeriesIndexSearcher.java", "server/src/test/java/org/elasticsearch/search/aggregations/timeseries/TimeSeriesIndexSearcherTests.java"]
TSDB:TimeSeriesIndexSearcher collect order error, caused by the wrong init value of tsidOrd
### Elasticsearch Version master ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version all ### Problem Description TimeSeriesIndexSearcher use the tsidOrd to speed up tsid compare. There is a hidden bug: The init value of tsidOrd is 0, so it's ok to collect data from beginning. But if collect data from the middle, the tsidOrd has a wrong init value. It will cause the PriorityQueue pop the wrong LeafWalker. ### Steps to Reproduce Create 2 segments IndexWriter, And the first segment is: |_tsid|@timestamp| | ---- | ---- | |tsid1|1| |tsid2|11| |tsid2|10| |tsid3|1| the second segment is: |_tsid|timestamp| | ---- | ---- | |tsid1|1| |tsid2|21| |tsid2|20| |tsid3|1| the query is _tsid : tsid2 OR _tsid : tsid3 the current order is : tsid2/21 -> tsid2/11 -> tsid2/20 -> tsid2/10 -> tsid3/1 -> tsid3/1. The right order is : tsid2/21 -> tsid2/20 -> tsid2/11 -> tsid2/10 -> tsid3/1 -> tsid3/1. The reason is in ``` boolean shouldPop() throws IOException { if (tsidOrd == -1) { tsidOrd = tsids.ordValue(); } else if (tsidOrd != tsids.ordValue()) { tsidOrd = tsids.ordValue(); return true; } return false; } ``` the tsidOrd init value is 0, But the first tsidOrd value of this query is 1. So It pop the second segment unexpected. ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/85711
https://github.com/elastic/elasticsearch/pull/85713
a372b543f5b14a11c4b970a81a9dfadc25a3e1f9
1739dab88b41d60c0648c3722688af9a9d944ab9
"2022-04-06T08:11:39Z"
java
"2022-04-13T11:46:07Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,707
["build-tools-internal/src/main/resources/templates/breaking-changes.asciidoc"]
Missing breaking changes section in release docs
### Elasticsearch Version 8.2.0 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version MacOS ### Problem Description Generating the release notes with the `generateReleaseNotes` Gradle tasks results in the documentation missing the `breaking changes` section. As a result of this the reference ``` Also see <<breaking-changes-8.2,Breaking changes in 8.2>>. ``` in file ``` docs/reference/release-notes/8.2.0.asciidoc ``` is broken. ### Steps to Reproduce Run the Gradle task to generate the docs. ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/85707
https://github.com/elastic/elasticsearch/pull/86343
0f43267a84736cd6789a5e625b963800d83592b9
746218f81a4a1fffdb6d7da77004d65caeb6c2db
"2022-04-05T17:40:13Z"
java
"2022-05-02T12:39:00Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,702
["server/src/main/java/org/elasticsearch/indices/ShardLimitValidator.java", "server/src/test/java/org/elasticsearch/indices/ShardLimitValidatorTests.java", "x-pack/plugin/deprecation/src/main/java/org/elasticsearch/xpack/deprecation/ClusterDeprecationChecks.java", "x-pack/plugin/deprecation/src/main/java/org/elasticsearch/xpack/deprecation/DeprecationChecks.java", "x-pack/plugin/deprecation/src/test/java/org/elasticsearch/xpack/deprecation/ClusterDeprecationChecksTests.java"]
Emit critical deprecation warning if maximum open shards exceeded
Similar to https://github.com/elastic/elasticsearch/issues/82807 Kibana upgrades can never succeed if a cluster already exceeded the maximum open shards. It would reduce the downtime and help our users safely upgrade if we emitted a critical warning from the deprecations info API for this condition. At the moment it will only help users upgrading from 7.x to 8.x but we hope to enable the upgrade assistant during minor upgrades too https://github.com/elastic/kibana/issues/117220
https://github.com/elastic/elasticsearch/issues/85702
https://github.com/elastic/elasticsearch/pull/85967
051f9713e99381faaaf88ce1a0bc690f4fab0b40
192b4ca8595ee7227f681b33f4d68d49cfbfeca4
"2022-04-05T15:25:58Z"
java
"2022-05-06T13:03:49Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,670
["rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/indices.forcemerge/10_basic.yml"]
[CI] ClientYamlTestSuiteIT test {yaml=nodes.stats/11_indices_metrics/Metric - blank for indices shard_stats} failing
**Build scan:** https://gradle-enterprise.elastic.co/s/i5xx5nbqxywse/tests/:rest-api-spec:yamlRestTest/org.elasticsearch.test.rest.ClientYamlTestSuiteIT/test%20%7Byaml=nodes.stats%2F11_indices_metrics%2FMetric%20-%20blank%20for%20indices%20shard_stats%7D **Reproduction line:** `./gradlew ':rest-api-spec:yamlRestTest' --tests "org.elasticsearch.test.rest.ClientYamlTestSuiteIT" -Dtests.method="test {yaml=nodes.stats/11_indices_metrics/Metric - blank for indices shard_stats}" -Dtests.seed=14ACC78448D937FD -Dtests.locale=ru-RU -Dtests.timezone=Europe/Ljubljana -Druntime.java=17` **Applicable branches:** 8.2 **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%3Dnodes.stats/11_indices_metrics/Metric%20-%20blank%20for%20indices%20shard_stats%7D **Failure excerpt:** ``` java.lang.AssertionError: Failure at [nodes.stats/11_indices_metrics:338]: Expected: <0> but: was <1> at __randomizedtesting.SeedInfo.seed([14ACC78448D937FD:9CF8F85EE6255A05]: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: <0> but: was <1> at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.junit.Assert.assertThat(Assert.java:923) at org.elasticsearch.test.rest.yaml.section.MatchAssertion.doAssert(MatchAssertion.java:99) at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java: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/85670
https://github.com/elastic/elasticsearch/pull/85683
378736ac320afe5d4d82fcfb38e196346d63ca5b
92852f3eac3c6dfe7689c61a5a852aba1d6ecb07
"2022-04-04T09:51:35Z"
java
"2022-04-04T21:26:52Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,640
["qa/verify-version-constants/build.gradle"]
[CI] Verify version constants failing on pre-8.0 clusters with FIPS enabled
This looks to have been failing for awhile. https://gradle-enterprise.elastic.co/s/2zxpfgsfn4s5k/failure ``` :qa:verify-version-constants:v7.17.3#integTest FAILED Exec output and error: | Output for ./bin/elasticsearch-users: | ERROR: Only PBKDF2 is allowed for password hashing in a FIPS 140 JVM. Please set the appropriate value for [ xpack.security.authc.password_hashing.algorithm ] setting. ``` It's possible here this is an issue with _any_ BWC tests against 7.17 clusters as it seems we've changed some stuff related to FIPS between now and then?
https://github.com/elastic/elasticsearch/issues/85640
https://github.com/elastic/elasticsearch/pull/86079
09ce1b0fe8b80e13b927a0d74449eb33b30f22b7
557398d28bd120b604db60ec038538cffb06cacf
"2022-04-01T17:42:29Z"
java
"2022-04-25T12:06:57Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,634
["distribution/docker/src/docker/Dockerfile", "docs/changelog/87812.yaml"]
Remove vim-tiny package from Docker image
For reasons that are unclear, we install the `vim-tiny` package in the Elasticsearch Docker image. Whilst convenient, this package is not actually necessary, therefore we should remove it.
https://github.com/elastic/elasticsearch/issues/85634
https://github.com/elastic/elasticsearch/pull/87812
f6bfd5c87c27107ea2ffe128f2bfbf7d77afd98e
cb70dac01609fc4865343cc0c6514b837129092e
"2022-04-01T16:22:47Z"
java
"2022-06-21T09:22:18Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,610
["docs/reference/troubleshooting/common-issues/circuit-breaker-errors.asciidoc", "docs/reference/troubleshooting/common-issues/disk-usage-exceeded.asciidoc", "docs/reference/troubleshooting/common-issues/high-cpu-usage.asciidoc", "docs/reference/troubleshooting/common-issues/high-jvm-memory-pressure.asciidoc", "docs/reference/troubleshooting/common-issues/red-yellow-cluster-status.asciidoc", "docs/reference/troubleshooting/common-issues/rejected-requests.asciidoc", "docs/reference/troubleshooting/common-issues/task-queue-backlog.asciidoc", "docs/reference/troubleshooting/fix-common-cluster-issues.asciidoc"]
[DOCS] Split the page Fix common cluster issues into separate pages
The page [Fix common cluster issues](https://www.elastic.co/guide/en/elasticsearch//reference/master/fix-common-cluster-issues.html) is one of the [troubleshooting links](https://github.com/elastic/cloud/issues/92183#issuecomment-1017303716) that are going to be created on the deployment health banner to link error messages to relevant doc pages. This page is too long and requires lots of scrolling. We can get a better user experience if we: - link from the UI to the specific sections of this page or - split the page into separate pages (better for SEO) CC @debadair Relates to https://github.com/elastic/cloud/issues/92183
https://github.com/elastic/elasticsearch/issues/85610
https://github.com/elastic/elasticsearch/pull/88495
5191a16e5c03dbd7b98188c9e4ca7a11a05254a5
26cc87360ebbd3fbd5100a26a36f6a948f4e826e
"2022-04-01T11:05:06Z"
java
"2022-07-18T15:54:02Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,592
["docs/changelog/85595.yaml", "x-pack/plugin/vector-tile/src/javaRestTest/java/org/elasticsearch/xpack/vectortile/VectorTileRestIT.java", "x-pack/plugin/vector-tile/src/main/java/org/elasticsearch/xpack/vectortile/rest/RestVectorTileAction.java"]
Wildcards in fields parameter are not supported in vector tile search API
Currently if you add a field in the fields parameter with a wildcard, no fields will be added to the hits layer. The situation is even worst if the wildcard matches the field name of the geo_point or geo_shape field, in that case a ClassCastException is thrown.
https://github.com/elastic/elasticsearch/issues/85592
https://github.com/elastic/elasticsearch/pull/85595
3381fcd6d778bd6ecc74df22c9b4adeb2966825d
2b0a1a3e7ad1556f8789035a2dda07efc8852858
"2022-04-01T05:43:58Z"
java
"2022-04-01T11:59:18Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,550
["docs/changelog/85551.yaml", "server/src/internalClusterTest/java/org/elasticsearch/repositories/InvalidRepositoryIT.java", "server/src/main/java/org/elasticsearch/repositories/InvalidRepository.java", "server/src/main/java/org/elasticsearch/repositories/RepositoriesService.java", "server/src/main/java/org/elasticsearch/repositories/UnknownTypeRepository.java", "server/src/test/java/org/elasticsearch/repositories/InvalidRepositoryTests.java", "server/src/test/java/org/elasticsearch/repositories/RepositoriesServiceTests.java", "x-pack/plugin/repository-encrypted/src/internalClusterTest/java/org/elasticsearch/repositories/encrypted/EncryptedRepositorySecretIntegTests.java"]
NPE in RepositoriesService
### Elasticsearch Version 7.16.2, master ### Installed Plugins no ### Java Version _bundled_ ### OS Version Linux iZbp1dn0ktfed9mjoyuiajZ 5.10.84-10.2.al8.x86_64 #1 SMP Thu Feb 10 15:03:09 CST 2022 x86_64 x86_64 x86_64 GNU/Linux ### Problem Description When put repository using PutRespository API for an existing repository, NullPointerException was thrown, short stack shows as below ``` 1> java.lang.Exception: java.lang.NullPointerException: Cannot invoke "org.elasticsearch.repositories.Repository.getMetadata()" because "repository" is null 1> at org.elasticsearch.cluster.service.MasterService.innerExecuteTasks(MasterService.java:916) ~[main/:?] 1> at org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:871) ~[main/:?] 1> at org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:253) [main/:?] 1> at org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:153) [main/:?] 1> at org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:114) [main/:?] 1> at org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:170) [main/:?] 1> at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:714) [main/:?] 1> at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:260) [main/:?] 1> at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:223) [main/:?] 1> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?] 1> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?] 1> at java.lang.Thread.run(Thread.java:833) [?:?] ``` ### Steps to Reproduce I've created an IT to reproduce this issue in [#85551](https://github.com/elastic/elasticsearch/pull/85551), steps can be described as following: - put repository using `RestPutRepository` API and make sure non-master node failed to create repository. - restart master let one of the previous non-master node become master - put the same repository using the `RestPutRepository` API. ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/85550
https://github.com/elastic/elasticsearch/pull/85551
737eacee2db466fd4a3f293b84779ade4b24401d
133e34dcca86ba5a754aadf8a19fef44af7b7475
"2022-03-31T13:33:31Z"
java
"2022-04-04T15:35:53Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,539
["docs/changelog/85555.yaml", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/job/process/autodetect/output/AutodetectResultProcessor.java", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/job/process/normalizer/Renormalizer.java", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/job/process/normalizer/ShortCircuitingRenormalizer.java", "x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/job/process/autodetect/output/AutodetectResultProcessorTests.java"]
[ML] Renormalizer should not queue up quantiles docs but just keep the last
The short circuiting renormalizer used with ML anomaly detection will skip renormalizations if a more recent set of quantiles has been received. It does this by maintaining a queue of quantiles documents, but when it is ready to perform the next renormalization it drains the entire queue so that it is left with the most recent. When quantiles documents are large this is an inefficient use of memory. Instead of storing the full quantiles documents in a queue it should just retain the most recently added quantiles document.
https://github.com/elastic/elasticsearch/issues/85539
https://github.com/elastic/elasticsearch/pull/85555
5914388fe3b90e670304b0f32c6ef18ad31bbb71
85359f3d551a977aa2df2ba6f1710c56111209c6
"2022-03-31T10:55:19Z"
java
"2022-04-01T08:34:37Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,520
["docs/changelog/85531.yaml", "x-pack/plugin/sql/qa/mixed-node/src/test/java/org/elasticsearch/xpack/sql/qa/mixed_node/SqlCompatIT.java"]
SQLCompatIT.testCursorFromOldNodeFailsOnNewNode fails after version bump to 8.3.0
### CI Link https://gradle-enterprise.elastic.co/s/vgdjkeiiridsk/tests/:x-pack:plugin:sql:qa:mixed-node:v8.2.0%23mixedClusterTest/org.elasticsearch.xpack.sql.qa.mixed_node.SqlCompatIT/testCursorFromOldNodeFailsOnNewNode?top-execution=1 ### Repro line ./gradlew ':x-pack:plugin:sql:qa:mixed-node:v8.2.0#mixedClusterTest' -Dtests.class="org.elasticsearch.xpack.sql.qa.mixed_node.SqlCompatIT" -Dtests.method="testCursorFromOldNodeFailsOnNewNode" -Dtests.seed=FDCF684F324DE11D -Dtests.bwc=true -Dtests.locale=es-PR -Dtests.timezone=Asia/Baku -Druntime.java=17 ### Does it reproduce? Yes ### Applicable branches master ### Failure history _No response_ ### Failure excerpt ``` java.lang.AssertionError: Expected: a string containing "Unsupported cursor version [8.2.0], expected [8.3.0]" |   but: was "method [POST], host [http://127.0.0.1:34941], URI [_sql], status line [HTTP/1.1 500 Internal Server Error] |     {"error":{"root_cause":[{"type":"sql_illegal_argument_exception","reason":"Unsupported cursor version [1.66.82], expected [8.3.0]"}],"type":"sql_illegal_argument_exception","reason":"Unsupported cursor version [1.66.82], expected [8.3.0]"},"status":500}" ```
https://github.com/elastic/elasticsearch/issues/85520
https://github.com/elastic/elasticsearch/pull/85531
6da86a42d15fbbeb808127f3a47e715ac9094699
20f8a1fd206b44dd7cc3cb452fc259cce5035264
"2022-03-31T05:08:44Z"
java
"2022-03-31T13:31:22Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,509
["docs/changelog/85534.yaml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.aggregation/360_date_histogram.yml"]
[CI] ClientYamlTestSuiteIT test {yaml=search.aggregation/360_date_histogram/Multi-value date histogram} failing
**Build scan:** https://gradle-enterprise.elastic.co/s/7xhn5whnmvexs/tests/:rest-api-spec:yamlRestTestV7CompatTest/org.elasticsearch.test.rest.ClientYamlTestSuiteIT/test%20%7Byaml=search.aggregation%2F360_date_histogram%2FMulti-value%20date%20histogram%7D **Reproduction line:** `./gradlew ':rest-api-spec:yamlRestTestV7CompatTest' --tests "org.elasticsearch.test.rest.ClientYamlTestSuiteIT" -Dtests.method="test {yaml=search.aggregation/360_date_histogram/Multi-value date histogram}" -Dtests.seed=B09BA4416EA5068E -Dtests.locale=zh -Dtests.timezone=America/Ojinaga -Druntime.java=17` **Applicable branches:** master **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.test.rest.ClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dsearch.aggregation/360_date_histogram/Multi-value%20date%20histogram%7D **Failure excerpt:** ``` java.lang.AssertionError: Failure at [search.aggregation/360_date_histogram:235]: Expected: <1> but: was <0> at __randomizedtesting.SeedInfo.seed([B09BA4416EA5068E:38CF9B9BC0596B76]: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: <1> but: was <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.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/85509
https://github.com/elastic/elasticsearch/pull/85534
4f9e09b03bf3007ce8de1ce5f46eda61f5929c9c
b4ff756beced1de35d355ed3ac200e27219722d2
"2022-03-30T20:07:09Z"
java
"2022-03-31T10:54:44Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,493
["docs/changelog/85500.yaml", "docs/reference/search/search-your-data/highlighting.asciidoc", "modules/mapper-extras/src/yamlRestTest/resources/rest-api-spec/test/match_only_text/10_basic.yml", "server/src/main/java/org/elasticsearch/search/fetch/subphase/highlight/HighlightPhase.java"]
Highlighting in Kibana is not working for match_only_text
### Elasticsearch Version 8.1.1. ### Installed Plugins non ### Java Version _bundled_ ### OS Version ESS ### Problem Description When searching for any term in Kibana the highlighting works on any field type except `match_only_text` which has become the default field type in ~7.14 for all of the beats and Elastic Agent integrations. E.g. here it does not work: ![image](https://user-images.githubusercontent.com/12175559/160823534-7cad2e0e-b898-4a15-9376-1c2993d261bb.png) E.g. on 7.17 using text and keyword fields: ![image](https://user-images.githubusercontent.com/12175559/160823810-a6024e92-f062-4e39-a399-41c5d087fcdd.png) Discussed this with @romseygeek already. seems that the highlighter is not capeable of dealing with the specialized match_only_text field type. ### Steps to Reproduce Index something using a `match_only_text` field. Run a search on it. It should be highlighted. ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/85493
https://github.com/elastic/elasticsearch/pull/85500
44e399b3a95e607f885fef85d0346166fd167e43
78789e2b5d1412165a892a9e39238b4260b3018b
"2022-03-30T11:24:48Z"
java
"2022-04-01T06:12:08Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,487
["modules/lang-mustache/src/internalClusterTest/java/org/elasticsearch/script/mustache/MultiSearchTemplateIT.java", "modules/lang-mustache/src/internalClusterTest/java/org/elasticsearch/script/mustache/SearchTemplateIT.java", "test/framework/src/main/java/org/elasticsearch/search/FailBeforeCurrentVersionQueryBuilder.java"]
Improve error message for `ccs_force_fail` mode flag
### Description In #81809 we introduces a cluster setting that enables a pre-flight compatibility check for search requests going out from the coordinating node that checks if the request contains parts or features that are not supported on the previous minor version to quickly check full CCS compatibility for them. The error message the caller gets when e.g. using an aggregation that was just recently added could be improved. Currently the error message itself reads something like: ``` [class org.elasticsearch.action.search.SearchRequest] is not compatible with version 8.1.0 and the 'search.check_ccs_compatibility' setting is enabled. ``` The stack trace contains more information about e.g. the NamedWriteable that triggered the check to fail, but we might be able to surface more information in the error message itself.
https://github.com/elastic/elasticsearch/issues/85487
https://github.com/elastic/elasticsearch/pull/97059
42c2fa41da6c145f8de16b50900e973a6d9b665a
84c295cbbd1fba0f67629ca887606376d91bae6b
"2022-03-30T09:27:18Z"
java
"2023-06-28T15:27:20Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,480
["docs/changelog/88292.yaml", "server/src/main/java/org/elasticsearch/cluster/node/DiscoveryNodeFilters.java", "x-pack/plugin/autoscaling/src/internalClusterTest/java/org/elasticsearch/xpack/autoscaling/storage/ProactiveStorageIT.java", "x-pack/plugin/autoscaling/src/internalClusterTest/java/org/elasticsearch/xpack/autoscaling/storage/ReactiveStorageIT.java", "x-pack/plugin/autoscaling/src/main/java/org/elasticsearch/xpack/autoscaling/storage/ReactiveStorageDeciderService.java", "x-pack/plugin/autoscaling/src/test/java/org/elasticsearch/xpack/autoscaling/storage/ReactiveStorageDeciderServiceTests.java", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/cluster/routing/allocation/DataTierAllocationDecider.java"]
Autoscaling may scale too far during index shrink
### Elasticsearch Version 7.13.3 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version ubuntu ### Problem Description When doing a shrink, a copy of each shard is first reallocated to the one node. Then a shrink is initiated, which generates new shards. In case the chosen node is above the low watermark now, the shrunk index cannot be allocated to the node. Currently, this can result in an unnecessary scale up when using autoscaling. This relates to the work in #76206 in that fixing that one would reduce the risk of this occurring. We also have thoughts around retries in ILM to fix a stuck shrink. However, we would still need to ensure autoscaling would not scale up unnecessarily in this case (but still scale up if that is theonly way to ensure the shrink succeeds). ### Steps to Reproduce NA ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/85480
https://github.com/elastic/elasticsearch/pull/88292
d4f78dbf792d7ee644f846f77604213758680cc0
66e750c01585b9785568125e9c56b9418fbf1a8a
"2022-03-30T06:36:31Z"
java
"2022-07-08T12:18:02Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,432
["docs/reference/searchable-snapshots/index.asciidoc"]
[Doc][Bug] Searchable snapshot doesn't have "recovered-" prefix but have "restored-" in 8.x
### Elasticsearch Version 8.x ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version supported major OS ### Problem Description In manual, there's such description https://www.elastic.co/guide/en/elasticsearch/reference/8.1/searchable-snapshots.html > Indices managed by ILM are prefixed with `recovered-` when fully mounted. Screenshot: <details> <img width="600" alt="image" src="https://user-images.githubusercontent.com/30574753/160521435-be0e0193-79b6-46e0-b30c-b8ebeb7bd784.png"> </details> However, when testing the behavior, it's actually not using the prefix `recovered-`, but instead, it's using `restored-`. <img width="700" alt="image" src="https://user-images.githubusercontent.com/30574753/160521823-d7c4b4af-29fb-4ffd-abdb-5fab4dbe3310.png"> --- The prefix `restored-` is the same as 7.x, which is mentioned below. https://www.elastic.co/guide/en/elasticsearch/reference/7.17/ilm-searchable-snapshot.html Also additionally, the following page 8.x version also shows the correct spelling. https://www.elastic.co/guide/en/elasticsearch/reference/8.1/ilm-searchable-snapshot.html --- Based on that, seemingly it's a simple typo when that line was added into the manual and it caused the confusion. https://www.elastic.co/guide/en/elasticsearch/reference/8.1/searchable-snapshots.html#searchable-snapshot-mount-storage-options ### Steps to Reproduce as mentioned above. Can we have someone double check if this is a simple doc typo please? I am happy to file a doc fix PR but want to check about the tech part at first. ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/85432
https://github.com/elastic/elasticsearch/pull/85457
cc51c1a6396bd28b1410dd38a2f318b6c2bd8f5c
42d007169672ee49695b28a337442716cffffdc1
"2022-03-29T02:43:36Z"
java
"2022-03-29T15:02:26Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,409
["docs/changelog/85413.yaml", "docs/reference/transform/apis/put-transform.asciidoc", "docs/reference/transform/apis/start-transform.asciidoc", "x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/action/TransformPrivilegeChecker.java", "x-pack/plugin/transform/src/test/java/org/elasticsearch/xpack/transform/action/TransformPrivilegeCheckerTests.java"]
[ML] Transform does not validate permissions appropriately when using a retention policy
### Elasticsearch Version 8.0.0 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version n/a ### Problem Description When creating a transform with a `retention_policy` configured, `delete` permissions are not validated against the destination index. Consequently, the transform may fail to run later once the retention policy attempts to run. It should be validated and fail on creation (if validations are not skipped), just like we do for our other permissions. Additionally, the documentation needs to reflect this permission nuance as right now `delete` is not mentioned. ### Steps to Reproduce - create a transform with a retention policy with a user without delete permissions - notice its failure ``` task encountered irrecoverable failure: org.elasticsearch.ElasticsearchSecurityException: action [indices:data/write/delete/byquery] is unauthorized for user [<username>] with roles [<roles>] on indices [<destination index>], this action is granted by the index privileges [delete,write,all] ``` Related issue: https://github.com/elastic/elasticsearch/pull/84941 ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/85409
https://github.com/elastic/elasticsearch/pull/85413
a5452603ccc91fe82d7f491ced34414014e08a1f
5f03cab87e0bbd161a8fb44ebc561c79c6bc6747
"2022-03-28T19:51:26Z"
java
"2022-03-29T11:54:31Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,400
["rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.allocation/10_basic.yml"]
[CI] ClientYamlTestSuiteIT test {yaml=cat.allocation/10_basic/Column headers} failing
**Build scan:** https://gradle-enterprise.elastic.co/s/z7i6ntwkqmto6/tests/:rest-api-spec:yamlRestTest/org.elasticsearch.test.rest.ClientYamlTestSuiteIT/test%20%7Byaml=cat.allocation%2F10_basic%2FColumn%20headers%7D **Reproduction line:** `./gradlew ':rest-api-spec:yamlRestTest' --tests "org.elasticsearch.test.rest.ClientYamlTestSuiteIT" -Dtests.method="test {yaml=cat.allocation/10_basic/Column headers}" -Dtests.seed=A8D7E77577B84F59 -Dtests.locale=nl -Dtests.timezone=Antarctica/Rothera -Druntime.java=17` **Applicable branches:** 8.1, 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.allocation/10_basic/Column%20headers%7D **Failure excerpt:** ``` java.lang.AssertionError: Failure at [cat.allocation/10_basic:144]: field [$body] was expected to match the provided regex but didn't Expected: ^ shards \s+ disk.indices \s+ disk.used \s+ disk.avail \s+ disk.total \s+ disk.percent \s+ host \s+ ip \s+ node \n ( \s* #allow leading spaces to account for right-justified text 0 \s+ 0b \s+ \d+(\.\d+)?[kmgt]?b \s+ (\d+(\.\d+)?[kmgt]b \s+) #always should return value since we filter out non data nodes by default (\d+(\.\d+)?[kmgt]b \s+) #always should return value since we filter out non data nodes by default (\d+ \s+) #always should return value since we filter out non data nodes by default [-\w.]+ \s+ \d+(\.\d+){3} \s+ [-\w.]+ \n )+ $ but: was "shards disk.indices disk.used disk.avail disk.total disk.percent host ip node\n 1 225b 8gb 39.1gb 47.2gb 17 127.0.0.1 127.0.0.1 yamlRestTest-0\n" at __randomizedtesting.SeedInfo.seed([A8D7E77577B84F59:2083D8AFD94422A1]:0) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:489) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462) at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) Caused by: java.lang.AssertionError: field [$body] was expected to match the provided regex but didn't Expected: ^ shards \s+ disk.indices \s+ disk.used \s+ disk.avail \s+ disk.total \s+ disk.percent \s+ host \s+ ip \s+ node \n ( \s* #allow leading spaces to account for right-justified text 0 \s+ 0b \s+ \d+(\.\d+)?[kmgt]?b \s+ (\d+(\.\d+)?[kmgt]b \s+) #always should return value since we filter out non data nodes by default (\d+(\.\d+)?[kmgt]b \s+) #always should return value since we filter out non data nodes by default (\d+ \s+) #always should return value since we filter out non data nodes by default [-\w.]+ \s+ \d+(\.\d+){3} \s+ [-\w.]+ \n )+ $ but: was "shards disk.indices disk.used disk.avail disk.total disk.percent host ip node\n 1 225b 8gb 39.1gb 47.2gb 17 127.0.0.1 127.0.0.1 yamlRestTest-0\n" at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.elasticsearch.test.rest.yaml.section.MatchAssertion.doAssert(MatchAssertion.java:64) at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:478) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462) at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/85400
https://github.com/elastic/elasticsearch/pull/85459
50d1b4f129ce1e4f26dac5edf4507e15e4b2eb02
dacb9a14e738073515ccaf2493b50f238edffea1
"2022-03-28T15:52:03Z"
java
"2022-03-29T17:44:47Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,375
["docs/reference/settings/common-defs.asciidoc", "docs/reference/settings/security-settings.asciidoc", "docs/reference/settings/ssl-settings.asciidoc", "docs/reference/setup/install/docker/docker-compose.yml"]
`xpack.security.http.ssl.verification_mode` is missing from the docs
### Description - `xpack.security.http.ssl.verification_mode` is missing from the docs for 8.1. Reference https://www.elastic.co/guide/en/elasticsearch/reference/8.1/security-settings.html . - But in fact this property exists, refer to the third point of `Resolution` in https://www.elastic.co/guide/en/elasticsearch/reference/8.1/trb-security-setup.html, but there is no place to set this property point to its meaning. - ![image](https://user-images.githubusercontent.com/20187731/160345023-c8e6d43c-dc01-43f8-aa99-f12d727d5b6f.png) - In conclusion, I hope https://www.elastic.co/guide/en/elasticsearch/reference/8.1/security-settings.html can provide a description of this property.
https://github.com/elastic/elasticsearch/issues/85375
https://github.com/elastic/elasticsearch/pull/93083
693beaf8ce7db6d904c6cc0e8c0d73b52d391994
648d80e517e93f8631067d8c2e82bff0a1e297e2
"2022-03-28T07:13:20Z"
java
"2023-01-19T16:13:55Z"
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
85,357
["build-tools-internal/version.properties", "docs/changelog/85376.yaml"]
Upgrade Adoptium OpenJDK to 18.0.0+36
Adoptium OpenJDK 18.0.0+36 is now available. We need to upgrade the version that is bundled with Elasticsearch to the newer version. We currently bundle 17.0.2+8.
https://github.com/elastic/elasticsearch/issues/85357
https://github.com/elastic/elasticsearch/pull/85376
e1882f8abf926f08287220cbfdff2e0e1edd4743
2da5d75ab8045b823fb7470da9b64e8bab9d1933
"2022-03-25T10:00:59Z"
java
"2022-04-13T16:48:04Z"
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,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,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,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,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,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,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
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,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,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,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,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"