status
stringclasses
1 value
repo_name
stringlengths
9
24
repo_url
stringlengths
28
43
issue_id
int64
1
104k
updated_files
stringlengths
8
1.76k
title
stringlengths
4
369
body
stringlengths
0
254k
issue_url
stringlengths
37
56
pull_url
stringlengths
37
54
before_fix_sha
stringlengths
40
40
after_fix_sha
stringlengths
40
40
report_datetime
timestamp[ns, tz=UTC]
language
stringclasses
5 values
commit_datetime
timestamp[us, tz=UTC]
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,337
["docs/changelog/90346.yaml", "server/src/main/java/org/elasticsearch/reservedstate/service/ReservedClusterStateService.java", "server/src/main/java/org/elasticsearch/reservedstate/service/ReservedStateErrorTask.java", "server/src/main/java/org/elasticsearch/reservedstate/service/ReservedStateErrorTaskExecutor.java", "server/src/main/java/org/elasticsearch/reservedstate/service/ReservedStateUpdateTask.java", "server/src/test/java/org/elasticsearch/reservedstate/service/ReservedClusterStateServiceTests.java"]
ReservedClusterStateService uses last-applied state to determine no-ops
Today the `ReservedClusterStateService` decides whether or not to submit an update-error task depending on the content of the last-applied state as exposed by `ClusterService#state()`. This may happen concurrently with another state being published, so does not give a fully consistent view of the latest state. Instead it should check the state within the cluster state task executor, triggering a no-op update as appropriate.
https://github.com/elastic/elasticsearch/issues/90337
https://github.com/elastic/elasticsearch/pull/90346
02fb26c05303f15efbc1c807672e1c04c182440b
f0aa4e7a42442f7aa4a3d26cd5d67c85448c580b
2022-09-26T09:19:42Z
java
2022-09-27T13:47:37Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,336
["server/src/test/java/org/elasticsearch/threadpool/ScalingThreadPoolTests.java"]
[CI] ScalingThreadPoolTests testScalingThreadPoolConfiguration failing
This seems related to PR https://github.com/elastic/elasticsearch/pull/90214 so marking it for same labels & team. **Build scan:** https://gradle-enterprise.elastic.co/s/5ugkfx2zhq7ss/tests/:server:test/org.elasticsearch.threadpool.ScalingThreadPoolTests/testScalingThreadPoolConfiguration **Reproduction line:** `./gradlew ':server:test' --tests "org.elasticsearch.threadpool.ScalingThreadPoolTests.testScalingThreadPoolConfiguration" -Dtests.seed=40C96C7CDBEE82D3 -Dtests.locale=et-EE -Dtests.timezone=America/Argentina/Catamarca -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.threadpool.ScalingThreadPoolTests&tests.test=testScalingThreadPoolConfiguration **Failure excerpt:** ``` java.lang.AssertionError: Expected: <5> but: was <10> at __randomizedtesting.SeedInfo.seed([40C96C7CDBEE82D3:6D4F65F3EDFB6C80]: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.threadpool.ScalingThreadPoolTests.lambda$testScalingThreadPoolConfiguration$0(ScalingThreadPoolTests.java:105) at org.elasticsearch.threadpool.ScalingThreadPoolTests.runScalingThreadPoolTest(ScalingThreadPoolTests.java:433) at org.elasticsearch.threadpool.ScalingThreadPoolTests.testScalingThreadPoolConfiguration(ScalingThreadPoolTests.java:88) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/90336
https://github.com/elastic/elasticsearch/pull/90363
f823d7d4d433cb6f38ace7177809fce2c202c73d
049a50a2bf54077667200ca023373906ee8e1398
2022-09-26T08:44:21Z
java
2022-09-27T12:52:43Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,334
["docs/changelog/90482.yaml", "server/src/main/java/org/elasticsearch/monitor/jvm/HotThreads.java", "server/src/main/java/org/elasticsearch/transport/Transports.java", "server/src/test/java/org/elasticsearch/monitor/jvm/HotThreadsTests.java"]
Hot threads should treat `other=` time on transport workers as idle time
Transport worker threads should basically always be in state `RUNNABLE` which means that today they are reported by the hot threads API as 100% hot even when completely idle: ``` 100.0% [cpu=0.0%, other=100.0%] (500ms out of 500ms) cpu usage by thread 'elasticsearch[instance-0000000004][transport_worker][T#1]' 10/10 snapshots sharing following 9 elements [email protected]/sun.nio.ch.EPoll.wait(Native Method) [email protected]/sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:118) [email protected]/sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:129) [email protected]/sun.nio.ch.SelectorImpl.select(SelectorImpl.java:146) io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:813) io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:460) io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986) io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [email protected]/java.lang.Thread.run(Thread.java:833) ``` This is misleading even to experienced engineers, and we have fielded rather a large number of cases and questions that focus inappropriately on this output. There's [docs on the subject](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html#modules-network-threading-model) of course but this is only useful for folks that know their existence. I think we could reduce confusion in this area a great deal if for threads for which `Transports#isTransportThread` returned true we adjusted this output slightly: - rename the `other=` field to `idle=` - sort these threads according to the `cpu=` time only rather than the total `RUNNABLE` time. It is true that these threads might be `RUNNABLE` off the CPU in some other native method (e.g. waiting for disk IO, perhaps related to trace logging) so we do still want to see these numbers, but in practice we never see `other=` time in anything but `EPoll#wait`, so renaming the `other` time to `idle` solves a lot more confusion than it causes.
https://github.com/elastic/elasticsearch/issues/90334
https://github.com/elastic/elasticsearch/pull/90482
bc49392bfb26d965af2d4201f81e68e882ea8500
32f166daad9f8d4265293a2e509b11e2e4dae049
2022-09-26T07:52:34Z
java
2022-10-04T19:09:32Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,327
["docs/changelog/93502.yaml", "server/src/main/java/org/elasticsearch/cluster/routing/allocation/ShardsAvailabilityHealthIndicatorService.java", "server/src/test/java/org/elasticsearch/cluster/routing/allocation/ShardsAvailabilityHealthIndicatorServiceTests.java"]
[HealthAPI] Shards availability indicator doesn't report diagnosis when disk is out of space
### Elasticsearch Version 8.4, 8.5, 8.6 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version Darwin ### Problem Description The shards availability indicator should always be reporting diagnosis when its status is RED/YELLOW. However, when an index is on a data node that runs out of disk space it will report RED but no diagnosis. ### Steps to Reproduce Have multi-node cluster where a data (non-master) node that hosts an index runs out of disk space (the index cannot relocate somewhere else). Call the Health API and the output will be something along these lines: ``` "shards_availability": { "status": "red", "symptom": "This cluster has all shards available.", "details": { "initializing_primaries": 1, "started_replicas": 0, "initializing_replicas": 0, "unassigned_primaries": 0, "started_primaries": 1, "creating_primaries": 0, "unassigned_replicas": 0, "restarting_primaries": 0, "restarting_replicas": 0 }, "impacts": [ { "id": "elasticsearch:health:shards_availability:impact:primary_unassigned", "severity": 1, "description": "Cannot add data to 1 index [test_index]. Searches might return incomplete results.", "impact_areas": [ "ingest", "search" ] } ] } ``` ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/90327
https://github.com/elastic/elasticsearch/pull/93502
e228103e8fe545e23a391f7aa213cfc3d824310d
db17d38c55938f40e78f30468fbf690c94a2932e
2022-09-24T10:11:34Z
java
2023-02-08T09:25:44Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,323
["docs/changelog/90612.yaml", "server/src/main/java/org/elasticsearch/search/internal/ExitableDirectoryReader.java", "server/src/test/java/org/elasticsearch/search/SearchCancellationTests.java"]
Make sure ANN searches are cancellable
Currently if you provide an ANN search using the `knn` search section, the search doesn't respect cancellation. This is because ANN searches use their own Lucene data structures that aren't covered by `ExitableDirectoryReader`. This class is forked from Lucene, and in Lucene's version we recently added fine-grained cancellation for ANN search (https://github.com/apache/lucene/pull/833). So I think we just need to fold in the changes to the Elasticsearch version.
https://github.com/elastic/elasticsearch/issues/90323
https://github.com/elastic/elasticsearch/pull/90612
f7bb5e02c50e2e981784fbf967c4531116be9dd4
2a17e5302d92a9c15d4686cdd101d076867dbb4d
2022-09-23T23:35:44Z
java
2022-10-04T13:13:09Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,305
["server/src/test/java/org/elasticsearch/health/node/DiskHealthIndicatorServiceTests.java"]
[CI] DiskHealthIndicatorServiceTests testNoBlockedIndicesAndRedAllRoleNodes failing
**Build scan:** https://gradle-enterprise.elastic.co/s/ckfejrxsufgne/tests/:server:test/org.elasticsearch.health.node.DiskHealthIndicatorServiceTests/testNoBlockedIndicesAndRedAllRoleNodes **Reproduction line:** `./gradlew ':server:test' --tests "org.elasticsearch.health.node.DiskHealthIndicatorServiceTests.testNoBlockedIndicesAndRedAllRoleNodes" -Dtests.seed=3CFAB87D5232A052 -Dtests.locale=tr -Dtests.timezone=Iran -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.health.node.DiskHealthIndicatorServiceTests&tests.test=testNoBlockedIndicesAndRedAllRoleNodes **Failure excerpt:** ``` java.lang.AssertionError: Expected: <3> but: was <2> at __randomizedtesting.SeedInfo.seed([3CFAB87D5232A052:1430093BFADB7355]: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.health.node.DiskHealthIndicatorServiceTests.testNoBlockedIndicesAndRedAllRoleNodes(DiskHealthIndicatorServiceTests.java:150) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/90305
https://github.com/elastic/elasticsearch/pull/90671
34aa7d6f22e998fc15fb76f292d41dabd307982b
fcd0ce35385e23454c5de97ff6066845b9bb389f
2022-09-23T14:33:13Z
java
2022-10-06T10:17:31Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,301
["docs/changelog/90347.yaml", "x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/transforms/scheduling/TransformScheduledTask.java", "x-pack/plugin/transform/src/test/java/org/elasticsearch/xpack/transform/transforms/scheduling/TransformScheduledTaskTests.java"]
[CI] XPackRestIT test {p0=transform/transforms_unattended/Test unattended put and start wildcard} failing
**Build scan:** https://gradle-enterprise.elastic.co/s/mc6mzbewge5rq/tests/:x-pack:plugin:yamlRestTest/org.elasticsearch.xpack.test.rest.XPackRestIT/test%20%7Bp0=transform%2Ftransforms_unattended%2FTest%20unattended%20put%20and%20start%20wildcard%7D **Reproduction line:** `./gradlew ':x-pack:plugin:yamlRestTest' --tests "org.elasticsearch.xpack.test.rest.XPackRestIT.test {p0=transform/transforms_unattended/Test unattended put and start wildcard}" -Dtests.seed=EF18978E741FE47A -Dtests.locale=no -Dtests.timezone=Antarctica/Vostok -Druntime.java=17` **Applicable branches:** main **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%3Dtransform/transforms_unattended/Test%20unattended%20put%20and%20start%20wildcard%7D **Failure excerpt:** ``` java.lang.AssertionError: Failure at [transform/transforms_unattended:14]: expected [2xx] status code but api [transform.stop_transform] returned [409 Conflict] [{"error":{"root_cause":[{"type":"status_exception","reason":"Failed to update transform task [transform-unattended] state value should_stop_at_checkpoint from [false] to [false]","stack_trace":"org.elasticsearch.ElasticsearchStatusException: Failed to update transform task [transform-unattended] state value should_stop_at_checkpoint from [false] to [false]\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.buildException(TransportStopTransformAction.java:330)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$waitForStopListener$9(TransportStopTransformAction.java:306)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction.finishHim(TransportTasksAction.java:323)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction.onOperation(TransportTasksAction.java:297)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction$1.handleResponse(TransportTasksAction.java:277)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction$1.handleResponse(TransportTasksAction.java:269)\n\tat [email protected]/org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleResponse(TransportService.java:1362)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.processResponse(TransportService.java:1447)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1427)\n\tat [email protected]/org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:41)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$1.respondIfFinished(TransportTasksAction.java:134)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$1.onFailure(TransportTasksAction.java:114)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$taskOperation$3(TransportStopTransformAction.java:247)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:170)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:164)\n\tat org.elasticsearch.xpack.transform.transforms.TransformTask.setShouldStopAtCheckpoint(TransformTask.java:319)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$taskOperation$4(TransportStopTransformAction.java:238)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:825)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"}],"type":"status_exception","reason":"Failed to update transform task [transform-unattended] state value should_stop_at_checkpoint from [false] to [false]","stack_trace":"org.elasticsearch.ElasticsearchStatusException: Failed to update transform task [transform-unattended] state value should_stop_at_checkpoint from [false] to [false]\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.buildException(TransportStopTransformAction.java:330)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$waitForStopListener$9(TransportStopTransformAction.java:306)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction.finishHim(TransportTasksAction.java:323)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction.onOperation(TransportTasksAction.java:297)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction$1.handleResponse(TransportTasksAction.java:277)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction$1.handleResponse(TransportTasksAction.java:269)\n\tat [email protected]/org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleResponse(TransportService.java:1362)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.processResponse(TransportService.java:1447)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1427)\n\tat [email protected]/org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:41)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$1.respondIfFinished(TransportTasksAction.java:134)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$1.onFailure(TransportTasksAction.java:114)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$taskOperation$3(TransportStopTransformAction.java:247)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:170)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:164)\n\tat org.elasticsearch.xpack.transform.transforms.TransformTask.setShouldStopAtCheckpoint(TransformTask.java:319)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$taskOperation$4(TransportStopTransformAction.java:238)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:825)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"},"status":409}] at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:510) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:484) at jdk.internal.reflect.GeneratedMethodAccessor13.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) Caused by: java.lang.AssertionError: expected [2xx] status code but api [transform.stop_transform] returned [409 Conflict] [{"error":{"root_cause":[{"type":"status_exception","reason":"Failed to update transform task [transform-unattended] state value should_stop_at_checkpoint from [false] to [false]","stack_trace":"org.elasticsearch.ElasticsearchStatusException: Failed to update transform task [transform-unattended] state value should_stop_at_checkpoint from [false] to [false]\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.buildException(TransportStopTransformAction.java:330)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$waitForStopListener$9(TransportStopTransformAction.java:306)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction.finishHim(TransportTasksAction.java:323)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction.onOperation(TransportTasksAction.java:297)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction$1.handleResponse(TransportTasksAction.java:277)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction$1.handleResponse(TransportTasksAction.java:269)\n\tat [email protected]/org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleResponse(TransportService.java:1362)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.processResponse(TransportService.java:1447)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1427)\n\tat [email protected]/org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:41)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$1.respondIfFinished(TransportTasksAction.java:134)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$1.onFailure(TransportTasksAction.java:114)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$taskOperation$3(TransportStopTransformAction.java:247)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:170)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:164)\n\tat org.elasticsearch.xpack.transform.transforms.TransformTask.setShouldStopAtCheckpoint(TransformTask.java:319)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$taskOperation$4(TransportStopTransformAction.java:238)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:825)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"}],"type":"status_exception","reason":"Failed to update transform task [transform-unattended] state value should_stop_at_checkpoint from [false] to [false]","stack_trace":"org.elasticsearch.ElasticsearchStatusException: Failed to update transform task [transform-unattended] state value should_stop_at_checkpoint from [false] to [false]\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.buildException(TransportStopTransformAction.java:330)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$waitForStopListener$9(TransportStopTransformAction.java:306)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction.finishHim(TransportTasksAction.java:323)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction.onOperation(TransportTasksAction.java:297)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction$1.handleResponse(TransportTasksAction.java:277)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction$1.handleResponse(TransportTasksAction.java:269)\n\tat [email protected]/org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleResponse(TransportService.java:1362)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.processResponse(TransportService.java:1447)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1427)\n\tat [email protected]/org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:41)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$1.respondIfFinished(TransportTasksAction.java:134)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$1.onFailure(TransportTasksAction.java:114)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$taskOperation$3(TransportStopTransformAction.java:247)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:170)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:164)\n\tat org.elasticsearch.xpack.transform.transforms.TransformTask.setShouldStopAtCheckpoint(TransformTask.java:319)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$taskOperation$4(TransportStopTransformAction.java:238)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:825)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"},"status":409}] at org.junit.Assert.fail(Assert.java:88) at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:373) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:499) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:484) at jdk.internal.reflect.GeneratedMethodAccessor13.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/90301
https://github.com/elastic/elasticsearch/pull/90347
13d946c81b6d3a26666b9944616ee54f84f2beff
05c742d166e93e34e37765c0a1fa751066c4df02
2022-09-23T12:56:36Z
java
2022-09-26T15:10:25Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,289
["x-pack/plugin/security/src/internalClusterTest/java/org/elasticsearch/integration/RoleMappingFileSettingsIT.java"]
[CI] RoleMappingFileSettingsIT testErrorSaved failing
**Build scan:** https://gradle-enterprise.elastic.co/s/xxc4tgiv3w4lu/tests/:x-pack:plugin:security:internalClusterTest/org.elasticsearch.integration.RoleMappingFileSettingsIT/testErrorSaved **Reproduction line:** `./gradlew ':x-pack:plugin:security:internalClusterTest' --tests "org.elasticsearch.integration.RoleMappingFileSettingsIT.testErrorSaved" -Dtests.seed=7D1CDDA0A19FBE98 -Dtests.locale=be -Dtests.timezone=Africa/Kinshasa -Druntime.java=18` **Applicable branches:** main **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.integration.RoleMappingFileSettingsIT&tests.test=testErrorSaved **Failure excerpt:** ``` java.lang.IllegalArgumentException: Failed to process request [org.elasticsearch.action.admin.cluster.settings.ClusterUpdateSettingsRequest/unset] with errors: [[indices.recovery.max_bytes_per_sec] set as read-only by [file_settings]] at org.elasticsearch.reservedstate.ActionWithReservedState.validateForReservedState(ActionWithReservedState.java:69) at org.elasticsearch.action.support.master.TransportMasterNodeAction.validateForReservedState(TransportMasterNodeAction.java:154) at org.elasticsearch.action.support.master.TransportMasterNodeAction.doExecute(TransportMasterNodeAction.java:166) at org.elasticsearch.action.support.master.TransportMasterNodeAction.doExecute(TransportMasterNodeAction.java:54) at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:86) at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$applyInternal$3(SecurityActionFilter.java:163) at org.elasticsearch.action.ActionListener$DelegatingFailureActionListener.onResponse(ActionListener.java:245) at org.elasticsearch.xpack.security.authz.AuthorizationService.lambda$authorizeAction$5(AuthorizationService.java:398) at org.elasticsearch.xpack.security.authz.AuthorizationService$AuthorizationResultListener.onResponse(AuthorizationService.java:962) at org.elasticsearch.xpack.security.authz.AuthorizationService$AuthorizationResultListener.onResponse(AuthorizationService.java:926) at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31) at org.elasticsearch.xpack.security.authz.AuthorizationService.lambda$authorizeAction$6(AuthorizationService.java:412) at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162) at org.elasticsearch.xpack.security.authz.RBACEngine.authorizeClusterAction(RBACEngine.java:172) at org.elasticsearch.xpack.security.authz.AuthorizationService.authorizeAction(AuthorizationService.java:402) at org.elasticsearch.xpack.security.authz.AuthorizationService.maybeAuthorizeRunAs(AuthorizationService.java:378) at org.elasticsearch.xpack.security.authz.AuthorizationService.lambda$authorize$2(AuthorizationService.java:263) at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162) at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31) at org.elasticsearch.xpack.security.authz.RBACEngine.lambda$resolveAuthorizationInfo$0(RBACEngine.java:140) at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162) at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.lambda$getRoles$1(CompositeRolesStore.java:185) at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162) at org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.lambda$buildRole$0(RoleReferenceIntersection.java:47) at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162) at org.elasticsearch.action.support.GroupedActionListener.onResponse(GroupedActionListener.java:55) at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.buildRoleFromRoleReference(CompositeRolesStore.java:283) at org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.lambda$buildRole$1(RoleReferenceIntersection.java:50) at java.lang.Iterable.forEach(Iterable.java:75) at org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.buildRole(RoleReferenceIntersection.java:50) at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.getRole(CompositeRolesStore.java:200) at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.getRoles(CompositeRolesStore.java:175) at org.elasticsearch.xpack.security.authz.RBACEngine.resolveAuthorizationInfo(RBACEngine.java:137) at org.elasticsearch.xpack.security.authz.AuthorizationService.authorize(AuthorizationService.java:265) at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$applyInternal$4(SecurityActionFilter.java:159) at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162) at org.elasticsearch.action.ActionListener$MappedActionListener.onResponse(ActionListener.java:127) at org.elasticsearch.action.ActionListener$RunBeforeActionListener.onResponse(ActionListener.java:415) at org.elasticsearch.xpack.security.authc.AuthenticatorChain.writeAuthToContext(AuthenticatorChain.java:345) at org.elasticsearch.xpack.security.authc.AuthenticatorChain.finishAuthentication(AuthenticatorChain.java:324) at org.elasticsearch.xpack.security.authc.AuthenticatorChain.maybeLookupRunAsUser(AuthenticatorChain.java:202) at org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$doAuthenticate$1(AuthenticatorChain.java:121) at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162) at org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:141) at org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$4(AuthenticatorChain.java:188) at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162) at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.lambda$consumeToken$5(RealmsAuthenticator.java:218) at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162) at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31) at org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:141) at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.lambda$consumeToken$1(RealmsAuthenticator.java:163) at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162) at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.lambda$authenticateWithCache$1(CachingUsernamePasswordRealm.java:155) at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162) at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.handleCachedAuthentication(CachingUsernamePasswordRealm.java:242) at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.lambda$authenticateWithCache$2(CachingUsernamePasswordRealm.java:139) at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162) at org.elasticsearch.common.util.concurrent.ListenableFuture.notifyListenerDirectly(ListenableFuture.java:113) at org.elasticsearch.common.util.concurrent.ListenableFuture.addListener(ListenableFuture.java:55) at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.authenticateWithCache(CachingUsernamePasswordRealm.java:134) at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.authenticate(CachingUsernamePasswordRealm.java:105) at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.lambda$consumeToken$4(RealmsAuthenticator.java:147) at org.elasticsearch.xpack.core.common.IteratingActionListener.run(IteratingActionListener.java:117) at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.consumeToken(RealmsAuthenticator.java:234) at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.authenticate(RealmsAuthenticator.java:83) at org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$5(AuthenticatorChain.java:180) at org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:135) at org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$5(AuthenticatorChain.java:158) at org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:135) at org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$5(AuthenticatorChain.java:158) at org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:135) at org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$5(AuthenticatorChain.java:158) at org.elasticsearch.xpack.core.common.IteratingActionListener.run(IteratingActionListener.java:117) at org.elasticsearch.xpack.security.authc.AuthenticatorChain.doAuthenticate(AuthenticatorChain.java:136) at org.elasticsearch.xpack.security.authc.AuthenticatorChain.authenticateAsync(AuthenticatorChain.java:95) at org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:171) at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.applyInternal(SecurityActionFilter.java:155) at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.apply(SecurityActionFilter.java:114) at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:84) at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:61) at org.elasticsearch.tasks.TaskManager.registerAndExecute(TaskManager.java:201) at org.elasticsearch.client.internal.node.NodeClient.executeLocally(NodeClient.java:112) at org.elasticsearch.client.internal.node.NodeClient.doExecute(NodeClient.java:90) at org.elasticsearch.client.internal.support.AbstractClient.execute(AbstractClient.java:380) at org.elasticsearch.client.internal.FilterClient.doExecute(FilterClient.java:57) at org.elasticsearch.client.internal.support.AbstractClient$1.doExecute(AbstractClient.java:1727) at org.elasticsearch.client.internal.support.AbstractClient.execute(AbstractClient.java:380) at org.elasticsearch.client.internal.FilterClient.doExecute(FilterClient.java:57) at org.elasticsearch.client.internal.support.AbstractClient.execute(AbstractClient.java:380) at org.elasticsearch.client.internal.support.AbstractClient.execute(AbstractClient.java:366) at org.elasticsearch.client.internal.support.AbstractClient$ClusterAdmin.execute(AbstractClient.java:667) at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:34) at org.elasticsearch.action.ActionRequestBuilder.get(ActionRequestBuilder.java:41) at org.elasticsearch.integration.RoleMappingFileSettingsIT.cleanUp(RoleMappingFileSettingsIT.java:149) 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$10.evaluate(RandomizedRunner.java:1004) at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/90289
https://github.com/elastic/elasticsearch/pull/90373
fe2ec6c9167a6abc04739ab4d8d012f92623f0bd
17aef3ccd487a2c13a4b4ce8acd2043612174a6d
2022-09-23T08:55:56Z
java
2022-09-27T15:01:13Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,275
["docs/reference/release-notes/8.4.2.asciidoc", "server/src/main/java/org/elasticsearch/lucene/queries/BlendedTermQuery.java", "server/src/test/java/org/elasticsearch/lucene/queries/BlendedTermQueryTests.java"]
“totalTermFreq must be at least docFreq” error after upgrading to 8.4.2
### Elasticsearch Version 8.4.2 (in Docker) ### Installed Plugins Whatever comes in the Elasticsearch Docker image ### Java Version _bundled_ (`java -version` doesn't work inside the Docker image) ### OS Version Whatever's in the Elasticsearch Docker image: ```console $ uname -a Linux c8dae8d214e8 5.10.76-linuxkit #1 SMP Mon Nov 8 10:21:19 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux ``` ### Problem Description We're seeing the following error from queries in Elasticsearch 8.4.2: > totalTermFreq must be at least docFreq, totalTermFreq: 413958, docFreq: 413959 These are queries that worked successfully in Elasticsearch 8.4.1. The errors are reproducible, but don't affect all queries. The numbers in the error message seem to be stable. ### Steps to Reproduce <details><summary>The index mapping</summary> ```json { "dynamic": "strict", "properties": { "edition": { "type": "text" }, "notes": { "type": "text" }, "physicalDescription": { "type": "text" } } } ``` </details> <details><summary>An example document</summary> ```json { "notes": [ "This material has been provided by University of Bristol Library. The original may be consulted at University of Bristol Library." ], "physicalDescription": "xv, 276 pages ; 19 cm", "edition": "New [3rd] ed." } ``` </details> <details><summary>The query</summary> ```json { "bool": { "should": [ { "multi_match": { "query": "1", "fields": [ "physicalDescription", "edition", "notes" ], "type": "cross_fields", "operator": "And", "_name": "data" } } ] } } ``` </details> <details><summary>The error</summary> ```json { "error": { "root_cause": [ { "type": "illegal_argument_exception", "reason": "totalTermFreq must be at least docFreq, totalTermFreq: 413958, docFreq: 413959" } ], "type": "search_phase_execution_exception", "reason": "all shards failed", "phase": "query", "grouped": true, "failed_shards": [ { "shard": 0, "index": "works-indexed-2022-08-24", "node": "ZTz1Ump1THGC5lMd9VL3XQ", "reason": { "type": "illegal_argument_exception", "reason": "totalTermFreq must be at least docFreq, totalTermFreq: 413958, docFreq: 413959" } } ], "caused_by": { "type": "illegal_argument_exception", "reason": "totalTermFreq must be at least docFreq, totalTermFreq: 413958, docFreq: 413959", "caused_by": { "type": "illegal_argument_exception", "reason": "totalTermFreq must be at least docFreq, totalTermFreq: 413958, docFreq: 413959" } } }, "status": 400 } ``` </details> ## Steps to reproduce 1. Start an instance of the Elasticsearch Docker container: docker run \ --env xpack.security.enabled=false \ --env discovery.type=single-node \ --publish 9200:9200 \ -it docker.elastic.co/elasticsearch/elasticsearch:8.4.2 (These settings may not all be required, but they're how I usually the local Docker image and they avoid having to do the password/CA certs dance. I’m running Docker on macOS, although I don’t think it makes a difference.) 2. Download the following data set from S3: https://wellcomecollection-data-public-delta.s3.eu-west-1.amazonaws.com/elasticsearch-issue-files/works.json.gz (40MB) This contains ~900k documents with a minimal set of fields to cause this error – if I reduce the number of documents or fields, the error goes away. (Corpus is CC-BY 4.0 licensed Wellcome Collection, similar to https://developers.wellcomecollection.org/docs/datasets) 3. Run the attached Python script, which will: * Create a new index with our index mapping * Load the contents of `works.json.gz` into the index * Make a minimal query that induces the error <br/> <details><summary>repro.py</summary> ```python import gzip import json import random from elasticsearch import Elasticsearch from elasticsearch.helpers import bulk client = Elasticsearch("http://localhost:9200") index = f"example-{random.randint(0, 10000)}" resp = client.indices.create( index=index, mappings={ "dynamic": "strict", "properties": { "edition": {"type": "text"}, "notes": {"type": "text"}, "physicalDescription": {"type": "text"}, }, }, ) print("Create index resp:") print(resp) print("") def get_actions(): for line in gzip.open("works.json.gz"): yield {"_index": index, "_op_type": "index", "_source": json.loads(line)} bulk_resp = bulk(client, get_actions()) print("Bulk resp:") print(bulk_resp) print("") query_resp = client.search( index=index, query={ "bool": { "should": [ { "multi_match": { "query": "1", "fields": [ "physicalDescription", "edition", "notes", ], "type": "cross_fields", "operator": "And", "_name": "data", } } ] } }, ) print("Query resp:") print(json.dumps(query_resp.raw, indent=2, sort_keys=True)) ``` </details> ## Expected behaviour The search request returns a list of results. ## Actual behaviour We get an error from the Elasticsearch Python library: ``` elasticsearch.BadRequestError: BadRequestError(400, 'search_phase_execution_exception', 'totalTermFreq must be at least docFreq, totalTermFreq: 287039, docFreq: 287040') ``` ## Notes * If I run my Python script against the 8.4.1 Docker image, the error doesn't reproduce. * I found an issue with a similar error message from 7.0.1: https://github.com/elastic/elasticsearch/issues/41934 Notably, the fix for that issue (https://github.com/elastic/elasticsearch/pull/41938) mentions `cross_fields`, which we're using in our query. * If I remove any of the fields from the query, the error goes away. * I’m using the Elasticsearch Docker image for the sake of an easy reproduction case, but we're seeing this issue in our managed Elastic Cloud clusters also. We actually see the error in two different clusters: - a cluster that was created and populated on 8.4.1, then updated to 8.4.2 - a cluster that was created and populated on 8.4.2 * Our actual documents are quite a bit larger, and the query more complicated. We can share more details if it would be useful, but I figured you'd prefer the minimal version. * The numbers in the error message seem to vary depending on which Elastic node handles the request, but each node returns a consistent set of numbers. e.g. if I run this query in our Elastic Cloud cluster, it gets handled by one of two nodes: * `error.failed_shards[0].node = ZTz1Ump1THGC5lMd9VL3XQ` gets the error "totalTermFreq must be at least docFreq, totalTermFreq: 413958, docFreq: 413959" * `error.failed_shards[0].node = qhmqpnpCQhe9KKSKYWQfNw` gets the error "totalTermFreq must be at least docFreq, totalTermFreq: 437539, docFreq: 437540" If I run the query repeatedly, each node returns consistent numbers. ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/90275
https://github.com/elastic/elasticsearch/pull/90278
b76b96838946d6a140aab2838bdd94f5f22f5952
1acc278c2edd2b165e07b0c44ddd5f6a1d16e0d0
2022-09-22T18:55:07Z
java
2022-09-23T17:35:24Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,272
["docs/changelog/92717.yaml", "modules/data-streams/src/yamlRestTest/resources/rest-api-spec/test/data_stream/110_update_by_query.yml", "server/src/main/java/org/elasticsearch/index/reindex/UpdateByQueryRequest.java"]
Wildcard expansion on `_update_by_query` for data streams
### Elasticsearch Version 8.4.1 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version Any ### Problem Description Data streams can be individually targeted by update by query but wildcards don't seem to work. ie: `/my-data-stream-*/_update_by_query` doesn't work while `/my-data-stream-1,my-data-stream-2/_update_by_query` does. ### Steps to Reproduce Following the [basic setup for datastreams](https://www.elastic.co/guide/en/elasticsearch/reference/current/set-up-a-data-stream.html): ``` PUT /my-data-stream-1/_bulk { "create":{ } } { "@timestamp": "2099-05-06T16:21:15.000Z", "message": "192.0.2.42 - - [06/May/2099:16:21:15 +0000] \"GET /images/bg.jpg HTTP/1.0\" 200 24736" } { "create":{ } } { "@timestamp": "2099-05-06T16:25:42.000Z", "message": "192.0.2.255 - - [06/May/2099:16:25:42 +0000] \"GET /favicon.ico HTTP/1.0\" 200 3638" } PUT /my-data-stream-2/_bulk { "create":{ } } { "@timestamp": "2199-05-06T16:21:15.000Z", "message": "192.0.2.42 - - [06/May/2199:16:21:15 +0000] \"GET /images/bg.jpg HTTP/1.0\" 200 24736" } { "create":{ } } { "@timestamp": "2199-05-06T16:25:42.000Z", "message": "192.0.2.255 - - [06/May/2199:16:25:42 +0000] \"GET /favicon.ico HTTP/1.0\" 200 3638" } POST /my-data-stream-*/_update_by_query { "query": { "term": { "@timestamp": { "value": "2099-05-06T16:21:15.000Z" } } } } ``` Total number of documents is 0. ``` POST /my-data-stream-1,my-data-stream-2/_update_by_query { "query": { "term": { "@timestamp": { "value": "2099-05-06T16:21:15.000Z" } } } } ``` Total number of documents is now 1. ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/90272
https://github.com/elastic/elasticsearch/pull/92717
0d59d3d00ab5c6fa2ea12224cb3bc4fcd5c9f94e
67b53393043a3c5350e11cf20a516c577c2d575c
2022-09-22T16:32:52Z
java
2023-01-05T20:36:38Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,255
["docs/changelog/90347.yaml", "x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/transforms/scheduling/TransformScheduledTask.java", "x-pack/plugin/transform/src/test/java/org/elasticsearch/xpack/transform/transforms/scheduling/TransformScheduledTaskTests.java"]
[CI] XPackRestIT test {p0=transform/transforms_start_stop/Test start transform} failing
**Build scan:** https://gradle-enterprise.elastic.co/s/cejfb3rldrw5q/tests/:x-pack:plugin:yamlRestTest/org.elasticsearch.xpack.test.rest.XPackRestIT/test%20%7Bp0=transform%2Ftransforms_start_stop%2FTest%20start%20transform%7D **Reproduction line:** `./gradlew ':x-pack:plugin:yamlRestTest' --tests "org.elasticsearch.xpack.test.rest.XPackRestIT.test {p0=transform/transforms_start_stop/Test start transform}" -Dtests.seed=941C9B2F60BBA73D -Dtests.locale=es-ES -Dtests.timezone=Atlantic/Reykjavik -Druntime.java=17` **Applicable branches:** 8.5 **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.test.rest.XPackRestIT&tests.test=test%20%7Bp0%3Dtransform/transforms_start_stop/Test%20start%20transform%7D **Failure excerpt:** ``` java.lang.AssertionError: Failure at [transform/transforms_start_stop:77]: expected [2xx] status code but api [transform.stop_transform] returned [409 Conflict] [{"error":{"root_cause":[{"type":"status_exception","reason":"Failed to update transform task [airline-transform-start-stop] state value should_stop_at_checkpoint from [false] to [false]","stack_trace":"org.elasticsearch.ElasticsearchStatusException: Failed to update transform task [airline-transform-start-stop] state value should_stop_at_checkpoint from [false] to [false]\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.buildException(TransportStopTransformAction.java:330)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$waitForStopListener$9(TransportStopTransformAction.java:306)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction.finishHim(TransportTasksAction.java:323)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction.onOperation(TransportTasksAction.java:297)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction$1.handleResponse(TransportTasksAction.java:277)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction$1.handleResponse(TransportTasksAction.java:269)\n\tat [email protected]/org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleResponse(TransportService.java:1362)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.processResponse(TransportService.java:1447)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1427)\n\tat [email protected]/org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:41)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$1.respondIfFinished(TransportTasksAction.java:134)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$1.onFailure(TransportTasksAction.java:114)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$taskOperation$3(TransportStopTransformAction.java:247)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:170)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:164)\n\tat org.elasticsearch.xpack.transform.transforms.TransformTask.setShouldStopAtCheckpoint(TransformTask.java:319)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$taskOperation$4(TransportStopTransformAction.java:238)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:825)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"}],"type":"status_exception","reason":"Failed to update transform task [airline-transform-start-stop] state value should_stop_at_checkpoint from [false] to [false]","stack_trace":"org.elasticsearch.ElasticsearchStatusException: Failed to update transform task [airline-transform-start-stop] state value should_stop_at_checkpoint from [false] to [false]\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.buildException(TransportStopTransformAction.java:330)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$waitForStopListener$9(TransportStopTransformAction.java:306)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction.finishHim(TransportTasksAction.java:323)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction.onOperation(TransportTasksAction.java:297)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction$1.handleResponse(TransportTasksAction.java:277)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction$1.handleResponse(TransportTasksAction.java:269)\n\tat [email protected]/org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleResponse(TransportService.java:1362)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.processResponse(TransportService.java:1447)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1427)\n\tat [email protected]/org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:41)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$1.respondIfFinished(TransportTasksAction.java:134)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$1.onFailure(TransportTasksAction.java:114)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$taskOperation$3(TransportStopTransformAction.java:247)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:170)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:164)\n\tat org.elasticsearch.xpack.transform.transforms.TransformTask.setShouldStopAtCheckpoint(TransformTask.java:319)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$taskOperation$4(TransportStopTransformAction.java:238)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:825)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"},"status":409}] at __randomizedtesting.SeedInfo.seed([941C9B2F60BBA73D:1C48A4F5CE47CAC5]:0) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:510) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:484) at jdk.internal.reflect.GeneratedMethodAccessor13.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) Caused by: java.lang.AssertionError: expected [2xx] status code but api [transform.stop_transform] returned [409 Conflict] [{"error":{"root_cause":[{"type":"status_exception","reason":"Failed to update transform task [airline-transform-start-stop] state value should_stop_at_checkpoint from [false] to [false]","stack_trace":"org.elasticsearch.ElasticsearchStatusException: Failed to update transform task [airline-transform-start-stop] state value should_stop_at_checkpoint from [false] to [false]\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.buildException(TransportStopTransformAction.java:330)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$waitForStopListener$9(TransportStopTransformAction.java:306)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction.finishHim(TransportTasksAction.java:323)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction.onOperation(TransportTasksAction.java:297)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction$1.handleResponse(TransportTasksAction.java:277)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction$1.handleResponse(TransportTasksAction.java:269)\n\tat [email protected]/org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleResponse(TransportService.java:1362)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.processResponse(TransportService.java:1447)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1427)\n\tat [email protected]/org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:41)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$1.respondIfFinished(TransportTasksAction.java:134)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$1.onFailure(TransportTasksAction.java:114)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$taskOperation$3(TransportStopTransformAction.java:247)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:170)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:164)\n\tat org.elasticsearch.xpack.transform.transforms.TransformTask.setShouldStopAtCheckpoint(TransformTask.java:319)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$taskOperation$4(TransportStopTransformAction.java:238)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:825)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"}],"type":"status_exception","reason":"Failed to update transform task [airline-transform-start-stop] state value should_stop_at_checkpoint from [false] to [false]","stack_trace":"org.elasticsearch.ElasticsearchStatusException: Failed to update transform task [airline-transform-start-stop] state value should_stop_at_checkpoint from [false] to [false]\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.buildException(TransportStopTransformAction.java:330)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$waitForStopListener$9(TransportStopTransformAction.java:306)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction.finishHim(TransportTasksAction.java:323)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction.onOperation(TransportTasksAction.java:297)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction$1.handleResponse(TransportTasksAction.java:277)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction$1.handleResponse(TransportTasksAction.java:269)\n\tat [email protected]/org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleResponse(TransportService.java:1362)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.processResponse(TransportService.java:1447)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1427)\n\tat [email protected]/org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:41)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$1.respondIfFinished(TransportTasksAction.java:134)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$1.onFailure(TransportTasksAction.java:114)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$taskOperation$3(TransportStopTransformAction.java:247)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:170)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:164)\n\tat org.elasticsearch.xpack.transform.transforms.TransformTask.setShouldStopAtCheckpoint(TransformTask.java:319)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$taskOperation$4(TransportStopTransformAction.java:238)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:825)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"},"status":409}] at org.junit.Assert.fail(Assert.java:88) at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:373) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:499) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:484) at jdk.internal.reflect.GeneratedMethodAccessor13.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/90255
https://github.com/elastic/elasticsearch/pull/90347
13d946c81b6d3a26666b9944616ee54f84f2beff
05c742d166e93e34e37765c0a1fa751066c4df02
2022-09-22T12:33:37Z
java
2022-09-26T15:10:25Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,228
["rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/nodes.stats/11_indices_metrics.yml"]
[CI] MixedClusterClientYamlTestSuiteIT test {p0=nodes.stats/11_indices_metrics/indices mappings exact count test for indices level} failing
**Build scan:** https://gradle-enterprise.elastic.co/s/dhonuoi32kmdq/tests/:qa:mixed-cluster:v8.5.0%23mixedClusterTest/org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT/test%20%7Bp0=nodes.stats%2F11_indices_metrics%2Findices%20mappings%20exact%20count%20test%20for%20indices%20level%7D **Reproduction line:** `./gradlew ':qa:mixed-cluster:v8.5.0#mixedClusterTest' -Dtests.class="org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT" -Dtests.method="test {p0=nodes.stats/11_indices_metrics/indices mappings exact count test for indices level}" -Dtests.seed=51B46FEC2A1BD9C3 -Dtests.bwc=true -Dtests.locale=en-GB -Dtests.timezone=Asia/Choibalsan -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT&tests.test=test%20%7Bp0%3Dnodes.stats/11_indices_metrics/indices%20mappings%20exact%20count%20test%20for%20indices%20level%7D **Failure excerpt:** ``` java.lang.AssertionError: Failure at [nodes.stats/11_indices_metrics:502]: field [nodes.$node_id.indices.mappings.total_count] is not greater than or equal to [26] Expected: a value equal to or greater than <26> but: <0> was less than <26> at __randomizedtesting.SeedInfo.seed([51B46FEC2A1BD9C3:D9E0503684E7B43B]:0) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:510) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:479) at jdk.internal.reflect.GeneratedMethodAccessor18.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) Caused by: java.lang.AssertionError: field [nodes.$node_id.indices.mappings.total_count] is not greater than or equal to [26] Expected: a value equal to or greater than <26> but: <0> was less than <26> at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.elasticsearch.test.rest.yaml.section.GreaterThanEqualToAssertion.doAssert(GreaterThanEqualToAssertion.java:65) at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:499) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:479) at jdk.internal.reflect.GeneratedMethodAccessor18.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/90228
https://github.com/elastic/elasticsearch/pull/90297
fdfb3b53ac96f865d9964d4147ffb1555109d5cf
2a701bae19d9f63ef3ef25b69db658fa3f576ff4
2022-09-22T10:34:11Z
java
2022-09-26T08:03:11Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,223
["docs/changelog/91515.yaml", "server/src/internalClusterTest/java/org/elasticsearch/discovery/StableMasterDisruptionIT.java", "server/src/main/java/org/elasticsearch/health/Diagnosis.java", "server/src/main/java/org/elasticsearch/health/GetHealthAction.java", "server/src/main/java/org/elasticsearch/health/HealthIndicatorResult.java", "server/src/main/java/org/elasticsearch/health/RestGetHealthAction.java", "server/src/test/java/org/elasticsearch/health/GetHealthResponseTests.java", "server/src/test/java/org/elasticsearch/health/HealthIndicatorResultTests.java"]
Health API chunked response
### Description The health API response can become a few MBs (2-3MB if 50K indices are affected). In less extreme situations the response can be in the 10s/100s of KB. It might be worthwhile looking into chunking its response (this might provide clients with a better experience too)
https://github.com/elastic/elasticsearch/issues/90223
https://github.com/elastic/elasticsearch/pull/91515
e4c56e60af8018bf78391de4b8c64801e571eca0
ebd336f5c74eb7527df6f61dec4bb267431e8d58
2022-09-22T09:41:05Z
java
2022-11-15T11:27:00Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,222
["docs/changelog/90271.yaml", "server/src/main/java/org/elasticsearch/bootstrap/Security.java", "server/src/main/java/org/elasticsearch/cluster/metadata/ReservedStateMetadata.java", "server/src/main/java/org/elasticsearch/reservedstate/service/FileSettingsService.java", "server/src/test/java/org/elasticsearch/cluster/metadata/ReservedStateMetadataTests.java", "server/src/test/java/org/elasticsearch/cluster/metadata/ToAndFromJsonMetadataTests.java"]
[CI] FileSettingsServiceIT testErrorSaved failing
Some more earlier failures with the same issue (all in Windows builds): https://gradle-enterprise.elastic.co/s/ic3vf76vlpiho https://gradle-enterprise.elastic.co/s/7nsuvadgg5bbm https://gradle-enterprise.elastic.co/s/7kcrezoswrgdg **Build scan:** https://gradle-enterprise.elastic.co/s/whgmtqrtovpgu/tests/:server:internalClusterTest/org.elasticsearch.reservedstate.service.FileSettingsServiceIT/testErrorSaved **Reproduction line:** `gradlew ':server:internalClusterTest' --tests "org.elasticsearch.reservedstate.service.FileSettingsServiceIT.testErrorSaved" -Dtests.seed=762F971779043BEB -Dtests.locale=es-BO -Dtests.timezone=Africa/Luanda -Druntime.java=18` **Applicable branches:** main **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.reservedstate.service.FileSettingsServiceIT&tests.test=testErrorSaved **Failure excerpt:** ``` org.elasticsearch.cluster.metadata.ProcessClusterEventTimeoutException: failed to process cluster event (delete_repository [*]) within 30s at __randomizedtesting.SeedInfo.seed([762F971779043BEB:C5DE1806AEE40E21]:0) at org.elasticsearch.cluster.service.MasterService$Batcher.lambda$onTimeout$1(MasterService.java:165) at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:825) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/90222
https://github.com/elastic/elasticsearch/pull/90271
1acc278c2edd2b165e07b0c44ddd5f6a1d16e0d0
6af2b5c184d30e30bbba7d19bc8edd9f4294ae29
2022-09-22T09:19:50Z
java
2022-09-23T17:59:38Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,213
["server/src/main/java/org/elasticsearch/health/node/DiskHealthIndicatorService.java", "server/src/test/java/org/elasticsearch/health/node/DiskHealthIndicatorServiceTests.java"]
Change disk health status calculation to give priority to GREEN over UNKNOWN
null
https://github.com/elastic/elasticsearch/issues/90213
https://github.com/elastic/elasticsearch/pull/90654
b78e71d600c4d07d9f2b5415aaec1c733b68dbd4
a0652116780ab6304918ee1734317a31c8271915
2022-09-22T07:52:18Z
java
2022-10-05T15:46:29Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,212
["server/src/main/java/org/elasticsearch/cluster/routing/RoutingNode.java", "server/src/main/java/org/elasticsearch/health/node/DiskHealthIndicatorService.java", "server/src/main/java/org/elasticsearch/health/node/HealthIndicatorDisplayValues.java", "server/src/test/java/org/elasticsearch/health/node/DiskHealthIndicatorServiceTests.java"]
Refactor Disk health indicator
During the development and review process of the disk health indicator we noticed that it was hard to understand. Since we learnt a lot from the first round of development we want to go through the code one more time and restructure it.
https://github.com/elastic/elasticsearch/issues/90212
https://github.com/elastic/elasticsearch/pull/90366
48c924e1a9f819625d63d12436f45269f9e55871
30f24d4eea7cb44d78561fd2c88ba477fb5d3d70
2022-09-22T07:50:21Z
java
2022-09-28T13:13:31Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,187
["docs/changelog/90458.yaml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search/500_date_range.yml", "server/src/main/java/org/elasticsearch/common/time/JavaDateFormatter.java", "server/src/test/java/org/elasticsearch/common/time/DateFormattersTests.java"]
Match query on date property with format 'uuuu' (year) acts as a range query for years below 1971
### Elasticsearch Version 8.4.2 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version `Linux yrodiere.redhat 5.19.8-200.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Sep 8 19:02:21 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux` ### Problem Description Since Elasticsearch 8.4.2, running a `match` query on a field of type `date` with format `uuuu` will give strange results for years below 1971, similar to running a range query with the range `[<your year>, 1970]`. Yes, that's very weird. This bug was not present in Elasticsearch 8.4.1. ### Steps to Reproduce ```shell # Just to make it easier to re-run the test curl -XDELETE localhost:9200/mytest/\?pretty 1>&2 2>/dev/null || true # Property of type `date` with format `uuuu` curl -XPUT -H "Content-Type: application/json" localhost:9200/mytest/\?pretty -d'{"mappings":{"properties":{"myyear":{"type":"date","format":"uuuu"}}}}' # Index year 1971 curl -XPUT -H "Content-Type: application/json" localhost:9200/mytest/_doc/1\?pretty\&refresh=true -d'{"myyear":"1971"}' # Index two different years below 1971 curl -XPUT -H "Content-Type: application/json" localhost:9200/mytest/_doc/2\?pretty\&refresh=true -d'{"myyear":"1970"}' curl -XPUT -H "Content-Type: application/json" localhost:9200/mytest/_doc/3\?pretty\&refresh=true -d'{"myyear":"1969"}' curl -XPUT -H "Content-Type: application/json" localhost:9200/mytest/_doc/4\?pretty\&refresh=true -d'{"myyear":"1500"}' curl -XPUT -H "Content-Type: application/json" localhost:9200/mytest/_doc/6\?pretty\&refresh=true -d'{"myyear":"0050"}' curl -XPUT -H "Content-Type: application/json" localhost:9200/mytest/_doc/7\?pretty\&refresh=true -d'{"myyear":"-42"}' # Search for year 1970: only 1970 matches curl -XPOST -H "Content-Type: application/json" localhost:9200/mytest/_search\?pretty -d'{"query":{"match":{"myyear":{"query":"1970"}}}}' # Search for year 1969: both 1969 and 1970 match (???) but not 1971 curl -XPOST -H "Content-Type: application/json" localhost:9200/mytest/_search\?pretty -d'{"query":{"match":{"myyear":{"query":"1970"}}}}' # Search for year 1500: 1500, 1969 and 1970 match (???) but not 1971 curl -XPOST -H "Content-Type: application/json" localhost:9200/mytest/_search\?pretty -d'{"query":{"match":{"myyear":{"query":"1500"}}}}' # Search for year 0001: 0050, 1500, 1969 and 1970 match (???) but not 1971 curl -XPOST -H "Content-Type: application/json" localhost:9200/mytest/_search\?pretty -d'{"query":{"match":{"myyear":{"query":"0001"}}}}' ``` ### Logs (if relevant) (Incorrect) result of the last two requests in the script above with Elasticsearch 8.4.2: ```json { "took" : 1, "timed_out" : false, "_shards" : { "total" : 1, "successful" : 1, "skipped" : 0, "failed" : 0 }, "hits" : { "total" : { "value" : 3, "relation" : "eq" }, "max_score" : 1.0, "hits" : [ { "_index" : "mytest", "_id" : "2", "_score" : 1.0, "_source" : { "myyear" : "1970" } }, { "_index" : "mytest", "_id" : "3", "_score" : 1.0, "_source" : { "myyear" : "1969" } }, { "_index" : "mytest", "_id" : "4", "_score" : 1.0, "_source" : { "myyear" : "1500" } } ] } } { "took" : 2, "timed_out" : false, "_shards" : { "total" : 1, "successful" : 1, "skipped" : 0, "failed" : 0 }, "hits" : { "total" : { "value" : 4, "relation" : "eq" }, "max_score" : 1.0, "hits" : [ { "_index" : "mytest", "_id" : "2", "_score" : 1.0, "_source" : { "myyear" : "1970" } }, { "_index" : "mytest", "_id" : "3", "_score" : 1.0, "_source" : { "myyear" : "1969" } }, { "_index" : "mytest", "_id" : "4", "_score" : 1.0, "_source" : { "myyear" : "1500" } }, { "_index" : "mytest", "_id" : "6", "_score" : 1.0, "_source" : { "myyear" : "0050" } } ] } } ``` (Correct) result of the last two requests in the script above with Elasticsearch 8.4.1: ```json { "took" : 3, "timed_out" : false, "_shards" : { "total" : 1, "successful" : 1, "skipped" : 0, "failed" : 0 }, "hits" : { "total" : { "value" : 1, "relation" : "eq" }, "max_score" : 1.0, "hits" : [ { "_index" : "mytest", "_id" : "4", "_score" : 1.0, "_source" : { "myyear" : "1500" } } ] } } { "took" : 2, "timed_out" : false, "_shards" : { "total" : 1, "successful" : 1, "skipped" : 0, "failed" : 0 }, "hits" : { "total" : { "value" : 0, "relation" : "eq" }, "max_score" : null, "hits" : [ ] } } ```
https://github.com/elastic/elasticsearch/issues/90187
https://github.com/elastic/elasticsearch/pull/90458
32dbb0b4e0e181bbe8aed4fc0fed3abb793268fb
3f3a95e2dc2ca3c6e6a546a1c4787581ca0c316b
2022-09-21T12:04:57Z
java
2022-10-04T08:43:44Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,144
["server/src/main/java/org/elasticsearch/index/codec/bloomfilter/ES85BloomFilterPostingsFormat.java"]
[CI] IndexShardTests testIndexCheckOnStartup failure: AssertionError
### CI Link https://gradle-enterprise.elastic.co/s/t6gxc3xhkugpm ### Repro line ./gradlew ':server:test' --tests "org.elasticsearch.index.shard.IndexShardTests.testIndexCheckOnStartup" -Dtests.seed=C312D6F77D4FB3D2 -Dtests.locale=ar -Dtests.timezone=Asia/Harbin -Druntime.java=18 ### Does it reproduce? Yes ### Applicable branches main ### Failure history _No response_ ### Failure excerpt This one looks like a seed-dependent edge case. ``` org.elasticsearch.index.shard.IndexShardTests > testIndexCheckOnStartup FAILED java.lang.AssertionError: bloom_filter=BloomFilter[field=_id, startFilePointer=58, bloomFilterSize=191], max_docs=19 at __randomizedtesting.SeedInfo.seed([C312D6F77D4FB3D2:C2B4035E77C9710A]:0) at org.elasticsearch.index.codec.bloomfilter.ES85BloomFilterPostingsFormat$FieldsReader.<init>(ES85BloomFilterPostingsFormat.java:309) at org.elasticsearch.index.codec.bloomfilter.ES85BloomFilterPostingsFormat.fieldsProducer(ES85BloomFilterPostingsFormat.java:104) at org.apache.lucene.codecs.perfield.PerFieldPostingsFormat$FieldsReader.<init>(PerFieldPostingsFormat.java:329) at org.apache.lucene.codecs.perfield.PerFieldPostingsFormat.fieldsProducer(PerFieldPostingsFormat.java:391) at org.apache.lucene.index.SegmentCoreReaders.<init>(SegmentCoreReaders.java:118) at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:91) at org.apache.lucene.index.CheckIndex.testSegment(CheckIndex.java:928) at org.apache.lucene.index.CheckIndex.checkIndex(CheckIndex.java:714) at org.apache.lucene.index.CheckIndex.checkIndex(CheckIndex.java:552) at org.apache.lucene.tests.util.TestUtil.checkIndex(TestUtil.java:343) at org.apache.lucene.tests.store.MockDirectoryWrapper.close(MockDirectoryWrapper.java:909) at org.apache.lucene.store.FilterDirectory.close(FilterDirectory.java:111) at org.elasticsearch.index.shard.IndexShardTests.testIndexCheckOnStartup(IndexShardTests.java:3472) 1> [2022-09-20T03:06:35,180][INFO ][o.e.i.s.IndexShardTests ] [testIndexCheckOnStartup] before test 1> [2022-09-20T03:06:40,594][INFO ][o.e.t.CorruptionUtils ] [testIndexCheckOnStartup] Corrupting file -- flipping at position 603 from ffffffbe to ffffffbf file: _0.cfs 1> [2022-09-20T03:06:40,596][INFO ][o.e.t.CorruptionUtils ] [testIndexCheckOnStartup] Checksum before: [310573513] after: [4230669878] checksum value after corruption: 310573513] file: _0.cfs length: 2403 1> [2022-09-20T03:06:40,691][WARN ][o.e.i.s.IndexShard ] [testIndexCheckOnStartup] [index][0] performing expensive diagnostic checks during shard startup [index.shard.check_on_startup=checksum]; these checks should only be enabled temporarily, you must remove this index setting as soon as possible 1> [2022-09-20T03:06:40,720][INFO ][o.e.i.s.IndexShard ] [testIndexCheckOnStartup] [index][0] check index [ok]: checksum check passed on [_0.cfe] 1> [2022-09-20T03:06:40,721][INFO ][o.e.i.s.IndexShard ] [testIndexCheckOnStartup] [index][0] check index [ok]: checksum check passed on [_0.si] 1> [2022-09-20T03:06:40,724][WARN ][o.e.i.s.IndexShard ] [testIndexCheckOnStartup] [index][0] check index [failure]: checksum failed on [_0.cfs] 1> org.apache.lucene.index.CorruptIndexException: checksum failed (hardware problem?) : expected=1282f9c9 actual=68a1558d (resource=BufferedChecksumIndexInput(MockIndexInputWrapper(MMapIndexInput(path="/Users/wbrafford/work/repos/elasticsearch/server/build/testrun/test/temp/org.elasticsearch.index.shard.IndexShardTests_C312D6F77D4FB3D2-003/tempDir-002/indices/_na_/0/index/_0.cfs")))) 1> at org.apache.lucene.codecs.CodecUtil.checkFooter(CodecUtil.java:440) ~[lucene-core-9.4.0-snapshot-923a9f800ae.jar:9.4.0-snapshot-923a9f800ae 923a9f800aef4f376eb1978c02e94ca6bacc5a5a - jenkins - 2022-08-16 19:10:52] 1> at org.apache.lucene.codecs.CodecUtil.checksumEntireFile(CodecUtil.java:619) ~[lucene-core-9.4.0-snapshot-923a9f800ae.jar:9.4.0-snapshot-923a9f800ae 923a9f800aef4f376eb1978c02e94ca6bacc5a5a - jenkins - 2022-08-16 19:10:52] 1> at org.elasticsearch.index.store.Store.checkIntegrity(Store.java:542) ~[main/:?] 1> at org.elasticsearch.index.shard.IndexShard.doCheckIndex(IndexShard.java:2924) ~[main/:?] 1> at org.elasticsearch.index.shard.IndexShard.checkIndex(IndexShard.java:2895) ~[main/:?] 1> at org.elasticsearch.index.shard.IndexShard.maybeCheckIndex(IndexShard.java:2885) ~[main/:?] 1> at org.elasticsearch.index.shard.IndexShard.openEngineAndRecoverFromTranslog(IndexShard.java:1885) ~[main/:?] 1> at org.elasticsearch.index.shard.StoreRecovery.internalRecoverFromStore(StoreRecovery.java:463) ~[main/:?] 1> at org.elasticsearch.index.shard.StoreRecovery.lambda$recoverFromStore$0(StoreRecovery.java:90) ~[main/:?] 1> at org.elasticsearch.action.ActionListener.completeWith(ActionListener.java:462) ~[main/:?] 1> at org.elasticsearch.index.shard.StoreRecovery.recoverFromStore(StoreRecovery.java:88) ~[main/:?] 1> at org.elasticsearch.index.shard.IndexShard.recoverFromStore(IndexShard.java:2248) ~[main/:?] 1> at org.elasticsearch.index.shard.IndexShardTestCase.recoverFromStore(IndexShardTestCase.java:962) ~[framework-8.5.0-SNAPSHOT.jar:?] 1> at org.elasticsearch.index.shard.IndexShardTestCase.recoverShardFromStore(IndexShardTestCase.java:628) ~[framework-8.5.0-SNAPSHOT.jar:?] 1> at org.elasticsearch.index.shard.IndexShardTestCase.newStartedShard(IndexShardTestCase.java:589) ~[framework-8.5.0-SNAPSHOT.jar:?] 1> at org.elasticsearch.index.shard.IndexShardTests.lambda$testIndexCheckOnStartup$79(IndexShardTests.java:3456) ~[test/:?] 1> at org.apache.lucene.tests.util.LuceneTestCase._expectThrows(LuceneTestCase.java:3012) ~[lucene-test-framework-9.4.0-snapshot-923a9f800ae.jar:9.4.0-snapshot-923a9f800ae 923a9f800aef4f376eb1978c02e94ca6bacc5a5a - jenkins - 2022-08-16 19:10:52] 1> at org.apache.lucene.tests.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2849) ~[lucene-test-framework-9.4.0-snapshot-923a9f800ae.jar:9.4.0-snapshot-923a9f800ae 923a9f800aef4f376eb1978c02e94ca6bacc5a5a - jenkins - 2022-08-16 19:10:52] 1> at org.apache.lucene.tests.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2840) ~[lucene-test-framework-9.4.0-snapshot-923a9f800ae.jar:9.4.0-snapshot-923a9f800ae 923a9f800aef4f376eb1978c02e94ca6bacc5a5a - jenkins - 2022-08-16 19:10:52] 1> at org.elasticsearch.index.shard.IndexShardTests.testIndexCheckOnStartup(IndexShardTests.java:3454) ~[test/:?] 1> at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) ~[?:?] 1> at java.lang.reflect.Method.invoke(Method.java:577) ~[?:?] 1> at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) ~[randomizedtesting-runner-2.8.0.jar:?] 1> at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) ~[randomizedtesting-runner-2.8.0.jar:?] 1> at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) ~[randomizedtesting-runner-2.8.0.jar:?] 1> at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) ~[randomizedtesting-runner-2.8.0.jar:?] 1> at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) ~[randomizedtesting-runner-2.8.0.jar:?] 1> at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) ~[lucene-test-framework-9.4.0-snapshot-923a9f800ae.jar:9.4.0-snapshot-923a9f800ae 923a9f800aef4f376eb1978c02e94ca6bacc5a5a - jenkins - 2022-08-16 19:10:52] 1> at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) ~[lucene-test-framework-9.4.0-snapshot-923a9f800ae.jar:9.4.0-snapshot-923a9f800ae 923a9f800aef4f376eb1978c02e94ca6bacc5a5a - jenkins - 2022-08-16 19:10:52] 1> at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) ~[lucene-test-framework-9.4.0-snapshot-923a9f800ae.jar:9.4.0-snapshot-923a9f800ae 923a9f800aef4f376eb1978c02e94ca6bacc5a5a - jenkins - 2022-08-16 19:10:52] 1> at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) ~[lucene-test-framework-9.4.0-snapshot-923a9f800ae.jar:9.4.0-snapshot-923a9f800ae 923a9f800aef4f376eb1978c02e94ca6bacc5a5a - jenkins - 2022-08-16 19:10:52] 1> at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) ~[lucene-test-framework-9.4.0-snapshot-923a9f800ae.jar:9.4.0-snapshot-923a9f800ae 923a9f800aef4f376eb1978c02e94ca6bacc5a5a - jenkins - 2022-08-16 19:10:52] 1> at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) ~[randomizedtesting-runner-2.8.0.jar:?] 1> at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) ~[randomizedtesting-runner-2.8.0.jar:?] 1> at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) ~[randomizedtesting-runner-2.8.0.jar:?] 1> at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) ~[randomizedtesting-runner-2.8.0.jar:?] 1> at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) ~[randomizedtesting-runner-2.8.0.jar:?] 1> at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) ~[randomizedtesting-runner-2.8.0.jar:?] 1> at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) ~[randomizedtesting-runner-2.8.0.jar:?] 1> at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) ~[randomizedtesting-runner-2.8.0.jar:?] 1> at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) ~[lucene-test-framework-9.4.0-snapshot-923a9f800ae.jar:9.4.0-snapshot-923a9f800ae 923a9f800aef4f376eb1978c02e94ca6bacc5a5a - jenkins - 2022-08-16 19:10:52] 1> at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) ~[randomizedtesting-runner-2.8.0.jar:?] 1> at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) ~[lucene-test-framework-9.4.0-snapshot-923a9f800ae.jar:9.4.0-snapshot-923a9f800ae 923a9f800aef4f376eb1978c02e94ca6bacc5a5a - jenkins - 2022-08-16 19:10:52] 1> at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) ~[randomizedtesting-runner-2.8.0.jar:?] 1> at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) ~[randomizedtesting-runner-2.8.0.jar:?] 1> at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) ~[randomizedtesting-runner-2.8.0.jar:?] 1> at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) ~[randomizedtesting-runner-2.8.0.jar:?] 1> at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) ~[lucene-test-framework-9.4.0-snapshot-923a9f800ae.jar:9.4.0-snapshot-923a9f800ae 923a9f800aef4f376eb1978c02e94ca6bacc5a5a - jenkins - 2022-08-16 19:10:52] 1> at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) ~ 1> [lucene-test-framework-9.4.0-snapshot-923a9f800ae.jar:9.4.0-snapshot-923a9f800ae 923a9f800aef4f376eb1978c02e94ca6bacc5a5a - jenkins - 2022-08-16 19:10:52] 1> at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) ~[lucene-test-framework-9.4.0-snapshot-923a9f800ae.jar:9.4.0-snapshot-923a9f800ae 923a9f800aef4f376eb1978c02e94ca6bacc5a5a - jenkins - 2022-08-16 19:10:52] 1> at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) ~[lucene-test-framework-9.4.0-snapshot-923a9f800ae.jar:9.4.0-snapshot-923a9f800ae 923a9f800aef4f376eb1978c02e94ca6bacc5a5a - jenkins - 2022-08-16 19:10:52] 1> at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) ~[lucene-test-framework-9.4.0-snapshot-923a9f800ae.jar:9.4.0-snapshot-923a9f800ae 923a9f800aef4f376eb1978c02e94ca6bacc5a5a - jenkins - 2022-08-16 19:10:52] 1> at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) ~[randomizedtesting-runner-2.8.0.jar:?] 1> at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) ~[randomizedtesting-runner-2.8.0.jar:?] 1> at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) ~[randomizedtesting-runner-2.8.0.jar:?] 1> at java.lang.Thread.run(Thread.java:833) ~[?:?] 1> [2022-09-20T03:06:40,749][INFO ][o.e.i.s.IndexShard ] [testIndexCheckOnStartup] [index][0] check index [ok]: checksum check passed on [segments_3] 1> [2022-09-20T03:06:40,824][INFO ][o.e.i.s.IndexShardTests ] [testIndexCheckOnStartup] after test ```
https://github.com/elastic/elasticsearch/issues/90144
https://github.com/elastic/elasticsearch/pull/90150
08957aba4f8b5d9e1efeab3d654db8e65e468b06
30d3a40ce281cf300bddc8f06aa0c607a97d36a5
2022-09-19T19:26:39Z
java
2022-09-21T12:00:17Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,126
["build-tools-internal/version.properties", "docs/changelog/91722.yaml", "gradle/verification-metadata.xml", "modules/repository-gcs/build.gradle", "plugins/discovery-gce/build.gradle"]
Upgrade google-oauth-client for discovery-gce plugin
The same library is upgraded to [1.34.1](https://mvnrepository.com/artifact/com.google.oauth-client/google-oauth-client/1.34.1) for the repository-gcs plugin as part of #87800. It would be great to keep consistent and upgrade [its usage](https://github.com/elastic/elasticsearch/blob/3603aa71516b4d0e35ef41510ff8995a2580136c/plugins/discovery-gce/build.gradle#L13) in the discovery-gce plugin as well.
https://github.com/elastic/elasticsearch/issues/90126
https://github.com/elastic/elasticsearch/pull/91722
8e44603c0663d31e957109970d52b17fd4d4704f
93ecc4d7b3640568705406216d23271afd6cbf97
2022-09-19T06:21:46Z
java
2023-02-01T18:01:52Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,121
["docs/changelog/90317.yaml", "server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/BinaryRangeAggregator.java", "server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorTests.java"]
auto_date_histogram aggregation with ip_ranges sub-aggregation fails with illegal_state_exception
### Elasticsearch Version 7.16.2 ### Installed Plugins _No response_ ### Java Version openjdk 11.0.13 ### OS Version Ubuntu 18.04.1 ### Problem Description Using `auto_date_histogram` with a `ip_range` sub-aggregation with `<n>` ranges fails with an `illegal_state_exception` with reason `Expected [<n>] buckets, but got [0]`. ### Steps to Reproduce Create index with `date` field and `ip` field and put in test data ``` PUT /testing_bug { "mappings": { "properties": { "@timestamp": { "type": "date" }, "ip": { "type": "ip" } } } } POST /testing_bug/_doc { "@timestamp": "2022-08-01T07:00:00.000Z", "ip": "192.168.1.1" } POST /testing_bug/_doc { "@timestamp": "2022-08-02T07:00:00.000Z", "ip": "192.168.1.2" } ``` Do `auto_date_histogram` aggregation with `ip_ranges` sub-aggregation ``` GET /testing_bug/_search { "aggs": { "testing": { "auto_date_histogram": { "field": "@timestamp", "buckets": 10 }, "aggs": { "ip_ranges": { "ip_range": { "field": "ip", "ranges": [ { "from": "10.0.0.5", "to": "10.0.0.10" } ] } } } } } } ``` Error response: ``` { "error" : { "root_cause" : [ ], "type" : "search_phase_execution_exception", "reason" : "", "phase" : "fetch", "grouped" : true, "failed_shards" : [ ], "caused_by" : { "type" : "illegal_state_exception", "reason" : "Expected [1] buckets, but got [0]" } }, "status" : 500 } ``` ### Logs (if relevant) ``` [2022-09-17T01:00:53,509][WARN ][r.suppressed ] [ip-*********] path: /********/_search, params: {pretty=true, index=*******} org.elasticsearch.action.search.SearchPhaseExecutionException: at org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseFailure(AbstractSearchAsyncAction.java:725) [elasticsearch-7.16.2.jar:7.16.2] at org.elasticsearch.action.search.FetchSearchPhase$1.onFailure(FetchSearchPhase.java:103) [elasticsearch-7.16.2.jar:7.16.2] at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:28) [elasticsearch-7.16.2.jar:7.16.2] at org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:33) [elasticsearch-7.16.2.jar:7.16.2] at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:777) [elasticsearch-7.16.2.jar:7.16.2] at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) [elasticsearch-7.16.2.jar:7.16.2] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?] at java.lang.Thread.run(Thread.java:833) [?:?] Caused by: java.lang.IllegalStateException: Expected [5] buckets, but got [0] at org.elasticsearch.search.aggregations.bucket.range.InternalBinaryRange.reduce(InternalBinaryRange.java:242) ~[elasticsearch-7.16.2.jar:7.16.2] at org.elasticsearch.search.aggregations.InternalAggregations.reduce(InternalAggregations.java:253) ~[elasticsearch-7.16.2.jar:7.16.2] at org.elasticsearch.search.aggregations.InternalAggregations.reduce(InternalAggregations.java:267) ~[elasticsearch-7.16.2.jar:7.16.2] at org.elasticsearch.search.aggregations.bucket.histogram.InternalAutoDateHistogram.reduceBucket(InternalAutoDateHistogram.java:395) ~[elasticsearch-7.16.2.jar:7.16.2] at org.elasticsearch.search.aggregations.bucket.histogram.InternalAutoDateHistogram.mergeConsecutiveBuckets(InternalAutoDateHistogram.java:562) ~[elasticsearch-7.16.2.jar:7.16.2] at org.elasticsearch.search.aggregations.bucket.histogram.InternalAutoDateHistogram.maybeMergeConsecutiveBuckets(InternalAutoDateHistogram.java:547) ~[elasticsearch-7.16.2.jar:7.16.2] at org.elasticsearch.search.aggregations.bucket.histogram.InternalAutoDateHistogram.reduce(InternalAutoDateHistogram.java:517) ~[elasticsearch-7.16.2.jar:7.16.2] at org.elasticsearch.search.aggregations.InternalAggregations.reduce(InternalAggregations.java:253) ~[elasticsearch-7.16.2.jar:7.16.2] at org.elasticsearch.search.aggregations.InternalAggregations.topLevelReduce(InternalAggregations.java:188) ~[elasticsearch-7.16.2.jar:7.16.2] at org.elasticsearch.action.search.SearchPhaseController.reduceAggs(SearchPhaseController.java:538) ~[elasticsearch-7.16.2.jar:7.16.2] at org.elasticsearch.action.search.SearchPhaseController.reducedQueryPhase(SearchPhaseController.java:507) ~[elasticsearch ```
https://github.com/elastic/elasticsearch/issues/90121
https://github.com/elastic/elasticsearch/pull/90317
a1ea442e25e9695bcc9e8d39c9d0c28d1f467e97
366eb44a18cd5e1ce390752069ab36fe00192d5f
2022-09-17T01:18:55Z
java
2022-09-26T16:02:11Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,113
["server/src/internalClusterTest/java/org/elasticsearch/reservedstate/service/SnaphotsAndFileSettingsIT.java"]
[CI] SnaphotsAndFileSettingsIT testRestoreWithPersistedFileSettings failing
3 very rare failures in the last 28 days. Wasn't able to get a local reproduction. **Build scan:** https://gradle-enterprise.elastic.co/s/em57lkjvl445e/tests/:server:internalClusterTest/org.elasticsearch.reservedstate.service.SnaphotsAndFileSettingsIT/testRestoreWithPersistedFileSettings **Reproduction line:** `./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.reservedstate.service.SnaphotsAndFileSettingsIT.testRestoreWithPersistedFileSettings" -Dtests.seed=2D954AF1FE4F15BD -Dtests.locale=vi-VN -Dtests.timezone=Europe/Luxembourg -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.reservedstate.service.SnaphotsAndFileSettingsIT&tests.test=testRestoreWithPersistedFileSettings **Failure excerpt:** ``` java.lang.IllegalArgumentException: Failed to process request [org.elasticsearch.action.admin.cluster.settings.ClusterUpdateSettingsRequest/unset] with errors: [[indices.recovery.max_bytes_per_sec] set as read-only by [file_settings]] at org.elasticsearch.action.support.master.TransportMasterNodeAction.validateForImmutableState(TransportMasterNodeAction.java:196) at org.elasticsearch.action.support.master.TransportMasterNodeAction.doExecute(TransportMasterNodeAction.java:210) at org.elasticsearch.action.support.master.TransportMasterNodeAction.doExecute(TransportMasterNodeAction.java:59) at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:86) at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:61) at org.elasticsearch.tasks.TaskManager.registerAndExecute(TaskManager.java:201) at org.elasticsearch.client.internal.node.NodeClient.executeLocally(NodeClient.java:112) at org.elasticsearch.client.internal.node.NodeClient.doExecute(NodeClient.java:90) at org.elasticsearch.client.internal.support.AbstractClient.execute(AbstractClient.java:380) at org.elasticsearch.client.internal.FilterClient.doExecute(FilterClient.java:57) at org.elasticsearch.client.internal.support.AbstractClient.execute(AbstractClient.java:380) at org.elasticsearch.client.internal.support.AbstractClient.execute(AbstractClient.java:366) at org.elasticsearch.client.internal.support.AbstractClient$ClusterAdmin.execute(AbstractClient.java:667) at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:34) at org.elasticsearch.action.ActionRequestBuilder.get(ActionRequestBuilder.java:48) at org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked(ElasticsearchAssertions.java:91) at org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked(ElasticsearchAssertions.java:87) at org.elasticsearch.reservedstate.service.SnaphotsAndFileSettingsIT.testRestoreWithPersistedFileSettings(SnaphotsAndFileSettingsIT.java:328) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/90113
https://github.com/elastic/elasticsearch/pull/90117
7dc8806dda46cb5eb5f140eda988b6e32cee446f
8607cbc0a0556bcd068fa103f2b78a0a62a9c5ec
2022-09-15T19:18:55Z
java
2022-09-19T13:58:56Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,109
["server/src/main/java/org/elasticsearch/cluster/ClusterInfo.java", "server/src/main/java/org/elasticsearch/cluster/InternalClusterInfoService.java", "server/src/main/java/org/elasticsearch/cluster/routing/ShardRouting.java", "server/src/main/java/org/elasticsearch/cluster/routing/allocation/decider/DiskThresholdDecider.java", "server/src/test/java/org/elasticsearch/cluster/ClusterInfoTests.java", "server/src/test/java/org/elasticsearch/cluster/DiskUsageTests.java", "server/src/test/java/org/elasticsearch/cluster/routing/allocation/decider/DiskThresholdDeciderUnitTests.java"]
org.elasticsearch.cluster.ClusterInfo#routingToDataPath should not use ShardRouting as a key
### Description It should be enough to have ShardId + nodeId key in `routingToDataPath` to find the necessary data path. Changing the key would allow us to minimize the size of ClusterInfo size and find the data path when shard changes its status. `ClusterInfo` might be sent over the wire when cluster allocation explain is executed with `includeDiskInfo=true`. ShardRouting -> ShardId + nodeId conversion is trivial. The oposit would require additional information that could be faked. Current key is also used in here: https://github.com/elastic/elasticsearch/blob/9ebbe1c62bf0157d332f20f392544a1921a710df/server/src/main/java/org/elasticsearch/cluster/ClusterInfo.java#L149-L154 where it produces a string with ShardRouting#shortSummary that is excessive and might be simplified to ShardId + nodeId as well
https://github.com/elastic/elasticsearch/issues/90109
https://github.com/elastic/elasticsearch/pull/90515
78762820e279d08b5c0f436b349c783d1c981d83
89370d1e9d6ca2b7a5dbb2bcf9c91362558e647c
2022-09-15T14:08:02Z
java
2022-10-04T09:23:02Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,082
["server/src/main/java/org/elasticsearch/indices/recovery/RecoverySettings.java", "server/src/test/java/org/elasticsearch/indices/recovery/RecoverySettingsTests.java", "test/framework/src/main/java/org/elasticsearch/test/MockLogAppender.java"]
Snapshot-based peer recovery permit exhaustion yields incorrect message
We limit the number of concurrent blob downloads per node and per recovery, but if a user configures too many concurrent recoveries they may run out of per-node download permits which yields the following message: > 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] The `[25]` here is wrong, the 25 permits are shared across all inbound recoveries so we should divide the suggested value by `cluster.routing.allocation.node_concurrent_incoming_recoveries`. In extreme cases the user may have configured so many concurrent recoveries that the only reasonable limit is zero, and in that case we should suggest setting `indices.recovery.use_snapshots: false` instead.
https://github.com/elastic/elasticsearch/issues/90082
https://github.com/elastic/elasticsearch/pull/96336
31044b9ac027560e14ab82ae9914ae3d4867f380
0a7bb649b4c517ca5ca506ffe0b0c0073f2874e3
2022-09-15T08:11:12Z
java
2023-05-30T18:58:14Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,076
["server/src/main/java/org/elasticsearch/search/aggregations/CardinalityUpperBound.java", "server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeAggregationBuilder.java", "server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FilterAggregationBuilder.java", "server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FilterAggregator.java", "server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FilterAggregatorFactory.java", "server/src/test/java/org/elasticsearch/search/aggregations/bucket/filter/FilterAggregatorTests.java"]
`filter` aggregation should run as `filters`
### Elasticsearch Version main ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version all ### Problem Description The `filter` agg should run as `filters` because the `filters` agg has tons of optimizations, some of them are even around when running with a single filter. At a minimum we should optimize the `filter` agg in the same way as `filters`, but I think it's easier if we just run it as `filters`. ### Steps to Reproduce see above ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/90076
https://github.com/elastic/elasticsearch/pull/90318
5516c516b2b49dba772892154d903bea921d963a
ad00fafc3df71ffb5b526a1bff0cb38c1e6fa33f
2022-09-14T20:27:03Z
java
2022-09-30T09:26:06Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,071
["server/src/test/java/org/elasticsearch/index/engine/InternalEngineTests.java"]
[CI] InternalEngineTests testMergeThreadLogging failing
Also seen in a local run of `./gradlew :server:test` but doesn't easily reproduce, even when running many iterations in a loop. **Build scan:** https://gradle-enterprise.elastic.co/s/kbbpmnbim32ck/tests/:server:test/org.elasticsearch.index.engine.InternalEngineTests/testMergeThreadLogging **Reproduction line:** `./gradlew ':server:test' --tests "org.elasticsearch.index.engine.InternalEngineTests.testMergeThreadLogging" -Dtests.seed=A7B12EB0B151C9B5 -Dtests.locale=es-PA -Dtests.timezone=Europe/Tiraspol -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** No Edit to add: eventually this failed for me after a couple of thousand iterations on a machine that was concurrently running `stress-ng --timeout 0 --cpu 16` **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.index.engine.InternalEngineTests&tests.test=testMergeThreadLogging **Failure excerpt:** ``` java.lang.AssertionError: Expected: (an empty collection or iterable containing [a string starting with "JNDI lookup class is not available because this JRE does not support JNDI. JNDI string lookups will not be available, continuing configuration.", a string starting with "JMX runtime input lookup class is not available because this JRE does not support JMX. JMX lookups will not be available, continuing configuration. "] or iterable containing [a string starting with "JMX runtime input lookup class is not available because this JRE does not support JMX. JMX lookups will not be available, continuing configuration. "]) but: was <[Attempted to append to non-started appender testMergeThreadLogging]> at __randomizedtesting.SeedInfo.seed([A7B12EB0B151C9B5:62EC5C98C993D8A4]: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:658) at org.elasticsearch.test.ESTestCase.after(ESTestCase.java:464) at jdk.internal.reflect.GeneratedMethodAccessor7.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:1004) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/90071
https://github.com/elastic/elasticsearch/pull/102640
6df66d017584978616a46851b61959edc183c790
64f4d75d67fd6fb014da4b05d792790791ba4e7c
2022-09-14T16:26:29Z
java
2023-11-27T14:19:20Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,054
["x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/indexing/AsyncTwoPhaseIndexer.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/indexing/AsyncTwoPhaseIndexerTests.java"]
[CI] XPackRestIT test {p0=transform/transforms_unattended/Test unattended put and start} failing
reproduces if I slow down the validation call, which seems to happen on CI. **Build scan:** https://gradle-enterprise.elastic.co/s/n5k3wukhl7ksy/tests/:x-pack:plugin:yamlRestTest/org.elasticsearch.xpack.test.rest.XPackRestIT/test%20%7Bp0=transform%2Ftransforms_unattended%2FTest%20unattended%20put%20and%20start%7D **Reproduction line:** `./gradlew ':x-pack:plugin:yamlRestTest' --tests "org.elasticsearch.xpack.test.rest.XPackRestIT.test {p0=transform/transforms_unattended/Test unattended put and start}" -Dtests.seed=92EAE2D17C809F82 -Dtests.locale=ar-SD -Dtests.timezone=America/Yellowknife -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.test.rest.XPackRestIT&tests.test=test%20%7Bp0%3Dtransform/transforms_unattended/Test%20unattended%20put%20and%20start%7D **Failure excerpt:** ``` java.lang.AssertionError: Failure at [transform/transforms_unattended:14]: expected [2xx] status code but api [transform.stop_transform] returned [409 Conflict] [{"error":{"root_cause":[{"type":"status_exception","reason":"Failed to update transform task [transform-unattended] state value should_stop_at_checkpoint from [false] to [false]","stack_trace":"org.elasticsearch.ElasticsearchStatusException: Failed to update transform task [transform-unattended] state value should_stop_at_checkpoint from [false] to [false]\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.buildException(TransportStopTransformAction.java:329)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$waitForStopListener$9(TransportStopTransformAction.java:305)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction.finishHim(TransportTasksAction.java:323)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction.onOperation(TransportTasksAction.java:297)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction$1.handleResponse(TransportTasksAction.java:277)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction$1.handleResponse(TransportTasksAction.java:269)\n\tat [email protected]/org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleResponse(TransportService.java:1362)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.processResponse(TransportService.java:1447)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1427)\n\tat [email protected]/org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:41)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$1.respondIfFinished(TransportTasksAction.java:134)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$1.onFailure(TransportTasksAction.java:114)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$taskOperation$3(TransportStopTransformAction.java:246)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:170)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:164)\n\tat org.elasticsearch.xpack.transform.transforms.TransformTask.setShouldStopAtCheckpoint(TransformTask.java:319)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$taskOperation$4(TransportStopTransformAction.java:238)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:825)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"}],"type":"status_exception","reason":"Failed to update transform task [transform-unattended] state value should_stop_at_checkpoint from [false] to [false]","stack_trace":"org.elasticsearch.ElasticsearchStatusException: Failed to update transform task [transform-unattended] state value should_stop_at_checkpoint from [false] to [false]\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.buildException(TransportStopTransformAction.java:329)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$waitForStopListener$9(TransportStopTransformAction.java:305)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction.finishHim(TransportTasksAction.java:323)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction.onOperation(TransportTasksAction.java:297)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction$1.handleResponse(TransportTasksAction.java:277)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction$1.handleResponse(TransportTasksAction.java:269)\n\tat [email protected]/org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleResponse(TransportService.java:1362)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.processResponse(TransportService.java:1447)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1427)\n\tat [email protected]/org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:41)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$1.respondIfFinished(TransportTasksAction.java:134)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$1.onFailure(TransportTasksAction.java:114)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$taskOperation$3(TransportStopTransformAction.java:246)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:170)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:164)\n\tat org.elasticsearch.xpack.transform.transforms.TransformTask.setShouldStopAtCheckpoint(TransformTask.java:319)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$taskOperation$4(TransportStopTransformAction.java:238)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:825)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"},"status":409}] at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:510) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:484) at jdk.internal.reflect.GeneratedMethodAccessor13.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) Caused by: java.lang.AssertionError: expected [2xx] status code but api [transform.stop_transform] returned [409 Conflict] [{"error":{"root_cause":[{"type":"status_exception","reason":"Failed to update transform task [transform-unattended] state value should_stop_at_checkpoint from [false] to [false]","stack_trace":"org.elasticsearch.ElasticsearchStatusException: Failed to update transform task [transform-unattended] state value should_stop_at_checkpoint from [false] to [false]\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.buildException(TransportStopTransformAction.java:329)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$waitForStopListener$9(TransportStopTransformAction.java:305)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction.finishHim(TransportTasksAction.java:323)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction.onOperation(TransportTasksAction.java:297)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction$1.handleResponse(TransportTasksAction.java:277)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction$1.handleResponse(TransportTasksAction.java:269)\n\tat [email protected]/org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleResponse(TransportService.java:1362)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.processResponse(TransportService.java:1447)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1427)\n\tat [email protected]/org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:41)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$1.respondIfFinished(TransportTasksAction.java:134)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$1.onFailure(TransportTasksAction.java:114)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$taskOperation$3(TransportStopTransformAction.java:246)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:170)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:164)\n\tat org.elasticsearch.xpack.transform.transforms.TransformTask.setShouldStopAtCheckpoint(TransformTask.java:319)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$taskOperation$4(TransportStopTransformAction.java:238)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:825)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"}],"type":"status_exception","reason":"Failed to update transform task [transform-unattended] state value should_stop_at_checkpoint from [false] to [false]","stack_trace":"org.elasticsearch.ElasticsearchStatusException: Failed to update transform task [transform-unattended] state value should_stop_at_checkpoint from [false] to [false]\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.buildException(TransportStopTransformAction.java:329)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$waitForStopListener$9(TransportStopTransformAction.java:305)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction.finishHim(TransportTasksAction.java:323)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction.onOperation(TransportTasksAction.java:297)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction$1.handleResponse(TransportTasksAction.java:277)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction$1.handleResponse(TransportTasksAction.java:269)\n\tat [email protected]/org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleResponse(TransportService.java:1362)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.processResponse(TransportService.java:1447)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1427)\n\tat [email protected]/org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:41)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:162)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$1.respondIfFinished(TransportTasksAction.java:134)\n\tat [email protected]/org.elasticsearch.action.support.tasks.TransportTasksAction$1.onFailure(TransportTasksAction.java:114)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$taskOperation$3(TransportStopTransformAction.java:246)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:170)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:164)\n\tat org.elasticsearch.xpack.transform.transforms.TransformTask.setShouldStopAtCheckpoint(TransformTask.java:319)\n\tat org.elasticsearch.xpack.transform.action.TransportStopTransformAction.lambda$taskOperation$4(TransportStopTransformAction.java:238)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:825)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\n"},"status":409}] at org.junit.Assert.fail(Assert.java:88) at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:373) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:499) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:484) at jdk.internal.reflect.GeneratedMethodAccessor13.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/90054
https://github.com/elastic/elasticsearch/pull/90063
2e4e3b848dc6409574e42e986ced793812de95d5
9b9540e0e92226f5bc1869d1ad9376b6fb85a1f5
2022-09-14T10:26:13Z
java
2022-09-15T09:35:45Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,050
["modules/parent-join/src/test/java/org/elasticsearch/join/aggregations/ParentToChildrenAggregatorTests.java"]
[CI] ParentToChildrenAggregatorTests testBestDeferringCollectorWithSubAggOfChildrenAggNeedingScores failing
**Build scan:** https://gradle-enterprise.elastic.co/s/uffxmc6e6bqtm/tests/:modules:parent-join:test/org.elasticsearch.join.aggregations.ParentToChildrenAggregatorTests/testBestDeferringCollectorWithSubAggOfChildrenAggNeedingScores **Reproduction line:** `./gradlew ':modules:parent-join:test' --tests "org.elasticsearch.join.aggregations.ParentToChildrenAggregatorTests.testBestDeferringCollectorWithSubAggOfChildrenAggNeedingScores" -Dtests.seed=4FE7CCF03CEAFE4F -Dtests.locale=uk -Dtests.timezone=Europe/Copenhagen -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.join.aggregations.ParentToChildrenAggregatorTests&tests.test=testBestDeferringCollectorWithSubAggOfChildrenAggNeedingScores **Failure excerpt:** ``` java.lang.IndexOutOfBoundsException: Index 1 out of bounds for length 1 at __randomizedtesting.SeedInfo.seed([4FE7CCF03CEAFE4F:A64E48CA989589B9]:0) at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266) at java.util.Objects.checkIndex(Objects.java:359) at java.util.ArrayList.get(ArrayList.java:427) at org.elasticsearch.join.aggregations.ParentToChildrenAggregatorTests.testBestDeferringCollectorWithSubAggOfChildrenAggNeedingScores(ParentToChildrenAggregatorTests.java:249) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/90050
https://github.com/elastic/elasticsearch/pull/90052
59580f7ac2231cf81da50b7edc0dd169087b8735
5195cba24ea98521c9b5e63751145ca71012429f
2022-09-14T02:38:13Z
java
2022-09-14T08:31:38Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,022
["docs/changelog/90033.yaml", "server/src/main/java/org/elasticsearch/action/admin/indices/delete/DeleteIndexClusterStateUpdateRequest.java", "server/src/main/java/org/elasticsearch/action/admin/indices/delete/TransportDeleteIndexAction.java", "server/src/main/java/org/elasticsearch/cluster/metadata/MetadataDeleteIndexService.java", "server/src/test/java/org/elasticsearch/cluster/metadata/MetadataDeleteIndexServiceTests.java"]
Batch index delete cluster state tasks
### Description Currently every index delete task is processed individually. Additionally, they are marked at the `urgent` level. This leads to scenarios where a number of index delete tasks that are queued up very quickly can lead to starvation. We have seen these tasks delaying the processing of `node-join` tasks disrupting cluster state processing.
https://github.com/elastic/elasticsearch/issues/90022
https://github.com/elastic/elasticsearch/pull/90033
e1d897f00b3bff3f67ad7ed87c725eb6b3608a4a
51770816b503b01f9f99c5d99030e0daf7704e53
2022-09-13T02:56:21Z
java
2022-09-21T10:03:27Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,009
["qa/smoke-test-http/src/javaRestTest/java/org/elasticsearch/http/snapshots/RestGetSnapshotsIT.java"]
[CI] RestGetSnapshotsIT testLargeChunkedResponses failing
Similar to my comment at https://github.com/elastic/elasticsearch/pull/89906#discussion_r966954967 - we shouldn't need to make such a big state to test this, let's assert that we're emitting chunks more cheaply. **Build scan:** https://gradle-enterprise.elastic.co/s/chaqkujb74bqi/tests/:qa:smoke-test-http:javaRestTest/org.elasticsearch.http.snapshots.RestGetSnapshotsIT/testLargeChunkedResponses **Reproduction line:** `./gradlew ':qa:smoke-test-http:javaRestTest' --tests "org.elasticsearch.http.snapshots.RestGetSnapshotsIT.testLargeChunkedResponses" -Dtests.seed=5B081F1C9FA0F56A -Dtests.locale=ar-LB -Dtests.timezone=Europe/Vilnius -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.http.snapshots.RestGetSnapshotsIT&tests.test=testLargeChunkedResponses **Failure excerpt:** ``` java.util.concurrent.ExecutionException: org.elasticsearch.cluster.metadata.ProcessClusterEventTimeoutException: failed to process cluster event (create_snapshot [snap-hlysigaaqacnvy0qaaaaaa-186]) within 30s at __randomizedtesting.SeedInfo.seed([5B081F1C9FA0F56A:1B166F273D62071E]:0) at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.getValue(BaseFuture.java:257) at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.get(BaseFuture.java:244) at org.elasticsearch.common.util.concurrent.BaseFuture.get(BaseFuture.java:75) at org.elasticsearch.snapshots.AbstractSnapshotIntegTestCase.createNSnapshots(AbstractSnapshotIntegTestCase.java:716) at org.elasticsearch.http.snapshots.RestGetSnapshotsIT.testLargeChunkedResponses(RestGetSnapshotsIT.java:330) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) Caused by: org.elasticsearch.cluster.metadata.ProcessClusterEventTimeoutException: failed to process cluster event (create_snapshot [snap-hlysigaaqacnvy0qaaaaaa-186]) within 30s at org.elasticsearch.cluster.service.MasterService$Batcher.lambda$onTimeout$1(MasterService.java:165) at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:825) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/90009
https://github.com/elastic/elasticsearch/pull/90016
35ea2b13b54ce28ff8a07da3fe0d51be6969ed0d
d40f5b468217cf896813b93d16392d4e1a091391
2022-09-12T14:54:19Z
java
2022-09-13T08:09:38Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
90,004
["qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/DesiredNodesUpgradeIT.java"]
[CI] DesiredNodesUpgradeIT testUpgradeDesiredNodes failing
**Build scan:** https://gradle-enterprise.elastic.co/s/ut6mplayk6lf2/tests/:qa:rolling-upgrade:v8.1.0%23oneThirdUpgradedTest/org.elasticsearch.upgrades.DesiredNodesUpgradeIT/testUpgradeDesiredNodes And a number of other failures from the BWC builds https://gradle-enterprise.elastic.co/s/4khmaxwf7yjsg (v8.1.1) https://gradle-enterprise.elastic.co/s/k5ayyrfweyphm (v8.2.3) https://gradle-enterprise.elastic.co/s/54k2gbug2jpmk (v8.2.2) **Reproduction line:** `./gradlew ':qa:rolling-upgrade:v8.1.0#oneThirdUpgradedTest' -Dtests.class="org.elasticsearch.upgrades.DesiredNodesUpgradeIT" -Dtests.method="testUpgradeDesiredNodes" -Dtests.seed=33809BF03E709502 -Dtests.bwc=true -Dtests.locale=es-AR -Dtests.timezone=America/Port_of_Spain -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.upgrades.DesiredNodesUpgradeIT&tests.test=testUpgradeDesiredNodes **Failure excerpt:** ``` junit.framework.AssertionFailedError: Expected exception ResponseException but no exception was thrown at __randomizedtesting.SeedInfo.seed([33809BF03E709502:45D45FD46FF557A7]:0) at org.apache.lucene.tests.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2854) at org.apache.lucene.tests.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2840) at org.elasticsearch.upgrades.DesiredNodesUpgradeIT.assertDesiredNodesWithFloatProcessorsAreRejectedInOlderVersions(DesiredNodesUpgradeIT.java:117) at org.elasticsearch.upgrades.DesiredNodesUpgradeIT.testUpgradeDesiredNodes(DesiredNodesUpgradeIT.java:51) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/90004
https://github.com/elastic/elasticsearch/pull/89907
b69d1bd15af0fccf4668e076547295ceeb09a59c
eaf188b71f2a217ae8ef3c49fe8cdea6336b8cb2
2022-09-12T13:31:55Z
java
2022-09-13T12:18:50Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,994
["modules/aggregations/src/yamlRestTest/resources/rest-api-spec/test/aggregations/max_metric.yml"]
[CI] MixedClusterClientYamlTestSuiteIT test {p0=search.aggregation/110_max_metric/Merging results with unmapped fields} failing
**Build scan:** https://gradle-enterprise.elastic.co/s/od2upyikcyxqy/tests/:qa:mixed-cluster:v8.4.2%23mixedClusterTest/org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT/test%20%7Bp0=search.aggregation%2F110_max_metric%2FMerging%20results%20with%20unmapped%20fields%7D **Reproduction line:** `./gradlew ':qa:mixed-cluster:v8.4.2#mixedClusterTest' -Dtests.class="org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT" -Dtests.method="test {p0=search.aggregation/110_max_metric/Merging results with unmapped fields}" -Dtests.seed=355383EBFAB56F94 -Dtests.bwc=true -Dtests.locale=be-BY -Dtests.timezone=Etc/Greenwich -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT&tests.test=test%20%7Bp0%3Dsearch.aggregation/110_max_metric/Merging%20results%20with%20unmapped%20fields%7D **Failure excerpt:** ``` java.lang.AssertionError: Failure at [search.aggregation/110_max_metric:223]: field [aggregations.date_field_max.value_as_string] is null at __randomizedtesting.SeedInfo.seed([355383EBFAB56F94:BD07BC315449026C]:0) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:510) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:479) at jdk.internal.reflect.GeneratedMethodAccessor18.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) Caused by: java.lang.AssertionError: field [aggregations.date_field_max.value_as_string] is null 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.test.rest.yaml.section.MatchAssertion.doAssert(MatchAssertion.java:78) at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:499) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:479) at jdk.internal.reflect.GeneratedMethodAccessor18.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/89994
https://github.com/elastic/elasticsearch/pull/91416
b5dd2cd406db28b8a78fa5c3ade500a111b3d711
8d5519da742d6344e9ab9c7477a9ff9256e1fbec
2022-09-12T08:32:41Z
java
2022-11-08T16:52:13Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,956
["docs/changelog/89929.yaml", "server/src/main/java/org/elasticsearch/repositories/blobstore/BlobStoreRepository.java", "server/src/main/java/org/elasticsearch/repositories/blobstore/ShardSnapshotTaskRunner.java", "server/src/test/java/org/elasticsearch/repositories/blobstore/BlobStoreRepositoryTests.java", "server/src/test/java/org/elasticsearch/repositories/blobstore/ShardSnapshotTaskRunnerTests.java", "test/framework/src/main/java/org/elasticsearch/test/ESTestCase.java"]
[CI] SharedClusterSnapshotRestoreIT.testDataFileFailureDuringSnapshot failing
### CI Link https://gradle-enterprise.elastic.co/s/ou2sap2dhy3q2/tests/:server:internalClusterTest/org.elasticsearch.snapshots.SharedClusterSnapshotRestoreIT/testDataFileFailureDuringSnapshot ### Repro line ./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.snapshots.SharedClusterSnapshotRestoreIT.testDataFileFailureDuringSnapshot" -Dtests.seed=37B64CEE1DCEACEB -Dtests.locale=uk -Dtests.timezone=Africa/Lusaka -Druntime.java=17 ### Does it reproduce? Yes ### Applicable branches main ### Failure history _No response_ ### Failure excerpt ``` java.lang.Exception: Test abandoned because suite timeout was reached. at __randomizedtesting.SeedInfo.seed([37B64CEE1DCEACEB]:0) ```
https://github.com/elastic/elasticsearch/issues/89956
https://github.com/elastic/elasticsearch/pull/89929
31cba2d085c9b9ea029cf913526e0ad6d2ad865c
7164e3511979e2d01f1da6944452f4f610386d5c
2022-09-09T08:54:03Z
java
2022-09-09T10:57:04Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,933
["docs/changelog/94322.yaml", "docs/reference/search/terms-enum.asciidoc", "server/src/main/java/org/elasticsearch/index/mapper/IpFieldMapper.java", "server/src/main/java/org/elasticsearch/index/mapper/IpPrefixAutomatonUtil.java", "server/src/main/java/org/elasticsearch/index/mapper/KeywordFieldMapper.java", "server/src/main/java/org/elasticsearch/index/mapper/SortedSetDocValuesTerms.java", "server/src/test/java/org/elasticsearch/index/mapper/IpPrefixAutomatonUtilTests.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/termsenum/TermsEnumTests.java"]
Add `_terms_enum` support for the `ip` field type
### Description ### Description The _terms_enum API [currently supports](https://github.com/elastic/elasticsearch/pull/83244) keyword, constant_keyword and flattened fields. Kibana would also like to support `ip` field type: https://github.com/elastic/kibana/issues/140266 Opening this issue to discuss if this is possible. I tried to workaround this limitation in Kibana using terms_agg for suggestions, but this also didn't work: https://github.com/elastic/kibana/issues/140266#issuecomment-1240828371 Note: there is a similar issue and some progress on _version_ type: https://github.com/elastic/elasticsearch/issues/83403
https://github.com/elastic/elasticsearch/issues/89933
https://github.com/elastic/elasticsearch/pull/94322
706d0651c5f839232f83a4643e08b1bceb9c8458
d8021360ffbca9625881540fb8bd36fb839ffd77
2022-09-08T14:56:22Z
java
2023-03-07T18:26:20Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,927
["docs/changelog/89929.yaml", "server/src/main/java/org/elasticsearch/repositories/blobstore/BlobStoreRepository.java", "server/src/main/java/org/elasticsearch/repositories/blobstore/ShardSnapshotTaskRunner.java", "server/src/test/java/org/elasticsearch/repositories/blobstore/BlobStoreRepositoryTests.java", "server/src/test/java/org/elasticsearch/repositories/blobstore/ShardSnapshotTaskRunnerTests.java", "test/framework/src/main/java/org/elasticsearch/test/ESTestCase.java"]
[CI] DedicatedClusterSnapshotRestoreIT testSnapshotDeleteRelocatingPrimaryIndex failing
**Build scan:** https://gradle-enterprise.elastic.co/s/4647z2olruffa/tests/:server:internalClusterTest/org.elasticsearch.snapshots.DedicatedClusterSnapshotRestoreIT/testSnapshotDeleteRelocatingPrimaryIndex **Reproduction line:** `./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.snapshots.DedicatedClusterSnapshotRestoreIT.testSnapshotDeleteRelocatingPrimaryIndex" -Dtests.seed=7CB99D2060E62358 -Dtests.locale=ar-KW -Dtests.timezone=ECT -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.snapshots.DedicatedClusterSnapshotRestoreIT&tests.test=testSnapshotDeleteRelocatingPrimaryIndex **Failure excerpt:** ``` java.util.concurrent.TimeoutException: Timeout waiting for task. at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.get(BaseFuture.java:228) at org.elasticsearch.common.util.concurrent.BaseFuture.get(BaseFuture.java:53) at org.elasticsearch.test.ClusterServiceUtils.awaitClusterState(ClusterServiceUtils.java:226) at org.elasticsearch.snapshots.AbstractSnapshotIntegTestCase.awaitClusterState(AbstractSnapshotIntegTestCase.java:577) at org.elasticsearch.snapshots.AbstractSnapshotIntegTestCase.awaitNoMoreRunningOperations(AbstractSnapshotIntegTestCase.java:560) at org.elasticsearch.snapshots.AbstractSnapshotIntegTestCase.awaitNoMoreRunningOperations(AbstractSnapshotIntegTestCase.java:555) at org.elasticsearch.snapshots.DedicatedClusterSnapshotRestoreIT.testSnapshotDeleteRelocatingPrimaryIndex(DedicatedClusterSnapshotRestoreIT.java:1140) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ``` As discussed with @pxsalehi this is a real bug that can lead to aborted or failed shard snapshots never completing due to an oversight in #88209 . This could theoretically also affect other tests around aborting/failing shard snapshots. A fix is known and in-progress.
https://github.com/elastic/elasticsearch/issues/89927
https://github.com/elastic/elasticsearch/pull/89929
31cba2d085c9b9ea029cf913526e0ad6d2ad865c
7164e3511979e2d01f1da6944452f4f610386d5c
2022-09-08T13:58:55Z
java
2022-09-09T10:57:04Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,924
["server/src/main/java/org/elasticsearch/cluster/metadata/MetadataIndexAliasesService.java", "server/src/test/java/org/elasticsearch/cluster/metadata/MetadataIndexAliasesServiceTests.java"]
`MetadataIndexAliasesService` submits unbatched tasks at URGENT priority
As the title says. These tasks should be batched because they can arise from ILM actions. Relates #77466
https://github.com/elastic/elasticsearch/issues/89924
https://github.com/elastic/elasticsearch/pull/90010
c40615c3155a90bd54f68254d183c54df2752367
e0496fab29940a75b7a561594a25f39e6063164a
2022-09-08T13:40:44Z
java
2022-12-30T17:40:03Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,922
["server/src/internalClusterTest/java/org/elasticsearch/snapshots/SnapshotStatusApisIT.java"]
[CI] SnapshotStatusApisIT testGetSnapshotsWithSnapshotInProgress failing
**Build scan:** https://gradle-enterprise.elastic.co/s/5qpzulqnwsxq4/tests/:server:internalClusterTest/org.elasticsearch.snapshots.SnapshotStatusApisIT/testGetSnapshotsWithSnapshotInProgress **Reproduction line:** `./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.snapshots.SnapshotStatusApisIT.testGetSnapshotsWithSnapshotInProgress" -Dtests.seed=66E13F9D406B80D7 -Dtests.locale=nb-NO -Dtests.timezone=Canada/Yukon -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.snapshots.SnapshotStatusApisIT&tests.test=testGetSnapshotsWithSnapshotInProgress **Failure excerpt:** ``` java.util.concurrent.TimeoutException: Timeout waiting for task. at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.get(BaseFuture.java:228) at org.elasticsearch.common.util.concurrent.BaseFuture.get(BaseFuture.java:53) at org.elasticsearch.test.ClusterServiceUtils.awaitClusterState(ClusterServiceUtils.java:226) at org.elasticsearch.snapshots.AbstractSnapshotIntegTestCase.awaitClusterState(AbstractSnapshotIntegTestCase.java:575) at org.elasticsearch.snapshots.AbstractSnapshotIntegTestCase.awaitClusterState(AbstractSnapshotIntegTestCase.java:567) at org.elasticsearch.snapshots.SnapshotStatusApisIT.testGetSnapshotsWithSnapshotInProgress(SnapshotStatusApisIT.java:429) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/89922
https://github.com/elastic/elasticsearch/pull/89925
e89586c20d67695bde7e740d22a71437c02beaf1
79ec874135cd8a12486ecd235e3d003e445c67de
2022-09-08T12:56:09Z
java
2022-09-08T14:36:59Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,913
["docs/changelog/90426.yaml", "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"]
Watcher domain allowlist seemingly has no effect
### Elasticsearch Version 8.3.3 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version 18.04.1-Ubuntu SMP (Running on elastic cloud) ### Problem Description I want to limit the possible email-recipients for watcher actions using `xpack.notification.email.account.domain_allowlist` > Specifies domains to which emails are allowed to be sent. Emails with recipients (To:, Cc:, or Bcc:) outside of these domains will be rejected and an error thrown. This setting defaults to ["*"] which means all domains are allowed. Simple globbing is supported, such as *.company.com in the list of allowed domains. [Docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/notification-settings.html) However, the setting doesn't seem to stop emails from being sent. Watcher emails using not-allowed email recipients are still being sent. EDIT: It seems related to the settings API. The settings works when it is put into `elasticsearch.yml` ### Steps to Reproduce Configure the allowlist: ``` PUT _cluster/settings { "persistent": { "xpack.notification.email.account.domain_allowlist": ["allowed.domain"] } } ``` EDIT: This seems to be the problem. The settings works when it is put into `elasticsearch.yml`. Then I'm using Kibana to configure a watcher that sends an email to some other domain. For example: ``` "actions": { "email_1": { "email": { "profile": "standard", "to": [ "[email protected]" ], "body": { "text": "nt" }, "subject": "Watch [{{ctx.metadata.name}}] has exceeded the threshold" } } }, ``` There is also a default email account configured: ``` GET _cluster/settings: [..] "xpack": { "notification": { "email": { "account": { "work": { "email_defaults": { "from": "[email protected]" }, "smtp": { "host": "containerhost", "port": "10025" } }, "domain_allowlist": ["allowed.domain"] }, "default_account": "work" } ``` Sidenote here: It was necessary to configure `"default_account": "work"` since otherwise Elasticsearch was trying to use `domain_allowlist` as an email account. So that could also indicate some kind of config problem. ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/89913
https://github.com/elastic/elasticsearch/pull/90426
d9ea080d1032cd7ed48ce6886e7bc21929d7a9e9
48c924e1a9f819625d63d12436f45269f9e55871
2022-09-08T11:12:54Z
java
2022-09-28T13:07:13Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,908
["server/src/internalClusterTest/java/org/elasticsearch/snapshots/CloneSnapshotIT.java", "test/framework/src/main/java/org/elasticsearch/snapshots/AbstractSnapshotIntegTestCase.java"]
[CI] CloneSnapshotIT testRemoveFailedCloneFromCSWithQueuedSnapshotInProgress failing
**Build scan:** https://gradle-enterprise.elastic.co/s/dbmwpj3qke4vo/tests/:server:internalClusterTest/org.elasticsearch.snapshots.CloneSnapshotIT/testRemoveFailedCloneFromCSWithQueuedSnapshotInProgress **Reproduction line:** `./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.snapshots.CloneSnapshotIT.testRemoveFailedCloneFromCSWithQueuedSnapshotInProgress" -Dtests.seed=DA62EE933D04B4AC -Dtests.locale=en-CA -Dtests.timezone=Etc/GMT+3 -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.snapshots.CloneSnapshotIT&tests.test=testRemoveFailedCloneFromCSWithQueuedSnapshotInProgress **Failure excerpt:** ``` java.lang.Exception: Test abandoned because suite timeout was reached. at __randomizedtesting.SeedInfo.seed([DA62EE933D04B4AC]:0) ```
https://github.com/elastic/elasticsearch/issues/89908
https://github.com/elastic/elasticsearch/pull/89914
397df7dbffac38d542653aa7fc824c08e5bbdf64
bab58c091a396bb7ac6c543a7fd229fbbb990ad7
2022-09-08T09:47:33Z
java
2022-09-08T13:32:25Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,905
["server/src/internalClusterTest/java/org/elasticsearch/cluster/coordination/RareClusterStateIT.java"]
[CI] RareClusterStateIT testDelayedMappingPropagationOnReplica failing
**Build scan:** https://gradle-enterprise.elastic.co/s/hmt34pcxbhwja/tests/:server:internalClusterTest/org.elasticsearch.cluster.coordination.RareClusterStateIT/testDelayedMappingPropagationOnReplica **Reproduction line:** `./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.cluster.coordination.RareClusterStateIT.testDelayedMappingPropagationOnReplica" -Dtests.seed=E2A1EC86CEE80019 -Dtests.locale=zh-CN -Dtests.timezone=PNT -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.cluster.coordination.RareClusterStateIT&tests.test=testDelayedMappingPropagationOnReplica **Failure excerpt:** ``` java.lang.AssertionError: (No message provided) at __randomizedtesting.SeedInfo.seed([E2A1EC86CEE80019:9EDF2D499E0F3BFA]:0) at org.junit.Assert.fail(Assert.java:86) at org.junit.Assert.assertTrue(Assert.java:41) at org.junit.Assert.assertFalse(Assert.java:64) at org.junit.Assert.assertFalse(Assert.java:74) at org.elasticsearch.cluster.coordination.RareClusterStateIT.testDelayedMappingPropagationOnReplica(RareClusterStateIT.java:405) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/89905
https://github.com/elastic/elasticsearch/pull/90720
37cb6130696f35867f04fadcc949109bf0241c54
eeeb79d98f4d0f92a39378a7da473056c6e6746d
2022-09-08T09:07:40Z
java
2022-10-18T09:28:28Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,877
["qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/DesiredNodesUpgradeIT.java"]
[CI] DesiredNodesUpgradeIT » testUpgradeDesiredNodes
### CI Link https://gradle-enterprise.elastic.co/s/ff35boj3dy3qo/tests/:qa:rolling-upgrade:v8.2.0%23oneThirdUpgradedTest/org.elasticsearch.upgrades.DesiredNodesUpgradeIT/testUpgradeDesiredNodes ### Repro line `./gradlew ':qa:rolling-upgrade:v8.2.0#oneThirdUpgradedTest' -Dtests.class="org.elasticsearch.upgrades.DesiredNodesUpgradeIT" -Dtests.method="testUpgradeDesiredNodes" -Dtests.seed=E0D4B6781946820C -Dtests.bwc=true -Dtests.locale=it-IT -Dtests.timezone=America/Sao_Paulo -Druntime.java=17` ### Does it reproduce? Yes ### Applicable branches main ### Failure history https://gradle-enterprise.elastic.co/scans/tests?search.timeZoneId=Europe/Berlin&tests.container=org.elasticsearch.upgrades.DesiredNodesUpgradeIT&tests.test=testUpgradeDesiredNodes# ### Failure excerpt ``` junit.framework.AssertionFailedError: Expected exception ResponseException but no exception was thrown at __randomizedtesting.SeedInfo.seed([E0D4B6781946820C:9680725C48C340A9]:0) at org.apache.lucene.tests.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2854) at org.apache.lucene.tests.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2840) at org.elasticsearch.upgrades.DesiredNodesUpgradeIT.assertDesiredNodesWithFloatProcessorsAreRejectedInOlderVersions(DesiredNodesUpgradeIT.java:117) at org.elasticsearch.upgrades.DesiredNodesUpgradeIT.testUpgradeDesiredNodes(DesiredNodesUpgradeIT.java:51) ```
https://github.com/elastic/elasticsearch/issues/89877
https://github.com/elastic/elasticsearch/pull/89907
b69d1bd15af0fccf4668e076547295ceeb09a59c
eaf188b71f2a217ae8ef3c49fe8cdea6336b8cb2
2022-09-07T14:08:32Z
java
2022-09-13T12:18:50Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,868
["docs/changelog/89196.yaml", "x-pack/plugin/spatial/src/internalClusterTest/java/org/elasticsearch/xpack/spatial/search/GeoGridAggAndQueryConsistencyIT.java", "x-pack/plugin/spatial/src/main/java/org/elasticsearch/xpack/spatial/index/query/H3LatLonGeometry.java", "x-pack/plugin/spatial/src/test/java/org/elasticsearch/xpack/spatial/index/query/H3LatLonGeometryTests.java"]
[CI] org.elasticsearch.xpack.spatial.index.query.H3LatLonGeometryTests.testIndexPoints
### CI Link https://gradle-enterprise.elastic.co/s/752jgoui6up4c/tests/:x-pack:plugin:spatial:test/org.elasticsearch.xpack.spatial.index.query.H3LatLonGeometryTests/testIndexPoints?top-execution=1 ### Repro line `./gradlew ':x-pack:plugin:spatial:test' --tests "org.elasticsearch.xpack.spatial.index.query.H3LatLonGeometryTests.testIndexPoints" -Dtests.seed=DFC1C0965EFCD1EB -Dtests.locale=sr-CS -Dtests.timezone=ECT -Druntime.java=17` Also failed with various other seeds: * `-Dtests.seed=DFC1C0965EFCD1EB` * `-Dtests.seed=72BEB29AA48F2C0B` * `-Dtests.seed=CAF2A0770CD2CC7E` ### Does it reproduce? Yes ### Applicable branches main ### Failure history https://gradle-enterprise.elastic.co/scans/tests?search.timeZoneId=Europe/Stockholm&tests.container=org.elasticsearch.xpack.spatial.index.query.H3LatLonGeometryTests&tests.test=testIndexPoints ### Failure excerpt java.lang.AssertionError: expected:<81> but was:<82>
https://github.com/elastic/elasticsearch/issues/89868
https://github.com/elastic/elasticsearch/pull/89196
d40f5b468217cf896813b93d16392d4e1a091391
1c2bd7c0f15044b1ed41f5a64ac8f6544eb331b7
2022-09-07T12:21:16Z
java
2022-09-13T09:05:46Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,867
["server/src/main/java/org/elasticsearch/cluster/coordination/Coordinator.java", "test/framework/src/main/java/org/elasticsearch/cluster/coordination/AbstractCoordinatorTestCase.java"]
Failure in CoordinatorTests.testSingleNodeDiscoveryStabilisesEvenWhenDisrupted
### CI Link https://gradle-enterprise.elastic.co/s/yckwl5zjomfas ### Repro line ``` ./gradlew ':server:test' --tests "org.elasticsearch.cluster.coordination.CoordinatorTests.testSingleNodeDiscoveryStabilisesEvenWhenDisrupted" -Dtests.seed=949AB28501F8ED37:BBC20DD1A5D4EF81 ``` ### Does it reproduce? Yes ### Applicable branches main ### Failure history https://ci-stats.elastic.co/s/jenkins/goto/da1547f0-2ea6-11ed-8233-4bd40c8511bb - 3 similar-looking failures over the last 90 days ### Failure excerpt ```org.elasticsearch.cluster.coordination.CoordinatorTests > testSingleNodeDiscoveryStabilisesEvenWhenDisrupted FAILED java.lang.AssertionError: leaders Expected: not an empty collection but: was <[]> at __randomizedtesting.SeedInfo.seed([949AB28501F8ED37:BBC20DD1A5D4EF81]:0) at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.elasticsearch.cluster.coordination.AbstractCoordinatorTestCase$Cluster.getAnyLeader(AbstractCoordinatorTestCase.java:791) at org.elasticsearch.cluster.coordination.CoordinatorTests.testSingleNodeDiscoveryStabilisesEvenWhenDisrupted(CoordinatorTests.java:1939) Suite: Test class org.elasticsearch.cluster.coordination.CoordinatorTests 2> REPRODUCE WITH: ./gradlew ':server:test' --tests "org.elasticsearch.cluster.coordination.CoordinatorTests.testSingleNodeDiscoveryStabilisesEvenWhenDisrupted" -Dtests.seed=949AB28501F8ED37 -Dtests.locale=en-AU -Dtests.timezone=Europe/Vienna -Druntime.java=18 2> java.lang.AssertionError: leaders Expected: not an empty collection but: was <[]> at __randomizedtesting.SeedInfo.seed([949AB28501F8ED37:BBC20DD1A5D4EF81]:0) at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.elasticsearch.cluster.coordination.AbstractCoordinatorTestCase$Cluster.getAnyLeader(AbstractCoordinatorTestCase.java:791) at org.elasticsearch.cluster.coordination.CoordinatorTests.testSingleNodeDiscoveryStabilisesEvenWhenDisrupted(CoordinatorTests.java:1939) 2> NOTE: leaving temporary files on disk at: /home/davidturner/src/elasticsearch/server/build/testrun/test/temp/org.elasticsearch.cluster.coordination.CoordinatorTests_949AB28501F8ED37-002 2> NOTE: test params are: codec=Asserting(Lucene94): {}, docValues:{}, maxPointsInLeafNode=1598, maxMBSortInHeap=6.485414969465074, sim=Asserting(RandomSimilarity(queryNorm=true): {}), locale=en-AU, timezone=Europe/Vienna 2> NOTE: Linux 5.4.0-125-generic amd64/Oracle Corporation 18.0.2.1 (64-bit)/cpus=8,threads=1,free=465272544,total=536870912 2> NOTE: All tests run in this JVM: [CoordinatorTests] Tests with failures: - org.elasticsearch.cluster.coordination.CoordinatorTests.testSingleNodeDiscoveryStabilisesEvenWhenDisrupted ```
https://github.com/elastic/elasticsearch/issues/89867
https://github.com/elastic/elasticsearch/pull/91255
cfc981a39213a58f01c5d10ec05e99817e2bc2c3
611c9b86e2b81edaf0aaf936f79d5c4e913786a3
2022-09-07T12:20:15Z
java
2022-11-02T17:25:26Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,856
["build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/ElasticsearchJavaModulePathPluginFuncTest.groovy"]
[CI] org.elasticsearch.gradle.internal.ElasticsearchJavaModulePathPluginFuncTest
### CI Link https://gradle-enterprise.elastic.co/s/xunq6rymvvy34/tests/:build-tools-internal:integTest/org.elasticsearch.gradle.internal.ElasticsearchJavaModulePathPluginFuncTest/included%20build%20with%20non%20module%20dependencies ### Repro line `./gradlew :build-tools-internal:integTest` ### Does it reproduce? Didn't try ### Applicable branches main ### Failure history https://gradle-enterprise.elastic.co/scans/tests?search.timeZoneId=Europe/Berlin&tests.container=org.elasticsearch.gradle.internal.ElasticsearchJavaModulePathPluginFuncTest&tests.test=included%20build%20with%20non%20module%20dependencies# ### Failure excerpt ``` Output: Configuration cache is an incubating feature. Calculating task graph as no configuration cache is available for tasks: compileJava FAILURE: Build failed with an exception. * Where: Settings file 'C:\Users\jenkins\AppData\Local\Temp\junit16491424318159097053\settings.gradle' line: 2 * What went wrong: Could not compile settings file 'C:\Users\jenkins\AppData\Local\Temp\junit16491424318159097053\settings.gradle'. > startup failed: settings file 'C:\Users\jenkins\AppData\Local\Temp\junit16491424318159097053\settings.gradle': 2: Unexpected character: '\'' @ line 2, column 22. includeBuild 'C:\Users\jenkins\AppData\Local\Temp\junit8721228232480723469' ^ 1 error ```
https://github.com/elastic/elasticsearch/issues/89856
https://github.com/elastic/elasticsearch/pull/89894
06cfa747be6f6168a508901eb262942be79e36b1
0dc4695e6a291ea3ca0a370b060333925f340c5e
2022-09-07T09:39:32Z
java
2022-09-07T23:52:14Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,854
["x-pack/plugin/autoscaling/src/test/java/org/elasticsearch/xpack/autoscaling/capacity/AutoscalingCalculateCapacityServiceTests.java", "x-pack/plugin/autoscaling/src/test/java/org/elasticsearch/xpack/autoscaling/capacity/AutoscalingDeciderResultsTests.java", "x-pack/plugin/autoscaling/src/test/java/org/elasticsearch/xpack/autoscaling/capacity/FixedAutoscalingDeciderServiceTests.java"]
[CI] org.elasticsearch.xpack.autoscaling.capacity.AutoscalingDeciderResultsTests.testRequiredCapacity
### CI Link https://gradle-enterprise.elastic.co/s/gcyi7azxnlpck/tests/:x-pack:plugin:autoscaling:test/org.elasticsearch.xpack.autoscaling.capacity.AutoscalingDeciderResultsTests/testRequiredCapacity ### Repro line `./gradlew ':x-pack:plugin:autoscaling:test' --tests "org.elasticsearch.xpack.autoscaling.capacity.AutoscalingDeciderResultsTests.testRequiredCapacity" -Dtests.seed=2E2DFCE718729D4D -Dtests.locale=en-PH -Dtests.timezone=AST -Druntime.java=17` ### Does it reproduce? Yes ### Applicable branches main ### Failure history https://gradle-enterprise.elastic.co/scans/tests?search.timeZoneId=Europe/Berlin&tests.container=org.elasticsearch.xpack.autoscaling.capacity.AutoscalingDeciderResultsTests&tests.test=testRequiredCapacity ### Failure excerpt ``` java.lang.IllegalArgumentException: processors must be a non-negative number; provided [0.0] at __randomizedtesting.SeedInfo.seed([2E2DFCE718729D4D:F14848089DDDD218]:0) at org.elasticsearch.common.unit.Processors.of(Processors.java:58) at org.elasticsearch.xpack.autoscaling.capacity.AutoscalingCapacity$Builder.total(AutoscalingCapacity.java:288) at org.elasticsearch.xpack.autoscaling.capacity.AutoscalingDeciderResultsTests.randomCapacity(AutoscalingDeciderResultsTests.java:161) at org.elasticsearch.xpack.autoscaling.capacity.AutoscalingDeciderResultsTests.lambda$testRequiredCapacity$1(AutoscalingDeciderResultsTests.java:65) at java.base/java.util.stream.IntPipeline$1$1.accept(IntPipeline.java:180) at java.base/java.util.stream.Streams$RangeIntSpliterator.forEachRemaining(Streams.java:104) at java.base/java.util.Spliterator$OfInt.forEachRemaining(Spliterator.java:711) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ```
https://github.com/elastic/elasticsearch/issues/89854
https://github.com/elastic/elasticsearch/pull/89862
1dcd8cc50b39bf3060f1c3f10b1d9c35454296a8
c05b06e2009e06c13387a483b9ca944504d21e2b
2022-09-07T09:22:40Z
java
2022-09-07T11:26:48Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,852
["x-pack/plugin/autoscaling/src/test/java/org/elasticsearch/xpack/autoscaling/capacity/AutoscalingCalculateCapacityServiceTests.java", "x-pack/plugin/autoscaling/src/test/java/org/elasticsearch/xpack/autoscaling/capacity/AutoscalingDeciderResultsTests.java", "x-pack/plugin/autoscaling/src/test/java/org/elasticsearch/xpack/autoscaling/capacity/FixedAutoscalingDeciderServiceTests.java"]
[CI] AutoscalingCalculateCapacityServiceTests.testMultiplePoliciesFixedCapacity
### CI Link https://gradle-enterprise.elastic.co/s/hpsiqb6ogssti/tests/:x-pack:plugin:autoscaling:test/org.elasticsearch.xpack.autoscaling.capacity.AutoscalingCalculateCapacityServiceTests/testMultiplePoliciesFixedCapacity ### Repro line `./gradlew ':x-pack:plugin:autoscaling:test' --tests "org.elasticsearch.xpack.autoscaling.capacity.AutoscalingCalculateCapacityServiceTests.testMultiplePoliciesFixedCapacity" -Dtests.seed=59B9B4C860720152 -Dtests.locale=es-PR -Dtests.timezone=Europe/Mariehamn -Druntime.java=17` ### Does it reproduce? Yes ### Applicable branches main, ### Failure history https://gradle-enterprise.elastic.co/scans/tests?search.timeZoneId=Europe/Berlin&tests.container=org.elasticsearch.xpack.autoscaling.capacity.AutoscalingCalculateCapacityServiceTests ### Failure excerpt ``` java.lang.IllegalArgumentException: processors must be a non-negative number; provided [0.0] at __randomizedtesting.SeedInfo.seed([59B9B4C860720152:A780761874932F2D]:0) at org.elasticsearch.common.unit.Processors.of(Processors.java:58) at org.elasticsearch.xpack.autoscaling.capacity.FixedAutoscalingDeciderService.lambda$static$0(FixedAutoscalingDeciderService.java:35) at org.elasticsearch.common.settings.Setting.get(Setting.java:482) at org.elasticsearch.common.settings.Setting.get(Setting.java:476) at org.elasticsearch.xpack.autoscaling.capacity.FixedAutoscalingDeciderService.scale(FixedAutoscalingDeciderService.java:55) at org.elasticsearch.xpack.autoscaling.capacity.AutoscalingCalculateCapacityService.calculateForDecider(AutoscalingCalculateCapacityService.java:226) at org.elasticsearch.xpack.autoscaling.capacity.AutoscalingCalculateCapacityService.lambda$calculateForPolicy$3(AutoscalingCalculateCapacityService.java:167) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.TreeMap$EntrySpliterator.forEachRemaining(TreeMap.java:3287) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) at org.elasticsearch.xpack.autoscaling.capacity.AutoscalingCalculateCapacityService.calculateForPolicy(AutoscalingCalculateCapacityService.java:168) at org.elasticsearch.xpack.autoscaling.capacity.AutoscalingCalculateCapacityService.lambda$calculate$2(AutoscalingCalculateCapacityService.java:124) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.TreeMap$EntrySpliterator.forEachRemaining(TreeMap.java:3287) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) at org.elasticsearch.xpack.autoscaling.capacity.AutoscalingCalculateCapacityService.calculate(AutoscalingCalculateCapacityService.java:134) at org.elasticsearch.xpack.autoscaling.capacity.AutoscalingCalculateCapacityServiceTests.testMultiplePoliciesFixedCapacity(AutoscalingCalculateCapacityServiceTests.java:66)
https://github.com/elastic/elasticsearch/issues/89852
https://github.com/elastic/elasticsearch/pull/89862
1dcd8cc50b39bf3060f1c3f10b1d9c35454296a8
c05b06e2009e06c13387a483b9ca944504d21e2b
2022-09-07T09:12:07Z
java
2022-09-07T11:26:48Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,850
["docs/changelog/90972.yaml", "server/src/main/java/org/elasticsearch/tasks/TaskManager.java", "server/src/test/java/org/elasticsearch/tasks/TaskManagerTests.java"]
[Instrumentation] apm.local.context is set more then once on ThreadContext
### Elasticsearch Version 8.5.0-SNAPSHOT ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version any ### Problem Description [This PR to kibana](https://github.com/elastic/kibana/pull/140121) which adds APM instrumentation to any Elasticsearch instance Kibana starts (integration tests/e2e tests/local dev) is consistently failing on a ML e2e tests. [The CI logs](https://s3.amazonaws.com/buildkiteartifacts.com/e0f3970e-3a75-4621-919f-e6c773e2bb12/0fda5127-f57f-42fb-8e5a-146b3d535916/01831401-63aa-4798-9f6a-d5710e0c8b3b/01831403-7c1f-4002-8ff7-cd53598a2dfc/target/test_failures/01831403-7c1f-4002-8ff7-cd53598a2dfc_9a8aa981a5d9e402eed13abb59b26b55.html?response-content-type=text%2Fhtml&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAQPCP3C7LWDYERT55%2F20220907%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220907T080644Z&X-Amz-Expires=600&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEHIaCXVzLWVhc3QtMSJHMEUCIQC3cOzS8h6eGVBMR8qhJboliLOE0ySMxtKWvkbB%2B%2BqIigIgXW1eVdfvDEciqG2qL8y%2FjOVw6Qw11vYJAz0rhqcpD%2FYq1QQI%2B%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARAAGgwwMzIzNzk3MDUzMDMiDGQVJH6UMqM%2BMFucISqpBPd%2BXccbjndUxN%2BM7cDOwSXUl%2BxseIezmRDbMa29p%2FnKlgLv3d30gfzYanfdkbvW7d4zc5rN4eEpstjIV7OygeldBfVZmecX2dntVu%2FUcuczI2PoLi5TjKBXP0RBhI%2BJUGRkQmj1hdb%2FWiRhE7l9UWYu%2BIpwaLa1OeoBao32kzf0pD%2FZQnUcPSwf%2FjVLwM3wqxgosbivhajfhSXc6JFBq77DnxSwY6uXhEGh8wJEEyVG175ZYD9nXaklXZneau4M1EHK7pGMwq3Y5Ta8Qv20PXNApB5gcgVYSxZ4t%2BMWvxwaSRrYSd16njlTox6cwOcABF0Ls81DDXrhUFBJWFhol7e0%2BtR%2BLvUTDaqUyhAGICArQSMWajN8lOPD1luWS8aw9Zn6GegRQmkF%2B1TlPODdPN5763xa9M2W6uiSBDWQ3FcqylzoUJvwnVQCp%2Bsy94eLYic0Xs6JGBUP7v%2FQ%2FJ4KCQGFnXltjNSO%2F5FYKYqvtbSQo0YeyXlu6qQWmu3X2Dn8gfndDLMr06U9I23%2FAHmxZuJ%2BvqbzdQvEUh2aKQIWO%2FnoTslALEBcGdiBD%2BW7VENbyMEcfb2hMPdNAygELW9AOe5VMbR2ZPkL%2F4kovRYAidWbX2kLrfnDHEU2%2B%2BYJuOL%2FuVMM%2BC3yqQnvZUIIXovBzBcIJn85ZyCXQbq001QUOWKmFjm0N0ik04F8hRrdyaSEc8i4ntPXNHJJQI84b22jcf9yxaPHlIbWAScww%2FXfmAY6qQGoFK8HyIUxNF1flu9DS801cAW28vb3y22nWJiyYmDrmpPA596bE2apP%2F0wZI9xbPhRJz9bueKWgiGsxCWv%2FU1wj2pcHdK0EKy7AR4GR0sU%2FcNkgczl0vw3xXPpzKLgcHqiYdOqbyHLFU63eCXgGL3K0XezcaGXTVTw03pMQ6GyR7eiRs2DifLziKiVWH%2FLLseuCpjvfUrr5jB7xsFt94yHQ0DeiwRR%2F3Fw&X-Amz-SignedHeaders=host&X-Amz-Signature=95628f046b2741871ad36c8abd3eb4b9516be23a3842f6e16ec01ab916bdaa04) indicate that `apm.local.context` is being written more than once to the `ThreadContext` which it doesn't support. > [00:01:37] │ info [o.e.c.s.ClusterApplierService] [ftr] failed to notify ClusterStateListener java.lang.IllegalArgumentException: value for key [apm.local.context] already present [00:01:37] │ at [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ThreadContextStruct.putSingleHeader(ThreadContext.java:677) [00:01:37] │ at [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ThreadContextStruct.putTransient(ThreadContext.java:783) [00:01:37] │ at [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext.putTransient(ThreadContext.java:502) [00:01:37] │ at org.elasticsearch.tracing.apm.APMTracer.updateThreadContext(APMTracer.java:184) [00:01:37] │ at org.elasticsearch.tracing.apm.APMTracer.lambda$startTrace$1(APMTracer.java:176) [00:01:37] │ at java.base/java.security.AccessController.doPrivileged(AccessController.java:318) [00:01:37] │ at org.elasticsearch.tracing.apm.APMTracer.lambda$startTrace$2(APMTracer.java:161) [00:01:37] │ at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708) [00:01:37] │ at org.elasticsearch.tracing.apm.APMTracer.startTrace(APMTracer.java:161) [00:01:37] │ at [email protected]/org.elasticsearch.tasks.TaskManager.startTrace(TaskManager.java:176) [00:01:37] │ at [email protected]/org.elasticsearch.tasks.TaskManager.registerCancellableTask(TaskManager.java:237) [00:01:37] │ at [email protected]/org.elasticsearch.tasks.TaskManager.register(TaskManager.java:157) [00:01:37] │ at org.elasticsearch.xpack.ml.inference.assignment.TrainedModelAssignmentNodeService.prepareModelToLoad(TrainedModelAssignmentNodeService.java:463) [00:01:37] │ at org.elasticsearch.xpack.ml.inference.assignment.TrainedModelAssignmentNodeService.clusterChanged(TrainedModelAssignmentNodeService.java:358) [00:01:37] │ at [email protected]/org.elasticsearch.cluster.service.ClusterApplierService.callClusterStateListener(ClusterApplierService.java:558) [00:01:37] │ at [email protected]/org.elasticsearch.cluster.service.ClusterApplierService.callClusterStateListeners(ClusterApplierService.java:544) [00:01:37] │ at [email protected]/org.elasticsearch.cluster.service.ClusterApplierService.applyChanges(ClusterApplierService.java:504) [00:01:37] │ at [email protected]/org.elasticsearch.cluster.service.ClusterApplierService.runTask(ClusterApplierService.java:428) [00:01:37] │ at [email protected]/org.elasticsearch.cluster.service.ClusterApplierService$UpdateTask.run(ClusterApplierService.java:154) [00:01:37] │ at [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:825) [00:01:37] │ at [email protected]/org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:257) [00:01:37] │ at [email protected]/org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:223) [00:01:37] │ at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [00:01:37] │ at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [00:01:37] │ at java.base/java.lang.Thread.run(Thread.java:833) This by itself is the bug report. I want to highlight it later _seems_ to cause ML parsing issues: > info [o.e.x.m.i.l.ModelLoadingService] [ftr] [dfa_classification_model_n_14] failed to load model definition org.elasticsearch.xcontent.XContentParseException: [8:5] [inference_model_definition] failed to parse field [trained_model] Which appear to consistently fail the e2e tests on the PR adding the instrumentation but not on kibana's `main` branch. Implying a very surprising correlation between the two Elasticsearch Exceptions being logged. ### Steps to Reproduce run tests https://github.com/elastic/kibana/pull/140121 ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/89850
https://github.com/elastic/elasticsearch/pull/90972
447afaec77ffc1c8559c4c4f4095163e01d46fea
5596c27dca6e461a253edfacec1da4d72967c017
2022-09-07T08:39:00Z
java
2022-10-18T20:18:54Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,823
["docs/changelog/89851.yaml", "server/src/main/java/org/elasticsearch/cluster/routing/allocation/decider/NodeShutdownAllocationDecider.java", "server/src/test/java/org/elasticsearch/cluster/routing/allocation/decider/NodeShutdownAllocationDeciderTests.java"]
Indices with auto_expand_replicas are not replicated
### Elasticsearch Version 7.17.1 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version Ubuntu 18.04 ### Problem Description Problem originally discussed [here](https://discuss.elastic.co/t/auto-expand-replicas-not-working-on-enrich-index/313569). See the complete discussion and the things I've tried there. Summary * 3 nodes cluster, all nodes have all roles (`node.roles` is not defined, so nodes have all roles) * All system indices with `auto_expand_replicas: "0-all"` are not replicated. Problem exists on enrich indices, kibana indices, monitoring indices , etc. * Problem can be reproduced with a regular, user-defined index simply by setting `auto_expand_replicas: "0-all"` in index settings as per the reproduction script below On my cluster, the indices always have 0 replicas. I've tried to force set `number_of_replicas` to a higher value with no luck, value is reverted to 0 immediately. I've enabled TRACE logging on a few loggers around allocation, I've got plenty of logs but none mentioned the inability to replicate thoses indices... Can you help troubleshoot the issue? Thanks in advance, Cheers, David ### Steps to Reproduce Kibana script ``` PUT /testing_auto_expand_replicas { "settings": { "auto_expand_replicas": "0-all" } } GET /testing_auto_expand_replicas/_settings GET _cluster/allocation/explain?include_yes_decisions { "index": "testing_auto_expand_replicas", "shard": 0, "primary": true } ``` ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/89823
https://github.com/elastic/elasticsearch/pull/89851
4b62ca0108fb7518d6828be47fce83758cb3757c
984d225ff90263ed07c97e8a7bcf448ba48f1d9a
2022-09-06T14:58:18Z
java
2022-09-08T07:17:57Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,818
["server/src/test/java/org/elasticsearch/search/aggregations/bucket/sampler/random/RandomSamplerAggregatorTests.java"]
[CI] RandomSamplerAggregatorTests testAggregationSamplingNestedAggsScaled failing
I was able to reproduce this on OSx via ``` ./gradlew ':server:test' --tests "org.elasticsearch.search.aggregations.bucket.sampler.random.RandomSamplerAggregatorTests.testAggregationSamplingNestedAggsScaled" -Dtests.seed=B7AFBEB0142797C6 -Dtests.locale=nl-BE -Dtests.timezone=Atlantic/Azores ``` **Build scan:** https://gradle-enterprise.elastic.co/s/mkzxxnxywqajw/tests/:server:test/org.elasticsearch.search.aggregations.bucket.sampler.random.RandomSamplerAggregatorTests/testAggregationSamplingNestedAggsScaled **Reproduction line:** `gradlew ':server:test' --tests "org.elasticsearch.search.aggregations.bucket.sampler.random.RandomSamplerAggregatorTests.testAggregationSamplingNestedAggsScaled" -Dtests.seed=B7AFBEB0142797C6 -Dtests.locale=nl-BE -Dtests.timezone=Atlantic/Azores -Druntime.java=18` **Applicable branches:** main **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.search.aggregations.bucket.sampler.random.RandomSamplerAggregatorTests&tests.test=testAggregationSamplingNestedAggsScaled **Failure excerpt:** ``` java.lang.AssertionError: Expected: a value greater than <0L> but: <0L> was equal to <0L> at __randomizedtesting.SeedInfo.seed([B7AFBEB0142797C6:859F02F8A1FFCAC2]:0) at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.junit.Assert.assertThat(Assert.java:923) at org.elasticsearch.search.aggregations.bucket.sampler.random.RandomSamplerAggregatorTests.lambda$testAggregationSamplingNestedAggsScaled$1(RandomSamplerAggregatorTests.java:100) at org.elasticsearch.search.aggregations.AggregatorTestCase.testCase(AggregatorTestCase.java:676) at org.elasticsearch.search.aggregations.bucket.sampler.random.RandomSamplerAggregatorTests.testAggregationSamplingNestedAggsScaled(RandomSamplerAggregatorTests.java:82) at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.lang.reflect.Method.invoke(Method.java:577) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/89818
https://github.com/elastic/elasticsearch/pull/89958
77c9e2d89f461a454f7c6a068b2c328242df4f2d
258833f50d2b0ccd83daeb0d1e43e11319610a63
2022-09-06T08:58:05Z
java
2022-09-09T13:53:41Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,817
["server/src/test/java/org/elasticsearch/health/node/LocalHealthMonitorTests.java"]
[CI] LocalHealthMonitorTests testEnablingAndDisabling failing
**Build scan:** https://gradle-enterprise.elastic.co/s/zajij2vfvcwhc/tests/:server:test/org.elasticsearch.health.node.LocalHealthMonitorTests/testEnablingAndDisabling **Reproduction line:** `./gradlew ':server:test' --tests "org.elasticsearch.health.node.LocalHealthMonitorTests.testEnablingAndDisabling" -Dtests.seed=FA93E5CF7A79BDAD -Dtests.locale=ga -Dtests.timezone=America/Tegucigalpa -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.health.node.LocalHealthMonitorTests&tests.test=testEnablingAndDisabling **Failure excerpt:** ``` java.lang.AssertionError: Expected: <1> but: was <0> at __randomizedtesting.SeedInfo.seed([FA93E5CF7A79BDAD:6329A8CB63DCA325]: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.health.node.LocalHealthMonitorTests.testEnablingAndDisabling(LocalHealthMonitorTests.java:229) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/89817
https://github.com/elastic/elasticsearch/pull/89858
80e666a4724181143b51c2ddde110ecbbf77a979
fc64b2cfc8cc1c45cc0abba40a770e359dbacc1f
2022-09-06T08:55:20Z
java
2022-09-07T12:36:42Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,815
["server/src/internalClusterTest/java/org/elasticsearch/health/UpdateHealthInfoCacheIT.java"]
[CI] UpdateHealthInfoCacheIT testHealthNodeFailOver failing
**Build scan:** https://gradle-enterprise.elastic.co/s/mscmlcvpk76ds/tests/:server:internalClusterTest/org.elasticsearch.health.UpdateHealthInfoCacheIT/testHealthNodeFailOver **Reproduction line:** `./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.health.UpdateHealthInfoCacheIT.testHealthNodeFailOver" -Dtests.seed=BE3570F1DEA6D6FF -Dtests.locale=mt-MT -Dtests.timezone=Africa/Khartoum -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.health.UpdateHealthInfoCacheIT&tests.test=testHealthNodeFailOver **Failure excerpt:** ``` org.elasticsearch.node.NodeClosedException: node closed {node_t0}{SBJND06_RXaD1TfzRYqzZg}{dMVy-HTZSymAaS_BeVck-Q}{node_t0}{127.0.0.1}{127.0.0.1:18341}{cdfhilmrstw} at __randomizedtesting.SeedInfo.seed([BE3570F1DEA6D6FF:6260670F3CC8F6A5]:0) at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction$2.onClusterServiceClose(TransportMasterNodeAction.java:354) at org.elasticsearch.cluster.ClusterStateObserver$ContextPreservingListener.onClusterServiceClose(ClusterStateObserver.java:338) at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onClose(ClusterStateObserver.java:245) at org.elasticsearch.cluster.service.ClusterApplierService.addTimeoutListener(ClusterApplierService.java:254) at org.elasticsearch.cluster.ClusterStateObserver.waitForNextChange(ClusterStateObserver.java:177) at org.elasticsearch.cluster.ClusterStateObserver.waitForNextChange(ClusterStateObserver.java:118) at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.retry(TransportMasterNodeAction.java:345) at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.retryOnMasterChange(TransportMasterNodeAction.java:326) at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.doStart(TransportMasterNodeAction.java:284) at org.elasticsearch.action.support.master.TransportMasterNodeAction.doExecute(TransportMasterNodeAction.java:216) at org.elasticsearch.action.support.master.TransportMasterNodeAction.doExecute(TransportMasterNodeAction.java:59) at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:86) at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:61) at org.elasticsearch.tasks.TaskManager.registerAndExecute(TaskManager.java:201) at org.elasticsearch.client.internal.node.NodeClient.executeLocally(NodeClient.java:112) at org.elasticsearch.client.internal.node.NodeClient.doExecute(NodeClient.java:90) at org.elasticsearch.client.internal.support.AbstractClient.execute(AbstractClient.java:380) at org.elasticsearch.client.internal.support.AbstractClient.execute(AbstractClient.java:366) at org.elasticsearch.client.internal.support.AbstractClient$ClusterAdmin.execute(AbstractClient.java:667) at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:34) at org.elasticsearch.action.ActionRequestBuilder.get(ActionRequestBuilder.java:41) at org.elasticsearch.health.UpdateHealthInfoCacheIT.lambda$waitAndGetHealthNode$5(UpdateHealthInfoCacheIT.java:144) at org.elasticsearch.test.ESTestCase.waitUntil(ESTestCase.java:1145) at org.elasticsearch.health.UpdateHealthInfoCacheIT.waitAndGetHealthNode(UpdateHealthInfoCacheIT.java:143) at org.elasticsearch.health.UpdateHealthInfoCacheIT.testHealthNodeFailOver(UpdateHealthInfoCacheIT.java:98) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/89815
https://github.com/elastic/elasticsearch/pull/89866
c733eb8908c9d0255fc0c804fad32b3f2b45a818
76b3795f9a1363d2fc62575cb11e5b453aee6243
2022-09-06T08:46:14Z
java
2022-09-07T12:53:09Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,802
["docs/changelog/90396.yaml", "x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/transforms/TransformFailureHandler.java", "x-pack/plugin/transform/src/test/java/org/elasticsearch/xpack/transform/transforms/TransformFailureHandlerTests.java"]
[Transform] transform can fail without retry when source index gets closed by ILM unfollow
**Affected version:** 7.12 - 7.17.7, 8.0-8.5 **Fixed in:** 7.17.7, 8.5.0 ### Problem Description A continuous transform can fail if a transform is searching at the same time as an ILM action occurs or in general anything that closes an index. This should not happen if transform is configured with a wildcard pattern for the source index, e.g. `filebeat-*`. In a specific case an ILM policy temporarily closes the index due to the unfollow-the-follower action. A typical log entry for this bugs contains something like this: ``` task encountered irrecoverable failure: org.elasticsearch.cluster.block.ClusterBlockException: index [ ... ] blocked by: [FORBIDDEN/4/index closed]; ``` ### Mitigation A: Restart the transform. This can be automated by monitoring `_stats` and restarting the transform using `_stop?force=true` followed by `_start`. B: Don't use the ILM unfollow action until a fix is available. C: **Unreleased**: Starting with 8.5 set the transform to `unattended` mode via `settings`, this will let transform retry even for this failure class ### Solution If the source of a transform is configured with a wildcard, transform should not treat an index closed exception as an irrecoverable failure. ### Backport The fix needs to be backported to the `7.17` series.
https://github.com/elastic/elasticsearch/issues/89802
https://github.com/elastic/elasticsearch/pull/90396
e306cebeae54706b916f9d6d1acc40863f50eb87
09eafed22f9185401667604ef3fa4321cce58dca
2022-09-05T12:25:13Z
java
2022-09-27T12:16:03Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,795
["docs/changelog/91546.yaml", "server/src/main/java/org/elasticsearch/index/analysis/AnalysisRegistry.java", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/dataframe/DestinationIndex.java", "x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/dataframe/DestinationIndexTests.java"]
[ML] Auto-created data frame analytics destination index can omit required settings
When a data frame analytics job is started it will automatically create its destination index if it doesn't already exist. When this happens the mappings are copied from the source indices. In addition two settings are copied from the source indices: `index.number_of_shards` and `index.number_of_replicas`. However, for certain mappings in can be necessary that more settings are copied from the source indices. For example, `index.analysis`, `index.similarity` and `index.mapping` might be needed to make the destination index search results look like those of the source indices. In the case of custom analyzers defined in the index settings the destination index definition might not even be valid without the `index.analysis` setting that defines the custom analyzers. So, we need to copy `index.analysis`, `index.similarity` and `index.mapping` from the source settings to destination settings. Some thought is still required as this could be complex in the case of multiple source indices with different settings. It might be possible to do a simple merge like we do for mappings.
https://github.com/elastic/elasticsearch/issues/89795
https://github.com/elastic/elasticsearch/pull/91546
b5226efaf0fcb5219ef0dd265b02efc92cdb6c2f
fc5c1f16f17759b10cc80b51de53827620ca8422
2022-09-05T08:57:56Z
java
2022-11-14T15:25:25Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,789
["docs/changelog/89962.yaml", "server/src/internalClusterTest/java/org/elasticsearch/search/query/IntervalQueriesIT.java", "server/src/main/java/org/elasticsearch/index/query/IntervalBuilder.java"]
Sub-iterators of ConjunctionDISI are not on the same document! error
### Elasticsearch Version 8.4.1, 7.17.5 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version official docker image on Darwin MacBookBertrand.local 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:22 PDT 2022; root:xnu-8020.121.3~4/RELEASE_X86_64 x86_64 ### Problem Description Using an index with mapping containing a nested field, we get the "Sub-iterators of ConjunctionDISI are not on the same document!" error if the search use an intervals query and the searched value is empty (after stop words filtering for example). ### Steps to Reproduce 1. Create a simple index with a nested field and stop words filter ``` PUT /simple_test { "settings": { "analysis": { "analyzer": { "default": { "tokenizer": "whitespace", "filter": [ "stop" ] } } } }, "mappings": { "properties": { "object": { "type": "text" }, "documents": { "type": "nested", "properties": { "content": { "type": "text" } } } } } } ``` 2. Add a document ``` POST /simple_test/_doc/1 { "object": "test" } ``` No matter if the nested field has content or not 3. Execute a query with stop words ``` GET /simple_test/_search { "query": { "intervals": { "object": { "match": { "query": "not in that", "max_gaps": 2, "ordered": false } } } } } ``` As the searched words are all filtered, the search result is ``` { "error": { "root_cause": [ { "type": "illegal_argument_exception", "reason": "Sub-iterators of ConjunctionDISI are not on the same document!" } ], "type": "search_phase_execution_exception", "reason": "all shards failed", "phase": "query", "grouped": true, "failed_shards": [ { "shard": 0, "index": "simple_test", "node": "gstAliy6ReeeL5eSvg1IZQ", "reason": { "type": "illegal_argument_exception", "reason": "Sub-iterators of ConjunctionDISI are not on the same document!" } } ], "caused_by": { "type": "illegal_argument_exception", "reason": "Sub-iterators of ConjunctionDISI are not on the same document!", "caused_by": { "type": "illegal_argument_exception", "reason": "Sub-iterators of ConjunctionDISI are not on the same document!" } } }, "status": 400 } ``` ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/89789
https://github.com/elastic/elasticsearch/pull/89962
224f48e6373b59980b7de6083d428a99acd05caf
332361ecd4ad92d9bf88bb8b2552786b7aff6fd4
2022-09-02T11:57:48Z
java
2022-09-09T16:22:32Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,776
["x-pack/plugin/security/src/internalClusterTest/java/org/elasticsearch/xpack/security/profile/ProfileDomainIntegTests.java", "x-pack/plugin/security/src/internalClusterTest/java/org/elasticsearch/xpack/security/profile/ProfileSingleNodeTests.java"]
[CI] ProfileDomainIntegTests testConcurrentActivateUpdates failing
**Build scan:** https://gradle-enterprise.elastic.co/s/turc6aa5aqtig/tests/:x-pack:plugin:security:internalClusterTest/org.elasticsearch.xpack.security.profile.ProfileDomainIntegTests/testConcurrentActivateUpdates **Reproduction line:** `./gradlew ':x-pack:plugin:security:internalClusterTest' --tests "org.elasticsearch.xpack.security.profile.ProfileDomainIntegTests.testConcurrentActivateUpdates" -Dtests.seed=2CB1A2766759F141 -Dtests.locale=pl -Dtests.timezone=Europe/Dublin -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.security.profile.ProfileDomainIntegTests&tests.test=testConcurrentActivateUpdates **Failure excerpt:** ``` java.lang.AssertionError: Expected: <Profile[uid=u_ZStoPhTrsYcQDKq6Oi45MDetmYMt2-fGNkdwO9LxDb4_0, enabled=true, lastSynchronized=1662038493111, user=ProfileUser[username=wiNPJHcQKR, roles=[foo], realmName=Jdts, domainName=null, email=null, fullName=null], labels={}, applicationData={}, versionControl=VersionControl[primaryTerm=1, seqNo=2]]> but: was <Profile[uid=u_ZStoPhTrsYcQDKq6Oi45MDetmYMt2-fGNkdwO9LxDb4_0, enabled=true, lastSynchronized=1662038493110, user=ProfileUser[username=wiNPJHcQKR, roles=[foo], realmName=Jdts, domainName=null, email=null, fullName=null], labels={}, applicationData={}, versionControl=VersionControl[primaryTerm=1, seqNo=3]]> at __randomizedtesting.SeedInfo.seed([2CB1A2766759F141:5D5C9D00FF0D3F43]:0) at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.junit.Assert.assertThat(Assert.java:923) at org.elasticsearch.xpack.security.profile.ProfileDomainIntegTests.testConcurrentActivateUpdates(ProfileDomainIntegTests.java:403) 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 org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/89776
https://github.com/elastic/elasticsearch/pull/90561
8f53b371abe6257a6870474ce1832f104b6366ec
ffa18074870a2ff71d6861d2ecbe49bba4a5bb73
2022-09-01T13:46:53Z
java
2022-10-03T23:09:07Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,764
["x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/profile/ProfileServiceTests.java"]
[CI] ProfileServiceTests testActivateWhenShouldSkipUpdateForActivateReturnsFalseFirst failing
**Build scan:** https://gradle-enterprise.elastic.co/s/54lavnek2dx6y/tests/:x-pack:plugin:security:test/org.elasticsearch.xpack.security.profile.ProfileServiceTests/testActivateWhenShouldSkipUpdateForActivateReturnsFalseFirst **Reproduction line:** `./gradlew ':x-pack:plugin:security:test' --tests "org.elasticsearch.xpack.security.profile.ProfileServiceTests.testActivateWhenShouldSkipUpdateForActivateReturnsFalseFirst" -Dtests.seed=42D2AF16C52CCE17 -Dtests.locale=de-AT -Dtests.timezone=EST5EDT -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.security.profile.ProfileServiceTests&tests.test=testActivateWhenShouldSkipUpdateForActivateReturnsFalseFirst **Failure excerpt:** ``` java.lang.AssertionError: Expected: sameInstance(<org.elasticsearch.transport.RemoteTransportException: []>) but: was <org.elasticsearch.index.engine.VersionConflictEngineException: : version conflict,> at __randomizedtesting.SeedInfo.seed([42D2AF16C52CCE17:7DECD8DED393D787]:0) at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.junit.Assert.assertThat(Assert.java:923) at org.elasticsearch.xpack.security.profile.ProfileServiceTests.testActivateWhenShouldSkipUpdateForActivateReturnsFalseFirst(ProfileServiceTests.java:965) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/89764
https://github.com/elastic/elasticsearch/pull/89765
e2444739627cad6bc2b319331387821bca173568
764c0a30d4805afd9e8f252864a86ee444431862
2022-09-01T03:14:23Z
java
2022-09-01T12:30:36Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,760
["docs/changelog/90341.yaml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search/160_exists_query.yml", "server/src/main/java/org/elasticsearch/search/query/TopDocsCollectorContext.java", "server/src/test/java/org/elasticsearch/search/query/TopDocsCollectorContextTests.java"]
total hit count is wrong for exists query
### Elasticsearch Version 8.4.1 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version macOs 10.15.7, Elasticsearch running in docker container ### Problem Description I index 5 documents containing a minmal set of fields. One field is named `name` and for one of the docs it is empty (`""`) and for one it does not exist. I then search for documents where this field exists. The returned hits a alright, but the value value in the total relation object is wrong. This worked in 8.3.3, but erros in 8.4.1 Expected behaviour: the total hit value is 4 Actual behaviour: the value of 3 is returned ### Steps to Reproduce Post the following documents to `testindex`: ``` { "name": "name-1", } { "name": "name-2", } { "name": "name-3", } { "name": "", } { value: 42 } ``` send the following query: ``` POST /testindex/_search { "query": { "exists": { "field": "name" } } } ``` This returns: ``` { "_shards": { "failed": 0, "skipped": 0, "successful": 1, "total": 1 }, "hits": { "hits": [ { "_id": "4T0z9YIBgYaqNSSuHK8i", "_index": "testindex", "_score": 1.0, "_source": { "name": "name-1" } }, { "_id": "4j0z9YIBgYaqNSSuOK80", "_index": "testindex", "_score": 1.0, "_source": { "name": "name-2" } }, { "_id": "4z0z9YIBgYaqNSSuSq8F", "_index": "testindex", "_score": 1.0, "_source": { "name": "name-3" } }, { "_id": "5D0z9YIBgYaqNSSuX68P", "_index": "testindex", "_score": 1.0, "_source": { "name": "" } } ], "max_score": 1.0, "total": { "relation": "eq", "value": 3 } }, "timed_out": false, "took": 62 } ``` Although 4 documents are returned, the total value returned is 3. This is a problem for me as I use queries with a size of 0 and track_total_hits set to true to do a count query. This now returns wrong results. ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/89760
https://github.com/elastic/elasticsearch/pull/90341
27596636e144a521d6a85ea5c074d2a522645860
8f447136580daad932f3b199d92171936bc1e92c
2022-08-31T18:52:34Z
java
2022-10-05T08:43:04Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,758
["docs/changelog/89768.yaml", "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"]
Failed to autoscale after upgrade 8.3.3 to 8.4.1
**Step to reproduce:** - On cloud production, deployed a 8.3.3 cluster, autoscaling ON - Upgrade it to 8.4.1, you will observe that autoscaling event wont be triggered, - Run `GET _autoscaling/capacity?error_trace`, below it is the reponse: ``` { "error": { "root_cause": [ { "type": "index_not_found_exception", "reason": "no such index [.kibana_task_manager_8.4.1_reindex_temp]", "index_uuid": "f95CB6lAR3e6J5MDbFEoQg", "index": ".kibana_task_manager_8.4.1_reindex_temp", "stack_trace": """[.kibana_task_manager_8.4.1_reindex_temp/f95CB6lAR3e6J5MDbFEoQg] org.elasticsearch.index.IndexNotFoundException: no such index [.kibana_task_manager_8.4.1_reindex_temp] at org.elasticsearch.cluster.metadata.Metadata.getIndexSafe(Metadata.java:919) at org.elasticsearch.xpack.autoscaling.storage.ReactiveStorageDeciderService$AllocationState.nodeLockedSize(ReactiveStorageDeciderService.java:490) at org.elasticsearch.xpack.autoscaling.storage.ReactiveStorageDeciderService$AllocationState.lambda$maxNodeLockedSize$12(ReactiveStorageDeciderService.java:470) at java.util.stream.ReferencePipeline$5$1.accept(ReferencePipeline.java:231) at java.util.Iterator.forEachRemaining(Iterator.java:133) at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.LongPipeline.reduce(LongPipeline.java:503) at java.util.stream.LongPipeline.max(LongPipeline.java:466) at org.elasticsearch.xpack.autoscaling.storage.ReactiveStorageDeciderService$AllocationState.maxNodeLockedSize(ReactiveStorageDeciderService.java:470) at org.elasticsearch.xpack.autoscaling.storage.ReactiveStorageDeciderService.scale(ReactiveStorageDeciderService.java:145) at org.elasticsearch.xpack.autoscaling.capacity.AutoscalingCalculateCapacityService.calculateForDecider(AutoscalingCalculateCapacityService.java:226) at org.elasticsearch.xpack.autoscaling.capacity.AutoscalingCalculateCapacityService.lambda$calculateForPolicy$3(AutoscalingCalculateCapacityService.java:167) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.util.TreeMap$EntrySpliterator.forEachRemaining(TreeMap.java:3287) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) at org.elasticsearch.xpack.autoscaling.capacity.AutoscalingCalculateCapacityService.calculateForPolicy(AutoscalingCalculateCapacityService.java:168) at org.elasticsearch.xpack.autoscaling.capacity.AutoscalingCalculateCapacityService.lambda$calculate$2(AutoscalingCalculateCapacityService.java:124) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.util.TreeMap$EntrySpliterator.forEachRemaining(TreeMap.java:3287) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) at org.elasticsearch.xpack.autoscaling.capacity.AutoscalingCalculateCapacityService.calculate(AutoscalingCalculateCapacityService.java:134) at org.elasticsearch.xpack.autoscaling.action.TransportGetAutoscalingCapacityAction.computeCapacity(TransportGetAutoscalingCapacityAction.java:103) at org.elasticsearch.xpack.autoscaling.action.CapacityResponseCache.lambda$singleThreadRefresh$1(CapacityResponseCache.java:88) at org.elasticsearch.action.ActionListener.completeWith(ActionListener.java:462) at org.elasticsearch.xpack.autoscaling.action.CapacityResponseCache.singleThreadRefresh(CapacityResponseCache.java:88) at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:710) 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) """ } ], "type": "index_not_found_exception", "reason": "no such index [.kibana_task_manager_8.4.1_reindex_temp]", "index_uuid": "f95CB6lAR3e6J5MDbFEoQg", "index": ".kibana_task_manager_8.4.1_reindex_temp", "stack_trace": """[.kibana_task_manager_8.4.1_reindex_temp/f95CB6lAR3e6J5MDbFEoQg] org.elasticsearch.index.IndexNotFoundException: no such index [.kibana_task_manager_8.4.1_reindex_temp] at org.elasticsearch.cluster.metadata.Metadata.getIndexSafe(Metadata.java:919) at org.elasticsearch.xpack.autoscaling.storage.ReactiveStorageDeciderService$AllocationState.nodeLockedSize(ReactiveStorageDeciderService.java:490) at org.elasticsearch.xpack.autoscaling.storage.ReactiveStorageDeciderService$AllocationState.lambda$maxNodeLockedSize$12(ReactiveStorageDeciderService.java:470) at java.util.stream.ReferencePipeline$5$1.accept(ReferencePipeline.java:231) at java.util.Iterator.forEachRemaining(Iterator.java:133) at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.LongPipeline.reduce(LongPipeline.java:503) at java.util.stream.LongPipeline.max(LongPipeline.java:466) at org.elasticsearch.xpack.autoscaling.storage.ReactiveStorageDeciderService$AllocationState.maxNodeLockedSize(ReactiveStorageDeciderService.java:470) at org.elasticsearch.xpack.autoscaling.storage.ReactiveStorageDeciderService.scale(ReactiveStorageDeciderService.java:145) at org.elasticsearch.xpack.autoscaling.capacity.AutoscalingCalculateCapacityService.calculateForDecider(AutoscalingCalculateCapacityService.java:226) at org.elasticsearch.xpack.autoscaling.capacity.AutoscalingCalculateCapacityService.lambda$calculateForPolicy$3(AutoscalingCalculateCapacityService.java:167) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.util.TreeMap$EntrySpliterator.forEachRemaining(TreeMap.java:3287) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) at org.elasticsearch.xpack.autoscaling.capacity.AutoscalingCalculateCapacityService.calculateForPolicy(AutoscalingCalculateCapacityService.java:168) at org.elasticsearch.xpack.autoscaling.capacity.AutoscalingCalculateCapacityService.lambda$calculate$2(AutoscalingCalculateCapacityService.java:124) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.util.TreeMap$EntrySpliterator.forEachRemaining(TreeMap.java:3287) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) at org.elasticsearch.xpack.autoscaling.capacity.AutoscalingCalculateCapacityService.calculate(AutoscalingCalculateCapacityService.java:134) at org.elasticsearch.xpack.autoscaling.action.TransportGetAutoscalingCapacityAction.computeCapacity(TransportGetAutoscalingCapacityAction.java:103) at org.elasticsearch.xpack.autoscaling.action.CapacityResponseCache.lambda$singleThreadRefresh$1(CapacityResponseCache.java:88) at org.elasticsearch.action.ActionListener.completeWith(ActionListener.java:462) at org.elasticsearch.xpack.autoscaling.action.CapacityResponseCache.singleThreadRefresh(CapacityResponseCache.java:88) at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:710) 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) """ }, "status": 404 } ``` This above error blocks autoscaling. Generically, the ES storage autoscaling decider should not block all scaling when one index is bad. It might make sense that storage isn’t scaled in this situation but ML should still be able to scale.
https://github.com/elastic/elasticsearch/issues/89758
https://github.com/elastic/elasticsearch/pull/89768
ba14aaa004beceb1db7cb649287aa11318c04e8f
0302d2db2de0434c567e94dd369ca922708af896
2022-08-31T15:49:13Z
java
2022-09-02T03:44:58Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,742
["docs/reference/ingest/processors/geoip.asciidoc"]
Additional detail on the custom GeoIP Endpoint documentation
The current documentation for using a custom GeoIP Endpoint is a bit unclear on the specific requirements for what value needs to be provided for the ingest.geoip.downloader.endpoint setting. https://www.elastic.co/guide/en/elasticsearch/reference/8.3/geoip-processor.html#use-custom-geoip-endpoint Currently the process lists: > Specify the service’s endpoint URL in the [ingest.geoip.downloader.endpoint](https://www.elastic.co/guide/en/elasticsearch/reference/8.3/geoip-processor.html#ingest-geoip-downloader-endpoint) setting of each node’s elasticsearch.yml file. And for the cluster settings: >ingest.geoip.downloader.endpoint ([Static](https://www.elastic.co/guide/en/elasticsearch/reference/8.3/settings.html#static-cluster-setting), string) Endpoint URL used to download updates for GeoIP2 databases. Defaults to https://geoip.elastic.co/v1/database. Elasticsearch stores downloaded database files in each node’s [temporary directory](https://www.elastic.co/guide/en/elasticsearch/reference/8.3/important-settings.html#es-tmpdir) at $ES_TMPDIR/geoip-databases/<node_id>. However this doesn't detail that the endpoint URL needs to end with /overview.json. Instead it may be better to provide an example value the same way the Logstash documentation does: https://www.elastic.co/guide/en/logstash/current/plugins-filters-geoip.html >Specify the service’s endpoint URL using the xpack.geoip.download.endpoint=http://localhost:8080/overview.json setting in logstash.yml.
https://github.com/elastic/elasticsearch/issues/89742
https://github.com/elastic/elasticsearch/pull/91182
f880d416695f56a5febdf8b2f22fbfe4e99e4ba5
d5b45846127456487dfdf59c2ffe13e90356e468
2022-08-31T06:29:45Z
java
2022-11-09T15:17:33Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,739
["README.asciidoc", "docs/reference/setup.asciidoc", "docs/reference/setup/install.asciidoc", "docs/reference/setup/run-elasticsearch-locally.asciidoc"]
[DOCS] Restore simple dev setup instructions to the Elasticsearch README
### Description As part of the Onboarding 2.0 effort, we've introduced a set of new getting started tutorials and worked to minimize the number of similar-but-different "getting started" entry points in the docs so the recommended path is the most discoverable path. All well and good, but the cascade of changes over time have kind of left behind the developer-tinkerer audience. To show them some ❤️, we want to restore basic dev set-up instructions to the Elasticsearch README, and add a corresponding "Set up a local dev deployment" topic to the Elasticsearch guide. Note that we want to avoid calling this a "Quick start" or "Getting started" to avoid diverting traffic from the getting started tutorials. Once the new topic is in place, we can link to it from the download page.
https://github.com/elastic/elasticsearch/issues/89739
https://github.com/elastic/elasticsearch/pull/89714
3c6797f2d2271a30b24f505da55afbb5ea10733e
ba14aaa004beceb1db7cb649287aa11318c04e8f
2022-08-30T22:27:23Z
java
2022-09-01T23:49:05Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,686
["docs/changelog/89734.yaml", "server/src/main/java/org/elasticsearch/search/aggregations/bucket/prefix/InternalIpPrefix.java", "server/src/test/java/org/elasticsearch/search/aggregations/bucket/prefix/InternalIpPrefixTests.java", "server/src/test/java/org/elasticsearch/search/aggregations/bucket/prefix/IpPrefixAggregatorTests.java", "test/framework/src/main/java/org/elasticsearch/test/InternalMultiBucketAggregationTestCase.java"]
[CI] IpPrefixAggregatorTests testMinDocCount failing
**Build scan:** https://gradle-enterprise.elastic.co/s/p7lvx4xmeq3fq/tests/:server:test/org.elasticsearch.search.aggregations.bucket.prefix.IpPrefixAggregatorTests/testMinDocCount **Reproduction line:** `./gradlew ':server:test' --tests "org.elasticsearch.search.aggregations.bucket.prefix.IpPrefixAggregatorTests.testMinDocCount" -Dtests.seed=27A633880C7968D3 -Dtests.locale=ar-IQ -Dtests.timezone=Africa/Maseru -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.search.aggregations.bucket.prefix.IpPrefixAggregatorTests&tests.test=testMinDocCount **Failure excerpt:** ``` java.lang.AssertionError: expected:<[3]> but was:<[4]> at __randomizedtesting.SeedInfo.seed([27A633880C7968D3:F38AC2ED53A6D213]:0) at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:834) at org.junit.Assert.assertEquals(Assert.java:118) at org.junit.Assert.assertEquals(Assert.java:144) at org.elasticsearch.search.aggregations.bucket.prefix.IpPrefixAggregatorTests.lambda$testMinDocCount$49(IpPrefixAggregatorTests.java:981) at org.elasticsearch.search.aggregations.AggregatorTestCase.testCase(AggregatorTestCase.java:676) at org.elasticsearch.search.aggregations.bucket.prefix.IpPrefixAggregatorTests.testMinDocCount(IpPrefixAggregatorTests.java:953) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/89686
https://github.com/elastic/elasticsearch/pull/89734
c97e5fd26d1781c7c82b45fe7114f41c457cfb82
734dae6d365e8eba9179bb5eca9fac1237ee0892
2022-08-29T09:35:25Z
java
2022-08-31T20:23:09Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,642
["x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/termsenum/TermsEnumRequestTests.java"]
[CI] TermsEnumRequestTests testEqualsAndHashcode failing
**Build scan:** https://gradle-enterprise.elastic.co/s/7zj432hwg2iua/tests/:x-pack:plugin:core:test/org.elasticsearch.xpack.core.termsenum.TermsEnumRequestTests/testEqualsAndHashcode **Reproduction line:** `gradlew ':x-pack:plugin:core:test' --tests "org.elasticsearch.xpack.core.termsenum.TermsEnumRequestTests.testEqualsAndHashcode" -Dtests.seed=5277A9A9CCEB5B8F -Dtests.locale=es-PA -Dtests.timezone=EST -Druntime.java=18` **Applicable branches:** main **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.core.termsenum.TermsEnumRequestTests&tests.test=testEqualsAndHashcode **Failure excerpt:** ``` java.lang.AssertionError: TermsEnumRequest mutation should not be equal to original Expected: not <[[UKJKvKclT, gmefEaqLG, zIqRQDnr, ISHqn, aenPBk]] field[ZTm], string[null] size=8 timeout=1000 case_insensitive=true indexFilter = { "term" : { "field" : { "value" : "WPpoa" } } } searchAfter[null]> but: was <[[UKJKvKclT, gmefEaqLG, zIqRQDnr, ISHqn, aenPBk]] field[ZTm], string[null] size=8 timeout=1000 case_insensitive=true indexFilter = { "term" : { "field" : { "value" : "WPpoa" } } } searchAfter[null]> at __randomizedtesting.SeedInfo.seed([5277A9A9CCEB5B8F:2378D164030C12A0]:0) at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.elasticsearch.test.EqualsHashCodeTestUtils.checkEqualsAndHashCode(EqualsHashCodeTestUtils.java:73) at org.elasticsearch.test.AbstractWireTestCase.testEqualsAndHashcode(AbstractWireTestCase.java:58) at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.lang.reflect.Method.invoke(Method.java:577) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/89642
https://github.com/elastic/elasticsearch/pull/89643
cdf4e07ba5b59818ed9077762740527c381bf145
c3480038c7466ebfb477fba5b002a470e93bfca2
2022-08-26T09:15:31Z
java
2022-08-26T14:51:03Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,639
["x-pack/plugin/enrich/qa/rest/build.gradle"]
[CI] EnrichRestIT test {p0=enrich/30_tsdb_index/enrich documents over _bulk} failing
### CI Link https://gradle-enterprise.elastic.co/s/q2dskwszr5pbc/tests/:x-pack:plugin:enrich:qa:rest:yamlRestTest/org.elasticsearch.xpack.enrich.EnrichRestIT/test%20%7Bp0=enrich%2F30_tsdb_index%2Fenrich%20documents%20over%20_bulk%7D?top-execution=1 ### Repro line `./gradlew ':x-pack:plugin:enrich:qa:rest:yamlRestTest' --tests "org.elasticsearch.xpack.enrich.EnrichRestIT.test {p0=enrich/30_tsdb_index/enrich documents over _bulk}" -Dtests.seed=D33E918FE8B20189 -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=de-LU -Dtests.timezone=America/Inuvik -Druntime.java=17` ### Does it reproduce? Didn't try ### Applicable branches main ### Failure history https://gradle-enterprise.elastic.co/scans/tests?search.timeZoneId=Europe/Zurich&tests.container=org.elasticsearch.xpack.enrich.EnrichRestIT&tests.test=test%20%7Bp0%3Denrich/30_tsdb_index/enrich%20documents%20over%20_bulk%7D ### Failure excerpt ``` [2022-08-26T01:29:24,712][INFO ][o.e.x.e.EnrichRestIT ] [test] Stash dump on test failure [{ "stash" : { "body" : { "error" : { "root_cause" : [ { "type" : "illegal_argument_exception", "reason" : "unknown setting [index.mode] did you mean [index.codec]?", "stack_trace" : "org.elasticsearch.ElasticsearchException$1: unknown setting [index.mode] did you mean [index.codec]? at [email protected]/org.elasticsearch.ElasticsearchException.guessRootCauses(ElasticsearchException.java:640) at [email protected]/org.elasticsearch.ElasticsearchException.generateFailureXContent(ElasticsearchException.java:568) at [email protected]/org.elasticsearch.rest.RestResponse.build(RestResponse.java:143) at [email protected]/org.elasticsearch.rest.RestResponse.<init>(RestResponse.java:102) at [email protected]/org.elasticsearch.rest.RestResponse.<init>(RestResponse.java:81) at [email protected]/org.elasticsearch.rest.action.RestActionListener.onFailure(RestActionListener.java:55) at [email protected]/org.elasticsearch.client.internal.node.NodeClient$SafelyWrappedActionListener.onFailure(NodeClient.java:170) at [email protected]/org.elasticsearch.tasks.TaskManager$1.onFailure(TaskManager.java:216) at [email protected]/org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.lambda$doStart$2(TransportMasterNodeAction.java:275) at [email protected]/org.elasticsearch.action.ActionListener$DelegatingActionListener.onFailure(ActionListener.java:218) at [email protected]/org.elasticsearch.action.ActionRunnable.onFailure(ActionRunnable.java:77) at [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:28) at [email protected]/org.elasticsearch.common.util.concurrent.EsExecutors$DirectExecutorService.execute(EsExecutors.java:241) at [email protected]/org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.doStart(TransportMasterNodeAction.java:279) at [email protected]/org.elasticsearch.action.support.master.TransportMasterNodeAction.doExecute(TransportMasterNodeAction.java:216) at [email protected]/org.elasticsearch.action.support.master.TransportMasterNodeAction.doExecute(TransportMasterNodeAction.java:59) at [email protected]/org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:86) at [email protected]/org.elasticsearch.action.support.ActionFilter$Simple.apply(ActionFilter.java:53) at [email protected]/org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:84) at [email protected]/org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:61) at [email protected]/org.elasticsearch.tasks.TaskManager.registerAndExecute(TaskManager.java:201) at [email protected]/org.elasticsearch.client.internal.node.NodeClient.executeLocally(NodeClient.java:112) at [email protected]/org.elasticsearch.client.internal.node.NodeClient.doExecute(NodeClient.java:90) at [email protected]/org.elasticsearch.client.internal.support.AbstractClient.execute(AbstractClient.java:380) at [email protected]/org.elasticsearch.client.internal.support.AbstractClient$IndicesAdmin.execute(AbstractClient.java:1271) at [email protected]/org.elasticsearch.client.internal.support.AbstractClient$IndicesAdmin.create(AbstractClient.java:1346) at [email protected]/org.elasticsearch.rest.action.admin.indices.RestCreateIndexAction.lambda$prepareRequest$0(RestCreateIndexAction.java:57) at [email protected]/org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:103) at [email protected]/org.elasticsearch.xpack.security.rest.SecurityRestFilter.handleRequest(SecurityRestFilter.java:119) at [email protected]/org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:395) at [email protected]/org.elasticsearch.rest.RestController.tryAllHandlers(RestController.java:529) at [email protected]/org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:310) at [email protected]/org.elasticsearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:375) at [email protected]/org.elasticsearch.http.AbstractHttpServerTransport.handleIncomingRequest(AbstractHttpServerTransport.java:456) at [email protected]/org.elasticsearch.http.AbstractHttpServerTransport.incomingRequest(AbstractHttpServerTransport.java:349) at [email protected]/org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.handlePipelinedRequest(Netty4HttpPipeliningHandler.java:112) at [email protected]/org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.channelRead(Netty4HttpPipeliningHandler.java:102) at [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) at [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) at [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) at [email protected]/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) at [email protected]/io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) at [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) at [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) at [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) at [email protected]/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) at [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) at [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) at [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) at [email protected]/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) at [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) at [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) at [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) at [email protected]/io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:327) at [email protected]/io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:299) at [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) at [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) at [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) at [email protected]/io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286) at [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) at [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) at [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) at [email protected]/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) at [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) at [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) at [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) at [email protected]/io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) at [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) at [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) at [email protected]/io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) at [email protected]/io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) at [email protected]/io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:722) at [email protected]/io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:623) at [email protected]/io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:586) at [email protected]/io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496) at [email protected]/io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:995) at [email protected]/io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) at java.base/java.lang.Thread.run(Thread.java:833) Caused by: java.lang.IllegalArgumentException: unknown setting [index.mode] did you mean [index.codec]? at [email protected]/org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:559) at [email protected]/org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:505) at [email protected]/org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:475) at [email protected]/org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:445) at [email protected]/org.elasticsearch.cluster.metadata.MetadataCreateIndexService.normalizeRequestSetting(MetadataCreateIndexService.java:320) at [email protected]/org.elasticsearch.cluster.metadata.MetadataCreateIndexService.onlyCreateIndex(MetadataCreateIndexService.java:287) at [email protected]/org.elasticsearch.cluster.metadata.MetadataCreateIndexService.createIndex(MetadataCreateIndexService.java:255) at [email protected]/org.elasticsearch.action.admin.indices.create.TransportCreateIndexAction.masterOperation(TransportCreateIndexAction.java:148) at [email protected]/org.elasticsearch.action.admin.indices.create.TransportCreateIndexAction.masterOperation(TransportCreateIndexAction.java:44) at [email protected]/org.elasticsearch.action.support.master.TransportMasterNodeAction.executeMasterOperation(TransportMasterNodeAction.java:128) at [email protected]/org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.lambda$doStart$3(TransportMasterNodeAction.java:279) at [email protected]/org.elasticsearch.action.ActionRunnable$2.doRun(ActionRunnable.java:62) at [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) ... 66 more Suppressed: java.lang.IllegalArgumentException: unknown setting [index.routing_path] please check that any required plugins are installed, or check the breaking changes documentation for removed settings ... 79 more " } ], ```
https://github.com/elastic/elasticsearch/issues/89639
https://github.com/elastic/elasticsearch/pull/89699
104f4e9fb5fb88c3015f3d7f33a98aaf05982354
7c9c4b17e6ec9cb1c2a6ee93024f9b37c60e9cb8
2022-08-26T08:13:45Z
java
2022-08-30T13:50:57Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,625
["server/src/main/java/org/elasticsearch/snapshots/SnapshotsService.java"]
[CI] ConcurrentSnapshotsIT testMasterFailoverOnFinalizationLoop failing
**Build scan:** https://gradle-enterprise.elastic.co/s/tnv6wcbx77cfg/tests/:server:internalClusterTest/org.elasticsearch.snapshots.ConcurrentSnapshotsIT/testMasterFailoverOnFinalizationLoop **Reproduction line:** `./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.snapshots.ConcurrentSnapshotsIT.testMasterFailoverOnFinalizationLoop" -Dtests.seed=7D59ABAA3D8D2B59 -Dtests.locale=ar-TN -Dtests.timezone=Asia/Harbin -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.snapshots.ConcurrentSnapshotsIT&tests.test=testMasterFailoverOnFinalizationLoop **Failure excerpt:** ``` java.util.concurrent.ExecutionException: org.elasticsearch.snapshots.SnapshotException: [test-repo:snap-other/j2h0cViMQX2V9lQzOFMlPQ] no longer master at __randomizedtesting.SeedInfo.seed([7D59ABAA3D8D2B59:7C083FB73BEEB236]:0) at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.getValue(BaseFuture.java:257) at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.get(BaseFuture.java:244) at org.elasticsearch.common.util.concurrent.BaseFuture.get(BaseFuture.java:75) at org.elasticsearch.snapshots.AbstractSnapshotIntegTestCase.assertSuccessful(AbstractSnapshotIntegTestCase.java:620) at org.elasticsearch.snapshots.AbstractSnapshotIntegTestCase.assertSuccessful(AbstractSnapshotIntegTestCase.java:615) at org.elasticsearch.snapshots.ConcurrentSnapshotsIT.testMasterFailoverOnFinalizationLoop(ConcurrentSnapshotsIT.java:1054) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) Caused by: org.elasticsearch.snapshots.SnapshotException: [test-repo:snap-other/j2h0cViMQX2V9lQzOFMlPQ] no longer master at org.elasticsearch.snapshots.SnapshotsService.failAllListenersOnMasterFailOver(SnapshotsService.java:2527) at org.elasticsearch.snapshots.SnapshotsService$6.onFailure(SnapshotsService.java:1726) at org.elasticsearch.cluster.service.MasterService$Batcher$UpdateTask.onFailure(MasterService.java:199) at org.elasticsearch.cluster.service.MasterService.lambda$runTasks$2(MasterService.java:270) at java.util.ArrayList.forEach(ArrayList.java:1511) at org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:270) at org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:170) at org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:110) at org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:148) at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:825) at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:257) at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:223) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/89625
https://github.com/elastic/elasticsearch/pull/89648
9b8ec28d1816bdb7179cdb275a536c811ae43fce
1b8c65053b78d89599c7660c9fab1d79702b0988
2022-08-25T16:15:07Z
java
2022-08-26T13:12:17Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,609
["docs/changelog/89754.yaml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.segments/10_basic.yml", "server/src/main/java/org/elasticsearch/index/engine/Segment.java", "server/src/test/java/org/elasticsearch/index/engine/SegmentTests.java"]
TSDB: GET _cat/segments failed in time_series index
### Elasticsearch Version master ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version all ### Problem Description GET _cat/segments/test_ts?v failed in the time_series index. ### Steps to Reproduce 1. create a more than 2 nodes cluster. 2. create a time_series like: ``` PUT test_ts { "settings": { "index.mode": "time_series", "index.routing_path": "metricset" }, "mappings": { "properties": { "metricset": { "type": "keyword", "time_series_dimension": true }, "k8s": { "properties": { "pod": { "properties": { "uid": { "type": "keyword", "time_series_dimension": true } } } } } } } } ``` 3. put some data: ``` POST test_ts/_doc?refresh { "metricset" : "a", "@timestamp" : 10 } ``` 4. exec `GET _cat/segments/test_ts?v` (to make sure the execute node is not the same with node of the index `test_ts`) It will cause timeout, and the node will log this: ``` [2022-08-25T11:17:52,569][WARN ][o.e.t.OutboundHandler ] [node-2] failed to serialize outbound message [Response{620}{false}{false}{false}{class org.elasticsearch.action.support.broadcast.node.TransportBroadcastByNodeAction$NodeResponse}]java.io.IOException: invalid index sort field:<string: "_tsid"> missingValue=SortField.STRING_LAST at [email protected]/org.elasticsearch.index.engine.Segment.lambda$writeSegmentSort$0(Segment.java:241) at [email protected]/org.elasticsearch.common.io.stream.StreamOutput.writeArray(StreamOutput.java:916) at [email protected]/org.elasticsearch.index.engine.Segment.writeSegmentSort(Segment.java:222) at [email protected]/org.elasticsearch.index.engine.Segment.writeTo(Segment.java:167) at [email protected]/org.elasticsearch.common.io.stream.StreamOutput.lambda$writeCollection$34(StreamOutput.java:1141) ``` ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/89609
https://github.com/elastic/elasticsearch/pull/89754
c4a77d572dacda57c11eed75156801b6c4cfaa91
188990fea71bc4a622d6a75b825c376e9542a8f3
2022-08-25T08:18:35Z
java
2022-09-08T16:11:11Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,604
["docs/changelog/89650.yaml", "server/src/main/java/org/elasticsearch/action/admin/indices/alias/IndicesAliasesRequest.java", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/SwapAliasesAndDeleteSourceIndexStep.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/SwapAliasesAndDeleteSourceIndexStepTests.java"]
ILM swap aliases step doesn't copy the is_hidden value
### Elasticsearch Version 8.x ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version Any ### Problem Description ILM [SwapAliasesAndDeleteSourceIndexStep](https://github.com/elastic/elasticsearch/blob/ffcf0eac010df3b5ba7989c5dd87bf362dd0d311/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/SwapAliasesAndDeleteSourceIndexStep.java) doesn't play nicely with with hidden aliases. When we copy the aliases from the source index in the move step, we do not copy the is_hidden value. This can lead to permanently bad ILM state with an error like: ``` policy [kibana-event-log-policy] for index [.kibana-event-log-7.11.1-000044] failed on step [{"phase":"frozen","action":"searchable_snapshot","name":"swap-aliases"}]. Moving to ERROR step java.lang.IllegalStateException: alias [.kibana-event-log-7.11.1] has is_hidden set to true on indices [...]; alias must have the same is_hidden setting on all indices at org.elasticsearch.cluster.metadata.Metadata$Builder.validateAlias(Metadata.java:2089) ``` ### Steps to Reproduce Combination of ILM and hidden aliases. ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/89604
https://github.com/elastic/elasticsearch/pull/89650
f7ee9e925d4d7d643378198740db46d01493f750
cdf4e07ba5b59818ed9077762740527c381bf145
2022-08-24T23:02:23Z
java
2022-08-26T14:46:40Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,603
["docs/changelog/96394.yaml", "server/src/main/java/org/elasticsearch/index/query/functionscore/DecayFunctionBuilder.java", "x-pack/plugin/mapper-unsigned-long/src/yamlRestTest/resources/rest-api-spec/test/10_basic.yml"]
unsigned_long field type doesn't work with function_score decay functions
### Elasticsearch Version 8.4 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version any ### Problem Description unsigned_long field type doesn't work with function_score decay functions, and produces an error: ``` "type" : "parsing_exception", "reason" : "field [unsigned_long_test] is of type [org.elasticsearch.xpack.unsignedlong.UnsignedLongFieldMapper$UnsignedLongFieldType@10281e68], but only numeric types are supported." ``` ### Steps to Reproduce **1. Create index** ``` PUT numeric-test-mapping { "mappings": { "properties": { "double_test": { "type": "double" }, "unsigned_long_test": { "type": "unsigned_long" }, "long_test": { "type": "long" } } } } ``` **2. Create documents with numeric values for the 3 different fields** ``` POST numeric-test-mapping/_doc/ { "double_test": 10, "unsigned_long_test": 10, "long_test": 10 } POST numeric-test-mapping/_doc/ { "double_test": 11, "unsigned_long_test": 11, "long_test": 11 } POST numeric-test-mapping/_doc/ { "double_test": 12, "unsigned_long_test": 12, "long_test": 12 } ``` **3. Run search on index created** ``` GET numeric-test-mapping/_search { "from": 0, "size": 10, "query": { "function_score": { "functions": [ { "gauss":{ "unsigned_long_test":{ "scale": 1, "origin": 0 } } }] } } } ``` ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/89603
https://github.com/elastic/elasticsearch/pull/96394
494847b28f0de8c808683ecbd2079f868b1255af
6cb97a5bb03711bbce54d8403350780ec3d5691f
2022-08-24T22:39:10Z
java
2023-05-30T15:40:16Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,587
["x-pack/plugin/src/test/java/org/elasticsearch/xpack/test/rest/AbstractXPackRestTest.java"]
[CI] XPackRestIT test {p0=security/authz/40_condtional_cluster_priv/Test put application privileges when not allowed} failing
**Build scan:** https://gradle-enterprise.elastic.co/s/o65lzp7q5qflm/tests/:x-pack:plugin:yamlRestTest/org.elasticsearch.xpack.test.rest.XPackRestIT/test%20%7Bp0=security%2Fauthz%2F40_condtional_cluster_priv%2FTest%20put%20application%20privileges%20when%20not%20allowed%7D **Reproduction line:** `./gradlew ':x-pack:plugin:yamlRestTest' --tests "org.elasticsearch.xpack.test.rest.XPackRestIT.test {p0=security/authz/40_condtional_cluster_priv/Test put application privileges when not allowed}" -Dtests.seed=6D5D285E1DB6B30E -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=ar-IQ -Dtests.timezone=Africa/Harare -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.test.rest.XPackRestIT&tests.test=test%20%7Bp0%3Dsecurity/authz/40_condtional_cluster_priv/Test%20put%20application%20privileges%20when%20not%20allowed%7D **Failure excerpt:** ``` java.lang.AssertionError: Failed to call API license.get at __randomizedtesting.SeedInfo.seed([6D5D285E1DB6B30E:E5091784B34ADEF6]:0) at org.elasticsearch.xpack.test.rest.AbstractXPackRestTest.lambda$awaitCallApi$5(AbstractXPackRestTest.java:156) at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1104) at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1077) at org.elasticsearch.xpack.test.rest.AbstractXPackRestTest.awaitCallApi(AbstractXPackRestTest.java:147) at org.elasticsearch.xpack.test.rest.AbstractXPackRestTest.waitForLicense(AbstractXPackRestTest.java:98) at org.elasticsearch.xpack.test.rest.XPackRestIT.setupLicense(XPackRestIT.java:31) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:980) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) Caused by: org.elasticsearch.test.rest.yaml.ClientYamlTestResponseException: org.elasticsearch.client.ResponseException: method [GET], host [http://[::1]:42703], URI [/_license?error_trace=true], status line [HTTP/1.1 404 Not Found] { } at org.elasticsearch.test.rest.yaml.ClientYamlTestClient.callApi(ClientYamlTestClient.java:207) at org.elasticsearch.test.rest.yaml.ClientYamlTestExecutionContext.callApiInternal(ClientYamlTestExecutionContext.java:186) at org.elasticsearch.test.rest.yaml.ClientYamlTestExecutionContext.callApi(ClientYamlTestExecutionContext.java:106) at org.elasticsearch.test.rest.yaml.ClientYamlTestExecutionContext.callApi(ClientYamlTestExecutionContext.java:73) at org.elasticsearch.xpack.test.rest.AbstractXPackRestTest.callApi(AbstractXPackRestTest.java:171) at org.elasticsearch.xpack.test.rest.AbstractXPackRestTest.lambda$awaitCallApi$5(AbstractXPackRestTest.java:151) at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1104) at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1077) at org.elasticsearch.xpack.test.rest.AbstractXPackRestTest.awaitCallApi(AbstractXPackRestTest.java:147) at org.elasticsearch.xpack.test.rest.AbstractXPackRestTest.waitForLicense(AbstractXPackRestTest.java:98) at org.elasticsearch.xpack.test.rest.XPackRestIT.setupLicense(XPackRestIT.java:31) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:980) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) Caused by: org.elasticsearch.client.ResponseException: method [GET], host [http://[::1]:42703], URI [/_license?error_trace=true], status line [HTTP/1.1 404 Not Found] { } at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:347) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:313) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:288) at org.elasticsearch.test.rest.yaml.ClientYamlTestClient.callApi(ClientYamlTestClient.java:204) at org.elasticsearch.test.rest.yaml.ClientYamlTestExecutionContext.callApiInternal(ClientYamlTestExecutionContext.java:186) at org.elasticsearch.test.rest.yaml.ClientYamlTestExecutionContext.callApi(ClientYamlTestExecutionContext.java:106) at org.elasticsearch.test.rest.yaml.ClientYamlTestExecutionContext.callApi(ClientYamlTestExecutionContext.java:73) at org.elasticsearch.xpack.test.rest.AbstractXPackRestTest.callApi(AbstractXPackRestTest.java:171) at org.elasticsearch.xpack.test.rest.AbstractXPackRestTest.lambda$awaitCallApi$5(AbstractXPackRestTest.java:151) at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1104) at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1077) at org.elasticsearch.xpack.test.rest.AbstractXPackRestTest.awaitCallApi(AbstractXPackRestTest.java:147) at org.elasticsearch.xpack.test.rest.AbstractXPackRestTest.waitForLicense(AbstractXPackRestTest.java:98) at org.elasticsearch.xpack.test.rest.XPackRestIT.setupLicense(XPackRestIT.java:31) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:980) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/89587
https://github.com/elastic/elasticsearch/pull/89718
498a24b61f5e37148f48e16c9d47d6c49af08aac
e6754bf812ecc8636e141431ab683f8ae96d3297
2022-08-24T15:28:39Z
java
2022-09-06T15:32:09Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,585
["docs/changelog/89775.yaml", "x-pack/plugin/ml/qa/native-multi-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/ml/integration/DatafeedJobsIT.java", "x-pack/plugin/ml/qa/native-multi-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/ml/integration/MlJobIT.java", "x-pack/plugin/ml/qa/native-multi-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/ml/integration/RunDataFrameAnalyticsIT.java", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/action/TransportOpenJobAction.java", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/action/TransportStartDataFrameAnalyticsAction.java", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/action/TransportStartDatafeedAction.java"]
[ML] Return 408 instead of 500 when open/start requests time out
### Description This applies to the following APIs: - [x] open anomaly detection - [x] start datafeed - [x] start data frame analytics job - [x] start trained model deployment Currently, if the operation takes longer than the configured `timeout`, the response status code is `500`. With Kibana in mind, a `4xx` response would be more suitable as it will lead to showing more useful information to the user about why the request failed. Looking at [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-408-request-timeout), it seems the most appropriate `4xx` code would be `408 Request Timeout`, even though the RFC describes a different situation. The alternative, `504 Gateway Timeout`, would be more appropriate for this situation but it wouldn't improve the user experience in Kibana.
https://github.com/elastic/elasticsearch/issues/89585
https://github.com/elastic/elasticsearch/pull/89775
9af107fff04fc2a7db7e4b7fcc71391aed01e21b
4bbe4eab2dce65f10f4a76f7f1580866ea0fbf12
2022-08-24T15:17:08Z
java
2022-09-01T14:25:23Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,584
["x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ml/action/StartTrainedModelDeploymentRequestTests.java"]
[CI] StartTrainedModelDeploymentRequestTests testValidate_GivenQueueCapacityIsAtLimit failing
This looks to be a newly added test in #89573 and the failure reproduces for me locally. **Build scan:** https://gradle-enterprise.elastic.co/s/pjik5yk3efeiy/tests/:x-pack:plugin:core:test/org.elasticsearch.xpack.core.ml.action.StartTrainedModelDeploymentRequestTests/testValidate_GivenQueueCapacityIsAtLimit **Reproduction line:** `./gradlew ':x-pack:plugin:core:test' --tests "org.elasticsearch.xpack.core.ml.action.StartTrainedModelDeploymentRequestTests.testValidate_GivenQueueCapacityIsAtLimit" -Dtests.seed=51860637808931AE -Dtests.locale=cs-CZ -Dtests.timezone=EAT -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.core.ml.action.StartTrainedModelDeploymentRequestTests&tests.test=testValidate_GivenQueueCapacityIsAtLimit **Failure excerpt:** ``` java.lang.AssertionError: Expected: is null but: was <org.elasticsearch.action.ActionRequestValidationException: Validation Failed: 1: [threads_per_allocation] must be a power of 2 less than or equal to 32;> at __randomizedtesting.SeedInfo.seed([51860637808931AE:A33E549418734690]:0) at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.junit.Assert.assertThat(Assert.java:923) at org.elasticsearch.xpack.core.ml.action.StartTrainedModelDeploymentRequestTests.testValidate_GivenQueueCapacityIsAtLimit(StartTrainedModelDeploymentRequestTests.java:159) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/89584
https://github.com/elastic/elasticsearch/pull/89588
8cac4906b5125aded7df8892122519e8e422d2b9
16e4cb1f53d9bc36480caa39dc8c0eba1605d0b7
2022-08-24T15:08:42Z
java
2022-08-25T08:41:21Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,564
["x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/ml/upgrade_job_snapshot.yml"]
[CI] XPackRestIT test {p0=ml/upgrade_job_snapshot/Test existing but corrupt snapshot} failing
This looks to be reproducibly failing on our single processor node test job, and given the nature of the error message this very well be a legitimate deadlock scenario. **Build scan:** https://gradle-enterprise.elastic.co/s/g5rztp2kv5rq6/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=BCFE2A9A03956ACA -Dtests.locale=th-TH-u-nu-thai-x-lvariant-TH -Dtests.timezone=US/Indiana-Starke -Druntime.java=17 -Dtests.configure_test_clusters_with_one_processor=true` **Applicable branches:** main **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.test.rest.XPackRestIT&tests.test=test%20%7Bp0%3Dml/upgrade_job_snapshot/Test%20existing%20but%20corrupt%20snapshot%7D **Failure excerpt:** ``` org.elasticsearch.client.ResponseException: method [POST], host [http://127.0.0.1:37401], 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 [Task{id=4348, type='persistent', action='xpack/ml/job/snapshot/upgrade[c]', description='job-snapshot-upgrade-upgrade-model-snapshot-1234567890', parentTask=cluster:10, startTime=1661288471981, startTimeNanos=2146045551685}]"}],"type":"failed_node_exception","reason":"Failed node [r9fh43zvSCuFWI9e5ehabQ]","node_id":"r9fh43zvSCuFWI9e5ehabQ","caused_by":{"type":"timeout_exception","reason":"Timed out waiting for completion of [Task{id=4348, type='persistent', action='xpack/ml/job/snapshot/upgrade[c]', description='job-snapshot-upgrade-upgrade-model-snapshot-1234567890', parentTask=cluster:10, startTime=1661288471981, startTimeNanos=2146045551685}]"}},"status":500} at __randomizedtesting.SeedInfo.seed([BCFE2A9A03956ACA:34AA1540AD690732]:0) at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:347) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:313) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:288) at org.elasticsearch.xpack.core.ml.integration.MlRestTestStateCleaner.resetFeatures(MlRestTestStateCleaner.java:35) 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.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$10.evaluate(RandomizedRunner.java:1004) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/89564
https://github.com/elastic/elasticsearch/pull/89917
5a6ff5d9905ec35ac000ba14b0dec74bbcc12cea
968251efabaf7513d7786edaf6443369f633d46f
2022-08-23T22:16:48Z
java
2022-09-08T12:07:53Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,561
["docs/changelog/89621.yaml", "docs/reference/search/knn-search.asciidoc", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/60_knn_search_filter_alias.yml", "server/src/main/java/org/elasticsearch/search/dfs/DfsPhase.java", "server/src/test/java/org/elasticsearch/action/search/KnnSearchSingleNodeTests.java"]
Add support for kNN with filtered aliases
### Description Currently we can’t run an approximate kNN search on a [filtered alias](https://www.elastic.co/guide/en/elasticsearch/reference/master/aliases.html#filter-alias). Running a kNN search against a filtered alias may incorrectly result in fewer than k hits. Reproduction: ```js PUT index1 { "settings": { "number_of_shards": 1, "number_of_replicas": 0 }, "mappings": { "dynamic": "false", "properties": { "my_vector": { "type": "dense_vector", "dims": 4, "index" : true, "similarity" : "l2_norm" }, "k": { "type": "keyword", "store": true } } } } ``` ```js POST index1/_bulk?refresh=true { "index" : {"_id": 1} } {"my_vector" : [230.0, 300.33, -34.8988, 15.555], "k" : "v1"} { "index" : {"_id": 2} } {"my_vector" : [0.5, 0.5, 0.5, -1], "k" : "v1"} { "index" : {"_id": 3} } {"my_vector" : [0.5, 0.5, 0.5, 0.5], "k" : "v2"} { "index" : {"_id": 4} } {"my_vector" : [0.5, 0.5, 0.5, 0], "k" : "v2"} ``` ```js POST _aliases { "actions": [ { "add": { "index": "index1", "alias": "my-alias", "filter": { "term": { "k": "v1" } } } } ] } ```` // correctly returns 2 results as request by "k" ```js GET index1/_search { "knn": { "field": "my_vector", "query_vector": [ 230.0, 300.33, -34.8988, 15.555 ], "k": 2, "num_candidates": 100, "filter": { "term": { "k": "v1" } } }, "_source": [ "k" ] } ``` // incorrectly returns 1 result even "k = 2" ```js GET my-alias/_search { "knn": { "field": "my_vector", "query_vector": [ 230.0, 300.33, -34.8988, 15.555 ], "k": 2, "num_candidates": 100 }, "_source": "k" } ```
https://github.com/elastic/elasticsearch/issues/89561
https://github.com/elastic/elasticsearch/pull/89621
6161447659393278ba8634ec827178822a99ce0f
8c30b86fe27581d97d441cf9429a9ad1fd7fd65a
2022-08-23T20:59:11Z
java
2022-08-30T22:57:37Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,543
["server/src/main/java/org/elasticsearch/cluster/coordination/Coordinator.java", "server/src/test/java/org/elasticsearch/cluster/coordination/CoordinatorTests.java"]
[CI] CoordinatorTests testDoesNotPerformElectionWhenRestartingFollower failing
**Build scan:** https://gradle-enterprise.elastic.co/s/svflp24u53hec/tests/:server:test/org.elasticsearch.cluster.coordination.CoordinatorTests/testDoesNotPerformElectionWhenRestartingFollower **Reproduction line:** `./gradlew ':server:test' --tests "org.elasticsearch.cluster.coordination.CoordinatorTests.testDoesNotPerformElectionWhenRestartingFollower" -Dtests.seed=971F1427747D3FEB -Dtests.locale=sl-SI -Dtests.timezone=Asia/Pyongyang -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.cluster.coordination.CoordinatorTests&tests.test=testDoesNotPerformElectionWhenRestartingFollower **Failure excerpt:** ``` java.lang.AssertionError: (No message provided) at __randomizedtesting.SeedInfo.seed([971F1427747D3FEB:A6D371A05A76D3E]:0) at org.elasticsearch.cluster.coordination.Coordinator.invariant(Coordinator.java:1096) at org.elasticsearch.cluster.coordination.AbstractCoordinatorTestCase$Cluster.runFor(AbstractCoordinatorTestCase.java:765) at org.elasticsearch.cluster.coordination.AbstractCoordinatorTestCase$Cluster.stabilise(AbstractCoordinatorTestCase.java:561) at org.elasticsearch.cluster.coordination.AbstractCoordinatorTestCase$Cluster.stabilise(AbstractCoordinatorTestCase.java:544) at org.elasticsearch.cluster.coordination.CoordinatorTests.testDoesNotPerformElectionWhenRestartingFollower(CoordinatorTests.java:2334) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/89543
https://github.com/elastic/elasticsearch/pull/89876
1f1ac13c42327c6e82612002db620647b1dd6482
9d27318de4031f86a032dfebb4a44b15b8f61638
2022-08-23T14:08:17Z
java
2022-09-08T09:17:23Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,542
["docs/changelog/93239.yaml", "docs/reference/mapping/params/ignore-malformed.asciidoc", "docs/reference/mapping/types/boolean.asciidoc", "server/src/main/java/org/elasticsearch/index/mapper/BooleanFieldMapper.java", "server/src/main/java/org/elasticsearch/index/mapper/DynamicFieldsBuilder.java", "server/src/test/java/org/elasticsearch/index/mapper/BooleanFieldMapperTests.java", "server/src/test/java/org/elasticsearch/index/mapper/BooleanScriptFieldTypeTests.java", "server/src/test/java/org/elasticsearch/index/mapper/FieldAliasMapperValidationTests.java", "server/src/test/java/org/elasticsearch/index/mapper/MultiFieldsSerializationTests.java"]
Boolean field to support ignore_malformed
The `ignore_malformed` option is supported by a few of our field types, mainly numerics and dates, to still accept the document when such fields hold malformed values. See https://www.elastic.co/guide/en/elasticsearch/reference/current/ignore-malformed.html. Also `ignore_malformed` is an index level setting that gets applied to all field types that support it. The boolean field type does not support `ignore_malformed` but it should, so that if a boolean field cannot be parsed as a boolean, the document can still be accepted.
https://github.com/elastic/elasticsearch/issues/89542
https://github.com/elastic/elasticsearch/pull/93239
78bbfba29f227edc3e3dddb61a3582f578a237bf
f5af004117e490ffc5e249adfd681f03b190c658
2022-08-23T13:43:46Z
java
2023-02-21T17:22:10Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,531
["build-tools-internal/version.properties", "docs/changelog/89535.yaml", "gradle/verification-metadata.xml"]
Upgrade OpenJDK to 18.0.2.1+0
OpenJDK 18.0.2.1+0 is now available. We need to upgrade the version that is bundled with Elasticsearch to the newer version. We currently bundle 18.0.2+9.
https://github.com/elastic/elasticsearch/issues/89531
https://github.com/elastic/elasticsearch/pull/89535
317f06a6e221a6ca662b46215abb452be677423d
43e2852016fa28d2892324291c4de14bfc62fa73
2022-08-23T10:00:44Z
java
2022-09-06T08:12:25Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,525
["docs/changelog/90123.yaml", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/SecurityFeatureSetUsage.java", "x-pack/plugin/security/qa/profile/build.gradle", "x-pack/plugin/security/qa/profile/src/javaRestTest/java/org/elasticsearch/xpack/security/profile/ProfileIT.java", "x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/Security.java", "x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/SecurityUsageServices.java", "x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/SecurityUsageTransportAction.java", "x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/profile/ProfileService.java", "x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/SecurityInfoTransportActionTests.java", "x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/profile/ProfileServiceTests.java"]
Usage stats of user profiles
As we are rolling out the user profile feature, we'd like to expand the [Usage API](https://www.elastic.co/guide/en/elasticsearch/reference/current/usage-api.html) to report usage stats of user profiles such as (1) number of enabled user profiles and (2) number of user profiles that are [activated](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-activate-user-profile.html) over the past X days. Response of the Usage API already contains a `security` field that groups relevant stats from security related features. We expect the new stats for user profiles should be added under it as well, for example: ``` { "security: { "user_profile": { "activated": 78, "recently_activated": 42 <1> } } } ``` <1> The use of `recently_` is chosen to avoid the field to be tied to a specific time period so it is easier to evolve the definition in future.
https://github.com/elastic/elasticsearch/issues/89525
https://github.com/elastic/elasticsearch/pull/90123
b1acb3603dda80c31d0dac9c83354d422ef85ad1
bfda66a98666a3848685873ace1e4c65383e1b67
2022-08-23T01:52:06Z
java
2022-09-20T00:23:32Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,518
["server/src/test/java/org/elasticsearch/index/shard/IndexShardTests.java"]
[CI] IndexShardTests testFlushOnIdleConcurrentFlushDoesNotWait failing
This looks to be a newly added test in #89430 and failed for me in a PR. **Build scan:** https://gradle-enterprise.elastic.co/s/ctyyqap6ywxok/tests/:server:test/org.elasticsearch.index.shard.IndexShardTests/testFlushOnIdleConcurrentFlushDoesNotWait **Reproduction line:** `./gradlew ':server:test' --tests "org.elasticsearch.index.shard.IndexShardTests.testFlushOnIdleConcurrentFlushDoesNotWait" -Dtests.seed=3B825C4D0772201A -Dtests.locale=ru-RU -Dtests.timezone=Australia/Broken_Hill -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.index.shard.IndexShardTests&tests.test=testFlushOnIdleConcurrentFlushDoesNotWait **Failure excerpt:** ``` java.lang.AssertionError: expected to see should see first flush getting lock immediately but did not Expected: <true> but: was <false> at __randomizedtesting.SeedInfo.seed([3B825C4D0772201A:B93D2E3091554306]:0) at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.elasticsearch.test.MockLogAppender$SeenEventExpectation.assertMatched(MockLogAppender.java:121) at org.elasticsearch.test.MockLogAppender.assertAllExpectationsMatched(MockLogAppender.java:55) at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1104) at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1077) at org.elasticsearch.index.shard.IndexShardTests.testFlushOnIdleConcurrentFlushDoesNotWait(IndexShardTests.java:3939) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/89518
https://github.com/elastic/elasticsearch/pull/89571
bdbfcb3280ee8e340f3b20686d749f6181424077
8cac4906b5125aded7df8892122519e8e422d2b9
2022-08-22T19:28:40Z
java
2022-08-25T08:22:37Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,509
["docs/changelog/92081.yaml", "x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/jwt/JwkSetLoader.java", "x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/jwt/JwtSignatureValidator.java"]
[CI] JwtRealmAuthenticateTests testJwkSetUpdates failing
The test seems a bit flaky, since it has failed some times during the last 28 days. I cannot reproduce it locally. **Build scan:** https://gradle-enterprise.elastic.co/s/apnw3fyka43b2/tests/:x-pack:plugin:security:test/org.elasticsearch.xpack.security.authc.jwt.JwtRealmAuthenticateTests/testJwkSetUpdates **Reproduction line:** `./gradlew ':x-pack:plugin:security:test' --tests "org.elasticsearch.xpack.security.authc.jwt.JwtRealmAuthenticateTests.testJwkSetUpdates" -Dtests.seed=6B2F4ED558B90FA -Dtests.locale=bg -Dtests.timezone=Cuba -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.security.authc.jwt.JwtRealmAuthenticateTests&tests.test=testJwkSetUpdates **Failure excerpt:** ``` java.lang.AssertionError: Expected: is <false> but: was <true> at __randomizedtesting.SeedInfo.seed([6B2F4ED558B90FA:346D5564AC84C16E]:0) at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.junit.Assert.assertThat(Assert.java:923) at org.elasticsearch.xpack.security.authc.jwt.JwtRealmTestCase.verifyAuthenticateFailureHelper(JwtRealmTestCase.java:121) at org.elasticsearch.xpack.security.authc.jwt.JwtRealmAuthenticateTests.testJwkSetUpdates(JwtRealmAuthenticateTests.java:227) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/89509
https://github.com/elastic/elasticsearch/pull/92081
8c77fe5ba1025545147143ffcaa9c3697c4cfe59
0b7d34e75c6673006fff78ba6a6ee053a4f6c577
2022-08-22T15:43:10Z
java
2022-12-06T07:35:18Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,500
["docs/changelog/90537.yaml", "server/src/main/java/org/elasticsearch/reservedstate/service/FileSettingsService.java", "server/src/test/java/org/elasticsearch/reservedstate/service/FileSettingsServiceTests.java"]
[CI] ClusterStateRestCancellationIT testClusterStateRestCancellation failing
**Build scan:** https://gradle-enterprise.elastic.co/s/swrn2vccdizu6/tests/:qa:smoke-test-http:javaRestTest/org.elasticsearch.http.ClusterStateRestCancellationIT/testClusterStateRestCancellation **Reproduction line:** `./gradlew ':qa:smoke-test-http:javaRestTest' --tests "org.elasticsearch.http.ClusterStateRestCancellationIT.testClusterStateRestCancellation" -Dtests.seed=2034D67B43AAFEF0 -Dtests.locale=ca -Dtests.timezone=Europe/Madrid -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.http.ClusterStateRestCancellationIT&tests.test=testClusterStateRestCancellation **Failure excerpt:** ``` java.lang.IllegalStateException: unable to launch a new watch service at __randomizedtesting.SeedInfo.seed([2034D67B43AAFEF0:A2A0FB19FD8E07BE]:0) at org.elasticsearch.reservedstate.service.FileSettingsService.startWatcher(FileSettingsService.java:271) at org.elasticsearch.reservedstate.service.FileSettingsService.startIfMaster(FileSettingsService.java:142) at org.elasticsearch.reservedstate.service.FileSettingsService.doStart(FileSettingsService.java:116) at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:43) at org.elasticsearch.node.Node.start(Node.java:1372) at org.elasticsearch.test.InternalTestCluster$NodeAndClient.startNode(InternalTestCluster.java:982) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.util.concurrent.FutureTask.run(FutureTask.java:264) at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:820) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.lang.Thread.run(Thread.java:833) Caused by: java.io.IOException: User limit of inotify watches reached at sun.nio.fs.LinuxWatchService$Poller.implRegister(LinuxWatchService.java:264) at sun.nio.fs.AbstractPoller.processRequests(AbstractPoller.java:266) at sun.nio.fs.LinuxWatchService$Poller.run(LinuxWatchService.java:364) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/89500
https://github.com/elastic/elasticsearch/pull/90537
4fe9fc488ca9cdfea598bd1137098d1a65752175
8ae63c37f7b7b8f36ff0d328ae2cfd0ae76c9a52
2022-08-22T09:18:03Z
java
2022-10-03T15:19:04Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,486
["docs/changelog/98367.yaml", "x-pack/plugin/shutdown/src/main/java/org/elasticsearch/xpack/shutdown/TransportGetShutdownStatusAction.java", "x-pack/plugin/shutdown/src/test/java/org/elasticsearch/xpack/shutdown/TransportGetShutdownStatusActionTests.java"]
Node shutdown API should handle waiting for ILM to run before marking shutdown as stalled
When using the node shutdown API, we have observed that the API will indicate that shutdown is stalled due to a shard not being able to move. This can happen after several hours of progress on a busy cluster. Currently, the expectation is that the caller observes the stalled status and then waits some reasonable amount of time before giving up on shutdown making progress. One reason is to give ILM enough time to potentially address any issues that would prevent shards from migrating. This has the unfortunate side effect of pushing more logic to the callers of the API whereas if Elasticsearch handled this we would be much more likely to know if the shard migration will ever be un-stalled and/or make better decisions about how long to wait.
https://github.com/elastic/elasticsearch/issues/89486
https://github.com/elastic/elasticsearch/pull/98367
e9dc8e1d1063bd2f7156faa76dc7478a13b64ca5
e693a2b820d80c5eb153c684a2273d2364f3d669
2022-08-19T14:45:45Z
java
2023-08-14T22:23:41Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,485
["docs/changelog/89770.yaml", "server/src/main/java/org/elasticsearch/index/mapper/TextFieldMapper.java", "server/src/test/java/org/elasticsearch/index/mapper/TextFieldMapperTests.java"]
Enhancement of "Text fields are not optimised for operations ..." log message
### Description Users may see the below log message under various circumstances, > https://github.com/elastic/elasticsearch/blob/v8.3.3/server/src/main/java/org/elasticsearch/index/mapper/TextFieldMapper.java#L899-L906 > Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [FIELD_NAME] in order to load field data by uninverting the inverted index. Note that this can use significant memory. as people seem to have mentioned this message in [Elasticsearch](https://github.com/elastic/elasticsearch/issues?q=is%3Aissue+%22Text+fields+are+not+optimised+for+operations%22+), [Kibana](https://github.com/elastic/kibana/issues?q=is%3Aissue+%22Text+fields+are+not+optimised+for+operations%22+), and [Beats](https://github.com/elastic/beats/issues?q=is%3Aissue+%22Text+fields+are+not+optimised+for+operations%22+) GH issues as well as at [forums](https://discuss.elastic.co/search?q=%22Text%20fields%20are%20not%20optimised%20for%20operations%22). I don't intend to suggest revise of this well-known message but want to propose an insertion of contextual information - i.e. field and index name to clarify where to start troubleshooting at a glance. **Proposal** ```diff diff --git a/server/src/main/java/org/elasticsearch/index/mapper/TextFieldMapper.java b/server/src/main/java/org/elasticsearch/index/mapper/TextFieldMapper.java index 045be484f09..74df90ffc0f 100644 --- a/server/src/main/java/org/elasticsearch/index/mapper/TextFieldMapper.java +++ b/server/src/main/java/org/elasticsearch/index/mapper/TextFieldMapper.java @@ -909,7 +909,8 @@ public class TextFieldMapper extends FieldMapper { } else if (operation == FielddataOperation.SEARCH) { if (fielddata == false) { throw new IllegalArgumentException( - "Text fields are not optimised for operations that require per-document " + "Field data is disabled on [" + name() + "] in [" + fieldDataContext.fullyQualifiedIndexName() + "]. " + + "Text fields are not optimised for operations that require per-document " + "field data like aggregations and sorting, so these operations are disabled by default. Please use a " + "keyword field instead. Alternatively, set fielddata=true on [" + name() ``` If this proposal sounds reasonable, please let me know, and I will open PRs accordingly. Thanks.
https://github.com/elastic/elasticsearch/issues/89485
https://github.com/elastic/elasticsearch/pull/89770
1cc5b9e295c4abf23109579244b4a9e25e46a397
586d3fb13a8601b317c2566ddf9afc0acdbdd294
2022-08-19T09:14:30Z
java
2022-09-13T15:13:43Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,477
["x-pack/qa/oidc-op-tests/build.gradle", "x-pack/qa/oidc-op-tests/src/javaRestTest/java/org/elasticsearch/xpack/security/authc/oidc/C2IdOpTestCase.java", "x-pack/test/idp-fixture/docker-compose.yml", "x-pack/test/idp-fixture/oidc/override.properties"]
OpenID Connect integration tests failing due to missing fixture Docker image
It seems the `c2id/c2id-server` docker image has dissappeared from DockerHub so our idp-fixture that depends on it can no longer start. This is currently only required by our `oidc-op-tests` project so for now I've disabled these tests. We'll need to find an alternative fixture here. I tried simply replacing it with the `c2id-server-demo` image but it wasn't a direct replacement. https://gradle-enterprise.elastic.co/s/p4vwhzkudvutw
https://github.com/elastic/elasticsearch/issues/89477
https://github.com/elastic/elasticsearch/pull/89526
0cf3dc97a92314713819128d1f9daaf2ee285bd8
b557d20ff4ec8dc4e3e0f61fbf0689651c93ba63
2022-08-18T21:20:49Z
java
2022-08-23T14:29:24Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,464
["server/src/internalClusterTest/java/org/elasticsearch/reservedstate/service/FileSettingsServiceIT.java", "server/src/internalClusterTest/java/org/elasticsearch/reservedstate/service/SnaphotsAndFileSettingsIT.java"]
[CI] FileSettingsServiceIT testSettingsAppliedOnStart failing
This failed in the "encryption at rest" build. **Build scan:** https://gradle-enterprise.elastic.co/s/p3kitmwynmfv6/tests/:server:internalClusterTest/org.elasticsearch.reservedstate.service.FileSettingsServiceIT/testSettingsAppliedOnStart **Reproduction line:** `./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.reservedstate.service.FileSettingsServiceIT.testSettingsAppliedOnStart" -Dtests.seed=3FA6058EAB3B765A -Dtests.locale=pl -Dtests.timezone=US/Indiana-Starke -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.reservedstate.service.FileSettingsServiceIT&tests.test=testSettingsAppliedOnStart **Failure excerpt:** ``` java.lang.AssertionError: Expected: "50mb" but: was null at __randomizedtesting.SeedInfo.seed([3FA6058EAB3B765A:C18EE4DE4645F069]: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.reservedstate.service.FileSettingsServiceIT.assertClusterStateSaveOK(FileSettingsServiceIT.java:123) at org.elasticsearch.reservedstate.service.FileSettingsServiceIT.testSettingsAppliedOnStart(FileSettingsServiceIT.java:183) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/89464
https://github.com/elastic/elasticsearch/pull/89468
64ccf049c336c0a4468f96823851be75d3435041
c9b2cc4c1a060cbffec72e9095567f5ae609c208
2022-08-18T14:24:30Z
java
2022-08-22T20:55:43Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,455
["docs/changelog/89467.yaml", "docs/reference/rollup/rollup-getting-started.asciidoc", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.aggregation/220_filters_bucket.yml", "server/src/main/java/org/elasticsearch/search/aggregations/AbstractAggregationBuilder.java", "server/src/main/java/org/elasticsearch/search/aggregations/AggregationBuilder.java", "x-pack/plugin/rollup/src/main/java/org/elasticsearch/xpack/rollup/RollupRequestTranslator.java"]
Unexpected meta param found in filters agg's response
### Elasticsearch Version 8.2.2 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version Linux 249a534da7fc 3.10.0-1160.6.1.el7.x86_64 #1 SMP Tue Nov 17 13:59:11 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux ### Problem Description Unexpected meta param found in filters agg's response. Perhaps when agg is rewritten, an empty meta will be returned. https://github.com/elastic/elasticsearch/blob/8.3/server/src/main/java/org/elasticsearch/search/aggregations/AggregationBuilder.java#L127 ```java @Override public final AggregationBuilder rewrite(QueryRewriteContext context) throws IOException { AggregationBuilder rewritten = doRewrite(context); AggregatorFactories.Builder rewrittenSubAggs = factoriesBuilder.rewrite(context); if (rewritten != this) { return rewritten.setMetadata(getMetadata()).subAggregations(rewrittenSubAggs); } else if (rewrittenSubAggs != factoriesBuilder) { return shallowCopy(rewrittenSubAggs, getMetadata()); } else { return this; } } ``` https://github.com/elastic/elasticsearch/blob/8.3/server/src/main/java/org/elasticsearch/search/aggregations/AbstractAggregationBuilder.java#L117 ```java public Map<String, Object> getMetadata() { return metadata == null ? Collections.emptyMap() : Collections.unmodifiableMap(metadata); } ``` ### Steps to Reproduce ``` DELETE test_1 PUT test_1 { "mappings": { "properties": { "int_field":{ "type": "integer" } } } } PUT test_1/_bulk?refresh {"index":{"_id":"1"}} {"int_field":1} {"index":{"_id":"2"}} {"int_field":51} {"index":{"_id":"3"}} {"int_field":101} {"index":{"_id":"4"}} {"int_field":151} GET test_1/_search { "size": 0, "aggs": { "the_filters": { "filters": { "filters": [ { "match": { "int_field": 101 } }, { "match": { "int_field": 151 } } ] } } } } response: { "took": 3, "timed_out": false, "_shards": { "total": 1, "successful": 1, "skipped": 0, "failed": 0 }, "hits": { "total": { "value": 4, "relation": "eq" }, "max_score": null, "hits": [] }, "aggregations": { "the_filters": { "meta": {}, "buckets": [ { "doc_count": 1 }, { "doc_count": 1 } ] } } } ``` ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/89455
https://github.com/elastic/elasticsearch/pull/89467
58fae254906db7b0db055bbc6d3e268a19eafc46
cdcf238787f1be6cbc69f4cb49f8992ad26afff8
2022-08-18T09:47:35Z
java
2022-08-26T19:57:51Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,454
["docs/reference/index-modules.asciidoc", "docs/reference/setup/advanced-configuration.asciidoc", "docs/reference/setup/important-settings/gc-logging.asciidoc", "docs/reference/setup/install/docker.asciidoc", "docs/reference/setup/install/sysconfig-file.asciidoc", "docs/reference/setup/install/zip-windows.asciidoc", "docs/reference/setup/sysconfig/swap.asciidoc"]
8.3.3 CLI_JAVA_OPTS set fail,but ES_JAVA_OPTS success
### Elasticsearch Version 8.3.3 ### Installed Plugins _No response_ ### Java Version _bundled_ ### OS Version Linux dai-server 5.4.0-124-generic #140-Ubuntu SMP Thu Aug 4 02:23:37 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux ### Problem Description 1. memory exhausted `docker run --name es -p 9200:9200 -p 9300:9300 -e CLI_JAVA_OPTS="-Xms1g -Xmx1g" -e "discovery.type=single-node" elasticsearch:8.3.3 ` top -c|grep elasticsearch <img width="861" alt="image" src="https://user-images.githubusercontent.com/26707226/185362949-67a0b4b4-16c0-454e-b867-1cf1e6198f4e.png"> 2. it,s ok `docker run --name es -p 9200:9200 -p 9300:9300 -e ES_JAVA_OPTS="-Xms1g -Xmx1g" -e "discovery.type=single-node" elasticsearch:8.3.3 ` top -c|grep elasticsearch <img width="920" alt="image" src="https://user-images.githubusercontent.com/26707226/185363556-64cd202d-041c-4f25-9d97-0f898dec947b.png"> ### Steps to Reproduce `docker run --name es -p 9200:9200 -p 9300:9300 -e CLI_JAVA_OPTS="-Xms1g -Xmx1g" -e "discovery.type=single-node" elasticsearch:8.3.3 ` `docker run --name es -p 9200:9200 -p 9300:9300 -e ES_JAVA_OPTS="-Xms1g -Xmx1g" -e "discovery.type=single-node" elasticsearch:8.3.3 ` ### Logs (if relevant) _No response_
https://github.com/elastic/elasticsearch/issues/89454
https://github.com/elastic/elasticsearch/pull/89931
36ed4a5e0d31cdd2f005bb8cff10dff9f7397a53
f16110da9b7305840baa1fb0f30c40ebba6f75eb
2022-08-18T09:33:28Z
java
2022-09-08T17:37:39Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,441
["build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/release/ValidateChangelogEntryTask.java", "build-tools-internal/src/main/resources/templates/release-highlights.asciidoc", "build-tools-internal/src/test/java/org/elasticsearch/gradle/internal/release/ReleaseHighlightsGeneratorTest.java", "build-tools-internal/src/test/java/org/elasticsearch/gradle/internal/release/ValidateChangelogEntryTaskTest.java", "build-tools-internal/src/test/resources/org/elasticsearch/gradle/internal/release/ReleaseHighlightsGeneratorTest.generateFile.asciidoc", "docs/changelog/83345.yaml"]
[DOCS] Release highlights have broken heading links & no code highlighting
The generated release highlights have PR links in the headings. These links conflict with the anchor links added by the doc build and don't work as intended. In addition, the code snippets use Markdown-style code blocks instead of Asciidoc, so there's no code highlighting. To fix the link issue, let's move the PR links to the end of the descriptions, similar to the way we handle the GH links in the Release notes. For example: ``` [discrete] [[ingest_performance_improvement]] === Ingest performance improvement We have improved the pipeline execution logic for pipelines with processors that are synchronous by avoiding (deep) recursion. On our nightly benchmark that simulates a Logging use-case, this resulted in a 10% reduction of CPU time spent on ingest pipelines and a 3% overall ingestion speedup. {es-pull}84250[#84250] ``` To add code highlighting to the snippets, they need to be formatted as Asciidoc code blocks. For example: ``` [source,yaml] ---- { "metrics.time" : 10, "metrics.time.min" : 1, "metrics.time.max" : 500 } ---- ```
https://github.com/elastic/elasticsearch/issues/89441
https://github.com/elastic/elasticsearch/pull/89463
20ed7e3fd9b492949c86b68ec637028c9f491da6
f0df4b769a1c3f2fab7b78edf75e698dc96941f6
2022-08-17T21:10:18Z
java
2022-08-18T18:44:35Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,439
["distribution/tools/server-cli/src/main/java/org/elasticsearch/server/cli/APMJvmOptions.java", "distribution/tools/server-cli/src/test/java/org/elasticsearch/server/cli/APMJvmOptionsTests.java", "docs/changelog/91058.yaml", "server/src/main/java/org/elasticsearch/node/Node.java"]
APM secret token briefly exists in plain text
PR #88443 implemented a tracer using the Elastic APM Java agent. As discussed in the PR, it was necessary to write a temporary config file for the agent, in order to configure settings that cannot be dynamically set at runtime. Although this config file is rapidly deleted again, it is not ideal that we have to do it at all. We need to investigate alternatives, which will require a conversation with the APM team about alternative approaches to configure the agent.
https://github.com/elastic/elasticsearch/issues/89439
https://github.com/elastic/elasticsearch/pull/91058
b6b2f2c52fccf70761e5847578e7f5c976c4d305
691a679c65c533d18703e30943d070401786a6f9
2022-08-17T20:54:55Z
java
2022-11-02T13:25:11Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,431
["docs/changelog/89472.yaml", "server/src/internalClusterTest/java/org/elasticsearch/discovery/StableMasterDisruptionIT.java", "server/src/main/java/org/elasticsearch/cluster/coordination/CoordinationDiagnosticsService.java"]
[CI] StableMasterDisruptionIT testRepeatedNullMasterRecognizedAsGreenIfMasterDoesNotKnowItIsUnstable failing
**Build scan:** https://gradle-enterprise.elastic.co/s/sjbgu4zjbxhmo/tests/:server:internalClusterTest/org.elasticsearch.discovery.StableMasterDisruptionIT/testRepeatedNullMasterRecognizedAsGreenIfMasterDoesNotKnowItIsUnstable **Reproduction line:** `./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.discovery.StableMasterDisruptionIT.testRepeatedNullMasterRecognizedAsGreenIfMasterDoesNotKnowItIsUnstable" -Dtests.seed=5F13EFF29906BB53 -Dtests.locale=en-IE -Dtests.timezone=Australia/South -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.discovery.StableMasterDisruptionIT&tests.test=testRepeatedNullMasterRecognizedAsGreenIfMasterDoesNotKnowItIsUnstable **Failure excerpt:** ``` java.lang.AssertionError: {"status":"yellow","cluster_name":"TEST-TEST_WORKER_VM=[226]-CLUSTER_SEED=[7924964341647394941]-HASH=[F908511566]-cluster","indicators":{"master_is_stable":{"status":"yellow","symptom":"The cluster's master has alternated between [{node_t0}{cX_Eos3KTJi7ejP3Ciy7Gw}{ZPwl9rtsTlmdxJanBAD2ew}{node_t0}{127.0.0.1}{127.0.0.1:20111}{m}] and no master multiple times in the last 30m","details":{"current_master":{"node_id":"cX_Eos3KTJi7ejP3Ciy7Gw","name":"node_t0"},"recent_masters":[{"node_id":"cX_Eos3KTJi7ejP3Ciy7Gw","name":"node_t0"},{"node_id":"cX_Eos3KTJi7ejP3Ciy7Gw","name":"node_t0"},{"node_id":"cX_Eos3KTJi7ejP3Ciy7Gw","name":"node_t0"}],"exception_fetching_history":{"message":"[node_t0][127.0.0.1:20111][internal:cluster/master_history/get] request_id [25] timed out after [10044ms]","stack_trace":"org.elasticsearch.transport.ReceiveTimeoutTransportException: [node_t0][127.0.0.1:20111][internal:cluster/master_history/get] request_id [25] timed out after [10044ms]\n"}},"impacts":[{"severity":1,"description":"The cluster cannot create, delete, or rebalance indices, and cannot insert or update documents.","impact_areas":["ingest"]},{"severity":1,"description":"Scheduled tasks such as Watcher, ILM, and SLM will not work. The _cat APIs will not work.","impact_areas":["deployment_management"]},{"severity":3,"description":"Snapshot and restore will not work. Searchable snapshots cannot be mounted.","impact_areas":["backup"]}],"diagnosis":[{"cause":"The Elasticsearch cluster does not have a stable master node.","action":"Get help at https://ela.st/getting-help","help_url":"https://ela.st/getting-help"}]},"repository_integrity":{"status":"unknown","symptom":"Could not determine health status. Check details on critical issues preventing the health status from reporting.","details":{"reasons":{"master_is_stable":"yellow"}}},"shards_availability":{"status":"unknown","symptom":"Could not determine health status. Check details on critical issues preventing the health status from reporting.","details":{"reasons":{"master_is_stable":"yellow"}}}}} Expected: <GREEN> but: was <YELLOW> at __randomizedtesting.SeedInfo.seed([5F13EFF29906BB53:B4381153A289DA9A]:0) at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.elasticsearch.discovery.StableMasterDisruptionIT.lambda$assertMasterStability$0(StableMasterDisruptionIT.java:140) at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1104) at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1077) at org.elasticsearch.discovery.StableMasterDisruptionIT.assertMasterStability(StableMasterDisruptionIT.java:137) at org.elasticsearch.discovery.StableMasterDisruptionIT.assertGreenMasterStability(StableMasterDisruptionIT.java:133) at org.elasticsearch.discovery.StableMasterDisruptionIT.testRepeatedNullMasterRecognizedAsGreenIfMasterDoesNotKnowItIsUnstable(StableMasterDisruptionIT.java:474) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/89431
https://github.com/elastic/elasticsearch/pull/89472
e9ea4630bb52049a4dd0c4e59e91c144ad0cf4de
5b3d51d30c3ae8dc9eed71bc52b857f960acb786
2022-08-17T16:12:07Z
java
2022-08-22T16:18:05Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,414
["gradle/verification-metadata.xml", "modules/apm/build.gradle", "modules/apm/src/main/java/org/elasticsearch/tracing/apm/APMTracer.java"]
Upgrade OpenTelemetry SDK to ≥1.17.0
Version 1.17.0 of the OpenTelemetry Java SDK was released a few days ago, and this release includes a fix for the performance bug identified in https://github.com/elastic/elasticsearch/issues/89107. We should upgrade to the latest version and revert the workaround introduced in https://github.com/elastic/elasticsearch/pull/89135.
https://github.com/elastic/elasticsearch/issues/89414
https://github.com/elastic/elasticsearch/pull/89438
18328b014f957c7cf7d4846b1b16b1feed4052e5
c541610fb59a3463b8e1bd10d5eccac5123ad4f6
2022-08-17T09:06:51Z
java
2022-08-18T13:43:45Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,412
["server/src/internalClusterTest/java/org/elasticsearch/snapshots/BlobStoreIncrementalityIT.java"]
BlobStoreIncrementalityIT.testRecordCorrectSegmentCountsWithBackgroundMerges
### CI Link https://gradle-enterprise.elastic.co/s/pzjicoqh7nuhq ### Repro line ./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.snapshots.BlobStoreIncrementalityIT.testRecordCorrectSegmentCountsWithBackgroundMerges" -Dtests.seed=DEA1040A4A18200C -Dtests.locale=ar-KW -Dtests.timezone=Etc/Universal -Druntime.java=17 ### Does it reproduce? Yes ### Applicable branches main, 8.4 ### Failure history First time it fails in the last 7 days: https://gradle-enterprise.elastic.co/scans/tests?search.timeZoneId=Europe/Bucharest&tests.container=org.elasticsearch.snapshots.BlobStoreIncrementalityIT&tests.test=testRecordCorrectSegmentCountsWithBackgroundMerges ### Failure excerpt ``` org.elasticsearch.snapshots.BlobStoreIncrementalityIT > testRecordCorrectSegmentCountsWithBackgroundMerges FAILED java.lang.AssertionError: Expected: a value less than <3L> but: <3L> was equal to <3L> at __randomizedtesting.SeedInfo.seed([DEA1040A4A18200C:C81912C0892C8B7B]: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.snapshots.BlobStoreIncrementalityIT.lambda$testRecordCorrectSegmentCountsWithBackgroundMerges$0(BlobStoreIncrementalityIT.java:236) at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1104) at org.elasticsearch.snapshots.BlobStoreIncrementalityIT.testRecordCorrectSegmentCountsWithBackgroundMerges(BlobStoreIncrementalityIT.java:234) ```
https://github.com/elastic/elasticsearch/issues/89412
https://github.com/elastic/elasticsearch/pull/89416
837a8d7a6e434ac3d34f4aa534eb4b5b602fe254
2a08258224dbdab4e375a17f7a4393395b481f0c
2022-08-17T08:42:21Z
java
2022-08-17T13:13:01Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,340
["qa/apm/src/test/java/org/elasticsearch/tracing/apm/ApmIT.java"]
[CI] ApmIT testCapturesTracesForHttpTraffic failing
Looks like APM wasn't indexing docs within 1 minute - maybe just not long enough or maybe something else is stuck? **Build scan:** https://gradle-enterprise.elastic.co/s/gssyp74wldwds/tests/:qa:apm:integTest/org.elasticsearch.tracing.apm.ApmIT/testCapturesTracesForHttpTraffic **Reproduction line:** `./gradlew ':qa:apm:integTest' --tests "org.elasticsearch.tracing.apm.ApmIT.testCapturesTracesForHttpTraffic" -Dtests.seed=28D57BF7CF358A67 -Dtests.locale=es-ES -Dtests.timezone=Pacific/Norfolk -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.tracing.apm.ApmIT&tests.test=testCapturesTracesForHttpTraffic **Failure excerpt:** ``` java.lang.AssertionError: org.elasticsearch.client.ResponseException: method [GET], host [http://localhost:49186], URI [/_data_stream/traces-apm-default], status line [HTTP/1.1 404 Not Found] {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index [traces-apm-default]","resource.type":"index_or_alias","resource.id":"traces-apm-default","index_uuid":"_na_","index":"traces-apm-default"}],"type":"index_not_found_exception","reason":"no such index [traces-apm-default]","resource.type":"index_or_alias","resource.id":"traces-apm-default","index_uuid":"_na_","index":"traces-apm-default"},"status":404} at __randomizedtesting.SeedInfo.seed([28D57BF7CF358A67:AF106D147BC11DD]:0) at org.elasticsearch.tracing.apm.ApmIT.performRequestTolerantly(ApmIT.java:168) at org.elasticsearch.tracing.apm.ApmIT.lambda$checkTracesDataStream$0(ApmIT.java:57) at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1104) at org.elasticsearch.tracing.apm.ApmIT.checkTracesDataStream(ApmIT.java:56) at org.elasticsearch.tracing.apm.ApmIT.testCapturesTracesForHttpTraffic(ApmIT.java:50) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) Caused by: org.elasticsearch.client.ResponseException: method [GET], host [http://localhost:49186], URI [/_data_stream/traces-apm-default], status line [HTTP/1.1 404 Not Found] {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index [traces-apm-default]","resource.type":"index_or_alias","resource.id":"traces-apm-default","index_uuid":"_na_","index":"traces-apm-default"}],"type":"index_not_found_exception","reason":"no such index [traces-apm-default]","resource.type":"index_or_alias","resource.id":"traces-apm-default","index_uuid":"_na_","index":"traces-apm-default"},"status":404} at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:347) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:313) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:288) at org.elasticsearch.tracing.apm.ApmIT.performRequestTolerantly(ApmIT.java:166) at org.elasticsearch.tracing.apm.ApmIT.lambda$checkTracesDataStream$0(ApmIT.java:57) at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1104) at org.elasticsearch.tracing.apm.ApmIT.checkTracesDataStream(ApmIT.java:56) at org.elasticsearch.tracing.apm.ApmIT.testCapturesTracesForHttpTraffic(ApmIT.java:50) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/89340
https://github.com/elastic/elasticsearch/pull/96714
f032faef25b2e749c8fab879eabff0a866ef4f05
b3d7ed530aaf83e5a6decfdf391490fc74158d8d
2022-08-15T10:45:47Z
java
2023-06-08T17:12:07Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,338
["x-pack/plugin/rollup/src/test/java/org/elasticsearch/xpack/rollup/job/RollupIndexerStateTests.java"]
[CI] RollupIndexerStateTests testMultipleJobTriggering failing
``` org.elasticsearch.xpack.rollup.job.RollupIndexerStateTests > testMultipleJobTriggering FAILED java.lang.AssertionError: Expected: <STOPPING> but: was <STOPPED> at __randomizedtesting.SeedInfo.seed([39B0232175811F15:5202878012176E9A]:0) at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.junit.Assert.assertThat(Assert.java:923) at org.elasticsearch.xpack.rollup.job.RollupIndexerStateTests.testMultipleJobTriggering(RollupIndexerStateTests.java:625) ``` **Build scan:** https://gradle-enterprise.elastic.co/s/whapjrrfxulyu/tests/:x-pack:plugin:rollup:test/org.elasticsearch.xpack.rollup.job.RollupIndexerStateTests/testMultipleJobTriggering **Reproduction line:** `./gradlew ':x-pack:plugin:rollup:test' --tests "org.elasticsearch.xpack.rollup.job.RollupIndexerStateTests.testMultipleJobTriggering" -Dtests.seed=39B0232175811F15 -Dtests.locale=tr-TR -Dtests.timezone=America/Menominee -Druntime.java=17 -Dtests.fips.enabled=true` **Applicable branches:** 8.3 **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.rollup.job.RollupIndexerStateTests&tests.test=testMultipleJobTriggering **Failure excerpt:** ``` java.lang.AssertionError: Expected: <STOPPING> but: was <STOPPED> at __randomizedtesting.SeedInfo.seed([39B0232175811F15:5202878012176E9A]:0) at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.junit.Assert.assertThat(Assert.java:923) at org.elasticsearch.xpack.rollup.job.RollupIndexerStateTests.testMultipleJobTriggering(RollupIndexerStateTests.java:625) 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/89338
https://github.com/elastic/elasticsearch/pull/89955
fde78111e6b137e1d6b859ff7e9b84ff69eb42f1
07079366348d1e4a60b8152dff1b77511e4c0c3d
2022-08-15T10:05:08Z
java
2022-09-14T09:31:27Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,325
["server/src/main/java/org/elasticsearch/cluster/coordination/LeaderChecker.java", "server/src/main/java/org/elasticsearch/transport/TransportService.java"]
[CI] InternalTestClusterIT testStoppingNodesOneByOne failing
The failing assertion was introduced recently in #89298 and indicates a bug. **Build scan:** https://gradle-enterprise.elastic.co/s/fjmlkdojglcho/tests/:test:framework:integTest/org.elasticsearch.test.test.InternalTestClusterIT/testStoppingNodesOneByOne **Reproduction line:** `./gradlew ':test:framework:integTest' --tests "org.elasticsearch.test.test.InternalTestClusterIT.testStoppingNodesOneByOne" -Dtests.seed=870CFEA2FF2FF837 -Dtests.locale=de-LU -Dtests.timezone=Europe/Minsk -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.test.test.InternalTestClusterIT&tests.test=testStoppingNodesOneByOne **Failure excerpt:** ``` com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=101, name=elasticsearch[node_t2][cluster_coordination][T#1], state=RUNNABLE, group=TGRP-InternalTestClusterIT] at __randomizedtesting.SeedInfo.seed([870CFEA2FF2FF837:41AC62AC915F5692]:0) Caused by: java.lang.AssertionError: org.elasticsearch.common.util.concurrent.EsRejectedExecutionException: rejected execution of notification of leader failure: [node_t1][127.0.0.1:30491] Node not connected on EsThreadPoolExecutor[name = node_t2/cluster_coordination, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@5b147e7d[Shutting down, pool size = 1, active threads = 1, queued tasks = 2, completed tasks = 79]] (shutdown) at __randomizedtesting.SeedInfo.seed([870CFEA2FF2FF837]:0) at org.elasticsearch.transport.TransportService.handleSendRequestException(TransportService.java:799) at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:719) at org.elasticsearch.cluster.coordination.LeaderChecker$CheckScheduler.handleWakeUp(LeaderChecker.java:229) at org.elasticsearch.cluster.coordination.LeaderChecker.updateLeader(LeaderChecker.java:152) at org.elasticsearch.cluster.coordination.Coordinator.becomeFollower(Coordinator.java:903) at org.elasticsearch.cluster.coordination.Coordinator.onFollowerCheckRequest(Coordinator.java:370) at org.elasticsearch.cluster.coordination.FollowersChecker.lambda$handleFollowerCheck$3(FollowersChecker.java:204) at org.elasticsearch.action.ActionRunnable.lambda$supply$0(ActionRunnable.java:47) at org.elasticsearch.action.ActionRunnable$2.doRun(ActionRunnable.java:62) at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:887) at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.lang.Thread.run(Thread.java:833) Caused by: org.elasticsearch.common.util.concurrent.EsRejectedExecutionException: rejected execution of notification of leader failure: [node_t1][127.0.0.1:30491] Node not connected on EsThreadPoolExecutor[name = node_t2/cluster_coordination, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@5b147e7d[Shutting down, pool size = 1, active threads = 1, queued tasks = 2, completed tasks = 79]] (shutdown) at org.elasticsearch.common.util.concurrent.EsRejectedExecutionHandler.newRejectedException(EsRejectedExecutionHandler.java:40) at org.elasticsearch.common.util.concurrent.EsAbortPolicy.rejectedExecution(EsAbortPolicy.java:34) at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:833) at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1365) at org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor.execute(EsThreadPoolExecutor.java:72) at org.elasticsearch.cluster.coordination.LeaderChecker$CheckScheduler.leaderFailed(LeaderChecker.java:334) at org.elasticsearch.cluster.coordination.LeaderChecker$CheckScheduler$1.handleException(LeaderChecker.java:257) at org.elasticsearch.transport.TransportService.handleSendRequestException(TransportService.java:794) at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:719) at org.elasticsearch.cluster.coordination.LeaderChecker$CheckScheduler.handleWakeUp(LeaderChecker.java:229) at org.elasticsearch.cluster.coordination.LeaderChecker.updateLeader(LeaderChecker.java:152) at org.elasticsearch.cluster.coordination.Coordinator.becomeFollower(Coordinator.java:903) at org.elasticsearch.cluster.coordination.Coordinator.onFollowerCheckRequest(Coordinator.java:370) at org.elasticsearch.cluster.coordination.FollowersChecker.lambda$handleFollowerCheck$3(FollowersChecker.java:204) at org.elasticsearch.action.ActionRunnable.lambda$supply$0(ActionRunnable.java:47) at org.elasticsearch.action.ActionRunnable$2.doRun(ActionRunnable.java:62) at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:887) at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/89325
https://github.com/elastic/elasticsearch/pull/89326
104ad7fd9200d4c2507b9993f66d263fbbb341c0
51f89f43e56b68cd41449c63a8eea0c50b5c37aa
2022-08-13T07:31:49Z
java
2022-08-15T09:09:14Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,324
["x-pack/qa/kerberos-tests/src/javaRestTest/java/org/elasticsearch/xpack/security/authc/kerberos/KerberosAuthenticationIT.java"]
[CI] KerberosAuthenticationIT testLoginByUsernamePassword failing
This and a couple of other Kerberos tests are failing on Amazon Linux 2022. This OS was recently added to our testing matrix so it's likely there's something funny with that CI image that these tests don't like. Since this seems to only reproduce on that system, I was unable to reproduce locally. We may need to spin up an Amazon 2022 machine on AWS to reproduce this. **Build scan:** https://gradle-enterprise.elastic.co/s/3tsrwmkn3as6k/tests/:x-pack:qa:kerberos-tests:javaRestTest/org.elasticsearch.xpack.security.authc.kerberos.KerberosAuthenticationIT/testLoginByUsernamePassword **Reproduction line:** `./gradlew ':x-pack:qa:kerberos-tests:javaRestTest' --tests "org.elasticsearch.xpack.security.authc.kerberos.KerberosAuthenticationIT.testLoginByUsernamePassword" -Dtests.seed=96CAAA1E169FAF62 -Dtests.locale=es-MX -Dtests.timezone=Australia/West -Druntime.java=17` **Applicable branches:** main, 8.4, 8.3, 7.17 **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.security.authc.kerberos.KerberosAuthenticationIT&tests.test=testLoginByUsernamePassword **Failure excerpt:** ``` java.security.PrivilegedActionException: (No message provided) at __randomizedtesting.SeedInfo.seed([96CAAA1E169FAF62:AEEBA327C743A7FB]:0) at java.security.AccessController.doPrivileged(AccessController.java:716) at javax.security.auth.Subject.doAsPrivileged(Subject.java:584) at org.elasticsearch.xpack.security.authc.kerberos.SpnegoHttpClientConfigCallbackHandler.lambda$doAsPrivilegedWrapper$2(SpnegoHttpClientConfigCallbackHandler.java:207) at java.security.AccessController.doPrivileged(AccessController.java:569) at org.elasticsearch.xpack.security.authc.kerberos.SpnegoHttpClientConfigCallbackHandler.doAsPrivilegedWrapper(SpnegoHttpClientConfigCallbackHandler.java:207) at org.elasticsearch.xpack.security.authc.kerberos.KerberosAuthenticationIT.executeRequestAndVerifyResponse(KerberosAuthenticationIT.java:176) at org.elasticsearch.xpack.security.authc.kerberos.KerberosAuthenticationIT.testLoginByUsernamePassword(KerberosAuthenticationIT.java:120) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) Caused by: org.elasticsearch.client.ResponseException: method [GET], host [http://127.0.0.1:34083], URI [/_security/_authenticate], status line [HTTP/1.1 401 Unauthorized] {"error":{"root_cause":[{"type":"security_exception","reason":"missing authentication credentials for REST request [/_security/_authenticate]","header":{"WWW-Authenticate":["Basic realm=\"security\" charset=\"UTF-8\"","Negotiate","Bearer realm=\"security\"","ApiKey"]}}],"type":"security_exception","reason":"missing authentication credentials for REST request [/_security/_authenticate]","header":{"WWW-Authenticate":["Basic realm=\"security\" charset=\"UTF-8\"","Negotiate","Bearer realm=\"security\"","ApiKey"]}},"status":401} at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:347) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:313) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:288) at org.elasticsearch.xpack.security.authc.kerberos.KerberosAuthenticationIT.lambda$executeRequestAndVerifyResponse$0(KerberosAuthenticationIT.java:178) at java.security.AccessController.doPrivileged(AccessController.java:712) at javax.security.auth.Subject.doAsPrivileged(Subject.java:584) at org.elasticsearch.xpack.security.authc.kerberos.SpnegoHttpClientConfigCallbackHandler.lambda$doAsPrivilegedWrapper$2(SpnegoHttpClientConfigCallbackHandler.java:207) at java.security.AccessController.doPrivileged(AccessController.java:569) at org.elasticsearch.xpack.security.authc.kerberos.SpnegoHttpClientConfigCallbackHandler.doAsPrivilegedWrapper(SpnegoHttpClientConfigCallbackHandler.java:207) at org.elasticsearch.xpack.security.authc.kerberos.KerberosAuthenticationIT.executeRequestAndVerifyResponse(KerberosAuthenticationIT.java:176) at org.elasticsearch.xpack.security.authc.kerberos.KerberosAuthenticationIT.testLoginByUsernamePassword(KerberosAuthenticationIT.java:120) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/89324
https://github.com/elastic/elasticsearch/pull/89788
0dc4695e6a291ea3ca0a370b060333925f340c5e
4b62ca0108fb7518d6828be47fce83758cb3757c
2022-08-12T17:36:59Z
java
2022-09-08T06:48:06Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,310
["server/src/main/java/org/elasticsearch/cluster/ClusterStateTaskExecutor.java", "server/src/main/java/org/elasticsearch/gateway/GatewayService.java", "server/src/test/java/org/elasticsearch/gateway/GatewayServiceTests.java", "test/framework/src/main/java/org/elasticsearch/common/util/concurrent/DeterministicTaskQueue.java"]
Clean up GatewayService
`GatewayService` implements logic for delaying state recovery in the cluster until enough data nodes have joined and/or some timeout has occurred. The implementation is pretty old and doesn't make use of much modern infrastructure for doing this kind of thing, making it pretty hard to follow and to improve (see e.g. #86588). We should clean it up and simplify it.
https://github.com/elastic/elasticsearch/issues/89310
https://github.com/elastic/elasticsearch/pull/99994
4369e79ae4a332ec05808e9a06880c1441dc259e
e351c681929c36a52473cb348d2643ba421d77fc
2022-08-12T10:18:18Z
java
2023-10-10T11:27:14Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,274
["server/src/main/java/org/elasticsearch/cluster/coordination/CoordinationDiagnosticsService.java", "server/src/main/java/org/elasticsearch/cluster/coordination/PublicationTransportHandler.java", "server/src/main/java/org/elasticsearch/transport/TransportService.java", "test/framework/src/main/java/org/elasticsearch/transport/AbstractSimpleTransportTestCase.java"]
Avoid bubbling up exceptions from TransportService.sendRequest
### Description The `sendRequest` method is asynchronous and notifies a `TransportResponseHandler` when it completes the excecution (successfully or unsuccessfully). When opening the connection we only catch `NodeNotConnectedException` ( https://github.com/elastic/elasticsearch/blob/main/server/src/main/java/org/elasticsearch/transport/TransportService.java#L719 ) which is currently fine as no implementations throw other type of exception however, it'd be best to catch `Exception` here so the `handler` gets notified of potential exceptions (as opposed to the caller having to `try/catch` the call to `sendRequest`)
https://github.com/elastic/elasticsearch/issues/89274
https://github.com/elastic/elasticsearch/pull/89298
654f31dd3b805daf44ecc9c200903c92837ec9ee
ed940b6ed5081f601e8ef8cbb991e8a577b9adc2
2022-08-11T10:23:52Z
java
2022-08-12T08:52:58Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,247
[".ci/scripts/packaging-test.sh"]
[CI] unix packaging tests on `rhel-9-packaging` OS failing for `DockerTests.test010Install`
### CI Link https://gradle-enterprise.elastic.co/s/byzfqq7clinbc ### Repro line None ### Does it reproduce? Didn't try ### Applicable branches `main`, `8.4`, `8.3`, `7.17` ### Failure history Failures for other branches: `8.4` - https://gradle-enterprise.elastic.co/s/ukyv7kx53bbvk `8.3` - https://gradle-enterprise.elastic.co/s/krfseqryq6nbs `7.17` - https://gradle-enterprise.elastic.co/s/m4ik63k3jzxwe ### Failure excerpt It seems that only rhel-9 is affected. The container fails to start, with below root cause: ``` org.elasticsearch.packaging.test.DockerTests > test010Install FAILED java.lang.AssertionError: Elasticsearch container did not start successfully. ... [2022-08-10T11:27:53,936][WARN ][o.e.p.u.d.Docker ] [TEST-DockerTests.test010Install-seed#[3C98EAD1D6120B35]-workerest_thread_info] Caught exception while waiting for ES to start org.elasticsearch.packaging.util.Shell$ShellException: Command was not successful: [bash -c docker exec --tty bb6e776314affd4dc171364a2f5e3816113d5ee0d1242cfd2e512241bbcc370c bash -c 'COLUMNS=2000 ps ax'] result: exitCode = [126] stdout = [OCI runtime exec failed: exec failed: unable to start container process: open /dev/pts/0: operation not permitted: unknown] stderr = [] at org.elasticsearch.packaging.util.Shell.runScript(Shell.java:143) ~[test/:?] at org.elasticsearch.packaging.util.Shell.run(Shell.java:73) ~[test/:?] at org.elasticsearch.packaging.util.docker.DockerShell.run(DockerShell.java:49) ~[test/:?] at org.elasticsearch.packaging.util.docker.Docker.waitForElasticsearchToStart(Docker.java:188) ~[test/:?] at org.elasticsearch.packaging.util.docker.Docker.runContainer(Docker.java:121) ~[test/:?] at org.elasticsearch.packaging.test.DockerTests.setupTest(DockerTests.java:118) ~[test/:?] 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) ~[randomizedtesting-runner-2.7.7.jar:?] at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:980) ~[randomizedtesting-runner-2.7.7.jar:?] at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) ~[randomizedtesting-runner-2.7.7.jar:?] at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) ~[junit-4.12.jar:4.12] at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) ~[junit-4.12.jar:4.12] at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) ~[randomizedtesting-runner-2.7.7.jar:?] at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) ~[randomizedtesting-runner-2.7.7.jar:?] at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) ~[randomizedtesting-runner-2.7.7.jar:?] at java.lang.Thread.run(Thread.java:833) [?:?] ```
https://github.com/elastic/elasticsearch/issues/89247
https://github.com/elastic/elasticsearch/pull/89255
841ac8e43a01914d223d66afd403b2b49a83105c
7cc275d54eda73ab40a996577b97a5cdd5838a31
2022-08-10T13:15:55Z
java
2022-08-11T00:30:05Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,231
["server/src/main/java/org/elasticsearch/reservedstate/service/FileSettingsService.java"]
[CI] FrozenIndexIT testRetryPointInTime failing
Seems like a one-off failure on ARM : https://gradle-enterprise.elastic.co/scans/tests?search.timeZoneId=Europe%2FBucharest&tests.container=org.elasticsearch.index.engine.frozen.FrozenIndexIT&tests.test=testRetryPointInTime **Build scan:** https://gradle-enterprise.elastic.co/s/jgxaxl3gwjel2/tests/:x-pack:plugin:frozen-indices:internalClusterTest/org.elasticsearch.index.engine.frozen.FrozenIndexIT/testRetryPointInTime **Reproduction line:** `./gradlew ':x-pack:plugin:frozen-indices:internalClusterTest' --tests "org.elasticsearch.index.engine.frozen.FrozenIndexIT.testRetryPointInTime" -Dtests.seed=991387B9FDE04ADC -Dtests.locale=pl-PL -Dtests.timezone=Africa/Algiers -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.index.engine.frozen.FrozenIndexIT&tests.test=testRetryPointInTime **Failure excerpt:** ``` java.lang.IllegalStateException: unable to launch a new watch service at __randomizedtesting.SeedInfo.seed([991387B9FDE04ADC:EC6786CE761CF5F4]:0) at org.elasticsearch.reservedstate.service.FileSettingsService.startWatcher(FileSettingsService.java:201) at org.elasticsearch.reservedstate.service.FileSettingsService.setWatching(FileSettingsService.java:142) at org.elasticsearch.reservedstate.service.FileSettingsService.startIfMaster(FileSettingsService.java:136) at org.elasticsearch.reservedstate.service.FileSettingsService.doStart(FileSettingsService.java:111) at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:43) at org.elasticsearch.node.Node.start(Node.java:1364) at org.elasticsearch.test.InternalTestCluster$NodeAndClient.startNode(InternalTestCluster.java:982) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.util.concurrent.FutureTask.run(FutureTask.java:264) at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:820) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.lang.Thread.run(Thread.java:833) Caused by: java.io.IOException: User limit of inotify watches reached at sun.nio.fs.LinuxWatchService$Poller.implRegister(LinuxWatchService.java:264) at sun.nio.fs.AbstractPoller.processRequests(AbstractPoller.java:266) at sun.nio.fs.LinuxWatchService$Poller.run(LinuxWatchService.java:364) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/89231
https://github.com/elastic/elasticsearch/pull/89429
f31b1f6d578da3a86887ffe7ff493c1a2195d8dc
825c3547911dfdf8a844d652773c87073343acdf
2022-08-10T07:23:48Z
java
2022-08-17T17:02:29Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,227
["docs/changelog/91131.yaml", "libs/cli/src/main/java/org/elasticsearch/cli/Terminal.java", "server/src/test/java/org/elasticsearch/cli/TerminalTests.java"]
[CI] CertificateToolTests testHandleLongPasswords failing
This fails on Windows X64 only https://gradle-enterprise.elastic.co/scans/tests?search.timeZoneId=Europe/Bucharest&tests.container=org.elasticsearch.xpack.security.cli.CertificateToolTests&tests.test=testHandleLongPasswords with `Password is not ASCII`, but I suspect this is Windows broken way to deal with long passwords, because the passwords are obviously ASCII. **Build scan:** https://gradle-enterprise.elastic.co/s/twktttlgsoj2s/tests/:x-pack:plugin:security:cli:test/org.elasticsearch.xpack.security.cli.CertificateToolTests/testHandleLongPasswords **Reproduction line:** `gradlew ':x-pack:plugin:security:cli:test' --tests "org.elasticsearch.xpack.security.cli.CertificateToolTests.testHandleLongPasswords" -Dtests.seed=B7D8B804254F9FE2 -Dtests.locale=fr-FR -Dtests.timezone=Asia/Taipei -Druntime.java=18` **Applicable branches:** main **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.security.cli.CertificateToolTests&tests.test=testHandleLongPasswords **Failure excerpt:** ``` java.security.KeyStoreException: Key protection algorithm not found: java.security.UnrecoverableKeyException: Encrypt Private Key failed: getSecretKey failed: Password is not ASCII at __randomizedtesting.SeedInfo.seed([B7D8B804254F9FE2:C41897A3DAF3CB3E]:0) at sun.security.pkcs12.PKCS12KeyStore.setKeyEntry(PKCS12KeyStore.java:709) at sun.security.pkcs12.PKCS12KeyStore.engineSetKeyEntry(PKCS12KeyStore.java:589) at sun.security.util.KeyStoreDelegator.engineSetKeyEntry(KeyStoreDelegator.java:112) at java.security.KeyStore.setKeyEntry(KeyStore.java:1195) at org.elasticsearch.xpack.security.cli.CertificateTool$CertificateCommand.lambda$writePkcs12$4(CertificateTool.java:562) at org.elasticsearch.xpack.security.cli.CertificateTool.withPassword(CertificateTool.java:1036) at org.elasticsearch.xpack.security.cli.CertificateTool$CertificateCommand.writePkcs12(CertificateTool.java:560) at org.elasticsearch.xpack.security.cli.CertificateTool$CertificateAuthorityCommand.lambda$writeCertificateAuthority$1(CertificateTool.java:939) at org.elasticsearch.xpack.security.cli.CertificateTool.fullyWriteFile(CertificateTool.java:1096) at org.elasticsearch.xpack.security.cli.CertificateTool$CertificateAuthorityCommand.writeCertificateAuthority(CertificateTool.java:937) at org.elasticsearch.xpack.security.cli.CertificateTool$CertificateAuthorityCommand.execute(CertificateTool.java:928) at org.elasticsearch.xpack.security.cli.CertificateToolTests.testHandleLongPasswords(CertificateToolTests.java:425) at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.lang.reflect.Method.invoke(Method.java:577) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) Caused by: java.security.UnrecoverableKeyException: Encrypt Private Key failed: getSecretKey failed: Password is not ASCII at sun.security.pkcs12.PKCS12KeyStore.encryptPrivateKey(PKCS12KeyStore.java:957) at sun.security.pkcs12.PKCS12KeyStore.setKeyEntry(PKCS12KeyStore.java:631) at sun.security.pkcs12.PKCS12KeyStore.engineSetKeyEntry(PKCS12KeyStore.java:589) at sun.security.util.KeyStoreDelegator.engineSetKeyEntry(KeyStoreDelegator.java:112) at java.security.KeyStore.setKeyEntry(KeyStore.java:1195) at org.elasticsearch.xpack.security.cli.CertificateTool$CertificateCommand.lambda$writePkcs12$4(CertificateTool.java:562) at org.elasticsearch.xpack.security.cli.CertificateTool.withPassword(CertificateTool.java:1036) at org.elasticsearch.xpack.security.cli.CertificateTool$CertificateCommand.writePkcs12(CertificateTool.java:560) at org.elasticsearch.xpack.security.cli.CertificateTool$CertificateAuthorityCommand.lambda$writeCertificateAuthority$1(CertificateTool.java:939) at org.elasticsearch.xpack.security.cli.CertificateTool.fullyWriteFile(CertificateTool.java:1096) at org.elasticsearch.xpack.security.cli.CertificateTool$CertificateAuthorityCommand.writeCertificateAuthority(CertificateTool.java:937) at org.elasticsearch.xpack.security.cli.CertificateTool$CertificateAuthorityCommand.execute(CertificateTool.java:928) at org.elasticsearch.xpack.security.cli.CertificateToolTests.testHandleLongPasswords(CertificateToolTests.java:425) at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.lang.reflect.Method.invoke(Method.java:577) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) Caused by: java.io.IOException: getSecretKey failed: Password is not ASCII at sun.security.pkcs12.PKCS12KeyStore.getPBEKey(PKCS12KeyStore.java:874) at sun.security.pkcs12.PKCS12KeyStore.encryptPrivateKey(PKCS12KeyStore.java:935) at sun.security.pkcs12.PKCS12KeyStore.setKeyEntry(PKCS12KeyStore.java:631) at sun.security.pkcs12.PKCS12KeyStore.engineSetKeyEntry(PKCS12KeyStore.java:589) at sun.security.util.KeyStoreDelegator.engineSetKeyEntry(KeyStoreDelegator.java:112) at java.security.KeyStore.setKeyEntry(KeyStore.java:1195) at org.elasticsearch.xpack.security.cli.CertificateTool$CertificateCommand.lambda$writePkcs12$4(CertificateTool.java:562) at org.elasticsearch.xpack.security.cli.CertificateTool.withPassword(CertificateTool.java:1036) at org.elasticsearch.xpack.security.cli.CertificateTool$CertificateCommand.writePkcs12(CertificateTool.java:560) at org.elasticsearch.xpack.security.cli.CertificateTool$CertificateAuthorityCommand.lambda$writeCertificateAuthority$1(CertificateTool.java:939) at org.elasticsearch.xpack.security.cli.CertificateTool.fullyWriteFile(CertificateTool.java:1096) at org.elasticsearch.xpack.security.cli.CertificateTool$CertificateAuthorityCommand.writeCertificateAuthority(CertificateTool.java:937) at org.elasticsearch.xpack.security.cli.CertificateTool$CertificateAuthorityCommand.execute(CertificateTool.java:928) at org.elasticsearch.xpack.security.cli.CertificateToolTests.testHandleLongPasswords(CertificateToolTests.java:425) at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.lang.reflect.Method.invoke(Method.java:577) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) Caused by: java.security.spec.InvalidKeySpecException: Password is not ASCII at com.sun.crypto.provider.PBEKey.<init>(PBEKey.java:70) at com.sun.crypto.provider.PBEKeyFactory.engineGenerateSecret(PBEKeyFactory.java:219) at javax.crypto.SecretKeyFactory.generateSecret(SecretKeyFactory.java:340) at sun.security.pkcs12.PKCS12KeyStore.getPBEKey(PKCS12KeyStore.java:870) at sun.security.pkcs12.PKCS12KeyStore.encryptPrivateKey(PKCS12KeyStore.java:935) at sun.security.pkcs12.PKCS12KeyStore.setKeyEntry(PKCS12KeyStore.java:631) at sun.security.pkcs12.PKCS12KeyStore.engineSetKeyEntry(PKCS12KeyStore.java:589) at sun.security.util.KeyStoreDelegator.engineSetKeyEntry(KeyStoreDelegator.java:112) at java.security.KeyStore.setKeyEntry(KeyStore.java:1195) at org.elasticsearch.xpack.security.cli.CertificateTool$CertificateCommand.lambda$writePkcs12$4(CertificateTool.java:562) at org.elasticsearch.xpack.security.cli.CertificateTool.withPassword(CertificateTool.java:1036) at org.elasticsearch.xpack.security.cli.CertificateTool$CertificateCommand.writePkcs12(CertificateTool.java:560) at org.elasticsearch.xpack.security.cli.CertificateTool$CertificateAuthorityCommand.lambda$writeCertificateAuthority$1(CertificateTool.java:939) at org.elasticsearch.xpack.security.cli.CertificateTool.fullyWriteFile(CertificateTool.java:1096) at org.elasticsearch.xpack.security.cli.CertificateTool$CertificateAuthorityCommand.writeCertificateAuthority(CertificateTool.java:937) at org.elasticsearch.xpack.security.cli.CertificateTool$CertificateAuthorityCommand.execute(CertificateTool.java:928) at org.elasticsearch.xpack.security.cli.CertificateToolTests.testHandleLongPasswords(CertificateToolTests.java:425) at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.lang.reflect.Method.invoke(Method.java:577) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/89227
https://github.com/elastic/elasticsearch/pull/91131
7b6f10a222f4c23d9ab889108c81ceb7934361b3
e1bdf703d88757cbe80f644b924cefe4d482fb3b
2022-08-10T06:59:22Z
java
2022-10-26T10:55:03Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,193
["x-pack/plugin/security/src/internalClusterTest/java/org/elasticsearch/xpack/security/authc/ApiKeyIntegTests.java"]
[CI] ApiKeyIntegTests testUpdateApiKeysForSingleKey failing
Failure seen on a PR branch but this reproduces on current `main` (254e6bcabd18c26338e075287bd4d74b8b0e2257) too. Not every time but it doesn't take many iterations. **Build scan:** https://gradle-enterprise.elastic.co/s/3oce3rf4gjyio/tests/:x-pack:plugin:security:internalClusterTest/org.elasticsearch.xpack.security.authc.ApiKeyIntegTests/testUpdateApiKeysForSingleKey **Reproduction line:** `./gradlew ':x-pack:plugin:security:internalClusterTest' --tests "org.elasticsearch.xpack.security.authc.ApiKeyIntegTests.testUpdateApiKeysForSingleKey" -Dtests.seed=B36D864BB8DCE44B -Dtests.locale=ar-KW -Dtests.timezone=Europe/Belfast -Druntime.java=17` **Applicable branches:** main **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.security.authc.ApiKeyIntegTests&tests.test=testUpdateApiKeysForSingleKey **Failure excerpt:** ``` java.lang.AssertionError: for api key doc {creation_time=1660033360930, api_key_invalidated=false, metadata_flattened=null, creator={principal=test_user, metadata={}, realm_type=file, full_name=null, realm=file, email=null}, limited_by_role_descriptors={user={cluster=[ALL], indices=[{privileges=[ALL], names=[*], allow_restricted_indices=true}], metadata={}, run_as=[], type=role, applications=[]}}, expiration_time=null, role_descriptors={role={cluster=[monitor], indices=[], metadata={}, run_as=[], type=role, applications=[]}}, api_key_hash={PBKDF2}10000$4ujcIQSpiY8A8CH+ueFWazxqRBkoRPuch5FbcK6Vdh4=$oEzJjucin31uSe+osf67BHCEiKO5cau4UU/ka2sQGNg=, name=test-key-cBtQrBBV0, doc_type=api_key, version=8050099} Expected: <{}> but: was null at __randomizedtesting.SeedInfo.seed([B36D864BB8DCE44B:AF9F821EACBB4A86]:0) at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.elasticsearch.xpack.security.authc.ApiKeyIntegTests.expectMetadataForApiKey(ApiKeyIntegTests.java:2346) at org.elasticsearch.xpack.security.authc.ApiKeyIntegTests.expectAttributesForApiKey(ApiKeyIntegTests.java:2319) at org.elasticsearch.xpack.security.authc.ApiKeyIntegTests.testUpdateApiKeysForSingleKey(ApiKeyIntegTests.java:1548) 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 org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/89193
https://github.com/elastic/elasticsearch/pull/89195
80eeca74e4332c967787aab7d6103e43ba44a88b
9dd47d8a925c641f061d7fc1652bbd2e5012efd3
2022-08-09T08:52:33Z
java
2022-08-09T11:49:55Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
89,192
["server/src/main/java/org/elasticsearch/action/admin/cluster/desirednodes/TransportDeleteDesiredNodesAction.java", "server/src/main/java/org/elasticsearch/cluster/SimpleBatchedExecutor.java", "server/src/main/java/org/elasticsearch/cluster/metadata/MetadataIndexTemplateService.java", "server/src/main/java/org/elasticsearch/health/metadata/HealthMetadataService.java", "server/src/main/java/org/elasticsearch/reservedstate/service/ReservedStateErrorTaskExecutor.java", "server/src/main/java/org/elasticsearch/reservedstate/service/ReservedStateUpdateTaskExecutor.java", "x-pack/plugin/rollup/src/main/java/org/elasticsearch/xpack/downsample/TransportRollupAction.java"]
Make it easier to write a batchable cluster state update
Today submitting an unbatched `ClusterStateUpdateTask` to the `MasterService` is deprecated, and devs are encouraged to write their own batching executor instead. In principle this makes it possible to combine updates without incurring the costs of building a whole new `ClusterState` on each iteration, but in practice most implementations don't work at a lower level and just iteratively update a `ClusterState`. Moreover creating new `ClusterState` instances is nothing like as expensive as once it was. We should accept this and provide some friendlier utilities for writing batched cluster state updates, ideally leaving the developer to express the desired per-task update as a `ClusterState -> ClusterState` operator.
https://github.com/elastic/elasticsearch/issues/89192
https://github.com/elastic/elasticsearch/pull/90343
099fb84cfcf87be6689c3516674f45438bafa767
09586496f118e3cb0699e5d49a455de01b99fb5c
2022-08-09T08:37:31Z
java
2022-09-28T09:44:48Z