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
82,450
["docs/changelog/83514.yaml", "server/src/main/java/org/elasticsearch/indices/SystemIndices.java", "x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/bulk/TransportBulkShardOperationsAction.java"]
Resolving the Executor for Write can be Unexpectedly Expensive in org.elasticsearch.indices.SystemIndices#findMatchingDescriptor
Found this in a user issue: `org.elasticsearch.indices.SystemIndices#findMatchingDescriptor` can become quite expensive in terms of runtime by running multiple regex in a loop on index names and for every replication action. In case of running small numbers of documents per index the overhead can become non-trivial leading to hot-threads output as such: ``` 100.0% [cpu=0.4%, other=99.6%] (500ms out of 500ms) cpu usage by thread 'elasticsearch[es-data01][transport_worker][T#7]' unique snapshot [email protected]/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:178) [email protected]/java.util.Collections$2.tryAdvance(Collections.java:4853) [email protected]/java.util.Collections$2.forEachRemaining(Collections.java:4861) [email protected]/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762) [email protected]/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276) [email protected]/java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1779) [email protected]/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) [email protected]/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) [email protected]/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) [email protected]/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [email protected]/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) app//org.elasticsearch.indices.SystemIndices.findMatchingDescriptor(SystemIndices.java:263) app//org.elasticsearch.indices.ExecutorSelector.executorForWrite(ExecutorSelector.java:81) app//org.elasticsearch.indices.ExecutorSelector.getWriteExecutorForShard(ExecutorSelector.java:102) app//org.elasticsearch.action.bulk.TransportShardBulkAction$$Lambda$5102/0x00000008019b58e8.apply(Unknown Source) app//org.elasticsearch.action.support.replication.TransportWriteAction.shardOperationOnPrimary(TransportWriteAction.java:192) app//org.elasticsearch.action.support.replication.TransportWriteAction.shardOperationOnPrimary(TransportWriteAction.java:50) app//org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryShardReference.perform(TransportReplicationAction.java:1153) app//org.elasticsearch.action.support.replication.ReplicationOperation.execute(ReplicationOperation.java:124) app//org.elasticsearch.action.support.replication.TransportReplicationAction$AsyncPrimaryAction.runWithPrimaryShardReference(TransportReplicationAction.java:508) app//org.elasticsearch.action.support.replication.TransportReplicationAction$AsyncPrimaryAction.lambda$doRun$0(TransportReplicationAction.java:414) app//org.elasticsearch.action.support.replication.TransportReplicationAction$AsyncPrimaryAction$$Lambda$7183/0x0000000801dbaec0.accept(Unknown Source) ``` I think we should make sure that the overhead from resolving the executor becomes trivial by storing the executor for each index that has a special executor (i.e. is a system index?) in a map (or similar) so that we don't have to do the regex match on every update and just have an O(1) lookup here no matter how many features we have. The map can just be updated whenever an index is created so we only have to pay the pattern matching cost once. This also makes more sense than resolving the executor at runtime and then throwing if multiple executors match through an error in the features patterns.
https://github.com/elastic/elasticsearch/issues/82450
https://github.com/elastic/elasticsearch/pull/83514
c9f6226983cc900d00333a8a6ba5b34f1086f5f7
8d3c4a3dfadd135cf3f29bdb2e809d1c2ce7a9f0
2022-01-11T19:46:31Z
java
2022-02-08T09:30:10Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
82,444
["docs/reference/snapshot-restore/repository-gcs.asciidoc", "modules/repository-gcs/src/main/java/org/elasticsearch/repositories/gcs/GoogleCloudStorageClientSettings.java", "modules/repository-gcs/src/main/java/org/elasticsearch/repositories/gcs/GoogleCloudStorageService.java", "modules/repository-gcs/src/test/java/org/elasticsearch/repositories/gcs/GoogleCloudStorageClientSettingsTests.java", "modules/repository-gcs/src/test/java/org/elasticsearch/repositories/gcs/GoogleCloudStorageServiceTests.java"]
Add support for HTTP Proxies for the Google Cloud Storage repository plugin
The GCS plugin was implemented in #13578, but without the proxy support because it wasn't available in the GCS SDK at that time. It looks like the support for proxies has been added at some point to `google-http-java-client` (the underlying HTTP library used by the GCS SDK). See here: https://github.com/googleapis/google-http-java-client/blob/main/google-http-client/src/main/java/com/google/api/client/http/javanet/NetHttpTransport.java#L222. The `NetHttpTransport` class from `google-http-java-client` is publicly accessible and configurable, so we should be able to specify the HTTP proxy host/port based on the plugin settings somewhere here: https://github.com/elastic/elasticsearch/blob/master/modules/repository-gcs/src/main/java/org/elasticsearch/repositories/gcs/GoogleCloudStorageService.java#L133
https://github.com/elastic/elasticsearch/issues/82444
https://github.com/elastic/elasticsearch/pull/82737
febf22c56bde08fd066b428410dc72d69cda08b8
1ddaf253d5525e84fb538a43841c6e91512462c9
2022-01-11T18:36:42Z
java
2022-01-20T14:46:59Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
82,406
["x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/datafeed/extractor/aggregation/AbstractAggregationDataExtractor.java", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/datafeed/extractor/chunked/ChunkedDataExtractor.java", "x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/datafeed/extractor/aggregation/AggregationDataExtractorTests.java"]
[ML] Slow performance for datafeeds with aggs when there are long periods without data
When a datafeed is performing a lookback of a long time period, it could be that there are long time windows that contain no data. Currently, datafeeds with aggs will perform many searches during such empty time windows where all those searches will return empty. These searches take time. For scrolling datafeeds there is an optimization in place where such no-data periods are skipped. That optimization should also apply for datafeeds with aggs.
https://github.com/elastic/elasticsearch/issues/82406
https://github.com/elastic/elasticsearch/pull/82488
5994224edfe0adb5d5453949cd90a8b4d0dd31f2
0bcd8176aff0451da362f763c5b146be9551c330
2022-01-11T10:01:13Z
java
2022-01-13T11:38:19Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
82,384
["docs/changelog/83751.yaml", "server/src/main/java/org/elasticsearch/common/Rounding.java", "server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/QueryToFilterAdapter.java", "server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregator.java", "server/src/test/java/org/elasticsearch/search/aggregations/bucket/filter/FiltersAggregatorTests.java"]
Use filter by filter if top level query is a bool wrapping a match all
Right now filter aggregations run in "compatible" mode if the top level query is `bool: {filter: { match_all: {}}}}` - but this really just just `match_all` in disguise. We should just run in filter-by-filter mode here.
https://github.com/elastic/elasticsearch/issues/82384
https://github.com/elastic/elasticsearch/pull/83751
bbae949559af09bfc08eb78f18904e0139e27246
7bda7d1a8daecb8e34ebd56a3a74ad837e5485de
2022-01-10T20:02:39Z
java
2022-02-28T21:35:37Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
82,342
["docs/changelog/86405.yaml", "server/src/main/java/org/elasticsearch/action/ActionModule.java", "server/src/main/java/org/elasticsearch/action/admin/cluster/settings/ClusterGetSettingsAction.java", "server/src/main/java/org/elasticsearch/action/admin/cluster/settings/TransportClusterGetSettingsAction.java", "server/src/main/java/org/elasticsearch/rest/action/admin/cluster/RestClusterGetSettingsAction.java", "server/src/test/java/org/elasticsearch/action/admin/cluster/settings/ClusterGetSettingsSerializationTests.java", "server/src/test/java/org/elasticsearch/action/admin/cluster/settings/ClusterGetSettingsTests.java", "server/src/test/java/org/elasticsearch/rest/action/admin/cluster/RestClusterGetSettingsActionTests.java", "x-pack/plugin/security/qa/operator-privileges-tests/src/javaRestTest/java/org/elasticsearch/xpack/security/operator/Constants.java"]
`RestClusterGetSettingsAction` Requests the Full Metadata from Master
Similar issue as solved in https://github.com/elastic/elasticsearch/pull/78829. This API is surprisingly expensive because it requests the full metadata via get cluster state request from master when called only to return just the settings from it to the user. This can mean requesting tens or hundreds of MB from master in a large cluster unexpectedly. We should adjust this to not require fetching the full cluster state. One option would be to add a dedicate master node action for returning just the settings. Relates #77466
https://github.com/elastic/elasticsearch/issues/82342
https://github.com/elastic/elasticsearch/pull/86405
15ea957df687417f16c97711b584f5c0bbb6586c
4b536c699d41cff3969743ee7ba1539e8c4da5e1
2022-01-07T17:48:26Z
java
2022-05-09T10:45:44Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
82,340
["x-pack/plugin/enrich/src/internalClusterTest/java/org/elasticsearch/xpack/enrich/EnrichProcessorIT.java", "x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/AbstractEnrichProcessor.java", "x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/EnrichCache.java", "x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/EnrichProcessorFactory.java", "x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/GeoMatchProcessor.java", "x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/MatchProcessor.java", "x-pack/plugin/enrich/src/test/java/org/elasticsearch/xpack/enrich/EnrichCacheTests.java", "x-pack/plugin/enrich/src/test/java/org/elasticsearch/xpack/enrich/GeoMatchProcessorTests.java", "x-pack/plugin/enrich/src/test/java/org/elasticsearch/xpack/enrich/MatchProcessorTests.java"]
Enrich Processor Cache can be Corrupted by Processors that Mutate a Document (E.g. Rename)
Using the enrich processor in a pipeline with a rename or other processor that mutates the mutable maps backing an ingest document can corrupt the caches in the enrich processor. An easy reproducer for this goes as follows: have the following enrich policy: ``` PUT /_enrich/policy/device-enrich-policy { "match": { "indices": "devices-idx", "match_field": "host.ip", "enrich_fields": [ "device.name", "host.ip" ] } } ``` add a document to the backing index as such: ``` POST devices-idx/_doc { "host": { "ip": "10.151.80.8" }, "device": { "name": "bla" } } ``` ... then execute the enrich policy. ... and finally execute following pipeline simulation: ``` POST _ingest/pipeline/_simulate { "pipeline": { "processors": [ { "enrich": { "policy_name": "device-enrich-policy", "field": "host.ip", "target_field": "_tmp.device", } }, { "rename" : { "field" : "_tmp.device.device.name", "target_field" : "device.name", } } ] }, "docs": [ { "_source": { "host": { "ip": "10.151.80.8" } } } ] } ``` this will show the expected result of having the device name added under `_tmp.device`. Now adjust to a simpler pipeline: ``` POST _ingest/pipeline/_simulate { "pipeline": { "processors": [ { "enrich": { "policy_name": "device-enrich-policy", "field": "host.ip", "target_field": "_tmp" } } ] }, "docs": [ { "_source": { "host": { "ip": "10.151.80.8" } } } ] } ``` which you would expect to show the same result because `device.name` would just be copied under `_tmp`. What you do get instead is: ``` { "docs" : [ { "doc" : { "_index" : "_index", "_type" : "_doc", "_id" : "_id", "_source" : { "host" : { "ip" : "10.151.80.8" }, "_tmp" : { "host" : { "ip" : "10.151.80.8" }, "device" : { } } }, "_ingest" : { "timestamp" : "2022-01-07T16:21:55.868673023Z" } } } ] } ``` This is explained by the fact that the rename processor mutates the map that it works with. It removes and adds a field to a document. This map though is also referenced by: `org.elasticsearch.search.SearchHit#sourceAsMap` which is cached. -> rename processor mutates that map by mutating the ingest document from the first run -> cache is corrupted. This was observed in a complicated to debug user issue where a pipeline would randomly fail during simulate like this for no apparent reason. Digging through the diags it turned out that the same enrich policy was used in another pipeline followed by the rename processor in the way described above, thus corrupting the policy's cache repeatedly.
https://github.com/elastic/elasticsearch/issues/82340
https://github.com/elastic/elasticsearch/pull/82441
0bcc07c591e57f45879f596c5e6867eca46cfeec
69696542be7dc1be560b8b48a3a9e4c874972819
2022-01-07T16:51:04Z
java
2022-01-13T10:17:07Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
82,337
["docs/changelog/82685.yaml", "server/src/main/java/org/elasticsearch/action/support/NodeResponseTracker.java", "server/src/main/java/org/elasticsearch/action/support/broadcast/node/TransportBroadcastByNodeAction.java", "server/src/main/java/org/elasticsearch/action/support/nodes/TransportNodesAction.java", "server/src/main/java/org/elasticsearch/tasks/CancellableTask.java", "server/src/test/java/org/elasticsearch/action/admin/cluster/node/tasks/CancellableTasksTests.java", "server/src/test/java/org/elasticsearch/action/support/NodeResponseTrackerTests.java", "server/src/test/java/org/elasticsearch/action/support/broadcast/node/TransportBroadcastByNodeActionTests.java", "server/src/test/java/org/elasticsearch/action/support/nodes/TransportNodesActionTests.java"]
Stats actions should discard intermediate state on cancellation
Most stats actions fan out to various nodes in the cluster and collect per-node responses which are then aggregated into the final result. The per-node responses may sometimes be many MBs in size. If the client cancels the request by closing its connection then we broadcast the cancellation to all the target nodes and wait for them to respond with a `TaskCancelledException` before discarding the intermediate results. It's possible for one of the target nodes to take many minutes to respond to the cancellation if, for instance, it is overwhelmed by GC activity. In that case we retain many MBs of unnecessary intermediate state for many minutes. We should instead react to the cancellation by immediately discarding the intermediate results and dropping any further results that arrive to free up this unnecessary memory usage. One possible way to do this would be to allow a `CancellableTask` to accumulate listeners which are completed by `CancellableTask#onCancelled()`. Relates https://github.com/elastic/elasticsearch/issues/55550#issuecomment-785848328 which contains a list of some of the more important cases of this to address.
https://github.com/elastic/elasticsearch/issues/82337
https://github.com/elastic/elasticsearch/pull/82685
d4caeea1f7b494036251e87d3caa5ce40788441c
d4655e880185e1ca277d0b097dcfbdb6c669b89f
2022-01-07T11:29:18Z
java
2022-02-10T10:58:10Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
82,279
["x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ml/inference/trainedmodel/FillMaskConfigUpdateTests.java"]
[CI] FillMaskConfigUpdateTests failing
**Build scan**: https://gradle-enterprise.elastic.co/s/cpf4p56ky2vve **Repro line**: `./gradlew ':x-pack:plugin:core:test' --tests "org.elasticsearch.xpack.core.ml.inference.trainedmodel.FillMaskConfigUpdateTests.testApply" -Dtests.seed=A14691BE55F818C6` **Reproduces locally?**: Yes **Applicable branches**: master **Failure history**: [org.elasticsearch.xpack.core.ml.inference.trainedmodel.FillMaskConfigUpdateTests](https://gradle-enterprise.elastic.co/scans/tests?search.relativeStartTime=P7D&search.timeZoneId=America/Chicago&tests.container=org.elasticsearch.xpack.core.ml.inference.trainedmodel.FillMaskConfigUpdateTests&tests.sortField=FAILED&tests.test=testApply&tests.unstableOnly=true) **Failure excerpt**: ``` org.elasticsearch.xpack.core.ml.inference.trainedmodel.FillMaskConfigUpdateTests > testApply FAILED org.elasticsearch.ElasticsearchStatusException: Tokenization config of type [mpnet] can not be updated with a request of type [bert] at __randomizedtesting.SeedInfo.seed([A14691BE55F818C6:8DF928E1FF2E2B8F]:0) at app//org.elasticsearch.xpack.core.ml.utils.ExceptionsHelper.badRequestException(ExceptionsHelper.java:85) at app//org.elasticsearch.xpack.core.ml.inference.trainedmodel.BertTokenizationUpdate.apply(BertTokenizationUpdate.java:52) at app//org.elasticsearch.xpack.core.ml.inference.trainedmodel.FillMaskConfigUpdate.apply(FillMaskConfigUpdate.java:127) at app//org.elasticsearch.xpack.core.ml.inference.trainedmodel.FillMaskConfigUpdateTests.testApply(FillMaskConfigUpdateTests.java:99) ```
https://github.com/elastic/elasticsearch/issues/82279
https://github.com/elastic/elasticsearch/pull/82285
7c35f44ae23b3ede553d9d4e09cc8724ff28674e
5b8d21814aa40ddb4a9afe8ae0755a287ad551f0
2022-01-05T19:53:47Z
java
2022-01-06T12:23:33Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
82,257
["server/src/main/java/org/elasticsearch/script/StoredScriptSource.java", "test/framework/src/main/java/org/elasticsearch/test/AbstractSerializingTestCase.java"]
[CI] StoredScriptTests testConcurrentToXContent failing
**Build scan:** https://gradle-enterprise.elastic.co/s/pxxjvnt3sohwo/tests/:server:test/org.elasticsearch.script.StoredScriptTests/testConcurrentToXContent **Reproduction line:** `./gradlew ':server:test' --tests "org.elasticsearch.script.StoredScriptTests.testConcurrentToXContent" -Dtests.seed=20EC4B5D40EBBDC2 -Dtests.locale=no-NO -Dtests.timezone=Asia/Almaty -Druntime.java=17` **Applicable branches:** master, 8.0 **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.script.StoredScriptTests&tests.test=testConcurrentToXContent **Failure excerpt:** ``` java.util.concurrent.ExecutionException: java.lang.AssertionError: expected:<[3a 29 a 5 fa 83 6c 61 6e 67 51 6c 49 41 78 74 74 74 64 4c 4c 66 59 4a 62 4e 74 70 71 85 73 6f 75 72 63 65 e0 74 58 6e 65 73 49 57 66 53 7a 76 73 61 7a 6d 61 57 54 66 63 44 74 59 6c 59 70 42 59 61 54 67 53 41 44 51 71 6b 44 6c 4b 48 76 51 4f 62 45 52 45 55 42 78 48 41 67 49 72 4b 66 62 4d 7a 4b 76 68 51 70 4d 63 6d 45 68 43 6f 79 4e 5a 66 69 4c 78 77 47 69 73 74 50 4c 67 4e 6c 6a 4c 45 45 48 42 74 49 68 62 44 54 43 61 7a 77 51 41 6e 4b 7a 49 52 45 67 59 63 44 46 54 6b 7a 62 4c 4a 67 4d 75 7a 6b 75 6f 68 70 48 52 69 6f 7a 49 67 72 71 61 77 6b 6a 6d 4b 79 68 6a 49 4c 78 63 79 72 71 4f 67 6e 57 6c 77 53 51 53 7a 41 41 4b 75 50 41 65 7a 78 41 44 6d 42 75 4b 6d 4f 61 76 66 70 47 73 66 78 43 57 75 49 77 53 66 48 79 54 68 61 55 50 50 48 76 67 58 41 57 53 70 65 7a 76 44 43 49 7a 63 66 53 7a 69 6a 64 69 6f 7a 72 65 6b 4d 77 50 62 56 74 4c 79 42 78 46 58 50 7a 4c 57 66 77 71 68 4c 61 41 68 51 61 63 6d 50 44 51 6e 6b 50 44 6e 43 73 48 65 5a 41 74 66 68 64 4c 45 68 55 41 6a 77 6c 54 6d 75 6d 74 72 42 49 48 59 68 4b 44 6a 69 43 48 6f 54 6d 6b 4b 70 78 67 69 73 59 59 4b 66 43 62 66 72 46 75 72 51 70 7a 7a 52 56 6c 41 4e 6c 7a 47 62 71 6f 44 49 43 73 53 68 4c 53 70 48 61 66 59 44 4e 69 4d 54 63 6c 6d 4d 47 48 6b 70 52 63 56 47 63 59 4c 43 6a 78 75 6b 4b 72 63 48 53 78 44 66 66 55 45 72 4b 65 4c 42 55 6c 61 67 4a 47 68 52 70 6c 6a 77 73 78 6f 4f 78 4c 50 4b 65 62 72 65 63 54 46 54 59 42 42 6a 4c 54 55 51 59 53 63 4c 50 7a 53 6b 70 56 63 57 46 44 42 43 46 41 62 73 59 61 4f 4c 59 6f 58 52 56 64 57 79 6c 4c 79 6a 71 78 78 46 57 52 4e 76 43 75 4b 78 44 74 56 64 4a 48 70 77 53 56 74 47 58 53 76 58 41 59 59 4e 4a 7a 72 42 43 6c 54 70 70 66 56 79 56 74 70 55 42 63 64 67 78 54 78 4c 54 63 47 69 77 6d 50 79 62 42 55 73 46 4a 66 42 69 78 51 54 75 4c 64 57 69 41 59 41 57 6d 70 46 6e 67 71 63 58 63 5a 6c 41 58 6b 42 4e 44 48 56 67 62 6e 65 4b 4d 51 4c 47 63 64 4f 4b 6f 66 55 73 62 6a 62 6c 59 68 6c 74 54 7a 6c 41 52 42 41 79 49 41 48 70 59 6c 57 6e 65 4c 71 63 6e 78 61 70 4b 41 68 79 49 49 53 45 63 73 75 55 42 74 61 58 59 6d 64 76 67 67 65 66 46 6f 6a 6c 43 79 57 69 50 5a 6c 56 65 6a 43 4f 76 48 53 44 75 45 59 79 63 71 55 6b 6c 62 41 47 65 65 4f 6a 4e 51 67 6d 48 68 4c 59 6d 45 47 6c 77 71 44 77 6b 6f 62 53 44 43 6d 75 65 56 66 49 64 74 56 6e 58 53 4a 73 58 78 68 57 41 7a 4a 47 45 57 69 68 53 52 46 6f 42 47 6d 6d 46 59 67 68 71 43 78 4d 78 47 4d 70 4d 45 5a 4f 66 66 4c 65 49 6a 47 59 41 72 6e 41 66 70 68 78 43 59 54 70 51 6b 66 59 67 6a 76 79 4b 51 6c 5a 45 54 71 63 64 78 63 64 74 62 74 7a 6e 63 50 4d 68 4b 71 47 41 74 77 70 77 70 59 4d 5a 59 50 68 71 45 4d 7a 58 53 69 74 61 6f 6a 70 7a 4e 4d 75 46 49 67 52 49 6b 45 42 62 51 76 65 49 57 66 43 44 51 4b 4a 51 43 4b 75 54 45 43 67 6b 69 4f 6a 53 44 50 74 42 65 6a 43 68 71 76 4d 72 6d 45 56 6e 43 6d 43 64 6e 6a 43 75 79 71 59 62 75 74 55 44 54 42 56 4a 4d 59 6a 6b 43 44 49 6e 61 71 4b 4a 64 45 64 73 46 64 58 79 51 7a 44 41 52 41 6c 46 59 77 62 56 68 53 42 61 42 56 53 51 42 43 73 57 51 63 6d 45 58 61 78 61 61 4d 58 6f 55 78 47 57 64 45 76 5a 50 42 63 72 66 66 6c 56 63 6f 73 74 4d 5a 7a 41 52 79 6e 53 77 6c 4f 66 58 5a 72 69 42 42 72 6e 48 6d 78 45 55 76 4c 74 54 47 54 77 44 43 62 4f 59 59 53 72 6a 72 6f 73 64 58 64 6a 67 62 77 74 67 79 4c 74 63 4c 6d 62 58 69 44 64 50 6c 6d 50 77 46 75 58 78 6b 75 7a 4a 72 64 43 49 51 59 70 4b 6a 62 6e 42 58 73 47 5a 71 70 50 56 70 6d 57 41 62 6c 57 47 4a 71 6d 58 44 55 4e 42 70 44 56 6e 64 64 70 4a 4d 63 46 71 64 57 69 49 4e 61 74 61 5a 6a 69 53 44 4c 57 61 78 51 58 62 6a 76 49 78 4e 42 52 46 45 6e 4d 79 72 48 44 6c 4b 43 56 79 4d 41 6f 4a 6d 4c 61 55 65 4b 71 53 78 5a 4a 72 44 4e 78 54 54 54 48 76 73 58 45 56 67 77 41 66 4f 4f 45 72 57 77 45 43 48 5a 71 61 41 49 6b 6f 67 58 6a 65 53 52 70 44 56 57 53 59 51 41 48 6d 42 5a 69 46 71 41 4b 4d 46 76 6c 4d 71 6d 59 74 63 78 6f 6d 49 41 64 65 79 6b 46 52 7a 6a 70 4e 59 53 64 63 74 65 68 48 69 6c 64 4c 4d 58 4a 6c 63 73 65 78 7a 56 7a 6d 6d 50 4b 59 5a 56 70 57 74 62 56 55 73 68 51 7a 4e 73 73 51 64 54 71 65 4c 53 43 59 77 51 61 64 77 64 75 58 4d 41 4f 6d 6c 6b 6c 54 76 52 6d 4f 48 45 44 65 6a 68 6a 7a 45 67 54 4f 52 70 74 71 51 71 6a 68 78 7a 4c 68 6d 4a 65 69 6a 71 73 73 46 6b 6e 4e 48 59 69 77 64 49 71 69 43 4c 75 6f 4d 73 78 6d 57 66 4c 6a 74 64 57 72 76 5a 7a 79 52 54 41 59 57 44 48 75 4b 42 44 53 73 61 51 41 42 49 4e 78 78 54 44 6c 4a 78 69 46 4b 71 6b 67 72 5a 6f 41 56 50 44 63 79 6a 53 45 52 4d 44 74 4d 49 76 73 70 52 67 58 47 52 62 57 6a 78 48 6a 57 52 4b 4b 70 42 63 7a 4a 59 76 6d 6e 41 66 5a 50 6c 77 45 79 67 78 73 53 4e 4a 73 79 55 78 76 79 41 58 55 69 43 58 4c 6f 5a 71 69 59 44 74 50 62 46 62 7a 61 72 4e 77 53 77 74 77 51 5a 74 4c 50 62 43 44 59 6f 4d 49 6e 4e 71 6e 76 78 7a 69 73 47 50 70 4b 66 63 59 47 64 46 6a 78 55 72 6b 67 75 4a 6a 6d 78 46 5a 79 45 76 51 52 67 50 79 4b 7a 68 45 4a 63 52 41 6d 45 73 4a 5a 70 50 65 6e 77 47 50 5a 42 4c 50 79 45 59 71 59 41 47 54 48 64 54 6b 66 79 69 55 54 66 6b 41 68 66 75 4d 7a 72 57 66 62 52 7a 4a 4f 62 7a 4a 61 50 64 57 54 53 62 53 76 43 6f 73 73 49 68 46 46 73 6d 59 53 67 49 67 47 74 56 72 50 7a 56 4e 42 78 70 4c 62 7a 50 52 4f 62 4e 6a 6e 77 79 42 4c 44 76 46 4c 45 77 4f 61 52 55 42 42 46 74 4a 4d 76 74 4e 4e 74 69 79 62 59 43 6d 45 52 42 4e 69 47 49 72 4e 41 4d 44 68 6b 66 45 59 45 46 50 74 68 44 50 7a 42 47 62 4b 57 6c 6b 4b 50 4e 67 41 63 69 51 47 44 63 54 59 71 54 67 62 42 55 73 62 52 68 55 41 41 48 71 53 53 73 64 6a 47 4e 4f 53 5a 71 73 4b 74 78 47 78 56 53 66 62 78 56 6a 65 4f 59 46 58 4d 43 4c 76 4f 78 41 57 57 6a 63 6e 78 6b 52 7a 74 76 51 6f 63 4d 59 45 66 57 52 74 4f 48 79 79 45 58 74 59 48 73 4e 73 4b 71 43 6f 4f 48 78 55 56 51 69 64 50 6d 47 67 43 79 45 5a 62 66 73 43 6e 58 53 62 41 48 55 4e 45 4b 74 41 58 49 74 52 54 4c 42 53 52 6f 4b 71 43 55 66 56 4d 73 6c 71 72 6f 4b 41 52 54 66 6f 63 56 51 62 48 4c 78 70 59 53 54 63 59 72 41 53 54 5a 5a 7a 65 55 45 77 72 73 6d 6a 51 51 50 56 69 4e 4f 7a 4e 53 77 71 6c 67 69 6c 73 76 4f 66 6b 71 6e 72 56 4d 6e 4d 78 69 67 42 6a 44 6e 62 4f 4b 4f 4a 71 4f 79 6c 72 57 50 50 57 45 52 58 4d 44 46 51 79 4d 6b 42 46 72 61 55 49 53 4c 6e 6d 67 42 4d 51 44 71 74 43 72 54 56 49 46 52 54 4c 79 74 73 6d 71 5a 43 63 42 4c 54 6b 49 6e 79 66 74 42 63 59 76 4c 74 75 61 76 4a 48 49 44 68 44 4e 71 58 65 6e 55 56 42 51 63 41 53 77 72 76 4f 55 68 71 6b 56 51 43 42 70 48 64 77 74 4e 73 45 46 42 73 49 6e 4b 61 68 75 47 70 50 47 48 55 62 52 4e 69 69 65 69 59 59 4b 4c 56 41 53 4e 62 62 44 43 78 4e 6a 43 6b 49 56 51 4e 78 6d 4e 70 4c 74 6f 6a 76 6c 44 5a 79 4e 74 71 46 5a 79 62 61 46 66 78 77 79 57 65 53 4d 4a 77 6d 67 55 55 4c 54 54 6c 66 41 68 54 58 69 5a 75 4f 51 53 46 6d 59 45 78 7a 7a 51 67 78 68 46 6a 62 6d 6e 4a 73 59 43 70 65 67 71 69 52 69 63 69 6d 42 5a 76 61 76 6a 64 73 59 56 58 6a 47 56 7a 6e 71 4e 57 4d 56 57 41 69 6b 65 46 6a 6b 65 50 65 59 69 66 63 76 6e 48 61 66 61 67 57 51 49 51 66 5a 69 52 65 6e 45 6d 45 61 41 63 62 59 59 71 47 74 50 76 4b 6b 66 6b 6a 6d 66 74 7a 69 50 65 6a 71 4d 4d 4e 77 50 47 69 59 50 6f 64 58 47 63 50 67 72 4e 50 6f 6e 42 63 74 78 73 41 4c 78 75 6b 66 62 4a 64 53 62 78 67 49 7a 53 63 79 73 4c 76 4f 41 50 59 69 6f 67 46 67 56 4d 6e 55 54 49 6f 5a 70 6d 6c 56 78 78 6f 75 76 75 72 49 4e 6a 49 62 78 54 63 7a 54 54 4e 6f 79 58 79 51 6f 62 4d 4f 54 70 44 6e 6b 50 58 55 7a 61 47 43 6b 77 77 69 57 79 6b 42 48 45 4e 4e 75 58 43 57 53 55 77 7a 77 64 4c 61 62 78 78 67 6c 51 69 6a 5a 68 65 67 45 54 65 79 4a 41 46 67 43 78 48 4e 6c 66 49 65 44 72 49 56 54 6d 47 64 61 7a 62 64 59 75 50 73 4c 6e 75 53 74 62 70 6e 56 6d 59 4c 55 6d 53 70 4e 46 63 6d 54 50 53 5a 42 5a 55 78 6f 43 47 4b 51 42 55 6e 61 67 47 4b 66 6b 6f 41 6a 4b 49 74 69 6f 42 76 59 49 55 6f 74 46 7a 64 41 6d 4b 75 58 58 44 6b 69 4f 45 72 62 77 48 43 48 48 4b 44 76 59 68 58 71 56 4c 41 63 73 75 47 7a 76 54 4a 46 45 41 61 55 6d 41 78 42 54 4e 65 4f 58 4e 4a 4b 79 73 55 43 46 66 44 6b 41 6e 54 73 54 6f 61 49 4a 78 6c 73 6e 77 62 45 4a 42 64 50 45 71 7a 49 52 44 70 66 69 4d 53 72 4c 73 78 4b 78 76 56 66 63 54 4e 6c 64 4b 6f 72 59 68 4f 48 4c 6c 59 61 7a 50 73 51 45 7a 41 49 4c 79 4b 69 62 71 61 61 6f 65 65 68 43 54 6f 75 67 54 65 4d 50 6f 64 71 76 45 71 5a 6b 56 5a 57 65 64 76 57 57 78 4b 5a 70 4e 7a 76 66 5a 79 4b 78 75 6e 47 4a 42 66 51 75 58 79 53 6d 4d 73 68 51 6e 72 64 62 63 42 75 6d 7a 51 61 7a 41 48 41 6f 57 54 66 6a 6a 7a 47 74 52 62 6c 77 57 5a 6d 57 6c 7a 4e 64 63 63 71 6e 74 57 43 65 54 4d 62 72 6f 57 52 71 72 4c 6c 55 51 4d 63 4a 79 52 70 68 4f 48 53 6b 64 5a 43 4c 49 62 47 74 46 65 57 51 6b 6d 6b 7a 4b 4c 64 6e 54 6b 49 65 4d 54 4c 73 6f 41 6a 4c 78 66 48 6b 54 4c 4e 44 65 64 5a 73 46 55 4e 57 70 67 56 65 43 61 48 4f 4c 64 72 6e 45 71 64 62 4f 49 77 71 70 52 57 74 69 58 4a 6c 6e 44 47 79 69 48 72 64 48 4f 4b 79 59 67 4e 6a 64 66 66 65 6a 74 72 4e 63 6b 74 6e 46 75 78 4e 6f 47 54 50 67 70 58 75 70 51 58 79 6f 46 56 44 77 63 45 6f 73 51 75 44 6a 4b 75 6b 6e 71 4a 77 66 65 46 73 70 4a 42 4d 6d 54 41 53 48 4a 6b 56 43 52 66 63 6e 41 42 49 77 58 47 55 4c 55 6d 74 70 6a 55 79 74 6a 54 4a 46 76 4e 41 53 44 41 66 66 46 73 65 68 70 43 6b 68 6c 58 6f 77 48 68 46 47 44 7a 58 4b 69 4f 4f 67 4a 57 70 58 77 75 6c 63 66 45 4f 71 6a 6c 45 75 76 7a 58 65 63 4d 66 54 75 62 49 70 7a 4a 50 74 4e 4a 6b 4b 42 71 7a 49 50 41 76 6a 45 6e 58 45 6b 74 62 45 4c 64 58 73 55 62 77 71 64 4d 6e 50 57 6e 42 56 54 79 53 77 78 4a 4d 6e 6f 4e fc fb]> but was:<[3a 29 a 5 fa 83 6c 61 6e 67 51 6c 49 41 78 74 74 74 64 4c 4c 66 59 4a 62 4e 74 70 71 85 73 6f 75 72 63 65 e4 74 58 6e 65 73 49 57 66 53 7a 76 73 61 7a 6d 61 57 54 66 63 44 74 59 6c 59 70 42 59 61 54 67 53 41 44 51 71 6b 44 6c 4b 48 76 51 4f 62 45 52 45 55 42 78 48 41 67 49 72 4b 66 62 4d 7a 4b 76 68 51 70 4d 63 6d 45 68 43 6f 79 4e 5a 66 69 4c 78 77 47 69 73 74 50 4c 67 4e 6c 6a 4c 45 45 48 42 74 49 68 62 44 54 43 61 7a 77 51 41 6e 4b 7a 49 52 45 67 59 63 44 46 54 6b 7a 62 4c 4a 67 4d 75 7a 6b 75 6f 68 70 48 52 69 6f 7a 49 67 72 71 61 77 6b 6a 6d 4b 79 68 6a 49 4c 78 63 79 72 71 4f 67 6e 57 6c 77 53 51 53 7a 41 41 4b 75 50 41 65 7a 78 41 44 6d 42 75 4b 6d 4f 61 76 66 70 47 73 66 78 43 57 75 49 77 53 66 48 79 54 68 61 55 50 50 48 76 67 58 41 57 53 70 65 7a 76 44 43 49 7a 63 66 53 7a 69 6a 64 69 6f 7a 72 65 6b 4d 77 50 62 56 74 4c 79 42 78 46 58 50 7a 4c 57 66 77 71 68 4c 61 41 68 51 61 63 6d 50 44 51 6e 6b 50 44 6e 43 73 48 65 5a 41 74 66 68 64 4c 45 68 55 41 6a 77 6c 54 6d 75 6d 74 72 42 49 48 59 68 4b 44 6a 69 43 48 6f 54 6d 6b 4b 70 78 67 69 73 59 59 4b 66 43 62 66 72 46 75 72 51 70 7a 7a 52 56 6c 41 4e 6c 7a 47 62 71 6f 44 49 43 73 53 68 4c 53 70 48 61 66 59 44 4e 69 4d 54 63 6c 6d 4d 47 48 6b 70 52 63 56 47 63 59 4c 43 6a 78 75 6b 4b 72 63 48 53 78 44 66 66 55 45 72 4b 65 4c 42 55 6c 61 67 4a 47 68 52 70 6c 6a 77 73 78 6f 4f 78 4c 50 4b 65 62 72 65 63 54 46 54 59 42 42 6a 4c 54 55 51 59 53 63 4c 50 7a 53 6b 70 56 63 57 46 44 42 43 46 41 62 73 59 61 4f 4c 59 6f 58 52 56 64 57 79 6c 4c 79 6a 71 78 78 46 57 52 4e 76 43 75 4b 78 44 74 56 64 4a 48 70 77 53 56 74 47 58 53 76 58 41 59 59 4e 4a 7a 72 42 43 6c 54 70 70 66 56 79 56 74 70 55 42 63 64 67 78 54 78 4c 54 63 47 69 77 6d 50 79 62 42 55 73 46 4a 66 42 69 78 51 54 75 4c 64 57 69 41 59 41 57 6d 70 46 6e 67 71 63 58 63 5a 6c 41 58 6b 42 4e 44 48 56 67 62 6e 65 4b 4d 51 4c 47 63 64 4f 4b 6f 66 55 73 62 6a 62 6c 59 68 6c 74 54 7a 6c 41 52 42 41 79 49 41 48 70 59 6c 57 6e 65 4c 71 63 6e 78 61 70 4b 41 68 79 49 49 53 45 63 73 75 55 42 74 61 58 59 6d 64 76 67 67 65 66 46 6f 6a 6c 43 79 57 69 50 5a 6c 56 65 6a 43 4f 76 48 53 44 75 45 59 79 63 71 55 6b 6c 62 41 47 65 65 4f 6a 4e 51 67 6d 48 68 4c 59 6d 45 47 6c 77 71 44 77 6b 6f 62 53 44 43 6d 75 65 56 66 49 64 74 56 6e 58 53 4a 73 58 78 68 57 41 7a 4a 47 45 57 69 68 53 52 46 6f 42 47 6d 6d 46 59 67 68 71 43 78 4d 78 47 4d 70 4d 45 5a 4f 66 66 4c 65 49 6a 47 59 41 72 6e 41 66 70 68 78 43 59 54 70 51 6b 66 59 67 6a 76 79 4b 51 6c 5a 45 54 71 63 64 78 63 64 74 62 74 7a 6e 63 50 4d 68 4b 71 47 41 74 77 70 77 70 59 4d 5a 59 50 68 71 45 4d 7a 58 53 69 74 61 6f 6a 70 7a 4e 4d 75 46 49 67 52 49 6b 45 42 62 51 76 65 49 57 66 43 44 51 4b 4a 51 43 4b 75 54 45 43 67 6b 69 4f 6a 53 44 50 74 42 65 6a 43 68 71 76 4d 72 6d 45 56 6e 43 6d 43 64 6e 6a 43 75 79 71 59 62 75 74 55 44 54 42 56 4a 4d 59 6a 6b 43 44 49 6e 61 71 4b 4a 64 45 64 73 46 64 58 79 51 7a 44 41 52 41 6c 46 59 77 62 56 68 53 42 61 42 56 53 51 42 43 73 57 51 63 6d 45 58 61 78 61 61 4d 58 6f 55 78 47 57 64 45 76 5a 50 42 63 72 66 66 6c 56 63 6f 73 74 4d 5a 7a 41 52 79 6e 53 77 6c 4f 66 58 5a 72 69 42 42 72 6e 48 6d 78 45 55 76 4c 74 54 47 54 77 44 43 62 4f 59 59 53 72 6a 72 6f 73 64 58 64 6a 67 62 77 74 67 79 4c 74 63 4c 6d 62 58 69 44 64 50 6c 6d 50 77 46 75 58 78 6b 75 7a 4a 72 64 43 49 51 59 70 4b 6a 62 6e 42 58 73 47 5a 71 70 50 56 70 6d 57 41 62 6c 57 47 4a 71 6d 58 44 55 4e 42 70 44 56 6e 64 64 70 4a 4d 63 46 71 64 57 69 49 4e 61 74 61 5a 6a 69 53 44 4c 57 61 78 51 58 62 6a 76 49 78 4e 42 52 46 45 6e 4d 79 72 48 44 6c 4b 43 56 79 4d 41 6f 4a 6d 4c 61 55 65 4b 71 53 78 5a 4a 72 44 4e 78 54 54 54 48 76 73 58 45 56 67 77 41 66 4f 4f 45 72 57 77 45 43 48 5a 71 61 41 49 6b 6f 67 58 6a 65 53 52 70 44 56 57 53 59 51 41 48 6d 42 5a 69 46 71 41 4b 4d 46 76 6c 4d 71 6d 59 74 63 78 6f 6d 49 41 64 65 79 6b 46 52 7a 6a 70 4e 59 53 64 63 74 65 68 48 69 6c 64 4c 4d 58 4a 6c 63 73 65 78 7a 56 7a 6d 6d 50 4b 59 5a 56 70 57 74 62 56 55 73 68 51 7a 4e 73 73 51 64 54 71 65 4c 53 43 59 77 51 61 64 77 64 75 58 4d 41 4f 6d 6c 6b 6c 54 76 52 6d 4f 48 45 44 65 6a 68 6a 7a 45 67 54 4f 52 70 74 71 51 71 6a 68 78 7a 4c 68 6d 4a 65 69 6a 71 73 73 46 6b 6e 4e 48 59 69 77 64 49 71 69 43 4c 75 6f 4d 73 78 6d 57 66 4c 6a 74 64 57 72 76 5a 7a 79 52 54 41 59 57 44 48 75 4b 42 44 53 73 61 51 41 42 49 4e 78 78 54 44 6c 4a 78 69 46 4b 71 6b 67 72 5a 6f 41 56 50 44 63 79 6a 53 45 52 4d 44 74 4d 49 76 73 70 52 67 58 47 52 62 57 6a 78 48 6a 57 52 4b 4b 70 42 63 7a 4a 59 76 6d 6e 41 66 5a 50 6c 77 45 79 67 78 73 53 4e 4a 73 79 55 78 76 79 41 58 55 69 43 58 4c 6f 5a 71 69 59 44 74 50 62 46 62 7a 61 72 4e 77 53 77 74 77 51 5a 74 4c 50 62 43 44 59 6f 4d 49 6e 4e 71 6e 76 78 7a 69 73 47 50 70 4b 66 63 59 47 64 46 6a 78 55 72 6b 67 75 4a 6a 6d 78 46 5a 79 45 76 51 52 67 50 79 4b 7a 68 45 4a 63 52 41 6d 45 73 4a 5a 70 50 65 6e 77 47 50 5a 42 4c 50 79 45 59 71 59 41 47 54 48 64 54 6b 66 79 69 55 54 66 6b 41 68 66 75 4d 7a 72 57 66 62 52 7a 4a 4f 62 7a 4a 61 50 64 57 54 53 62 53 76 43 6f 73 73 49 68 46 46 73 6d 59 53 67 49 67 47 74 56 72 50 7a 56 4e 42 78 70 4c 62 7a 50 52 4f 62 4e 6a 6e 77 79 42 4c 44 76 46 4c 45 77 4f 61 52 55 42 42 46 74 4a 4d 76 74 4e 4e 74 69 79 62 59 43 6d 45 52 42 4e 69 47 49 72 4e 41 4d 44 68 6b 66 45 59 45 46 50 74 68 44 50 7a 42 47 62 4b 57 6c 6b 4b 50 4e 67 41 63 69 51 47 44 63 54 59 71 54 67 62 42 55 73 62 52 68 55 41 41 48 71 53 53 73 64 6a 47 4e 4f 53 5a 71 73 4b 74 78 47 78 56 53 66 62 78 56 6a 65 4f 59 46 58 4d 43 4c 76 4f 78 41 57 57 6a 63 6e 78 6b 52 7a 74 76 51 6f 63 4d 59 45 66 57 52 74 4f 48 79 79 45 58 74 59 48 73 4e 73 4b 71 43 6f 4f 48 78 55 56 51 69 64 50 6d 47 67 43 79 45 5a 62 66 73 43 6e 58 53 62 41 48 55 4e 45 4b 74 41 58 49 74 52 54 4c 42 53 52 6f 4b 71 43 55 66 56 4d 73 6c 71 72 6f 4b 41 52 54 66 6f 63 56 51 62 48 4c 78 70 59 53 54 63 59 72 41 53 54 5a 5a 7a 65 55 45 77 72 73 6d 6a 51 51 50 56 69 4e 4f 7a 4e 53 77 71 6c 67 69 6c 73 76 4f 66 6b 71 6e 72 56 4d 6e 4d 78 69 67 42 6a 44 6e 62 4f 4b 4f 4a 71 4f 79 6c 72 57 50 50 57 45 52 58 4d 44 46 51 79 4d 6b 42 46 72 61 55 49 53 4c 6e 6d 67 42 4d 51 44 71 74 43 72 54 56 49 46 52 54 4c 79 74 73 6d 71 5a 43 63 42 4c 54 6b 49 6e 79 66 74 42 63 59 76 4c 74 75 61 76 4a 48 49 44 68 44 4e 71 58 65 6e 55 56 42 51 63 41 53 77 72 76 4f 55 68 71 6b 56 51 43 42 70 48 64 77 74 4e 73 45 46 42 73 49 6e 4b 61 68 75 47 70 50 47 48 55 62 52 4e 69 69 65 69 59 59 4b 4c 56 41 53 4e 62 62 44 43 78 4e 6a 43 6b 49 56 51 4e 78 6d 4e 70 4c 74 6f 6a 76 6c 44 5a 79 4e 74 71 46 5a 79 62 61 46 66 78 77 79 57 65 53 4d 4a 77 6d 67 55 55 4c 54 54 6c 66 41 68 54 58 69 5a 75 4f 51 53 46 6d 59 45 78 7a 7a 51 67 78 68 46 6a 62 6d 6e 4a 73 59 43 70 65 67 71 69 52 69 63 69 6d 42 5a 76 61 76 6a 64 73 59 56 58 6a 47 56 7a 6e 71 4e 57 4d 56 57 41 69 6b 65 46 6a 6b 65 50 65 59 69 66 63 76 6e 48 61 66 61 67 57 51 49 51 66 5a 69 52 65 6e 45 6d 45 61 41 63 62 59 59 71 47 74 50 76 4b 6b 66 6b 6a 6d 66 74 7a 69 50 65 6a 71 4d 4d 4e 77 50 47 69 59 50 6f 64 58 47 63 50 67 72 4e 50 6f 6e 42 63 74 78 73 41 4c 78 75 6b 66 62 4a 64 53 62 78 67 49 7a 53 63 79 73 4c 76 4f 41 50 59 69 6f 67 46 67 56 4d 6e 55 54 49 6f 5a 70 6d 6c 56 78 78 6f 75 76 75 72 49 4e 6a 49 62 78 54 63 7a 54 54 4e 6f 79 58 79 51 6f 62 4d 4f 54 70 44 6e 6b 50 58 55 7a 61 47 43 6b 77 77 69 57 79 6b 42 48 45 4e 4e 75 58 43 57 53 55 77 7a 77 64 4c 61 62 78 78 67 6c 51 69 6a 5a 68 65 67 45 54 65 79 4a 41 46 67 43 78 48 4e 6c 66 49 65 44 72 49 56 54 6d 47 64 61 7a 62 64 59 75 50 73 4c 6e 75 53 74 62 70 6e 56 6d 59 4c 55 6d 53 70 4e 46 63 6d 54 50 53 5a 42 5a 55 78 6f 43 47 4b 51 42 55 6e 61 67 47 4b 66 6b 6f 41 6a 4b 49 74 69 6f 42 76 59 49 55 6f 74 46 7a 64 41 6d 4b 75 58 58 44 6b 69 4f 45 72 62 77 48 43 48 48 4b 44 76 59 68 58 71 56 4c 41 63 73 75 47 7a 76 54 4a 46 45 41 61 55 6d 41 78 42 54 4e 65 4f 58 4e 4a 4b 79 73 55 43 46 66 44 6b 41 6e 54 73 54 6f 61 49 4a 78 6c 73 6e 77 62 45 4a 42 64 50 45 71 7a 49 52 44 70 66 69 4d 53 72 4c 73 78 4b 78 76 56 66 63 54 4e 6c 64 4b 6f 72 59 68 4f 48 4c 6c 59 61 7a 50 73 51 45 7a 41 49 4c 79 4b 69 62 71 61 61 6f 65 65 68 43 54 6f 75 67 54 65 4d 50 6f 64 71 76 45 71 5a 6b 56 5a 57 65 64 76 57 57 78 4b 5a 70 4e 7a 76 66 5a 79 4b 78 75 6e 47 4a 42 66 51 75 58 79 53 6d 4d 73 68 51 6e 72 64 62 63 42 75 6d 7a 51 61 7a 41 48 41 6f 57 54 66 6a 6a 7a 47 74 52 62 6c 77 57 5a 6d 57 6c 7a 4e 64 63 63 71 6e 74 57 43 65 54 4d 62 72 6f 57 52 71 72 4c 6c 55 51 4d 63 4a 79 52 70 68 4f 48 53 6b 64 5a 43 4c 49 62 47 74 46 65 57 51 6b 6d 6b 7a 4b 4c 64 6e 54 6b 49 65 4d 54 4c 73 6f 41 6a 4c 78 66 48 6b 54 4c 4e 44 65 64 5a 73 46 55 4e 57 70 67 56 65 43 61 48 4f 4c 64 72 6e 45 71 64 62 4f 49 77 71 70 52 57 74 69 58 4a 6c 6e 44 47 79 69 48 72 64 48 4f 4b 79 59 67 4e 6a 64 66 66 65 6a 74 72 4e 63 6b 74 6e 46 75 78 4e 6f 47 54 50 67 70 58 75 70 51 58 79 6f 46 56 44 77 63 45 6f 73 51 75 44 6a 4b 75 6b 6e 71 4a 77 66 65 46 73 70 4a 42 4d 6d 54 41 53 48 4a 6b 56 43 52 66 63 6e 41 42 49 77 58 47 55 4c 55 6d 74 70 6a 55 79 74 6a 54 4a 46 76 4e 41 53 44 41 66 66 46 73 65 68 70 43 6b 68 6c 58 6f 77 48 68 46 47 44 7a 58 4b 69 4f 4f 67 4a 57 70 58 77 75 6c 63 66 45 4f 71 6a 6c 45 75 76 7a 58 65 63 4d 66 54 75 62 49 70 7a 4a 50 74 4e 4a 6b 4b 42 71 7a 49 50 41 76 6a 45 6e 58 45 6b 74 62 45 4c 64 58 73 55 62 77 71 64 4d 6e 50 57 6e 42 56 54 79 53 77 78 4a 4d 6e 6f 4e fc fb]> at __randomizedtesting.SeedInfo.seed([20EC4B5D40EBBDC2:489567B40DF145A1]:0) at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:191) at org.elasticsearch.test.AbstractWireTestCase.concurrentTest(AbstractWireTestCase.java:99) at org.elasticsearch.test.AbstractSerializingTestCase.testConcurrentToXContent(AbstractSerializingTestCase.java:71) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) Caused by: java.lang.AssertionError: expected:<[3a 29 a 5 fa 83 6c 61 6e 67 51 6c 49 41 78 74 74 74 64 4c 4c 66 59 4a 62 4e 74 70 71 85 73 6f 75 72 63 65 e0 74 58 6e 65 73 49 57 66 53 7a 76 73 61 7a 6d 61 57 54 66 63 44 74 59 6c 59 70 42 59 61 54 67 53 41 44 51 71 6b 44 6c 4b 48 76 51 4f 62 45 52 45 55 42 78 48 41 67 49 72 4b 66 62 4d 7a 4b 76 68 51 70 4d 63 6d 45 68 43 6f 79 4e 5a 66 69 4c 78 77 47 69 73 74 50 4c 67 4e 6c 6a 4c 45 45 48 42 74 49 68 62 44 54 43 61 7a 77 51 41 6e 4b 7a 49 52 45 67 59 63 44 46 54 6b 7a 62 4c 4a 67 4d 75 7a 6b 75 6f 68 70 48 52 69 6f 7a 49 67 72 71 61 77 6b 6a 6d 4b 79 68 6a 49 4c 78 63 79 72 71 4f 67 6e 57 6c 77 53 51 53 7a 41 41 4b 75 50 41 65 7a 78 41 44 6d 42 75 4b 6d 4f 61 76 66 70 47 73 66 78 43 57 75 49 77 53 66 48 79 54 68 61 55 50 50 48 76 67 58 41 57 53 70 65 7a 76 44 43 49 7a 63 66 53 7a 69 6a 64 69 6f 7a 72 65 6b 4d 77 50 62 56 74 4c 79 42 78 46 58 50 7a 4c 57 66 77 71 68 4c 61 41 68 51 61 63 6d 50 44 51 6e 6b 50 44 6e 43 73 48 65 5a 41 74 66 68 64 4c 45 68 55 41 6a 77 6c 54 6d 75 6d 74 72 42 49 48 59 68 4b 44 6a 69 43 48 6f 54 6d 6b 4b 70 78 67 69 73 59 59 4b 66 43 62 66 72 46 75 72 51 70 7a 7a 52 56 6c 41 4e 6c 7a 47 62 71 6f 44 49 43 73 53 68 4c 53 70 48 61 66 59 44 4e 69 4d 54 63 6c 6d 4d 47 48 6b 70 52 63 56 47 63 59 4c 43 6a 78 75 6b 4b 72 63 48 53 78 44 66 66 55 45 72 4b 65 4c 42 55 6c 61 67 4a 47 68 52 70 6c 6a 77 73 78 6f 4f 78 4c 50 4b 65 62 72 65 63 54 46 54 59 42 42 6a 4c 54 55 51 59 53 63 4c 50 7a 53 6b 70 56 63 57 46 44 42 43 46 41 62 73 59 61 4f 4c 59 6f 58 52 56 64 57 79 6c 4c 79 6a 71 78 78 46 57 52 4e 76 43 75 4b 78 44 74 56 64 4a 48 70 77 53 56 74 47 58 53 76 58 41 59 59 4e 4a 7a 72 42 43 6c 54 70 70 66 56 79 56 74 70 55 42 63 64 67 78 54 78 4c 54 63 47 69 77 6d 50 79 62 42 55 73 46 4a 66 42 69 78 51 54 75 4c 64 57 69 41 59 41 57 6d 70 46 6e 67 71 63 58 63 5a 6c 41 58 6b 42 4e 44 48 56 67 62 6e 65 4b 4d 51 4c 47 63 64 4f 4b 6f 66 55 73 62 6a 62 6c 59 68 6c 74 54 7a 6c 41 52 42 41 79 49 41 48 70 59 6c 57 6e 65 4c 71 63 6e 78 61 70 4b 41 68 79 49 49 53 45 63 73 75 55 42 74 61 58 59 6d 64 76 67 67 65 66 46 6f 6a 6c 43 79 57 69 50 5a 6c 56 65 6a 43 4f 76 48 53 44 75 45 59 79 63 71 55 6b 6c 62 41 47 65 65 4f 6a 4e 51 67 6d 48 68 4c 59 6d 45 47 6c 77 71 44 77 6b 6f 62 53 44 43 6d 75 65 56 66 49 64 74 56 6e 58 53 4a 73 58 78 68 57 41 7a 4a 47 45 57 69 68 53 52 46 6f 42 47 6d 6d 46 59 67 68 71 43 78 4d 78 47 4d 70 4d 45 5a 4f 66 66 4c 65 49 6a 47 59 41 72 6e 41 66 70 68 78 43 59 54 70 51 6b 66 59 67 6a 76 79 4b 51 6c 5a 45 54 71 63 64 78 63 64 74 62 74 7a 6e 63 50 4d 68 4b 71 47 41 74 77 70 77 70 59 4d 5a 59 50 68 71 45 4d 7a 58 53 69 74 61 6f 6a 70 7a 4e 4d 75 46 49 67 52 49 6b 45 42 62 51 76 65 49 57 66 43 44 51 4b 4a 51 43 4b 75 54 45 43 67 6b 69 4f 6a 53 44 50 74 42 65 6a 43 68 71 76 4d 72 6d 45 56 6e 43 6d 43 64 6e 6a 43 75 79 71 59 62 75 74 55 44 54 42 56 4a 4d 59 6a 6b 43 44 49 6e 61 71 4b 4a 64 45 64 73 46 64 58 79 51 7a 44 41 52 41 6c 46 59 77 62 56 68 53 42 61 42 56 53 51 42 43 73 57 51 63 6d 45 58 61 78 61 61 4d 58 6f 55 78 47 57 64 45 76 5a 50 42 63 72 66 66 6c 56 63 6f 73 74 4d 5a 7a 41 52 79 6e 53 77 6c 4f 66 58 5a 72 69 42 42 72 6e 48 6d 78 45 55 76 4c 74 54 47 54 77 44 43 62 4f 59 59 53 72 6a 72 6f 73 64 58 64 6a 67 62 77 74 67 79 4c 74 63 4c 6d 62 58 69 44 64 50 6c 6d 50 77 46 75 58 78 6b 75 7a 4a 72 64 43 49 51 59 70 4b 6a 62 6e 42 58 73 47 5a 71 70 50 56 70 6d 57 41 62 6c 57 47 4a 71 6d 58 44 55 4e 42 70 44 56 6e 64 64 70 4a 4d 63 46 71 64 57 69 49 4e 61 74 61 5a 6a 69 53 44 4c 57 61 78 51 58 62 6a 76 49 78 4e 42 52 46 45 6e 4d 79 72 48 44 6c 4b 43 56 79 4d 41 6f 4a 6d 4c 61 55 65 4b 71 53 78 5a 4a 72 44 4e 78 54 54 54 48 76 73 58 45 56 67 77 41 66 4f 4f 45 72 57 77 45 43 48 5a 71 61 41 49 6b 6f 67 58 6a 65 53 52 70 44 56 57 53 59 51 41 48 6d 42 5a 69 46 71 41 4b 4d 46 76 6c 4d 71 6d 59 74 63 78 6f 6d 49 41 64 65 79 6b 46 52 7a 6a 70 4e 59 53 64 63 74 65 68 48 69 6c 64 4c 4d 58 4a 6c 63 73 65 78 7a 56 7a 6d 6d 50 4b 59 5a 56 70 57 74 62 56 55 73 68 51 7a 4e 73 73 51 64 54 71 65 4c 53 43 59 77 51 61 64 77 64 75 58 4d 41 4f 6d 6c 6b 6c 54 76 52 6d 4f 48 45 44 65 6a 68 6a 7a 45 67 54 4f 52 70 74 71 51 71 6a 68 78 7a 4c 68 6d 4a 65 69 6a 71 73 73 46 6b 6e 4e 48 59 69 77 64 49 71 69 43 4c 75 6f 4d 73 78 6d 57 66 4c 6a 74 64 57 72 76 5a 7a 79 52 54 41 59 57 44 48 75 4b 42 44 53 73 61 51 41 42 49 4e 78 78 54 44 6c 4a 78 69 46 4b 71 6b 67 72 5a 6f 41 56 50 44 63 79 6a 53 45 52 4d 44 74 4d 49 76 73 70 52 67 58 47 52 62 57 6a 78 48 6a 57 52 4b 4b 70 42 63 7a 4a 59 76 6d 6e 41 66 5a 50 6c 77 45 79 67 78 73 53 4e 4a 73 79 55 78 76 79 41 58 55 69 43 58 4c 6f 5a 71 69 59 44 74 50 62 46 62 7a 61 72 4e 77 53 77 74 77 51 5a 74 4c 50 62 43 44 59 6f 4d 49 6e 4e 71 6e 76 78 7a 69 73 47 50 70 4b 66 63 59 47 64 46 6a 78 55 72 6b 67 75 4a 6a 6d 78 46 5a 79 45 76 51 52 67 50 79 4b 7a 68 45 4a 63 52 41 6d 45 73 4a 5a 70 50 65 6e 77 47 50 5a 42 4c 50 79 45 59 71 59 41 47 54 48 64 54 6b 66 79 69 55 54 66 6b 41 68 66 75 4d 7a 72 57 66 62 52 7a 4a 4f 62 7a 4a 61 50 64 57 54 53 62 53 76 43 6f 73 73 49 68 46 46 73 6d 59 53 67 49 67 47 74 56 72 50 7a 56 4e 42 78 70 4c 62 7a 50 52 4f 62 4e 6a 6e 77 79 42 4c 44 76 46 4c 45 77 4f 61 52 55 42 42 46 74 4a 4d 76 74 4e 4e 74 69 79 62 59 43 6d 45 52 42 4e 69 47 49 72 4e 41 4d 44 68 6b 66 45 59 45 46 50 74 68 44 50 7a 42 47 62 4b 57 6c 6b 4b 50 4e 67 41 63 69 51 47 44 63 54 59 71 54 67 62 42 55 73 62 52 68 55 41 41 48 71 53 53 73 64 6a 47 4e 4f 53 5a 71 73 4b 74 78 47 78 56 53 66 62 78 56 6a 65 4f 59 46 58 4d 43 4c 76 4f 78 41 57 57 6a 63 6e 78 6b 52 7a 74 76 51 6f 63 4d 59 45 66 57 52 74 4f 48 79 79 45 58 74 59 48 73 4e 73 4b 71 43 6f 4f 48 78 55 56 51 69 64 50 6d 47 67 43 79 45 5a 62 66 73 43 6e 58 53 62 41 48 55 4e 45 4b 74 41 58 49 74 52 54 4c 42 53 52 6f 4b 71 43 55 66 56 4d 73 6c 71 72 6f 4b 41 52 54 66 6f 63 56 51 62 48 4c 78 70 59 53 54 63 59 72 41 53 54 5a 5a 7a 65 55 45 77 72 73 6d 6a 51 51 50 56 69 4e 4f 7a 4e 53 77 71 6c 67 69 6c 73 76 4f 66 6b 71 6e 72 56 4d 6e 4d 78 69 67 42 6a 44 6e 62 4f 4b 4f 4a 71 4f 79 6c 72 57 50 50 57 45 52 58 4d 44 46 51 79 4d 6b 42 46 72 61 55 49 53 4c 6e 6d 67 42 4d 51 44 71 74 43 72 54 56 49 46 52 54 4c 79 74 73 6d 71 5a 43 63 42 4c 54 6b 49 6e 79 66 74 42 63 59 76 4c 74 75 61 76 4a 48 49 44 68 44 4e 71 58 65 6e 55 56 42 51 63 41 53 77 72 76 4f 55 68 71 6b 56 51 43 42 70 48 64 77 74 4e 73 45 46 42 73 49 6e 4b 61 68 75 47 70 50 47 48 55 62 52 4e 69 69 65 69 59 59 4b 4c 56 41 53 4e 62 62 44 43 78 4e 6a 43 6b 49 56 51 4e 78 6d 4e 70 4c 74 6f 6a 76 6c 44 5a 79 4e 74 71 46 5a 79 62 61 46 66 78 77 79 57 65 53 4d 4a 77 6d 67 55 55 4c 54 54 6c 66 41 68 54 58 69 5a 75 4f 51 53 46 6d 59 45 78 7a 7a 51 67 78 68 46 6a 62 6d 6e 4a 73 59 43 70 65 67 71 69 52 69 63 69 6d 42 5a 76 61 76 6a 64 73 59 56 58 6a 47 56 7a 6e 71 4e 57 4d 56 57 41 69 6b 65 46 6a 6b 65 50 65 59 69 66 63 76 6e 48 61 66 61 67 57 51 49 51 66 5a 69 52 65 6e 45 6d 45 61 41 63 62 59 59 71 47 74 50 76 4b 6b 66 6b 6a 6d 66 74 7a 69 50 65 6a 71 4d 4d 4e 77 50 47 69 59 50 6f 64 58 47 63 50 67 72 4e 50 6f 6e 42 63 74 78 73 41 4c 78 75 6b 66 62 4a 64 53 62 78 67 49 7a 53 63 79 73 4c 76 4f 41 50 59 69 6f 67 46 67 56 4d 6e 55 54 49 6f 5a 70 6d 6c 56 78 78 6f 75 76 75 72 49 4e 6a 49 62 78 54 63 7a 54 54 4e 6f 79 58 79 51 6f 62 4d 4f 54 70 44 6e 6b 50 58 55 7a 61 47 43 6b 77 77 69 57 79 6b 42 48 45 4e 4e 75 58 43 57 53 55 77 7a 77 64 4c 61 62 78 78 67 6c 51 69 6a 5a 68 65 67 45 54 65 79 4a 41 46 67 43 78 48 4e 6c 66 49 65 44 72 49 56 54 6d 47 64 61 7a 62 64 59 75 50 73 4c 6e 75 53 74 62 70 6e 56 6d 59 4c 55 6d 53 70 4e 46 63 6d 54 50 53 5a 42 5a 55 78 6f 43 47 4b 51 42 55 6e 61 67 47 4b 66 6b 6f 41 6a 4b 49 74 69 6f 42 76 59 49 55 6f 74 46 7a 64 41 6d 4b 75 58 58 44 6b 69 4f 45 72 62 77 48 43 48 48 4b 44 76 59 68 58 71 56 4c 41 63 73 75 47 7a 76 54 4a 46 45 41 61 55 6d 41 78 42 54 4e 65 4f 58 4e 4a 4b 79 73 55 43 46 66 44 6b 41 6e 54 73 54 6f 61 49 4a 78 6c 73 6e 77 62 45 4a 42 64 50 45 71 7a 49 52 44 70 66 69 4d 53 72 4c 73 78 4b 78 76 56 66 63 54 4e 6c 64 4b 6f 72 59 68 4f 48 4c 6c 59 61 7a 50 73 51 45 7a 41 49 4c 79 4b 69 62 71 61 61 6f 65 65 68 43 54 6f 75 67 54 65 4d 50 6f 64 71 76 45 71 5a 6b 56 5a 57 65 64 76 57 57 78 4b 5a 70 4e 7a 76 66 5a 79 4b 78 75 6e 47 4a 42 66 51 75 58 79 53 6d 4d 73 68 51 6e 72 64 62 63 42 75 6d 7a 51 61 7a 41 48 41 6f 57 54 66 6a 6a 7a 47 74 52 62 6c 77 57 5a 6d 57 6c 7a 4e 64 63 63 71 6e 74 57 43 65 54 4d 62 72 6f 57 52 71 72 4c 6c 55 51 4d 63 4a 79 52 70 68 4f 48 53 6b 64 5a 43 4c 49 62 47 74 46 65 57 51 6b 6d 6b 7a 4b 4c 64 6e 54 6b 49 65 4d 54 4c 73 6f 41 6a 4c 78 66 48 6b 54 4c 4e 44 65 64 5a 73 46 55 4e 57 70 67 56 65 43 61 48 4f 4c 64 72 6e 45 71 64 62 4f 49 77 71 70 52 57 74 69 58 4a 6c 6e 44 47 79 69 48 72 64 48 4f 4b 79 59 67 4e 6a 64 66 66 65 6a 74 72 4e 63 6b 74 6e 46 75 78 4e 6f 47 54 50 67 70 58 75 70 51 58 79 6f 46 56 44 77 63 45 6f 73 51 75 44 6a 4b 75 6b 6e 71 4a 77 66 65 46 73 70 4a 42 4d 6d 54 41 53 48 4a 6b 56 43 52 66 63 6e 41 42 49 77 58 47 55 4c 55 6d 74 70 6a 55 79 74 6a 54 4a 46 76 4e 41 53 44 41 66 66 46 73 65 68 70 43 6b 68 6c 58 6f 77 48 68 46 47 44 7a 58 4b 69 4f 4f 67 4a 57 70 58 77 75 6c 63 66 45 4f 71 6a 6c 45 75 76 7a 58 65 63 4d 66 54 75 62 49 70 7a 4a 50 74 4e 4a 6b 4b 42 71 7a 49 50 41 76 6a 45 6e 58 45 6b 74 62 45 4c 64 58 73 55 62 77 71 64 4d 6e 50 57 6e 42 56 54 79 53 77 78 4a 4d 6e 6f 4e fc fb]> but was:<[3a 29 a 5 fa 83 6c 61 6e 67 51 6c 49 41 78 74 74 74 64 4c 4c 66 59 4a 62 4e 74 70 71 85 73 6f 75 72 63 65 e4 74 58 6e 65 73 49 57 66 53 7a 76 73 61 7a 6d 61 57 54 66 63 44 74 59 6c 59 70 42 59 61 54 67 53 41 44 51 71 6b 44 6c 4b 48 76 51 4f 62 45 52 45 55 42 78 48 41 67 49 72 4b 66 62 4d 7a 4b 76 68 51 70 4d 63 6d 45 68 43 6f 79 4e 5a 66 69 4c 78 77 47 69 73 74 50 4c 67 4e 6c 6a 4c 45 45 48 42 74 49 68 62 44 54 43 61 7a 77 51 41 6e 4b 7a 49 52 45 67 59 63 44 46 54 6b 7a 62 4c 4a 67 4d 75 7a 6b 75 6f 68 70 48 52 69 6f 7a 49 67 72 71 61 77 6b 6a 6d 4b 79 68 6a 49 4c 78 63 79 72 71 4f 67 6e 57 6c 77 53 51 53 7a 41 41 4b 75 50 41 65 7a 78 41 44 6d 42 75 4b 6d 4f 61 76 66 70 47 73 66 78 43 57 75 49 77 53 66 48 79 54 68 61 55 50 50 48 76 67 58 41 57 53 70 65 7a 76 44 43 49 7a 63 66 53 7a 69 6a 64 69 6f 7a 72 65 6b 4d 77 50 62 56 74 4c 79 42 78 46 58 50 7a 4c 57 66 77 71 68 4c 61 41 68 51 61 63 6d 50 44 51 6e 6b 50 44 6e 43 73 48 65 5a 41 74 66 68 64 4c 45 68 55 41 6a 77 6c 54 6d 75 6d 74 72 42 49 48 59 68 4b 44 6a 69 43 48 6f 54 6d 6b 4b 70 78 67 69 73 59 59 4b 66 43 62 66 72 46 75 72 51 70 7a 7a 52 56 6c 41 4e 6c 7a 47 62 71 6f 44 49 43 73 53 68 4c 53 70 48 61 66 59 44 4e 69 4d 54 63 6c 6d 4d 47 48 6b 70 52 63 56 47 63 59 4c 43 6a 78 75 6b 4b 72 63 48 53 78 44 66 66 55 45 72 4b 65 4c 42 55 6c 61 67 4a 47 68 52 70 6c 6a 77 73 78 6f 4f 78 4c 50 4b 65 62 72 65 63 54 46 54 59 42 42 6a 4c 54 55 51 59 53 63 4c 50 7a 53 6b 70 56 63 57 46 44 42 43 46 41 62 73 59 61 4f 4c 59 6f 58 52 56 64 57 79 6c 4c 79 6a 71 78 78 46 57 52 4e 76 43 75 4b 78 44 74 56 64 4a 48 70 77 53 56 74 47 58 53 76 58 41 59 59 4e 4a 7a 72 42 43 6c 54 70 70 66 56 79 56 74 70 55 42 63 64 67 78 54 78 4c 54 63 47 69 77 6d 50 79 62 42 55 73 46 4a 66 42 69 78 51 54 75 4c 64 57 69 41 59 41 57 6d 70 46 6e 67 71 63 58 63 5a 6c 41 58 6b 42 4e 44 48 56 67 62 6e 65 4b 4d 51 4c 47 63 64 4f 4b 6f 66 55 73 62 6a 62 6c 59 68 6c 74 54 7a 6c 41 52 42 41 79 49 41 48 70 59 6c 57 6e 65 4c 71 63 6e 78 61 70 4b 41 68 79 49 49 53 45 63 73 75 55 42 74 61 58 59 6d 64 76 67 67 65 66 46 6f 6a 6c 43 79 57 69 50 5a 6c 56 65 6a 43 4f 76 48 53 44 75 45 59 79 63 71 55 6b 6c 62 41 47 65 65 4f 6a 4e 51 67 6d 48 68 4c 59 6d 45 47 6c 77 71 44 77 6b 6f 62 53 44 43 6d 75 65 56 66 49 64 74 56 6e 58 53 4a 73 58 78 68 57 41 7a 4a 47 45 57 69 68 53 52 46 6f 42 47 6d 6d 46 59 67 68 71 43 78 4d 78 47 4d 70 4d 45 5a 4f 66 66 4c 65 49 6a 47 59 41 72 6e 41 66 70 68 78 43 59 54 70 51 6b 66 59 67 6a 76 79 4b 51 6c 5a 45 54 71 63 64 78 63 64 74 62 74 7a 6e 63 50 4d 68 4b 71 47 41 74 77 70 77 70 59 4d 5a 59 50 68 71 45 4d 7a 58 53 69 74 61 6f 6a 70 7a 4e 4d 75 46 49 67 52 49 6b 45 42 62 51 76 65 49 57 66 43 44 51 4b 4a 51 43 4b 75 54 45 43 67 6b 69 4f 6a 53 44 50 74 42 65 6a 43 68 71 76 4d 72 6d 45 56 6e 43 6d 43 64 6e 6a 43 75 79 71 59 62 75 74 55 44 54 42 56 4a 4d 59 6a 6b 43 44 49 6e 61 71 4b 4a 64 45 64 73 46 64 58 79 51 7a 44 41 52 41 6c 46 59 77 62 56 68 53 42 61 42 56 53 51 42 43 73 57 51 63 6d 45 58 61 78 61 61 4d 58 6f 55 78 47 57 64 45 76 5a 50 42 63 72 66 66 6c 56 63 6f 73 74 4d 5a 7a 41 52 79 6e 53 77 6c 4f 66 58 5a 72 69 42 42 72 6e 48 6d 78 45 55 76 4c 74 54 47 54 77 44 43 62 4f 59 59 53 72 6a 72 6f 73 64 58 64 6a 67 62 77 74 67 79 4c 74 63 4c 6d 62 58 69 44 64 50 6c 6d 50 77 46 75 58 78 6b 75 7a 4a 72 64 43 49 51 59 70 4b 6a 62 6e 42 58 73 47 5a 71 70 50 56 70 6d 57 41 62 6c 57 47 4a 71 6d 58 44 55 4e 42 70 44 56 6e 64 64 70 4a 4d 63 46 71 64 57 69 49 4e 61 74 61 5a 6a 69 53 44 4c 57 61 78 51 58 62 6a 76 49 78 4e 42 52 46 45 6e 4d 79 72 48 44 6c 4b 43 56 79 4d 41 6f 4a 6d 4c 61 55 65 4b 71 53 78 5a 4a 72 44 4e 78 54 54 54 48 76 73 58 45 56 67 77 41 66 4f 4f 45 72 57 77 45 43 48 5a 71 61 41 49 6b 6f 67 58 6a 65 53 52 70 44 56 57 53 59 51 41 48 6d 42 5a 69 46 71 41 4b 4d 46 76 6c 4d 71 6d 59 74 63 78 6f 6d 49 41 64 65 79 6b 46 52 7a 6a 70 4e 59 53 64 63 74 65 68 48 69 6c 64 4c 4d 58 4a 6c 63 73 65 78 7a 56 7a 6d 6d 50 4b 59 5a 56 70 57 74 62 56 55 73 68 51 7a 4e 73 73 51 64 54 71 65 4c 53 43 59 77 51 61 64 77 64 75 58 4d 41 4f 6d 6c 6b 6c 54 76 52 6d 4f 48 45 44 65 6a 68 6a 7a 45 67 54 4f 52 70 74 71 51 71 6a 68 78 7a 4c 68 6d 4a 65 69 6a 71 73 73 46 6b 6e 4e 48 59 69 77 64 49 71 69 43 4c 75 6f 4d 73 78 6d 57 66 4c 6a 74 64 57 72 76 5a 7a 79 52 54 41 59 57 44 48 75 4b 42 44 53 73 61 51 41 42 49 4e 78 78 54 44 6c 4a 78 69 46 4b 71 6b 67 72 5a 6f 41 56 50 44 63 79 6a 53 45 52 4d 44 74 4d 49 76 73 70 52 67 58 47 52 62 57 6a 78 48 6a 57 52 4b 4b 70 42 63 7a 4a 59 76 6d 6e 41 66 5a 50 6c 77 45 79 67 78 73 53 4e 4a 73 79 55 78 76 79 41 58 55 69 43 58 4c 6f 5a 71 69 59 44 74 50 62 46 62 7a 61 72 4e 77 53 77 74 77 51 5a 74 4c 50 62 43 44 59 6f 4d 49 6e 4e 71 6e 76 78 7a 69 73 47 50 70 4b 66 63 59 47 64 46 6a 78 55 72 6b 67 75 4a 6a 6d 78 46 5a 79 45 76 51 52 67 50 79 4b 7a 68 45 4a 63 52 41 6d 45 73 4a 5a 70 50 65 6e 77 47 50 5a 42 4c 50 79 45 59 71 59 41 47 54 48 64 54 6b 66 79 69 55 54 66 6b 41 68 66 75 4d 7a 72 57 66 62 52 7a 4a 4f 62 7a 4a 61 50 64 57 54 53 62 53 76 43 6f 73 73 49 68 46 46 73 6d 59 53 67 49 67 47 74 56 72 50 7a 56 4e 42 78 70 4c 62 7a 50 52 4f 62 4e 6a 6e 77 79 42 4c 44 76 46 4c 45 77 4f 61 52 55 42 42 46 74 4a 4d 76 74 4e 4e 74 69 79 62 59 43 6d 45 52 42 4e 69 47 49 72 4e 41 4d 44 68 6b 66 45 59 45 46 50 74 68 44 50 7a 42 47 62 4b 57 6c 6b 4b 50 4e 67 41 63 69 51 47 44 63 54 59 71 54 67 62 42 55 73 62 52 68 55 41 41 48 71 53 53 73 64 6a 47 4e 4f 53 5a 71 73 4b 74 78 47 78 56 53 66 62 78 56 6a 65 4f 59 46 58 4d 43 4c 76 4f 78 41 57 57 6a 63 6e 78 6b 52 7a 74 76 51 6f 63 4d 59 45 66 57 52 74 4f 48 79 79 45 58 74 59 48 73 4e 73 4b 71 43 6f 4f 48 78 55 56 51 69 64 50 6d 47 67 43 79 45 5a 62 66 73 43 6e 58 53 62 41 48 55 4e 45 4b 74 41 58 49 74 52 54 4c 42 53 52 6f 4b 71 43 55 66 56 4d 73 6c 71 72 6f 4b 41 52 54 66 6f 63 56 51 62 48 4c 78 70 59 53 54 63 59 72 41 53 54 5a 5a 7a 65 55 45 77 72 73 6d 6a 51 51 50 56 69 4e 4f 7a 4e 53 77 71 6c 67 69 6c 73 76 4f 66 6b 71 6e 72 56 4d 6e 4d 78 69 67 42 6a 44 6e 62 4f 4b 4f 4a 71 4f 79 6c 72 57 50 50 57 45 52 58 4d 44 46 51 79 4d 6b 42 46 72 61 55 49 53 4c 6e 6d 67 42 4d 51 44 71 74 43 72 54 56 49 46 52 54 4c 79 74 73 6d 71 5a 43 63 42 4c 54 6b 49 6e 79 66 74 42 63 59 76 4c 74 75 61 76 4a 48 49 44 68 44 4e 71 58 65 6e 55 56 42 51 63 41 53 77 72 76 4f 55 68 71 6b 56 51 43 42 70 48 64 77 74 4e 73 45 46 42 73 49 6e 4b 61 68 75 47 70 50 47 48 55 62 52 4e 69 69 65 69 59 59 4b 4c 56 41 53 4e 62 62 44 43 78 4e 6a 43 6b 49 56 51 4e 78 6d 4e 70 4c 74 6f 6a 76 6c 44 5a 79 4e 74 71 46 5a 79 62 61 46 66 78 77 79 57 65 53 4d 4a 77 6d 67 55 55 4c 54 54 6c 66 41 68 54 58 69 5a 75 4f 51 53 46 6d 59 45 78 7a 7a 51 67 78 68 46 6a 62 6d 6e 4a 73 59 43 70 65 67 71 69 52 69 63 69 6d 42 5a 76 61 76 6a 64 73 59 56 58 6a 47 56 7a 6e 71 4e 57 4d 56 57 41 69 6b 65 46 6a 6b 65 50 65 59 69 66 63 76 6e 48 61 66 61 67 57 51 49 51 66 5a 69 52 65 6e 45 6d 45 61 41 63 62 59 59 71 47 74 50 76 4b 6b 66 6b 6a 6d 66 74 7a 69 50 65 6a 71 4d 4d 4e 77 50 47 69 59 50 6f 64 58 47 63 50 67 72 4e 50 6f 6e 42 63 74 78 73 41 4c 78 75 6b 66 62 4a 64 53 62 78 67 49 7a 53 63 79 73 4c 76 4f 41 50 59 69 6f 67 46 67 56 4d 6e 55 54 49 6f 5a 70 6d 6c 56 78 78 6f 75 76 75 72 49 4e 6a 49 62 78 54 63 7a 54 54 4e 6f 79 58 79 51 6f 62 4d 4f 54 70 44 6e 6b 50 58 55 7a 61 47 43 6b 77 77 69 57 79 6b 42 48 45 4e 4e 75 58 43 57 53 55 77 7a 77 64 4c 61 62 78 78 67 6c 51 69 6a 5a 68 65 67 45 54 65 79 4a 41 46 67 43 78 48 4e 6c 66 49 65 44 72 49 56 54 6d 47 64 61 7a 62 64 59 75 50 73 4c 6e 75 53 74 62 70 6e 56 6d 59 4c 55 6d 53 70 4e 46 63 6d 54 50 53 5a 42 5a 55 78 6f 43 47 4b 51 42 55 6e 61 67 47 4b 66 6b 6f 41 6a 4b 49 74 69 6f 42 76 59 49 55 6f 74 46 7a 64 41 6d 4b 75 58 58 44 6b 69 4f 45 72 62 77 48 43 48 48 4b 44 76 59 68 58 71 56 4c 41 63 73 75 47 7a 76 54 4a 46 45 41 61 55 6d 41 78 42 54 4e 65 4f 58 4e 4a 4b 79 73 55 43 46 66 44 6b 41 6e 54 73 54 6f 61 49 4a 78 6c 73 6e 77 62 45 4a 42 64 50 45 71 7a 49 52 44 70 66 69 4d 53 72 4c 73 78 4b 78 76 56 66 63 54 4e 6c 64 4b 6f 72 59 68 4f 48 4c 6c 59 61 7a 50 73 51 45 7a 41 49 4c 79 4b 69 62 71 61 61 6f 65 65 68 43 54 6f 75 67 54 65 4d 50 6f 64 71 76 45 71 5a 6b 56 5a 57 65 64 76 57 57 78 4b 5a 70 4e 7a 76 66 5a 79 4b 78 75 6e 47 4a 42 66 51 75 58 79 53 6d 4d 73 68 51 6e 72 64 62 63 42 75 6d 7a 51 61 7a 41 48 41 6f 57 54 66 6a 6a 7a 47 74 52 62 6c 77 57 5a 6d 57 6c 7a 4e 64 63 63 71 6e 74 57 43 65 54 4d 62 72 6f 57 52 71 72 4c 6c 55 51 4d 63 4a 79 52 70 68 4f 48 53 6b 64 5a 43 4c 49 62 47 74 46 65 57 51 6b 6d 6b 7a 4b 4c 64 6e 54 6b 49 65 4d 54 4c 73 6f 41 6a 4c 78 66 48 6b 54 4c 4e 44 65 64 5a 73 46 55 4e 57 70 67 56 65 43 61 48 4f 4c 64 72 6e 45 71 64 62 4f 49 77 71 70 52 57 74 69 58 4a 6c 6e 44 47 79 69 48 72 64 48 4f 4b 79 59 67 4e 6a 64 66 66 65 6a 74 72 4e 63 6b 74 6e 46 75 78 4e 6f 47 54 50 67 70 58 75 70 51 58 79 6f 46 56 44 77 63 45 6f 73 51 75 44 6a 4b 75 6b 6e 71 4a 77 66 65 46 73 70 4a 42 4d 6d 54 41 53 48 4a 6b 56 43 52 66 63 6e 41 42 49 77 58 47 55 4c 55 6d 74 70 6a 55 79 74 6a 54 4a 46 76 4e 41 53 44 41 66 66 46 73 65 68 70 43 6b 68 6c 58 6f 77 48 68 46 47 44 7a 58 4b 69 4f 4f 67 4a 57 70 58 77 75 6c 63 66 45 4f 71 6a 6c 45 75 76 7a 58 65 63 4d 66 54 75 62 49 70 7a 4a 50 74 4e 4a 6b 4b 42 71 7a 49 50 41 76 6a 45 6e 58 45 6b 74 62 45 4c 64 58 73 55 62 77 71 64 4d 6e 50 57 6e 42 56 54 79 53 77 78 4a 4d 6e 6f 4e fc fb]> 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.test.AbstractSerializingTestCase.lambda$testConcurrentToXContent$1(AbstractSerializingTestCase.java:74) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.util.concurrent.FutureTask.run(FutureTask.java:264) 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/82257
https://github.com/elastic/elasticsearch/pull/82278
296b7251c785c4335423fddc7acbf858e8aee9d6
0900d51b1777a1050d7ffd5308648b5b5ad7fcd0
2022-01-05T12:14:14Z
java
2022-01-06T14:45:39Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
82,250
["x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/annotations/AnnotationIndex.java", "x-pack/plugin/ml/src/internalClusterTest/java/org/elasticsearch/xpack/ml/integration/AnnotationIndexIT.java", "x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/MlSingleNodeTestCase.java"]
[ML] Error creating annotations index after upgrading 6.x -> 7.x -> 8.x
The following error was seen after upgrading a cluster where ML was in use from 6.8 to 7.17, reindexing indices as suggested by the upgrade assistant, then upgrading to 8.1: ``` [instance-0000000000] Error creating ML annotations index or aliases java.lang.IllegalArgumentException: The provided expression [.ml-annotations-6] matches an alias, specify the corresponding concrete indices instead. at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver.aliasesNotSupportedException(IndexNameExpressionResolver.java:491) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver$WildcardExpressionResolver.innerResolve(IndexNameExpressionResolver.java:1229) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver$WildcardExpressionResolver.resolve(IndexNameExpressionResolver.java:1183) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver.dataStreamNames(IndexNameExpressionResolver.java:198) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.admin.indices.alias.TransportIndicesAliasesAction.masterOperation(TransportIndicesAliasesAction.java:115) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.admin.indices.alias.TransportIndicesAliasesAction.masterOperation(TransportIndicesAliasesAction.java:58) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.support.master.TransportMasterNodeAction.executeMasterOperation(TransportMasterNodeAction.java:121) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.lambda$doStart$3(TransportMasterNodeAction.java:215) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.ActionRunnable$2.doRun(ActionRunnable.java:62) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.common.util.concurrent.EsExecutors$DirectExecutorService.execute(EsExecutors.java:220) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.doStart(TransportMasterNodeAction.java:215) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.support.master.TransportMasterNodeAction.doExecute(TransportMasterNodeAction.java:152) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.support.master.TransportMasterNodeAction.doExecute(TransportMasterNodeAction.java:52) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:79) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.support.ActionFilter$Simple.apply(ActionFilter.java:53) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:77) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$applyInternal$3(SecurityActionFilter.java:167) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.ActionListener$DelegatingFailureActionListener.onResponse(ActionListener.java:219) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:576) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:570) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.interceptor.IndicesAliasesRequestInterceptor.lambda$intercept$4(IndicesAliasesRequestInterceptor.java:105) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.RBACEngine.validateIndexPermissionsAreSubset(RBACEngine.java:490) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.interceptor.IndicesAliasesRequestInterceptor.intercept(IndicesAliasesRequestInterceptor.java:98) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:574) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:570) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.interceptor.ResizeRequestInterceptor.intercept(ResizeRequestInterceptor.java:96) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:574) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:570) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.interceptor.FieldAndDocumentLevelSecurityRequestInterceptor.intercept(FieldAndDocumentLevelSecurityRequestInterceptor.java:84) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.interceptor.UpdateRequestInterceptor.intercept(UpdateRequestInterceptor.java:27) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:574) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:570) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.interceptor.DlsFlsLicenseRequestInterceptor.intercept(DlsFlsLicenseRequestInterceptor.java:85) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:574) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:570) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.interceptor.FieldAndDocumentLevelSecurityRequestInterceptor.intercept(FieldAndDocumentLevelSecurityRequestInterceptor.java:84) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.interceptor.ShardSearchRequestInterceptor.intercept(ShardSearchRequestInterceptor.java:26) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:574) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:570) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.interceptor.BulkShardRequestInterceptor.intercept(BulkShardRequestInterceptor.java:86) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:574) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.AuthorizationService$1.onResponse(AuthorizationService.java:570) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.interceptor.FieldAndDocumentLevelSecurityRequestInterceptor.intercept(FieldAndDocumentLevelSecurityRequestInterceptor.java:84) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.interceptor.SearchRequestInterceptor.intercept(SearchRequestInterceptor.java:26) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.AuthorizationService.runRequestInterceptors(AuthorizationService.java:570) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.AuthorizationService.handleIndexActionAuthorizationResult(AuthorizationService.java:555) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.AuthorizationService.lambda$authorizeAction$11(AuthorizationService.java:449) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.AuthorizationService$AuthorizationResultListener.onResponse(AuthorizationService.java:972) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.AuthorizationService$AuthorizationResultListener.onResponse(AuthorizationService.java:936) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.RBACEngine.lambda$authorizeIndexAction$3(RBACEngine.java:364) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.common.util.concurrent.ListenableFuture.notifyListenerDirectly(ListenableFuture.java:113) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.common.util.concurrent.ListenableFuture.addListener(ListenableFuture.java:55) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.common.util.concurrent.ListenableFuture.addListener(ListenableFuture.java:41) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.AuthorizationService$CachingAsyncSupplier.getAsync(AuthorizationService.java:1020) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.RBACEngine.authorizeIndexAction(RBACEngine.java:356) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.AuthorizationService.authorizeAction(AuthorizationService.java:442) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.AuthorizationService.maybeAuthorizeRunAs(AuthorizationService.java:370) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.AuthorizationService.lambda$authorize$1(AuthorizationService.java:255) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.RBACEngine.lambda$resolveAuthorizationInfo$0(RBACEngine.java:129) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.lambda$getRoles$1(CompositeRolesStore.java:179) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.getRole(CompositeRolesStore.java:187) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.getRoles(CompositeRolesStore.java:169) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.RBACEngine.resolveAuthorizationInfo(RBACEngine.java:126) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.AuthorizationService.authorize(AuthorizationService.java:257) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$applyInternal$4(SecurityActionFilter.java:163) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.ActionListener$MappedActionListener.onResponse(ActionListener.java:101) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authc.AuthenticatorChain.authenticateAsync(AuthenticatorChain.java:98) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:171) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.applyInternal(SecurityActionFilter.java:159) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$apply$1(SecurityActionFilter.java:114) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.core.security.SecurityContext.executeAsUser(SecurityContext.java:141) [x-pack-core-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.authz.AuthorizationUtils.switchUserBasedOnActionOriginAndExecute(AuthorizationUtils.java:136) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.apply(SecurityActionFilter.java:111) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:77) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:54) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.tasks.TaskManager.registerAndExecute(TaskManager.java:170) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.client.internal.node.NodeClient.executeLocally(NodeClient.java:105) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.client.internal.node.NodeClient.doExecute(NodeClient.java:83) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.client.internal.support.AbstractClient.execute(AbstractClient.java:380) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.client.internal.support.AbstractClient$IndicesAdmin.execute(AbstractClient.java:1271) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.client.internal.support.AbstractClient$IndicesAdmin.aliases(AbstractClient.java:1286) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.core.ClientHelper.executeAsyncWithOrigin(ClientHelper.java:125) [x-pack-core-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.core.ml.annotations.AnnotationIndex.lambda$createAnnotationsIndexIfNecessary$4(AnnotationIndex.java:121) [x-pack-core-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.core.ml.annotations.AnnotationIndex.lambda$createAnnotationsIndexIfNecessary$6(AnnotationIndex.java:165) [x-pack-core-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.client.internal.node.NodeClient.lambda$executeLocally$0(NodeClient.java:107) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.tasks.TaskManager$1.onResponse(TaskManager.java:176) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.tasks.TaskManager$1.onResponse(TaskManager.java:170) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$applyInternal$2(SecurityActionFilter.java:169) [x-pack-security-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.ActionListener$DelegatingFailureActionListener.onResponse(ActionListener.java:219) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.ActionListener$DelegatingActionListener.onResponse(ActionListener.java:186) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.ActionListener$MappedActionListener.onResponse(ActionListener.java:101) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.cluster.metadata.MetadataCreateIndexService.lambda$createIndex$0(MetadataCreateIndexService.java:283) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.support.ActiveShardsObserver$1.onNewClusterState(ActiveShardsObserver.java:75) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.cluster.ClusterStateObserver$ContextPreservingListener.onNewClusterState(ClusterStateObserver.java:331) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.clusterChanged(ClusterStateObserver.java:199) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.cluster.service.ClusterApplierService.callClusterStateListener(ClusterApplierService.java:564) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.cluster.service.ClusterApplierService.callClusterStateListeners(ClusterApplierService.java:551) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.cluster.service.ClusterApplierService.applyChanges(ClusterApplierService.java:510) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.cluster.service.ClusterApplierService.runTask(ClusterApplierService.java:428) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.cluster.service.ClusterApplierService$UpdateTask.run(ClusterApplierService.java:154) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:716) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:262) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:225) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?] at java.lang.Thread.run(Thread.java:833) [?:?] ``` This error implies there's a bug in the ML annotations index code when `.ml-annotations-6` is an alias rather than a concrete index. That name becomes an alias when the index is reindexed into the 7.x Lucene index format so that it's still readable in 8.x. The concrete index is then `.reindexed-v7-ml-annotations-6` with an alias `.ml-annotations-6`.
https://github.com/elastic/elasticsearch/issues/82250
https://github.com/elastic/elasticsearch/pull/82304
d570656731550546bea4c480e8478ffeae2dc8ee
b4fef4bea592a6c8d24c32c7b9cf8934b60aea32
2022-01-05T10:23:31Z
java
2022-01-06T12:49:17Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
82,224
["docs/changelog/82228.yaml", "modules/lang-painless/src/main/java/org/elasticsearch/painless/symbol/SemanticScope.java", "modules/lang-painless/src/test/java/org/elasticsearch/painless/UserFunctionTests.java"]
Calling user-defined methods within an if/else block in a lambda causes a failure
It appears the "this" pointer doesn't get propagated into sub-scopes within a lambda causing a failure. Reproduce: ``` int test1() { return 1; } void test(Map params) { int i = 0; params.forEach( (k, v) -> { if (i == 0) { test1() } else { test1() } } ) } test(params) ``` Error: ```no 'this' pointer within static method``` Workaround: Use control-flow logic such as if/else, for, and while to replace the lambda causing an issue. After https://github.com/elastic/elasticsearch/pull/74268, all user functions are instance methods, so the `this` reference needs to be propagated.
https://github.com/elastic/elasticsearch/issues/82224
https://github.com/elastic/elasticsearch/pull/82228
fe7f0c5f5d0bbe6e06fac884817c0293b131c97f
57ac810951a4309bfddddcc9892531366d8769c3
2022-01-04T18:20:48Z
java
2022-01-04T21:14:51Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
82,212
["test/framework/src/main/java/org/elasticsearch/test/InternalTestCluster.java", "test/framework/src/test/java/org/elasticsearch/test/test/InternalTestClusterTests.java"]
Failed test: InternalTestClusterTests.testBeforeTest
**Build scan**: https://gradle-enterprise.elastic.co/s/cowwkyf3c24sw **Repro line**: ./gradlew ':test:framework:test' --tests "org.elasticsearch.test.test.InternalTestClusterTests.testBeforeTest" -Dtests.seed=527909747783BF7C -Dtests.locale=ar-EG -Dtests.timezone=Antarctica/Mawson -Dtests.timestamp=$(date +%S) --info **Reproduces locally?**: yes, with the given seed **Applicable branches**: master **Failure history**: https://gradle-enterprise.elastic.co/scans/tests?search.relativeStartTime=P7D&search.timeZoneId=America/Chicago&tests.container=org.elasticsearch.test.test.InternalTestClusterTests&tests.sortField=FAILED&tests.test=testBeforeTest&tests.unstableOnly=true **Failure excerpt**: ``` org.elasticsearch.test.test.InternalTestClusterTests > testBeforeTest FAILED org.junit.ComparisonFailure: cluster_state.document_page_size expected:<[7036]9b> but was:<[35657]9b> at __randomizedtesting.SeedInfo.seed([527909747783BF7C:832FDF705355B795]:0) at org.junit.Assert.assertEquals(Assert.java:115) at org.elasticsearch.test.test.InternalTestClusterTests.assertSettings(InternalTestClusterTests.java:151) at org.elasticsearch.test.test.InternalTestClusterTests.testBeforeTest(InternalTestClusterTests.java:245) ```
https://github.com/elastic/elasticsearch/issues/82212
https://github.com/elastic/elasticsearch/pull/82496
dbb9c63dca9c43b2522fbcbcc4d9dae538b8146a
f9394af8c9f07698e87830f57d9b5fdc738fb687
2022-01-04T16:04:38Z
java
2022-01-13T00:31:01Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
82,170
["docs/reference/data-management/migrate-index-allocation-filters.asciidoc", "docs/reference/ilm/apis/migrate-to-data-tiers.asciidoc", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/cluster/action/MigrateToDataTiersResponse.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/cluster/action/MigrateToDataTiersResponseTests.java", "x-pack/plugin/ilm/qa/multi-node/src/javaRestTest/java/org/elasticsearch/xpack/MigrateToDataTiersIT.java", "x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/cluster/metadata/MetadataMigrateToDataTiersRoutingService.java", "x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm/action/TransportMigrateToDataTiersAction.java", "x-pack/plugin/ilm/src/test/java/org/elasticsearch/xpack/cluster/metadata/MetadataMigrateToDataTiersRoutingServiceTests.java"]
Migrate to data tiers routing API updates all templates in a system to not use custom attribute routing
Currently, the migrate to data tiers routing [API](https://www.elastic.co/guide/en/elasticsearch/reference/7.16/ilm-migrate-to-data-tiers.html) only deletes a legacy template (if one is specified). It doesn't inspect the index templates in the system. However there might still be the case that templates relying on node attributes are installed in the system via a restore of an old snapshot or accidentally. This would conflict with a system that is already using data tiers. This proposes that the migrate to data tiers API iterates over all the legacy tempates, composable templates, and component templates and removes the occurrences of the `include`, `required`, and `excludes` routing configuration for the configurated node attribute. eg. the following template ``` "test_timplate": { "order": 0, "index_patterns": [ "*" ], "settings": { "index": { "routing": { "allocation": { "require": { "data": "hot" } } }, "lifecycle": { "name" : "the_index_lifecycle_policy" } } }, "mappings": {}, "aliases": {} } ``` would be updated to ``` "test_timplate": { "order": 0, "index_patterns": [ "*" ], "settings": { "index": { "lifecycle": { "name" : "the_index_lifecycle_policy" } } }, "mappings": {}, "aliases": {} } ```
https://github.com/elastic/elasticsearch/issues/82170
https://github.com/elastic/elasticsearch/pull/82472
1f90840ba0c58d0d1dd8e2265906eeac7a309eb2
3087f164f7abf44ec405184550b7150a8c7bbc2d
2021-12-31T15:16:20Z
java
2022-01-13T10:45:10Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
82,169
["docs/reference/ilm/apis/migrate-to-data-tiers.asciidoc", "x-pack/plugin/ilm/qa/multi-node/src/javaRestTest/java/org/elasticsearch/xpack/MigrateToDataTiersIT.java", "x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/cluster/metadata/MetadataMigrateToDataTiersRoutingService.java", "x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm/action/TransportMigrateToDataTiersAction.java", "x-pack/plugin/ilm/src/test/java/org/elasticsearch/xpack/cluster/metadata/MetadataMigrateToDataTiersRoutingServiceTests.java"]
Migrate to data tiers routing dry run should not require ILM to be stopped
The migrate to data tiers routing [API](https://www.elastic.co/guide/en/elasticsearch/reference/7.16/ilm-migrate-to-data-tiers.html) has a `dry_run` option that is very useful in scoping what would the API change. Currently running the API with `dry_run=true` requires ILM to be stopped (just as a "live run" of the API). We should change this so the `dry_run` of the API is not expensive in terms of operations in order to be able to call the "live run" of the API only if the `dry_run` returns any entities that would be migrated.
https://github.com/elastic/elasticsearch/issues/82169
https://github.com/elastic/elasticsearch/pull/82226
d84b875698306877cdf1a3da0a89ffe2ef5413d0
f18c9c503ee9d8fd1f0da1ad1cd7eba510b75e35
2021-12-31T14:23:05Z
java
2022-01-05T13:40:27Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
82,151
["rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.allocation/10_basic.yml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.indices/10_basic.yml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.indices/20_hidden.yml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cat.shards/10_basic.yml"]
YAML test failure "cat.shards/10_basic/Test cat shards output"
**Build scan**: https://gradle-enterprise.elastic.co/s/cvatdzy4g77wu **Repro line**: `./gradlew ':rest-api-spec:yamlRestTest' --tests "org.elasticsearch.test.rest.ClientYamlTestSuiteIT" -Dtests.method="test {yaml=cat.shards/10_basic/Test cat shards output}" -Dtests.seed=1751BA43AF68208E -Dtests.locale=ar-IQ -Dtests.timezone=Asia/Chita -Druntime.java=17` **Reproduces locally?**: no **Applicable branches**: master **Failure history**: https://gradle-enterprise.elastic.co/scans/tests?search.relativeStartTime=P7D&search.timeZoneId=America/Chicago&tests.container=org.elasticsearch.test.rest.ClientYamlTestSuiteIT&tests.sortField=FAILED&tests.test=test%20%7Byaml%3Dcat.shards/10_basic/Test%20cat%20shards%20output%7D&tests.unstableOnly=true **Failure excerpt**: ``` Exception java.lang.AssertionError: Failure at [cat.shards/10_basic:95]: field [$body] was expected to match the provided regex but didn't Expected: ^$ but: was ".tasks 0 p STARTED 127.0.0.1 yamlRestTest-0\n" at __randomizedtesting.SeedInfo.seed([1751BA43AF68208E:9F05859901944D76]:0) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:489) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462) ••• Caused by: java.lang.AssertionError: field [$body] was expected to match the provided regex but didn't Expected: ^$ but: was ".tasks 0 p STARTED 127.0.0.1 yamlRestTest-0\n" at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) ••• at org.elasticsearch.test.rest.yaml.section.MatchAssertion.doAssert(MatchAssertion.java:64) at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:478) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462) ••• Output View rawDownload raw [2021-12-31T01:00:42,291][INFO ][o.e.t.r.ClientYamlTestSuiteIT] [test] [yaml=cat.shards/10_basic/Test cat shards output] before test [2021-12-31T01:00:42,317][INFO ][o.e.t.r.ClientYamlTestSuiteIT] [test] Stash dump on test failure [{ "stash" : { "body" : ".tasks 0 p STARTED 127.0.0.1 yamlRestTest-0 " } }] ```
https://github.com/elastic/elasticsearch/issues/82151
https://github.com/elastic/elasticsearch/pull/84539
8a1632235daa140f3904cfe46f8215537c75ded3
c4b1f18f32aa337253664d1295bc1b59233b3d44
2021-12-30T16:25:15Z
java
2022-03-24T19:08:51Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
82,107
["server/src/test/java/org/elasticsearch/common/logging/LoggersTests.java"]
LoggersTests incompatible with tests.iters
**Repro line**: ``` ./gradlew ':server:test' --tests "org.elasticsearch.common.logging.LoggersTests" -Dtests.iters=2 ``` **Reproduces locally?**: yes **Applicable branches**: master, more?
https://github.com/elastic/elasticsearch/issues/82107
https://github.com/elastic/elasticsearch/pull/85092
30bb7db9eba7b1f454e8e70f5b96f7be54220190
aff8fe3f892038247b6c7afd03b61e2ddd797a13
2021-12-28T18:03:33Z
java
2022-03-21T10:10:04Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
82,065
["x-pack/plugin/ilm/src/internalClusterTest/java/org/elasticsearch/xpack/ilm/IndexLifecycleInitialisationTests.java", "x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm/action/TransportPutLifecycleAction.java", "x-pack/plugin/ilm/src/test/java/org/elasticsearch/xpack/ilm/action/TransportPutLifecycleActionTests.java"]
Updating unchanged ILM policies is not idempotent.
**Elasticsearch version** (`bin/elasticsearch --version`): docker.elastic.co/elasticsearch/elasticsearch:7.16.2-amd64 **Plugins installed**: Whatever the docker container ships **JVM version** (`java -version`): Whatever the docker container ships **OS version** (`uname -a` if on a Unix-like system): Whatever the docker container ships **Description of the problem including expected versus actual behavior**: Updating an ILM policy always increases the version of the stored policy. @DaveCTurner suggested to open an issue here. I did not check if other operations (updating index templates and mappings) are idempotent or not. **Steps to reproduce**: 1. `docker run --rm -it -p 9200:9200 -e "discovery.type=single-node" -e "logger.org.elasticsearch=DEBUG" docker.elastic.co/elasticsearch/elasticsearch:7.16.2-amd64` 2. Execute: ``` curl -XPUT "http://localhost:9200/_ilm/policy/my_policy" -H 'Content-Type: application/json' -d'{ "policy" : { "phases" : { "warm" : { "min_age" : "10d", "actions" : { "forcemerge" : { "max_num_segments" : 1 } } }, "delete" : { "min_age" : "30d", "actions" : { "delete" : { "delete_searchable_snapshot" : true } } } } }}' ``` multiple times 3. Check the ILM version: `curl http://localhost:9200/_ilm/policy/my_policy` 4. The returned version is greater than 1 even though nothing changed **Provide logs (if relevant)**: ``` {"type": "server", "timestamp": "2021-12-23T13:49:21,187Z", "level": "DEBUG", "component": "o.e.c.s.MasterService", "cluster.name": "docker-cluster", "node.name": "bf70a0fe0f7e", "message": "executing cluster state update for [put-lifecycle-my_policy]", "cluster.uuid": "aXsX_Ks1QpiwA-BiYs8kDQ", "node.id": "AgZJParzQPy5L6a5EMU0Lw" } {"type": "server", "timestamp": "2021-12-23T13:49:21,188Z", "level": "INFO", "component": "o.e.x.i.a.TransportPutLifecycleAction", "cluster.name": "docker-cluster", "node.name": "bf70a0fe0f7e", "message": "updating index lifecycle policy [my_policy]", "cluster.uuid": "aXsX_Ks1QpiwA-BiYs8kDQ", "node.id": "AgZJParzQPy5L6a5EMU0Lw" } {"type": "server", "timestamp": "2021-12-23T13:49:21,189Z", "level": "DEBUG", "component": "o.e.x.c.i.PhaseCacheManagement", "cluster.name": "docker-cluster", "node.name": "bf70a0fe0f7e", "message": "policy [my_policy] is unchanged and no phase definition refresh is needed", "cluster.uuid": "aXsX_Ks1QpiwA-BiYs8kDQ", "node.id": "AgZJParzQPy5L6a5EMU0Lw" } {"type": "server", "timestamp": "2021-12-23T13:49:21,189Z", "level": "DEBUG", "component": "o.e.c.s.MasterService", "cluster.name": "docker-cluster", "node.name": "bf70a0fe0f7e", "message": "took [1ms] to compute cluster state update for [put-lifecycle-my_policy]", "cluster.uuid": "aXsX_Ks1QpiwA-BiYs8kDQ", "node.id": "AgZJParzQPy5L6a5EMU0Lw" } {"type": "server", "timestamp": "2021-12-23T13:49:21,189Z", "level": "DEBUG", "component": "o.e.c.s.MasterService", "cluster.name": "docker-cluster", "node.name": "bf70a0fe0f7e", "message": "cluster state updated, version [65], source [put-lifecycle-my_policy]", "cluster.uuid": "aXsX_Ks1QpiwA-BiYs8kDQ", "node.id": "AgZJParzQPy5L6a5EMU0Lw" } ```
https://github.com/elastic/elasticsearch/issues/82065
https://github.com/elastic/elasticsearch/pull/82240
c937a099af86708aa91f9536426e684dc7b95749
c8afd3adbcd653b862aa216e913b9511e97dba6a
2021-12-23T13:53:57Z
java
2022-01-05T23:34:29Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
82,059
["server/src/main/java/org/elasticsearch/indices/cluster/IndicesClusterStateService.java"]
[CI] BasicDistributedJobsIT testFailOverBasics_withDataFeeder failing
**Build scan:** https://gradle-enterprise.elastic.co/s/ahbd2x6onqf7o/tests/:x-pack:plugin:ml:internalClusterTest/org.elasticsearch.xpack.ml.integration.BasicDistributedJobsIT/testFailOverBasics_withDataFeeder **Reproduction line:** `./gradlew ':x-pack:plugin:ml:internalClusterTest' --tests "org.elasticsearch.xpack.ml.integration.BasicDistributedJobsIT.testFailOverBasics_withDataFeeder" -Dtests.seed=9E164F100A38775F -Dtests.locale=ar-KW -Dtests.timezone=US/Michigan -Druntime.java=17` **Applicable branches:** master **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.ml.integration.BasicDistributedJobsIT&tests.test=testFailOverBasics_withDataFeeder **Failure excerpt:** ``` java.lang.AssertionError: unexpected at org.elasticsearch.test.InternalTestCluster.removeExclusions(InternalTestCluster.java:1903) at org.elasticsearch.test.InternalTestCluster.stopNodesAndClients(InternalTestCluster.java:1775) at org.elasticsearch.test.InternalTestCluster.stopNodesAndClient(InternalTestCluster.java:1762) at org.elasticsearch.test.InternalTestCluster.stopRandomDataNode(InternalTestCluster.java:1634) at org.elasticsearch.xpack.ml.integration.BasicDistributedJobsIT.testFailOverBasics_withDataFeeder(BasicDistributedJobsIT.java:142) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) Caused by: java.util.concurrent.ExecutionException: org.elasticsearch.ElasticsearchTimeoutException: timed out waiting for removal of nodes; if nodes should not be removed, set waitForRemoval to false. [{node_t0}{IOp-GFUyRKOWJXN2jJ4Gpw}] 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.test.InternalTestCluster.removeExclusions(InternalTestCluster.java:1901) at org.elasticsearch.test.InternalTestCluster.stopNodesAndClients(InternalTestCluster.java:1775) at org.elasticsearch.test.InternalTestCluster.stopNodesAndClient(InternalTestCluster.java:1762) at org.elasticsearch.test.InternalTestCluster.stopRandomDataNode(InternalTestCluster.java:1634) at org.elasticsearch.xpack.ml.integration.BasicDistributedJobsIT.testFailOverBasics_withDataFeeder(BasicDistributedJobsIT.java:142) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) Caused by: org.elasticsearch.ElasticsearchTimeoutException: timed out waiting for removal of nodes; if nodes should not be removed, set waitForRemoval to false. [{node_t0}{IOp-GFUyRKOWJXN2jJ4Gpw}] at org.elasticsearch.action.admin.cluster.configuration.TransportClearVotingConfigExclusionsAction$1.onTimeout(TransportClearVotingConfigExclusionsAction.java:114) at org.elasticsearch.cluster.ClusterStateObserver$ContextPreservingListener.onTimeout(ClusterStateObserver.java:345) at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:263) at org.elasticsearch.cluster.service.ClusterApplierService$NotifyTimeout.run(ClusterApplierService.java:651) at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:716) 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/82059
https://github.com/elastic/elasticsearch/pull/82056
62368ae1fd8e061e0976ce430e3a6853e4afc0e8
e97b4d50914e771e0c084c858fc0a1abd8e37b34
2021-12-23T11:39:52Z
java
2021-12-23T11:45:05Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
82,044
["x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/accesscontrol/FieldSubsetReader.java", "x-pack/plugin/searchable-snapshots/qa/rest/src/yamlRestTest/resources/rest-api-spec/test/field_level_security.yml"]
Document Field Level Security on Frozen Tier not working correctly
**Elasticsearch version** (`bin/elasticsearch --version`): 7.16.2 (running inside Elastic Cloud) **Plugins installed**: [] **JVM version** (`java -version`): n/a (Elastic Cloud) **OS version** (`uname -a` if on a Unix-like system): n/a (Elastic Cloud) **Description of the problem including expected versus actual behavior**: I seem to be running into an issue where Field Level Security throws a null exception when operating on frozen indices. I have a simple ILM policy for my index that moves data from Hot to Frozen after 12 hours. Within that data set, I would like to grant access to all fields except for a few specific ones that I would like to remain internal only. If I create a new user and grant them a custom role with field level security (allowing and denying specific fields), that user cannot search for anything beyond my hot data tier without getting the following exception back ``` "reason": "unsupported_operation_exception: null" ``` Within the data access role, If I disable `Grant access to specific fields`, the user can see and return results from the frozen tier. I will note that in my current environment, this role also is using a `Grant read privileges to specific documents` templated query, however that does not seem to have an impact on this issue. I have tried to produce a working example below that does not involve that privilege. **Steps to reproduce**: 1. Create a simple ILM policy that rolls data out of a hot index and into a frozen index 2. Index data into your ILM managed index so that you have both hot data AND frozen data within your cluster. If my ILM index alias was called `pulse`, my underlying indices are `pulse-0001`, `pulse-0002`, etc and the frozen indices look like `partial-pulse-0001`, `partial-pulse-0002`... etc 3. Create a new role that grants read access to you your desired indices, like below (I am using Kibana): <img width="1399" alt="Screen Shot 2021-12-22 at 1 24 46 PM" src="https://user-images.githubusercontent.com/3504194/147138332-7718ada6-0d8d-4775-b3a3-0311738e9706.png"> 4. Create a new user, and assign them typical access to a kibana space and grant them the data role from step 3 5. In a new private browser, log in as your new user and validate they have access to your frozen tier data and hot tier data, by viewing the Discover panel and looking at a timerange that spans hot and frozen tiers. (24 hrs in my case, see below as an example) <img width="1480" alt="Screen Shot 2021-12-22 at 1 29 14 PM" src="https://user-images.githubusercontent.com/3504194/147138759-6dd4c7d2-09a6-4078-967d-0829b4978c16.png"> 6. Go back to the role you created as an admin, and check the box `Grant access to specific fields`. Deny a field in your data (see below as an example) <img width="1193" alt="Screen Shot 2021-12-22 at 1 30 29 PM" src="https://user-images.githubusercontent.com/3504194/147138977-da783c36-626e-49bb-9295-35872e000412.png"> 7. Back as your new user, refresh the page to see shard exceptions being thrown for all your frozen indices (even though my time range is still set to 24 hours, I get exceptions for my entire frozen tier) <img width="1485" alt="Screen Shot 2021-12-22 at 1 31 46 PM" src="https://user-images.githubusercontent.com/3504194/147139213-4c47a230-47f7-4346-9414-03b32d4f497c.png"> Note in the screenshot above that my data is cut off arbitrarily, right near my frozen tier rollover line from my ILM policy 8. Investigate the exception further and you get the following <img width="861" alt="image" src="https://user-images.githubusercontent.com/3504194/147139308-6ab996fc-bdb1-467a-9250-061463e55a64.png"> 9. Clicking the tab for "Request" shows very normal request, and the "Response" tab looks like below: <img width="758" alt="Screen Shot 2021-12-22 at 1 35 18 PM" src="https://user-images.githubusercontent.com/3504194/147139434-383d6cec-7bbc-4081-9e72-8c9a1315740e.png"> 10. From the command line, I can search the cluster easily if I use a simple count search on a hot tier index ``` curl https://user:[email protected]:9243/pulse-000252/_count # returns {"count":<real number here>,"_shards":{"total":1,"successful":1,"skipped":0,"failed":0}} ``` But if I try to do an operation on the whole alias that includes frozen shards, I get shard exceptions. ``` curl https://user:[email protected]:9243/pulse/_count # returns {"count":<partial number here>,"_shards":{"total":248,"successful":14,"skipped":0,"failed":234,"failures":[{"shard":0,"index":"partial-pulse-000015","node":"XCRMYhdLR3KHuHxm74vlCg","reason":{"type":"unsupported_operation_exception","reason":"unsupported_operation_exception: null"}},{"shard":0,"index":"partial-pulse-000016","node":"9SNaA5L9TCqZ8l0BA39c1Q","reason":{"type":"unsupported_operation_exception","reason":"unsupported_operation_exception: null"}},{"shard":0,"index":"partial-pulse-000017","node":"XCRMYhdLR3KHuHxm74vlCg","reason":{"type":"unsupported_operation_exception","reason":"unsupported_operation_exception: null"}},..... ``` 11. For sanity you can go back to your role configuration and uncheck "Grant access to specific fields" and run that _count command again: ``` curl https://user:[email protected]:9243/pulse/_count {"count":<real number here>,"_shards":{"total":248,"successful":248,"skipped":0,"failed":0}} ``` and it works. I have also tried combing through the built in [roles](https://www.elastic.co/guide/en/elasticsearch/reference/7.16/built-in-roles.html) for Elastic, as well as the built in [index priviledges](https://www.elastic.co/guide/en/elasticsearch/reference/7.16/security-privileges.html#privileges-list-indices) to see if there was anything related to the frozen tier specifically that causes this behavior, without much luck. **Provide logs (if relevant)**: I have tried to comb the logs inside of Elastic Cloud but the UI does not seem to be surfacing this exception where I can find it.
https://github.com/elastic/elasticsearch/issues/82044
https://github.com/elastic/elasticsearch/pull/82521
d07d27ec1df0a7dc1967280ae70709997719271f
8a7388cfaa67334fcb4dd6980e1403b8d91b9b9b
2021-12-22T18:58:59Z
java
2022-01-13T16:50:52Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
82,019
["docs/reference/snapshot-restore/apis/restore-snapshot-api.asciidoc", "server/src/internalClusterTest/java/org/elasticsearch/snapshots/SnapshotCustomPluginStateIT.java", "server/src/internalClusterTest/java/org/elasticsearch/snapshots/SystemIndicesSnapshotIT.java", "server/src/main/java/org/elasticsearch/snapshots/RestoreService.java", "server/src/test/java/org/elasticsearch/snapshots/RestoreServiceTests.java", "x-pack/plugin/data-streams/src/internalClusterTest/java/org/elasticsearch/datastreams/DataStreamsSnapshotsIT.java", "x-pack/plugin/ilm/qa/multi-node/src/javaRestTest/java/org/elasticsearch/xpack/ilm/actions/SearchableSnapshotActionIT.java"]
Fail with error when restoring global state from a snapshot that does not have one
Currently elasticsearch allow to restore a global state from a snapshot that does not have one. This silently succeed without changing anything. Once https://github.com/elastic/elasticsearch/issues/81247 is fixed this could result in nullifying entire cluster state. **Elasticsearch version** (`bin/elasticsearch --version`): 8.x and likely earlier **Description of the problem including expected versus actual behavior**: **Steps to reproduce**: * create a cluster with a snapshot repository * create a snapshot with `"include_global_state": false` * restore the snapshot with `"include_global_state": true` Elasticsearch should return an error in such case, but currently silently succeed without changing the global state.
https://github.com/elastic/elasticsearch/issues/82019
https://github.com/elastic/elasticsearch/pull/82037
97a546ef674b6c727796e92ea91028aaa0256a52
e7d89910c2e6e1ae0d51e812d92cb603402c0f7d
2021-12-22T10:39:15Z
java
2022-01-17T14:33:19Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,999
["distribution/docker/build.gradle", "distribution/docker/src/docker/Dockerfile", "qa/os/src/test/java/org/elasticsearch/packaging/test/EnrollmentProcessTests.java", "qa/os/src/test/java/org/elasticsearch/packaging/util/Installation.java", "qa/os/src/test/java/org/elasticsearch/packaging/util/ServerUtils.java", "qa/os/src/test/java/org/elasticsearch/packaging/util/docker/Docker.java"]
[CI] EnrollmentProcessTests test20DockerAutoFormCluster failing
Recent failures all seem to be on `centos:8`, in case that's relevant. **Build scan:** https://gradle-enterprise.elastic.co/s/4pufysfkxptsa/tests/:qa:os:destructiveDistroTest.default-docker/org.elasticsearch.packaging.test.EnrollmentProcessTests/test20DockerAutoFormCluster **Reproduction line:** `null` **Applicable branches:** master **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.packaging.test.EnrollmentProcessTests&tests.test=test20DockerAutoFormCluster **Failure excerpt:** ``` org.elasticsearch.packaging.util.Shell$ShellException: Command was not successful: [bash -c docker exec --tty 30c11c84a6a5a102a9ff93c74104e517729bfd10500153eec57de16c426cf305 "/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token" -s node] result: exitCode = [69] stdout = [WARNING: Owner of file [/usr/share/elasticsearch/config/users] used to be [root], but now is [elasticsearch] WARNING: Owner of file [/usr/share/elasticsearch/config/users_roles] used to be [root], but now is [elasticsearch] ERROR: Failed to determine the health of the cluster.] stderr = [] at __randomizedtesting.SeedInfo.seed([4BA666E236538CA1:BA9CF85FAB75DDE6]:0) at org.elasticsearch.packaging.util.Shell.runScript(Shell.java:143) at org.elasticsearch.packaging.util.Shell.run(Shell.java:73) at org.elasticsearch.packaging.util.docker.DockerShell.run(DockerShell.java:49) at org.elasticsearch.packaging.util.Installation$Executable.run(Installation.java:194) at org.elasticsearch.packaging.util.Installation$Executable.run(Installation.java:174) at org.elasticsearch.packaging.util.Installation$Executable.run(Installation.java:170) at org.elasticsearch.packaging.test.EnrollmentProcessTests.test20DockerAutoFormCluster(EnrollmentProcessTests.java:99) 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.TestWatcher$1.evaluate(TestWatcher.java:55) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) 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/81999
https://github.com/elastic/elasticsearch/pull/82563
631f50220629261faa981455bf434069d14d0482
a5afbcd05f4a29964a6d1ecb5e203cc0e4abc044
2021-12-21T15:35:10Z
java
2022-01-13T21:21:59Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,997
["modules/reindex/src/javaRestTest/java/org/elasticsearch/index/reindex/remote/ReindexFromOldRemoteIT.java"]
[CI] ReindexFromOldRemoteIT testEs1 failing
**Build scan:** https://gradle-enterprise.elastic.co/s/aijz5ik72tqqm/tests/:modules:reindex:javaRestTest/org.elasticsearch.index.reindex.remote.ReindexFromOldRemoteIT/testEs1 **Reproduction line:** `./gradlew ':modules:reindex:javaRestTest' --tests "org.elasticsearch.index.reindex.remote.ReindexFromOldRemoteIT.testEs1" -Dtests.seed=63785BD804AADAA4 -Dtests.locale=es-BO -Dtests.timezone=America/Jujuy -Druntime.java=17` **Applicable branches:** master **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.index.reindex.remote.ReindexFromOldRemoteIT&tests.test=testEs1 **Failure excerpt:** ``` org.elasticsearch.client.ResponseException: method [DELETE], host [http://127.0.0.1:53776], URI [/test], status line [HTTP/1.1 404 Not Found] {"error":"IndexMissingException[[test] missing]","status":404} at __randomizedtesting.SeedInfo.seed([63785BD804AADAA4:24C8D0D825E2B1E5]:0) at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:335) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:301) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:276) at org.elasticsearch.index.reindex.remote.ReindexFromOldRemoteIT.oldEsTestCase(ReindexFromOldRemoteIT.java:96) at org.elasticsearch.index.reindex.remote.ReindexFromOldRemoteIT.testEs1(ReindexFromOldRemoteIT.java:106) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/81997
https://github.com/elastic/elasticsearch/pull/85425
edde85066b763b5555ab8e6153248666ab5687fe
2c97e6429e9e8415dee00a154151d7e27fbc6122
2021-12-21T14:50:32Z
java
2022-04-01T18:44:14Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,983
["x-pack/plugin/rollup/src/main/java/org/elasticsearch/xpack/rollup/job/RollupJobTask.java", "x-pack/plugin/rollup/src/test/java/org/elasticsearch/xpack/rollup/job/RollupIndexerIndexingTests.java", "x-pack/plugin/rollup/src/test/java/org/elasticsearch/xpack/rollup/job/RollupIndexerStateTests.java", "x-pack/plugin/rollup/src/test/java/org/elasticsearch/xpack/rollup/job/RollupJobTaskTests.java"]
[CI] XPackRestIT test {p0=rollup/security_tests/Index-based access} failing
**Build scan:** https://gradle-enterprise.elastic.co/s/xpw2rkkkk3pou/tests/:x-pack:plugin:yamlRestTest/org.elasticsearch.xpack.test.rest.XPackRestIT/test%20%7Bp0=rollup%2Fsecurity_tests%2FIndex-based%20access%7D **Reproduction line:** `./gradlew ':x-pack:plugin:yamlRestTest' --tests "org.elasticsearch.xpack.test.rest.XPackRestIT.test {p0=rollup/security_tests/Index-based access}" -Dtests.seed=852F23C0292A926E -Dtests.locale=en-NZ -Dtests.timezone=Africa/Blantyre -Druntime.java=17` **Applicable branches:** master **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%3Drollup/security_tests/Index-based%20access%7D **Failure excerpt:** ``` java.lang.AssertionError: Failure at [rollup/security_tests:164]: Expected: <1> but: was <0> at __randomizedtesting.SeedInfo.seed([852F23C0292A926E:D7B1C1A87D6FF96]:0) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:489) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462) at jdk.internal.reflect.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.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) Caused by: java.lang.AssertionError: Expected: <1> but: was <0> at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.junit.Assert.assertThat(Assert.java:923) at org.elasticsearch.test.rest.yaml.section.MatchAssertion.doAssert(MatchAssertion.java:99) at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:478) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462) 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.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/81983
https://github.com/elastic/elasticsearch/pull/86992
d1bb8f4b1d63bf2d269085f4411deb5c2358618d
6aca35c68197dca04d1c97c6b85b542a97abc42d
2021-12-21T11:15:08Z
java
2022-07-06T08:33:23Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,981
["docs/changelog/82132.yaml", "server/build.gradle", "server/src/main/java/org/elasticsearch/index/engine/LazySoftDeletesDirectoryReaderWrapper.java", "server/src/main/java/org/elasticsearch/index/engine/ReadOnlyEngine.java", "server/src/test/java/org/elasticsearch/lucene/index/LazySoftDeletesDirectoryReaderWrapperTests.java", "test/framework/src/main/java/org/elasticsearch/index/engine/EngineTestCase.java"]
Fix split package LazySoftDeletesDirectoryReaderWrapper
The last split package issue that we have between server and lucene is LazySoftDeletesDirectoryReaderWrapper. This was added early in 2021, so not one of the legacy hangovers from years gone by. By inspecting the code, the three package-private member dependencies in `org.apache.lucene.index` become clear: 1. access to field SegmentReader.isNRT, 2. CacheKey::new, and 3. PendingSoftDeletes::applySoftDeletes. First, LazySoftDeletesDirectoryReaderWrapper is only useful for read-only indices that are lazily loaded (a.k.a. frozen tier), so it is doubtful that Lucene would find it generally useful. A note on each of the specific package-private API points: 1. Access to field SegmentReader.isNRT is only for assertion code, and exposing an accessor from Lucene for this seems like it could be reasonable. 2. The CacheKey constructor is deliberately non-accessible from outside the package. There were past issues where problems arose with short-lived reader wrappers that would not reuse caches across queries. Maybe there's a way to make DelegatingCacheHelper only work with a DirectoryReader, since directory readers would generally not be short-lived. Or otherwise exposing DelegatingCacheHelper as a more generally useful API in Lucene itself. 3. For PendingSoftDeletes::applySoftDeletes one possibility is to just duplicate the code in ES. There are additional package-private issues when this is attempted, but maybe they are more straightforward to resolve. [ the above notes are a summary of a discussion that included @romseygeek @jpountz, and @ywelsch ] see #78166
https://github.com/elastic/elasticsearch/issues/81981
https://github.com/elastic/elasticsearch/pull/82132
223c2e45b90a32981a4c034348c1b606cd16059e
487077cc056b4c7ff3f47ba1635d2df18c01fe4b
2021-12-21T10:50:20Z
java
2022-03-07T14:22:21Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,978
["docs/reference/query-dsl/regexp-syntax.asciidoc"]
RegExp optional operations documentation fails to mention `NONE`
<!-- GitHub is reserved for bug reports and feature requests; it is not the place for general questions. If you have a question or an unconfirmed bug , please visit the [forums](https://discuss.elastic.co/c/elasticsearch). Please also check your OS is [supported](https://www.elastic.co/support/matrix#show_os). If it is not, the issue is likely to be closed. For security vulnerabilities please only send reports to [email protected]. See https://www.elastic.co/community/security for more information. Please fill in the following details to help us reproduce the bug: --> **Elasticsearch version** (`bin/elasticsearch --version`): 7.16 See documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/regexp-syntax.html#regexp-optional-operators. It should specify the `NONE` option for disabling all the flags. Also, the implementations accepts `flags: ""` as a value which apparently maps to `ALL` (which I find quite illogical). I think `""` should either give an exception or maybe mean `NONE`.
https://github.com/elastic/elasticsearch/issues/81978
https://github.com/elastic/elasticsearch/pull/82265
1cbc10a17f7226aca690c9844709e2d4f1d162e9
e53ecc3f430a534eedfb8a819043311c7f47b4ae
2021-12-21T10:05:55Z
java
2022-01-18T19:15:29Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,949
["server/src/main/java/org/elasticsearch/index/store/Store.java", "x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/store/input/BaseSearchableSnapshotIndexInput.java"]
[CI] FrozenSearchableSnapshotsIntegTests testCreateAndRestorePartialSearchableSnapshot failing
Happened in a Windows build - not sure if this is just slowness on the Windows worker or something more serious. **Build scan:** https://gradle-enterprise.elastic.co/s/xe3ov3qvjhque/tests/:x-pack:plugin:searchable-snapshots:internalClusterTest/org.elasticsearch.xpack.searchablesnapshots.FrozenSearchableSnapshotsIntegTests/testCreateAndRestorePartialSearchableSnapshot **Reproduction line:** `gradlew ':x-pack:plugin:searchable-snapshots:internalClusterTest' --tests "org.elasticsearch.xpack.searchablesnapshots.FrozenSearchableSnapshotsIntegTests.testCreateAndRestorePartialSearchableSnapshot" -Dtests.seed=83DAAD1A771DAD8D -Dtests.locale=ja-JP-u-ca-japanese-x-lvariant-JP -Dtests.timezone=Canada/Yukon -Druntime.java=8` **Applicable branches:** 7.17 **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.searchablesnapshots.FrozenSearchableSnapshotsIntegTests&tests.test=testCreateAndRestorePartialSearchableSnapshot **Failure excerpt:** ``` java.lang.AssertionError: Shard [syxjwhutbk][5] is still locked after 5 sec waiting at __randomizedtesting.SeedInfo.seed([83DAAD1A771DAD8D:F75D6CCB4A7A836F]:0) at org.junit.Assert.fail(Assert.java:88) at org.elasticsearch.test.InternalTestCluster.assertAfterTest(InternalTestCluster.java:2751) at org.elasticsearch.test.ESIntegTestCase.afterInternal(ESIntegTestCase.java:622) at org.elasticsearch.test.ESIntegTestCase.cleanUpCluster(ESIntegTestCase.java:2396) at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1750) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:49) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:48) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:368) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:817) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:468) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:947) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:832) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:883) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:894) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:41) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:54) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:368) at java.lang.Thread.run(Thread.java:748) ```
https://github.com/elastic/elasticsearch/issues/81949
https://github.com/elastic/elasticsearch/pull/82249
332e6d48c430f7f569a9f041814efbf44140d7a0
be4ff31a250eb8944a55914b5d07d32f54d80b14
2021-12-20T16:25:09Z
java
2022-01-05T11:19:41Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,943
["x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/AllocateAction.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/AllocateActionTests.java", "x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/cluster/metadata/MetadataMigrateToDataTiersRoutingService.java", "x-pack/plugin/ilm/src/test/java/org/elasticsearch/xpack/cluster/metadata/MetadataMigrateToDataTiersRoutingServiceTests.java"]
ILM: cannot specify only `total_shards_per_node` in the allocate action
**Elasticsearch version** (`bin/elasticsearch --version`): 7.16, 8.0, 8.1 **Description of the problem including expected versus actual behavior**: Defining an allocate action that only specifies the `total_shards_per_node` option fails with ``` "caused_by": { "type": "illegal_argument_exception", "reason": "At least one of include, exclude or requiremust contain attributes for action allocate" } ``` **Steps to reproduce**: ``` PUT _ilm/policy/testpolicy { "policy": { "phases": { "warm" : { "actions": { "allocate": { "total_shards_per_node": 1 } } } } } } ```
https://github.com/elastic/elasticsearch/issues/81943
https://github.com/elastic/elasticsearch/pull/81944
a17e0786fe4cf1d56f6fe576cea4bfb9eddb02e3
c813bd995de6c960c2b8000e9909128ea7997f3a
2021-12-20T16:14:04Z
java
2022-01-04T11:55:03Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,939
["docs/changelog/83943.yaml", "x-pack/plugin/sql/qa/jdbc/security/src/test/java/org/elasticsearch/xpack/sql/qa/jdbc/security/JdbcWarningsIT.java", "x-pack/plugin/sql/qa/jdbc/single-node/src/test/java/org/elasticsearch/xpack/sql/qa/jdbc/single_node/JdbcWarningsIT.java", "x-pack/plugin/sql/qa/jdbc/src/main/java/org/elasticsearch/xpack/sql/qa/jdbc/JdbcWarningsTestCase.java", "x-pack/plugin/sql/qa/server/single-node/src/test/java/org/elasticsearch/xpack/sql/qa/single_node/RestSqlDeprecationIT.java", "x-pack/plugin/sql/qa/server/src/main/java/org/elasticsearch/xpack/sql/qa/rest/BaseRestSqlTestCase.java", "x-pack/plugin/sql/sql-action/src/main/java/org/elasticsearch/xpack/sql/action/SqlQueryRequest.java", "x-pack/plugin/sql/sql-action/src/test/java/org/elasticsearch/xpack/sql/action/SqlQueryRequestTests.java", "x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/parser/CommandBuilder.java", "x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/parser/LogicalPlanBuilder.java"]
SQL: Deprecation warning when querying a frozen index or listing frozen indices
Frozen indices are deprecated which makes all the [SQL features supporting frozen indices](https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-index-frozen.html) obsolete. This includes: * `index_include_frozen` request parameter in the `_sql` endpoint * `index.include.frozen` (J|O)DBC driver settings * `SHOW TABLES INCLUDE FROZEN` queries and the `FROZEN INDEX` kind in the corresponding response * The `FROZEN` modifier in `FROM` clauses (as in `SELECT * FROM FROZEN archive`) `_search` raises a deprecation warning when frozen indices are being searched with `ignore_throttled=false`. SQL could do the same when the `index_include_frozen` request parameter is set or when the `FROZEN` keyword is used. Relates to https://github.com/elastic/elasticsearch/issues/70192
https://github.com/elastic/elasticsearch/issues/81939
https://github.com/elastic/elasticsearch/pull/83943
da0d33fded35d6b8c4893516f41610aa494a3ad8
7900a0bdaacccb8b5501ad21cf1fe3c8589f59de
2021-12-20T15:57:09Z
java
2022-02-23T13:42:55Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,933
["x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/inference/preprocessing/CustomWordEmbedding.java", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/inference/trainedmodel/langident/LangIdentNeuralNetwork.java", "x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/inference/trainedmodels/langident/LangIdentNeuralNetworkInferenceTests.java"]
[ML] What to do about lang_ident for empty strings and numbers?
It's been [pointed out](https://discuss.elastic.co/t/default-language-for-language-detection/292470) that the lang_ident inference processor returns Japanese as the language for empty strings and numbers. For example: ``` { "doc" : { "_index" : "_index", "_id" : "_id", "_source" : { "contents" : "", "_ml" : { "lang_ident" : { "prediction_score" : 0.7837568024575047, "model_id" : "lang_ident_model_1", "top_classes" : [ { "class_name" : "ja", "class_probability" : 0.7837568024575047, "class_score" : 0.7837568024575047 }, { "class_name" : "ko", "class_probability" : 0.14699680203424537, "class_score" : 0.14699680203424537 }, { "class_name" : "sr", "class_probability" : 0.04528638971813643, "class_score" : 0.04528638971813643 } ], "prediction_probability" : 0.7837568024575047, "predicted_value" : "ja" } } }, "_ingest" : { "timestamp" : "2021-12-20T14:46:31.19367Z" } } ``` Since we have nothing to go on in these cases, a configurable default is probably the best we can do. Alternatively we could treat the absence of any character in any alphabet as an error, and use the failure handler functionality of ingest processors to allow the user to supply the alternative processors to use in this case (which could just be a set processor to apply a default). Or maybe there's an even better solution. But we shouldn't just predict Japanese in this situation.
https://github.com/elastic/elasticsearch/issues/81933
https://github.com/elastic/elasticsearch/pull/82746
e47b7a63f48e1dc58b972fda2007f705b6f5cf13
2c925c3363767c04146496d4d3e328cf3bc52e90
2021-12-20T14:57:14Z
java
2022-01-19T14:02:20Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,921
["x-pack/plugin/ilm/qa/multi-node/src/javaRestTest/java/org/elasticsearch/xpack/ilm/TimeSeriesLifecycleActionsIT.java", "x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm/IndexLifecycleTransition.java", "x-pack/plugin/ilm/src/test/java/org/elasticsearch/xpack/ilm/IndexLifecycleTransitionTests.java"]
ILM: Retrying a failed step refreshes the cached ILM phase
**Elasticsearch version** (`bin/elasticsearch --version`): 7.x and 8.x **Description of the problem including expected versus actual behaviour**: When ILM retries a step (moving from the ERROR step back to the failed_step) we [refresh the ILM cached phase](https://github.com/elastic/elasticsearch/blob/master/x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm/IndexLifecycleTransition.java#L254). This makes sense if a policy is changed for example (eg. correcting the configured ILM policy for an index to a new one) however, in case the `failed_step` doesn't exist anymore in the policy (say the policy was updated and the current action was removed), refreshing the cached phase will block ILM from making progress, with a message along the lines of ``` current step [{"phase":"warm","action":"shrink","name":"shrink"}] for index [my-index] with policy [my-policy] is not recognized ``` I believe we should try and check if the `failed_step` is still part of the configured policy before refreshing the cached phase, and if that's not the case, skip re-freshing the cached phase and have ILM honour it.
https://github.com/elastic/elasticsearch/issues/81921
https://github.com/elastic/elasticsearch/pull/82613
0b66c14b7e0682fbaf691e6f986a29f1b29c6381
e456eb7f9f89a68929551510ac4f1d50f4f96ea2
2021-12-20T11:24:34Z
java
2022-01-17T11:46:04Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,891
["server/src/main/java/org/elasticsearch/common/geo/SimpleFeatureFactory.java", "server/src/test/java/org/elasticsearch/common/geo/SimpleFeatureFactoryTests.java", "x-pack/plugin/vector-tile/src/javaRestTest/java/org/elasticsearch/xpack/vectortile/VectorTileRestIT.java", "x-pack/plugin/vector-tile/src/main/java/org/elasticsearch/xpack/vectortile/feature/FeatureFactory.java", "x-pack/plugin/vector-tile/src/test/java/org/elasticsearch/xpack/vectortile/feature/FeatureFactoriesConsistencyTests.java"]
MVT API: meta-layer bounding box with 0 width or height seems malformed
**Elasticsearch version** (`bin/elasticsearch --version`): 8.0/1 **Description of the problem including expected versus actual behavior**: When using the MVT-API, and setting `exact_bounds` to true, the meta-layer seems to have a malformed bounding-box geometry when the width or height of the bounds is 0. Bounds with 0 width or height occurs often when the tile only contains a single point (or multiple points sharing the same longitude or latitude). The geometry from the meta-layer cannot be parsed by a client-side library @mapbox/vector-tile (used in MapLibre), leading us to think the geometry is malformed (?) **Steps to reproduce**: 1. Create index with point ``` PUT my-index-000001 { "mappings": { "properties": { "location": { "type": "geo_point" } } } } PUT my-index-000001/_doc/1 { "text": "Geopoint as an object", "location": { "lat": 41.12, "lon": -71.34 } } ``` 2. Request a tile ``` POST my-index-000001/_mvt/location/0/0/0 { "exact_bounds": true } ``` -> the tile is produced, but the geometry from the `META` layer is not usable. Parsing with @mapbox/vector-tile (https://www.npmjs.com/package/@mapbox/vector-tile) causes failures. It seems somewhere a command-id of `4` is inserted in the geometry-buffer-array. The only allowed commands are 1 (moveTo), 2 (lineTo), or 7 (closePath). (from https://github.com/mapbox/vector-tile-spec/tree/master/2.1) cc @iverase
https://github.com/elastic/elasticsearch/issues/81891
https://github.com/elastic/elasticsearch/pull/82404
31adaf24e89c58e61293aa8ee12007c505c8eb15
de2781f98696c1e6cfad2b5bf46fe752a5e3edbb
2021-12-17T20:32:54Z
java
2022-01-13T09:04:27Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,880
["docs/changelog/85565.yaml", "x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm/IndexLifecycleRunner.java", "x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm/MoveToErrorStepUpdateTask.java", "x-pack/plugin/ilm/src/test/java/org/elasticsearch/xpack/ilm/MoveToErrorStepUpdateTaskTests.java"]
Batch up failure-related ILM master tasks
In https://github.com/elastic/elasticsearch/pull/78547 we introduced batching for the ILM master tasks that occur on the happy path. However if a high-shard-count cluster encounters problems while doing ILM-related things—perhaps some nodes are temporarily unavailable for taking a snapshot—then we process the resulting `ilm-retry-failed-step` and `ilm-move-to-error-step` tasks one-by-one which can significantly delay the cluster's recovery from its problems. We should batch these things together too. It looks like we also enqueue duplicate `ilm-retry-failed-step` on each poll interval too, although we do appear to treat the duplicates as no-ops at execution time. Relates https://github.com/elastic/elasticsearch/issues/77466
https://github.com/elastic/elasticsearch/issues/81880
https://github.com/elastic/elasticsearch/pull/85565
52c52b996dc44aea8a0d47b8f2f53927f506e2b9
780b110cba98cd55e0144ba4120d41d223150592
2021-12-17T16:20:24Z
java
2022-04-01T04:54:01Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,865
["docs/changelog/82321.yaml", "server/src/internalClusterTest/java/org/elasticsearch/env/NodeEnvironmentIT.java", "server/src/main/java/org/elasticsearch/env/NodeMetadata.java", "server/src/test/java/org/elasticsearch/env/NodeMetadataTests.java", "x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/SecurityImplicitBehaviorBootstrapCheckTests.java"]
Unsupported upgrades from 7.nonlast to 8.x are still permitted
Upgrading to the next major version with a rolling restart requires upgrading to the last minor of the previous major first. However you could upgrade from 5.x to 6.x and from 6.x to 7.x via a full cluster restart without upgrading to 5.last (respectively 6.last) first. For 8.x we will impose the same restriction on both upgrade paths: they must always go via 7.last. This will ensure that folks are notified about all deprecations and other changes before starting the major upgrade. We should prevent users from inadvertently doing an unsupported upgrade from 7.15 or earlier to 8.x by bailing out if the on-disk node version is too old. It should be ok to let users explicitly bypass this restriction by running `elasticsearch-node override-version`, but we want this to be an explicit action with a disclaimer and an acknowledgement from the user, rather than something that just silently appears to work. /cc @skearns64 Relates #81862
https://github.com/elastic/elasticsearch/issues/81865
https://github.com/elastic/elasticsearch/pull/82321
dc27d1d37b232a6089b5ba8fd21c49df183c5a49
979e17aa3b7e4550b34b3b629af3ab72ff9f7ddf
2021-12-17T14:19:03Z
java
2022-01-14T15:40:31Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,830
["server/src/internalClusterTest/java/org/elasticsearch/snapshots/DedicatedClusterSnapshotRestoreIT.java", "test/framework/src/main/java/org/elasticsearch/test/InternalTestCluster.java"]
[CI] DanglingIndicesIT testDanglingIndexOverMultipleNodesCanBeDeleted failing
**Build scan:** https://gradle-enterprise.elastic.co/s/7jwubakkkutce/tests/:server:internalClusterTest/org.elasticsearch.indices.recovery.DanglingIndicesIT/testDanglingIndexOverMultipleNodesCanBeDeleted **Reproduction line:** `./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.indices.recovery.DanglingIndicesIT.testDanglingIndexOverMultipleNodesCanBeDeleted" -Dtests.seed=F281A9F9C88EDD58 -Dtests.locale=de -Dtests.timezone=CAT -Druntime.java=17` **Applicable branches:** master **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.indices.recovery.DanglingIndicesIT&tests.test=testDanglingIndexOverMultipleNodesCanBeDeleted **Failure excerpt:** ``` java.lang.AssertionError: AcknowledgedResponse failed - not acked Expected: <true> but: was <false> at __randomizedtesting.SeedInfo.seed([F281A9F9C88EDD58:40E80E0BB4AFD832]:0) at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked(ElasticsearchAssertions.java:101) at org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked(ElasticsearchAssertions.java:105) at org.elasticsearch.indices.recovery.DanglingIndicesIT$1$1.onNodeStopped(DanglingIndicesIT.java:218) at org.elasticsearch.test.InternalTestCluster$NodeAndClient.closeForRestart(InternalTestCluster.java:978) at org.elasticsearch.test.InternalTestCluster.restartNode(InternalTestCluster.java:1843) at org.elasticsearch.test.InternalTestCluster.restartRandomDataNode(InternalTestCluster.java:1792) at org.elasticsearch.indices.recovery.DanglingIndicesIT$1.onNodeStopped(DanglingIndicesIT.java:213) at org.elasticsearch.test.InternalTestCluster$NodeAndClient.closeForRestart(InternalTestCluster.java:978) at org.elasticsearch.test.InternalTestCluster.restartNode(InternalTestCluster.java:1843) at org.elasticsearch.test.InternalTestCluster.restartRandomDataNode(InternalTestCluster.java:1792) at org.elasticsearch.indices.recovery.DanglingIndicesIT.testDanglingIndexOverMultipleNodesCanBeDeleted(DanglingIndicesIT.java:209) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/81830
https://github.com/elastic/elasticsearch/pull/85454
6aaf0972a398a75a76e782dbdb71801d041f694c
a24e2912325e859f882f60b715066a30d4258656
2021-12-16T17:12:29Z
java
2022-05-06T19:24:22Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,807
["server/src/internalClusterTest/java/org/elasticsearch/timeseries/support/TimeSeriesMetricsIT.java"]
TimeSeriesMetricsIT.testLongDimension failure
**Build scan**: https://gradle-enterprise.elastic.co/s/xukd3j37xp24i **Repro line**: ``` gradlew ':server:internalClusterTest' --tests "org.elasticsearch.timeseries.support.TimeSeriesMetricsIT.testLongDimension" -Dtests.seed=4A1F56A5FD5F1AD6 -Dtests.locale=ar -Dtests.timezone=Etc/GMT-12 -Druntime.java=17 ``` **Reproduces locally?**: Yes **Applicable branches**: master **Failure excerpt**: ``` org.elasticsearch.timeseries.support.TimeSeriesMetricsIT > testLongDimension FAILED java.lang.AssertionError: Expected a map containing Tuple [v1=v, v2={dim=0}]: a list containing 0: <2021-01-01T00:11:00.000Z=2.0> 1: expected <2021-01-01T00:15:00.000Z=3.0> but was <2021-01-01T00:20:00.000Z=4.0> 2: expected <2021-01-01T00:20:00.000Z=4.0> but was <missing> Tuple [v1=v, v2={dim=1}]: a list containing 0: <2021-01-01T00:11:00.000Z=5.0> at __randomizedtesting.SeedInfo.seed([4A1F56A5FD5F1AD6:D10DDEE0E69E8D67]:0) at org.elasticsearch.test.MapMatcher.assertMap(MapMatcher.java:82) at org.elasticsearch.test.MapMatcher.assertMap(MapMatcher.java:65) at org.elasticsearch.timeseries.support.TimeSeriesMetricsIT.assertSmallSimple(TimeSeriesMetricsIT.java:118) at org.elasticsearch.timeseries.support.TimeSeriesMetricsIT.testLongDimension(TimeSeriesMetricsIT.java:67) ```
https://github.com/elastic/elasticsearch/issues/81807
https://github.com/elastic/elasticsearch/pull/82119
dddff27498b938d3da76d33dc2ae74d1f9868277
d9927f2c03a437646ee34c02df82220d02714216
2021-12-16T11:28:40Z
java
2021-12-29T15:57:19Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,786
["docs/reference/setup/install/.env", "docs/reference/setup/install/create-certs.yml", "docs/reference/setup/install/docker-compose.yml", "docs/reference/setup/install/docker.asciidoc", "docs/reference/setup/install/instances.yml"]
[DOCS] Update installing Elasticsearch with Docker Compose documentation
In the Stack docs, we're updating the Docker Compose configuration with a simpler setup that is a much-improved UX. When the related PR is merged, we should update the installation docs for [staring a multi-node cluster with Docker Compose](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/docker.html#docker-compose-file) to reflect those changes. Relates to https://github.com/elastic/stack-docs/pull/1906
https://github.com/elastic/elasticsearch/issues/81786
https://github.com/elastic/elasticsearch/pull/81835
350fe2d21f4c5dce876de9423beaaefb61ec7319
bf60ce68c653b76e42c2b6edd66a9d245d47a737
2021-12-15T20:35:41Z
java
2021-12-17T00:42:41Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,776
["x-pack/plugin/sql/sql-cli/build.gradle"]
Remove JndiLookup.class from the SQL command line tool
Elasticsearch ships with a [SQL CLI ](https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-cli.html) Client in its bin directory. This client tool is standalone (NOT part of the server), for running ad-hoc SQL interactions. The jar containing the client is not on the servers class path. As a client tool, it does NOT accept external user input from the network, in a way that a server would typically do. The jar containing the SQL CLI is a stand alone Java application, and can be run as such. Alternatively, the jar could also be used as a client. This issue has been filed to consider the possible removal of JndiLookup.class from the SQL CLI jar. The mere presence of the JndiLookup.class is not problematic here, but it looks interesting and could lead to confusion for scanners, e.g. ``` unzip -l build/distributions/elasticsearch-sql-cli-8.1.0-SNAPSHOT.jar | grep JndiLookup 2937 07-22-2018 20:45 org/apache/logging/log4j/core/lookup/JndiLookup.class ``` Alternatively, or additionally, upgrade the version of log4j that is bundled in the uber executable jar.
https://github.com/elastic/elasticsearch/issues/81776
https://github.com/elastic/elasticsearch/pull/81879
5f778fa2d8488202ba35d25b6409cdb36e48f7df
3d5337d8197742b7b28256685020af712d85fb2e
2021-12-15T19:28:02Z
java
2021-12-17T17:13:46Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,770
["x-pack/plugin/sql/qa/server/src/main/resources/select.csv-spec", "x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/analysis/analyzer/Analyzer.java", "x-pack/plugin/sql/src/test/java/org/elasticsearch/xpack/sql/analysis/analyzer/AnalyzerTests.java", "x-pack/plugin/sql/src/test/java/org/elasticsearch/xpack/sql/analysis/analyzer/VerifierErrorMessagesTests.java"]
SQL: Name resolution in filter is not consistent with resolution in projection
While looking into #81577 I saw that name resolution in filters does not behave the same way as resolving names in projections which can lead to subtle errors in some edge cases: E.g. the query `select gender emp_no, emp_no e from test_emp where e > 10099` yields the following result: ``` emp_no | e ---------------+--------------- M |10001 F |10002 M |10003 M |10004 M |10005 F |10006 F |10007 M |10008 F |10009 ... ``` The expected result would be equivalent to the result of `select gender emp_no, emp_no e from test_emp where emp_no > 10099`: ``` emp_no | e ---------------+--------------- F |10100 ``` Looking at the analyzed plan reveals that SQL resolves `e > 10099` in the `where` clause to `gender > 10099`. This is not consistent with the projection where `e` resolves to `emp_no`.
https://github.com/elastic/elasticsearch/issues/81770
https://github.com/elastic/elasticsearch/pull/81800
3550370c86cfdee60bb5ca991805437f0b87bccc
f1860c17ab4b9e2931a5d7482905fe5f1589239c
2021-12-15T16:43:43Z
java
2022-01-11T14:51:46Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,763
["docs/changelog/84584.yaml", "qa/smoke-test-http/src/test/java/org/elasticsearch/http/RolloverRestCancellationIT.java", "server/src/main/java/org/elasticsearch/action/admin/indices/rollover/RolloverRequest.java", "server/src/main/java/org/elasticsearch/action/admin/indices/rollover/TransportRolloverAction.java", "server/src/main/java/org/elasticsearch/rest/action/admin/indices/RestRolloverIndexAction.java", "server/src/test/java/org/elasticsearch/action/admin/indices/rollover/TransportRolloverActionTests.java"]
Use the RestCancellableNodeClient infrastructure for the rollover API
**Elasticsearch version** (`bin/elasticsearch --version`): 7.16 (earlier too), 8.0, 8.1 **Description of the problem including expected versus actual behavior**: Currently, the rollover requests are not cancellable, irrespective of the underlying incoming HTTP channel being closed (eg. by a proxy). This could result in clients receiving `504` and retrying the rollovers, resulting in multiple rollover operations being processed (some products issue rollovers without specifying conditions, so this could translate in multiple subsequent rollovers being executed). This proposes using the `RestCancellableNodeClient` infrastructure for the rollover API, such that elasticsearch can react to the incoming HTTP connection being closed by cancelling the rollover operation.
https://github.com/elastic/elasticsearch/issues/81763
https://github.com/elastic/elasticsearch/pull/84584
104dcad4384d6dd5c3264931b90e5b8ee095187e
80f5f3e211def11e17d362c6b33a716bbb708cfd
2021-12-15T14:38:33Z
java
2022-03-04T08:16:23Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,762
["server/src/main/java/org/elasticsearch/action/admin/indices/rollover/TransportRolloverAction.java"]
Rollover doesn't respect the timeouts configured in the rollover request
**Elasticsearch version** (`bin/elasticsearch --version`): 7.16 (earlier too), 8.0, 8.1 **Plugins installed**: [] **JVM version** (`java -version`): **OS version** (`uname -a` if on a Unix-like system): **Description of the problem including expected versus actual behavior**: The rollover API doesn't respect that master timeout configured in the request. We document that we support the `master_timeout` [here](https://www.elastic.co/guide/en/elasticsearch/reference/7.16/indices-rollover-index.html), however when submitting the rollover task we do not configure the timeout: eg: https://github.com/elastic/elasticsearch/blob/master/server/src/main/java/org/elasticsearch/action/admin/indices/rollover/TransportRolloverAction.java#L60) This could have the unwanted effect of having old `rollover` tasks processed by the master at a later point (with clients re-trying in the meantime). Note that this could end up with multiple rollovers as specifying the rollover `conditions` is optional.
https://github.com/elastic/elasticsearch/issues/81762
https://github.com/elastic/elasticsearch/pull/82326
0ca3db6d66a483f6377ca6eb4d0142c895cf693d
9e0f27d07b1430a5b2c3704fea82bb945bc2e399
2021-12-15T14:32:08Z
java
2022-01-10T16:52:31Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,758
["server/src/main/java/org/elasticsearch/repositories/RepositoriesService.java", "server/src/main/java/org/elasticsearch/repositories/UnknownTypeRepository.java", "server/src/test/java/org/elasticsearch/repositories/RepositoriesServiceTests.java", "server/src/test/java/org/elasticsearch/repositories/UnknownTypeRepositoryTests.java", "test/framework/src/main/java/org/elasticsearch/test/hamcrest/ThrowableAssertions.java"]
Distinguish "repository doesn't exist" from "repository plugin not installed"
**Elasticsearch version** (`bin/elasticsearch --version`): 7.16.1 (and many others) **Plugins installed**: [] **JVM version** (`java -version`): Any **OS version** (`uname -a` if on a Unix-like system): Any **Description of the problem including expected versus actual behavior**: If you define a repository using a plugin and then remove the plugin then the `RepositoryMetadata` lives on but we do not create a corresponding `Repository` instance. This means that operations on the repository (creating snapshots etc) will fail with a `RepositoryMissingException` which is very confusing because `GET _snapshot` will show that the repository is not missing at all. I believe in this case we should create a placeholder `Repository` instance so that operations on the repository fail with a more helpful message.
https://github.com/elastic/elasticsearch/issues/81758
https://github.com/elastic/elasticsearch/pull/82457
7018e9ef84264aa54b16da56d468dd31a051a488
75579f73dc1028072767b48e6730435a2a313331
2021-12-15T13:25:56Z
java
2022-01-14T08:22:25Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,752
["modules/mapper-extras/build.gradle", "modules/mapper-extras/src/test/java/org/elasticsearch/index/mapper/extras/MatchOnlyTextFieldMapperTests.java"]
[CI] RankFeaturesFieldMapperTests testMinimalIsInvalidInRoutingPath failing
Reproducible with the command from the build scan. Possibly also the cause of the other failures in the build scan as they look similar. **Build scan:** https://gradle-enterprise.elastic.co/s/ke34ae4kwfc7u/tests/:modules:mapper-extras:test/org.elasticsearch.index.mapper.extras.RankFeaturesFieldMapperTests/testMinimalIsInvalidInRoutingPath **Reproduction line:** `./gradlew ':modules:mapper-extras:test' --tests "org.elasticsearch.index.mapper.extras.RankFeaturesFieldMapperTests.testMinimalIsInvalidInRoutingPath" -Dtests.seed=A20D72D274E2D95E -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=ar-MA -Dtests.timezone=Indian/Reunion -Druntime.java=17` **Applicable branches:** master **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.index.mapper.extras.RankFeaturesFieldMapperTests&tests.test=testMinimalIsInvalidInRoutingPath **Failure excerpt:** ``` java.lang.IllegalArgumentException: setting index.time_series.start_time has not been registered at __randomizedtesting.SeedInfo.seed([A20D72D274E2D95E:F75FB280A8DFFDD3]:0) at org.elasticsearch.common.settings.AbstractScopedSettings.get(AbstractScopedSettings.java:740) at org.elasticsearch.index.TimestampBounds.<init>(TimestampBounds.java:22) at org.elasticsearch.index.IndexSettings.<init>(IndexSettings.java:701) at org.elasticsearch.index.IndexSettings.<init>(IndexSettings.java:680) at org.elasticsearch.index.mapper.MapperServiceTestCase.createIndexSettings(MapperServiceTestCase.java:215) at org.elasticsearch.index.mapper.MapperTestCase.testMinimalIsInvalidInRoutingPath(MapperTestCase.java:750) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/81752
https://github.com/elastic/elasticsearch/pull/81780
c8e8104f66e20e9df3192c50d95d456afddab197
730500008b0e546343ef64883ed2d62917ffcedb
2021-12-15T11:37:48Z
java
2021-12-15T22:36:55Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,712
["rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/tsdb/40_search.yml"]
[CI] SmokeTestMultiNodeClientYamlTestSuiteIT test {yaml=tsdb/40_search/ids query} failing
**Build scan:** https://gradle-enterprise.elastic.co/s/nnuzywumonsbg/tests/:qa:smoke-test-multinode:integTest/org.elasticsearch.smoketest.SmokeTestMultiNodeClientYamlTestSuiteIT/test%20%7Byaml=tsdb%2F40_search%2Fids%20query%7D **Reproduction line:** `./gradlew ':qa:smoke-test-multinode:integTest' --tests "org.elasticsearch.smoketest.SmokeTestMultiNodeClientYamlTestSuiteIT.test {yaml=tsdb/40_search/ids query}" -Dtests.seed=60911EEF4E11F7C2 -Dtests.locale=sk-SK -Dtests.timezone=America/Rosario -Druntime.java=17` **Applicable branches:** master **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.smoketest.SmokeTestMultiNodeClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dtsdb/40_search/ids%20query%7D **Failure excerpt:** ``` java.lang.AssertionError: Failure at [tsdb/40_search:358]: Expected: "u1" but: was "u3" at __randomizedtesting.SeedInfo.seed([60911EEF4E11F7C2:E8C52135E0ED9A3A]:0) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:489) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462) at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) Caused by: java.lang.AssertionError: Expected: "u1" but: was "u3" at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.junit.Assert.assertThat(Assert.java:923) at org.elasticsearch.test.rest.yaml.section.MatchAssertion.doAssert(MatchAssertion.java:99) at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:478) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462) at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/81712
https://github.com/elastic/elasticsearch/pull/81731
4d085d7551aedc34cd7a1d7ea06ea9dc1ed12ed9
201cc86b31485c5a1ef5a3f336bed1780a229f64
2021-12-14T09:55:46Z
java
2021-12-14T16:22:59Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,708
["docs/changelog/81819.yaml", "qa/evil-tests/src/test/java/org/elasticsearch/common/logging/EvilLoggerTests.java", "server/src/main/java/org/elasticsearch/common/logging/DeprecationLogger.java", "server/src/test/java/org/elasticsearch/common/logging/DeprecationLoggerTests.java"]
Missing doPriviliged in deprecation logger
possibly a doPriviliged in deprecation logger together with a test DeprecationLoggerTests.testLogPermissions were accidentally removed. This is possibly a regression. Scripts run under reduced privileges. (can @elastic/es-core-infra help?) and the test was introduced to verify deprecation logger not violating Security Manager permission when rolling over the files. 7.0+ https://github.com/elastic/elasticsearch/pull/37281/files#diff-70de5a6ba5c637e7f19c51341417760d6e957beb5a1fa5703049095ea2719ee0R322 However the doPriviliged call in deprecation logger was removed in (7.10+) https://github.com/elastic/elasticsearch/pull/55941/files#diff-593ea478a0a8d462fd38ad70838ee6e4a28673478d28812c48d9ed5cf768c132L249 The test itself was removed in 7.10+ https://github.com/elastic/elasticsearch/pull/61474/files#diff-70de5a6ba5c637e7f19c51341417760d6e957beb5a1fa5703049095ea2719ee0L47 @stu-elastic or @jdconrad do you remember more context about this? Do you think this should be fixed?
https://github.com/elastic/elasticsearch/issues/81708
https://github.com/elastic/elasticsearch/pull/81819
a4b232a09fd7217e6fc7bb7910ca07c7b609d031
f954919d654654057fb0015a3e484f056bf1b984
2021-12-14T08:59:21Z
java
2021-12-17T08:18:42Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,660
["x-pack/plugin/transform/src/test/java/org/elasticsearch/xpack/transform/action/TransformUpdaterTests.java"]
[CI] TransformUpdaterTests testTransformUpdateRewrite failing
**Build scan:** https://gradle-enterprise.elastic.co/s/vepsfbiyzgeqc/tests/:x-pack:plugin:transform:test/org.elasticsearch.xpack.transform.action.TransformUpdaterTests/testTransformUpdateRewrite **Reproduction line:** `./gradlew ':x-pack:plugin:transform:test' --tests "org.elasticsearch.xpack.transform.action.TransformUpdaterTests.testTransformUpdateRewrite" -Dtests.seed=F9117854AFFB3321 -Dtests.locale=en-CA -Dtests.timezone=Australia/Yancowinna -Druntime.java=16` **Applicable branches:** master, 7.16, 8.0 **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.transform.action.TransformUpdaterTests&tests.test=testTransformUpdateRewrite **Failure excerpt:** ``` java.lang.AssertionError: expected:<{ "id" : "n", "version" : "7.12.0", "create_time_string" : "2021-12-13T13:33:17.406Z", "create_time" : 1639402397406, "source" : { "index" : [ "rmPpqIafKw", "zSumxHbIwY", "ISuqFvWUup", "mwlzmYLkcH", "GCPgudcNWy" ], "query" : { "match_all" : { "boost" : 1.0 } }, "runtime_mappings" : { "fT" : { "type" : "long" } } }, "dest" : { "index" : "lzNlvVVhGa" }, "sync" : { "time" : { "field" : "TtSbx", "delay" : "1786869864709054679ms" } }, "latest" : { "unique_key" : [ "yqHu", "RgCihRQ" ], "sort" : "xi" }, "description" : "dAqUClMyRYCWRSTfZiQtSPxfxazAMzvGEveGhOjmPFGKDxxCkXobpjltsSIHpjrVGxpOTPJoFbKWRJkHJADbcZwAAsOtHFVUWcozGYQwhWzGQlgcqFtUVmmdcIBgjhBIjvVPiqqBQKEyBppiZbGBauBFwhTTHREtkFecjuJVpRLIitzAMQzRaUrJTFXsuofHnNLxPuOcJBdnuGBtDYaeUgAAscOYrrHgIcvliZWLGViYzyEHjovNLXoyhulBHAmfUgSaRAF", "settings" : { "docs_per_second" : 0.027091146, "use_point_in_time" : false }, "retention_policy" : { "time" : { "field" : "QnZ", "max_age" : "359267681ms" } } }> but was:<{ "id" : "n", "version" : "7.16.1", "create_time_string" : "2021-12-13T13:33:17.288Z", "create_time" : 1639402397288, "source" : { "index" : [ "iNCeNqVvch", "XxuqouCILR", "zdMModPZSj", "qXNZaSdHPw", "LSMFzRCcgU", "gEtfmKAzvL", "gpRiLKYJiA", "yJtdsXMlbm", "bghXkliMHK", "gEIElozieK" ], "query" : { "match_none" : { "boost" : 1.0 } }, "runtime_mappings" : { "FmAN" : { "type" : "keyword" }, "UFFSTV" : { "type" : "keyword" } } }, "dest" : { "index" : "NjLuScGrgK" }, "frequency" : "2278143ms", "sync" : { "time" : { "field" : "IRIKeaf", "delay" : "3795441428505943410ms" } }, "latest" : { "unique_key" : [ "EV" ], "sort" : "qCGJlYTe" }, "description" : "eEOodklHfmtdlejqHAhsBpJBgXigXReIVADuolJCaJBGuoGUABlolBdJzVKHfVzflzNbgcfWCHHMOhNVjppPnwnOXlVrzHKRDFwYugroazlVgQRhynPLTWvCNUesZoMeTAquJsGzlStHbHYFwGYdFrXnxSxYKNXbCktYxMlFEfoMOknbuDgpclMZKAWAoLkpUdOsibVrgMpFwPapHabGGEwqhyRHKknWNuhTzMUSOfwBWjuZSlMkzLpzaSQjndnmParsYzGfKhCqXaOgcSoFWjHYpHcaHlOaoBgviWFlwyDBFhXCIlsKZxWxoWvOSvxgdZLKkkwLHoqAtrKKxyIxEwQbxIEDvdfDxbcLzvRNdqArgAODqYJPNBQssUVobeTJEdDfXQExfMHnDsGIdWeyApUvDflXLUmgcbhIUTsyGFrTKHZagtIjzFhIVuXYLVCzpkmrfXIbSXUDpCUKkDWicgufJbUIsdczjtxNnZaOyeuvlEFDKcHEIoafeQQvabIwmkETQeNXMqGHolNibkXyemWrzpiOcsGkdhTJOIAX", "settings" : { "docs_per_second" : 0.1273936, "dates_as_epoch_millis" : true, "align_checkpoints" : false, "use_point_in_time" : true }, "_meta" : { "VBgTBLZfHv" : null, "v" : "ft", "f" : null, "Kc" : 8864307294638466136, "JkUFdoBUEj" : null, "glGydWdgL" : "EryDkSUr", "AmNvn" : { "KDcv" : "fwtU" }, "NOVQdeTZ" : null, "doAxsp" : null } }> at __randomizedtesting.SeedInfo.seed([F9117854AFFB3321:A52A73E67655ACB4]: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.xpack.transform.action.TransformUpdaterTests.lambda$testTransformUpdateRewrite$37(TransformUpdaterTests.java:315) at org.elasticsearch.xpack.transform.action.TransformUpdaterTests.lambda$assertAsync$38(TransformUpdaterTests.java:350) at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) at org.elasticsearch.action.LatchedActionListener.onResponse(LatchedActionListener.java:30) at org.elasticsearch.xpack.transform.persistence.InMemoryTransformConfigManager.getTransformConfiguration(InMemoryTransformConfigManager.java:217) at org.elasticsearch.xpack.transform.action.TransformUpdaterTests.lambda$testTransformUpdateRewrite$36(TransformUpdaterTests.java:312) at org.elasticsearch.xpack.transform.action.TransformUpdaterTests.assertAsync(TransformUpdaterTests.java:353) at org.elasticsearch.xpack.transform.action.TransformUpdaterTests.assertConfiguration(TransformUpdaterTests.java:327) at org.elasticsearch.xpack.transform.action.TransformUpdaterTests.testTransformUpdateRewrite(TransformUpdaterTests.java:311) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:567) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1750) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:938) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:974) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:988) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:49) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:48) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:368) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:817) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:468) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:947) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:832) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:883) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:894) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:41) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:54) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:368) at java.lang.Thread.run(Thread.java:831) ```
https://github.com/elastic/elasticsearch/issues/81660
https://github.com/elastic/elasticsearch/pull/81711
0db87a00dd582057ada6b2ebd33b1628a442dd87
e290a2206474c698eacf7890b81d97a61fb01634
2021-12-13T15:11:21Z
java
2021-12-14T11:25:15Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,633
["docs/reference/data-management/migrate-index-allocation-filters.asciidoc", "server/src/main/java/org/elasticsearch/cluster/routing/allocation/DataTier.java", "server/src/test/java/org/elasticsearch/cluster/routing/allocation/DataTierTests.java", "x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/cluster/metadata/MetadataMigrateToDataTiersRoutingService.java", "x-pack/plugin/ilm/src/test/java/org/elasticsearch/xpack/cluster/metadata/MetadataMigrateToDataTiersRoutingServiceTests.java"]
Bug in `MetadataMigrateToDataTiersRoutingService` - `_tier_preference` could be incorrect
**Elasticsearch version** (`bin/elasticsearch --version`): 7.16.0 (but the problem was likely present since the introduction of this service in https://github.com/elastic/elasticsearch/pull/73689). **Plugins installed**: [] **JVM version** (`java -version`): **OS version** (`uname -a` if on a Unix-like system): **Description of the problem including expected versus actual behavior**: - `MetadataMigrateToDataTiersRoutingService` is assuming that if an index is configured with a `_tier_preference` then it is the right data tier index allocation (c.f [code](https://github.com/elastic/elasticsearch/blob/5b38441b16b1ebb16a27c107a4c3865776e20c53/x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/cluster/metadata/MetadataMigrateToDataTiersRoutingService.java#L512)): ``` // look at the value, get the correct tiers config and update the settings if (currentIndexSettings.keySet().contains(TIER_PREFERENCE)) { newSettingsBuilder.remove(attributeBasedRoutingSettingName); logger.debug("index [{}]: removed setting [{}]", indexName, attributeBasedRoutingSettingName); } else { // parse the custom attribute routing into the corresponding tier preference and configure it String attributeValue = currentIndexSettings.get(attributeBasedRoutingSettingName); String convertedTierPreference = convertAttributeValueToTierPreference(attributeValue); ``` **Steps to reproduce**: We have seen in the field indices configured with the following settings: - Example 1: ``` "routing" : { "allocation" : { "include" : { "_tier_preference" : "data_hot" }, "require" : { "data" : "warm" } } }, ``` - Example 2: ``` "routing" : { "allocation" : { "include" : { "_tier_preference" : "data_content" }, "require" : { "data" : "warm" } } }, ``` In both examples, these indices were actually in the warm phase (confirmed with the ILM explain API results). As a user, if I were to run the `_ilm/migrate_to_data_tiers` API when migrating from nodes types to nodes roles, this would result in an incorrect allocation. These indices will then be allocated to the hot and content and data tier - instead of the warm data tier. The only way to recover from this is to identify the corresponding ILM phase for the affected indices and set the data tier index allocation accordingly. As a user, it is impossible to do so out of the box (i.e it requires some scripting to cross check information from the list of indices, index settings and ILM explain results of each index).
https://github.com/elastic/elasticsearch/issues/81633
https://github.com/elastic/elasticsearch/pull/81940
bb8578b301c1962ede4bd3e3189b6b21ad269144
332e6d48c430f7f569a9f041814efbf44140d7a0
2021-12-11T13:25:56Z
java
2022-01-05T09:56:37Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,628
["server/src/main/java/org/elasticsearch/cluster/action/shard/ShardStateAction.java", "server/src/main/java/org/elasticsearch/indices/cluster/IndicesClusterStateService.java", "server/src/test/java/org/elasticsearch/cluster/action/shard/ShardStateActionTests.java"]
Stop unnecessary retries of shard-started tasks
When a data node finishes recovering a shard it notifies the master to move it to state `STARTED`. Today we repeat this request every time we receive a cluster state that hasn't updated the shard state yet: https://github.com/elastic/elasticsearch/blob/b6fbf5a1548c1924e67c360af2b6dd8ec51508ce/server/src/main/java/org/elasticsearch/indices/cluster/IndicesClusterStateService.java#L601-L619 This behaviour means if the master is busy processing (potentially thousands) of other `URGENT` tasks then we'll submit the same task repeatedly (potentially thousands of times). It dates back a long time but is no longer necessary: we can trust that the master will process our original request first (or we get notified that it failed). We should stop sending these unnecessary retries. Relates https://github.com/elastic/elasticsearch/issues/77466
https://github.com/elastic/elasticsearch/issues/81628
https://github.com/elastic/elasticsearch/pull/82089
0a1851353ac2cfb145e091ba85da666881f0ce05
01debdc85682c21a4729955147b2403c17afe2ab
2021-12-10T18:51:36Z
java
2021-12-28T18:02:35Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,600
["docs/reference/snapshot-restore/apis/get-snapshot-status-api.asciidoc"]
[DOCS] Fix get snapshot status API docs
As pointed out in https://github.com/elastic/elasticsearch/issues/80931, the [get snapshot status API docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/get-snapshot-status-api.html#get-snapshot-status-api-desc) have some issues: * `GET _snapshot/_status` `GET _snapshot/<repository>/_status` are undocumented. * The `<repository>` and `<snapshot>` parameters are not required. * The `<snapshot>` parameter doesn't support `_current`. Relates to https://github.com/elastic/elasticsearch/pull/59355.
https://github.com/elastic/elasticsearch/issues/81600
https://github.com/elastic/elasticsearch/pull/81818
3d4e78487a8a51fbd370ad2cd98b70ff548a8b76
88be4ed95022231499f7781bfdfb685d3479440a
2021-12-09T20:18:59Z
java
2022-02-03T15:55:23Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,585
["docs/changelog/88221.yaml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.aggregation/30_sig_terms.yml", "server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificanceLookup.java", "server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTermsAggregationBuilder.java", "server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTermsAggregatorTests.java"]
significant_terms background ignores alias filter
**Elasticsearch version** (`bin/elasticsearch --version`): v7+ **Description of the problem including expected versus actual behavior**: When used with an alias that has a filter, only the foreground set is filtered. The background set ignores the alias filter. This skews the results, especially when the user supplies an additional foreground filter, assuming the background filter will respect the alias filter. **Steps to reproduce**: ``` PUT sig_terms_bug { "mappings": { "properties": { "field1": { "type": "keyword" }, "field2": { "type": "keyword" }, "field3": { "type": "keyword" } } } } POST sig_terms_bug/_bulk?refresh=true { "index" : {} } { "field1" : "failed", "field2": "frontend-node", "field3": "foo" } { "index" : {} } { "field1" : "failed", "field2": "frontend-node", "field3": "bar" } { "index" : {} } { "field1" : "failed", "field2": "frontend-node", "field3": "bar" } { "index" : {} } { "field1" : "success", "field2": "frontend-node", "field3": "bar" } { "index" : {} } { "field1" : "success", "field2": "frontend-node", "field3": "bar" } { "index" : {} } { "field1" : "failed", "field2": "backend-node", "field3": "foo" } { "index" : {} } { "field1" : "failed", "field2": "backend-node", "field3": "bar" } { "index" : {} } { "field1" : "failed", "field2": "backend-node", "field3": "bar" } { "index" : {} } { "field1" : "success", "field2": "backend-node", "field3": "bar" } { "index" : {} } { "field1" : "success", "field2": "backend-node", "field3": "bar" } { "index" : {} } POST _aliases { "actions": [ { "add": { "index": "sig_terms_bug", "alias": "sig_terms_bug_alias", "filter": { "bool": { "filter": [ { "term": { "field2": "frontend-node" } } ] } } } } ] } GET sig_terms_bug_alias/_search?track_total_hits=true&size=0&filter_path=aggregations { "aggs": { "sig_term": { "significant_terms": { "field": "field3" } } } } ``` This results in: ``` { "aggregations" : { "sig_term" : { "doc_count" : 5, "bg_count" : 10, "buckets" : [ ] } } } ``` It seems to me that the `bg_count` should respect the alias filter.
https://github.com/elastic/elasticsearch/issues/81585
https://github.com/elastic/elasticsearch/pull/88221
a044b5c01e0f95a37f7ae9f1d0f04529724111c7
ab2602ecb08e1ec389573ac7f32fe9942d5b732b
2021-12-09T13:40:48Z
java
2022-07-19T17:03:08Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,577
["x-pack/plugin/sql/qa/server/src/main/resources/select.csv-spec", "x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/analysis/analyzer/Analyzer.java", "x-pack/plugin/sql/src/test/java/org/elasticsearch/xpack/sql/analysis/analyzer/AnalyzerTests.java", "x-pack/plugin/sql/src/test/java/org/elasticsearch/xpack/sql/analysis/analyzer/VerifierErrorMessagesTests.java"]
[SQL] StackOverflowError from a query using aggregates and aliases
For an index with a single field in its mapping ``` "sequence": { "type": "long" } ``` The following query results in a `StackOverflowError`: ``` select max(sequence) as sequence, avg(sequence) as sequence, avg(sequence) as s from test_index where s > 0 group by sequence having s > 0 ``` The stacktrace: ``` java.lang.StackOverflowError: null at org.elasticsearch.xpack.ql.tree.Node.transformDown(Node.java:176) ~[?:?] at org.elasticsearch.xpack.ql.tree.Node.lambda$transformDown$8(Node.java:179) ~[?:?] at org.elasticsearch.xpack.ql.tree.Node.transformChildren(Node.java:211) ~[?:?] at org.elasticsearch.xpack.ql.tree.Node.transformDown(Node.java:179) ~[?:?] at org.elasticsearch.xpack.ql.tree.Node.lambda$transformDown$8(Node.java:179) ~[?:?] at org.elasticsearch.xpack.ql.tree.Node.transformChildren(Node.java:211) ~[?:?] at org.elasticsearch.xpack.ql.tree.Node.transformDown(Node.java:179) ~[?:?] at org.elasticsearch.xpack.ql.tree.Node.lambda$transformDown$8(Node.java:179) ~[?:?] at org.elasticsearch.xpack.ql.tree.Node.transformChildren(Node.java:211) ~[?:?] at org.elasticsearch.xpack.ql.tree.Node.transformDown(Node.java:179) ~[?:?] at org.elasticsearch.xpack.ql.tree.Node.lambda$transformDown$8(Node.java:179) ~[?:?] at org.elasticsearch.xpack.ql.tree.Node.transformChildren(Node.java:211) ~[?:?] at org.elasticsearch.xpack.ql.tree.Node.transformDown(Node.java:179) ~[?:?] at org.elasticsearch.xpack.ql.tree.Node.lambda$transformDown$8(Node.java:179) ~[?:?] at org.elasticsearch.xpack.ql.tree.Node.transformChildren(Node.java:211) ~[?:?] at org.elasticsearch.xpack.ql.tree.Node.transformDown(Node.java:179) ~[?:?] at org.elasticsearch.xpack.ql.tree.Node.lambda$transformDown$8(Node.java:179) ~[?:?] at org.elasticsearch.xpack.ql.tree.Node.transformChildren(Node.java:211) ~[?:?] at org.elasticsearch.xpack.ql.tree.Node.transformDown(Node.java:179) ~[?:?] at org.elasticsearch.xpack.ql.tree.Node.lambda$transformDown$8(Node.java:179) ~[?:?] at org.elasticsearch.xpack.ql.tree.Node.transformChildren(Node.java:211) ~[?:?] at org.elasticsearch.xpack.ql.tree.Node.transformDown(Node.java:179) ~[?:?] at org.elasticsearch.xpack.ql.tree.Node.lambda$transformDown$8(Node.java:179) ~[?:?] at org.elasticsearch.xpack.ql.tree.Node.transformChildren(Node.java:211) ~[?:?] at org.elasticsearch.xpack.ql.tree.Node.transformDown(Node.java:179) ~[?:?] ... ```
https://github.com/elastic/elasticsearch/issues/81577
https://github.com/elastic/elasticsearch/pull/81800
3550370c86cfdee60bb5ca991805437f0b87bccc
f1860c17ab4b9e2931a5d7482905fe5f1589239c
2021-12-09T09:36:47Z
java
2022-01-11T14:51:46Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,537
["x-pack/plugin/transform/src/test/java/org/elasticsearch/xpack/transform/transforms/ClientTransformIndexerTests.java"]
[CI] ClientTransformIndexerTests testPitInjection failing
**Build scan:** https://gradle-enterprise.elastic.co/s/nlj3jeu6haqas/tests/:x-pack:plugin:transform:test/org.elasticsearch.xpack.transform.transforms.ClientTransformIndexerTests/testPitInjection **Reproduction line:** `./gradlew ':x-pack:plugin:transform:test' --tests "org.elasticsearch.xpack.transform.transforms.ClientTransformIndexerTests.testPitInjection" -Dtests.seed=C4A3F105547083E4 -Dtests.locale=da-DK -Dtests.timezone=Asia/Shanghai -Druntime.java=17` **Applicable branches:** master **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.transform.transforms.ClientTransformIndexerTests&tests.test=testPitInjection **Failure excerpt:** ``` java.lang.AssertionError: expected:<the_pit_id+> but was:<null> at __randomizedtesting.SeedInfo.seed([C4A3F105547083E4:7172E192C60E2634]: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.xpack.transform.transforms.ClientTransformIndexerTests.lambda$testPitInjection$2(ClientTransformIndexerTests.java:162) at org.elasticsearch.xpack.transform.transforms.ClientTransformIndexerTests.lambda$assertAsync$33(ClientTransformIndexerTests.java:512) at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) at org.elasticsearch.action.LatchedActionListener.onResponse(LatchedActionListener.java:30) at org.elasticsearch.xpack.transform.transforms.ClientTransformIndexer.lambda$doSearch$11(ClientTransformIndexer.java:499) at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31) at org.elasticsearch.xpack.transform.transforms.ClientTransformIndexerTests$PitMockClient.doExecute(ClientTransformIndexerTests.java:496) at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:380) at org.elasticsearch.xpack.core.ClientHelper.executeAsyncWithOrigin(ClientHelper.java:146) at org.elasticsearch.xpack.core.ClientHelper.executeWithHeadersAsync(ClientHelper.java:213) at org.elasticsearch.xpack.transform.transforms.ClientTransformIndexer.doSearch(ClientTransformIndexer.java:486) at org.elasticsearch.xpack.transform.transforms.ClientTransformIndexer.lambda$doNextSearch$0(ClientTransformIndexer.java:145) at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:136) at org.elasticsearch.xpack.transform.transforms.ClientTransformIndexer.injectPointInTimeIfNeeded(ClientTransformIndexer.java:413) at org.elasticsearch.xpack.transform.transforms.ClientTransformIndexer.doNextSearch(ClientTransformIndexer.java:143) at org.elasticsearch.xpack.transform.transforms.ClientTransformIndexerTests.lambda$testPitInjection$1(ClientTransformIndexerTests.java:161) at org.elasticsearch.xpack.transform.transforms.ClientTransformIndexerTests.assertAsync(ClientTransformIndexerTests.java:518) at org.elasticsearch.xpack.transform.transforms.ClientTransformIndexerTests.testPitInjection(ClientTransformIndexerTests.java:160) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/81537
https://github.com/elastic/elasticsearch/pull/81540
7a630b7b97b47c75951f81f2c4eeec9bd3542592
3acf0e8a15a96e87d2f2a8214f1c69736135d081
2021-12-08T15:48:23Z
java
2021-12-08T17:28:50Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,533
["server/src/internalClusterTest/java/org/elasticsearch/timeseries/support/TimeSeriesMetricsIT.java"]
[CI] TimeSeriesMetricsIT testManySteps failing
**Build scan:** https://gradle-enterprise.elastic.co/s/gxc2vrx3a5zy6/tests/:server:internalClusterTest/org.elasticsearch.timeseries.support.TimeSeriesMetricsIT/testManySteps **Reproduction line:** `./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.timeseries.support.TimeSeriesMetricsIT.testManySteps" -Dtests.seed=7622EAB321665ED6 -Dtests.locale=el -Dtests.timezone=America/Whitehorse -Druntime.java=17` **Applicable branches:** master **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.timeseries.support.TimeSeriesMetricsIT&tests.test=testManySteps **Failure excerpt:** ``` java.lang.AssertionError: Expected a map containing Tuple [v1=v, v2={dim=dim}]: a list containing 0: <2021-01-01T00:00:00.000Z=0.4551297387042742> 1: <2021-01-01T00:00:04.999Z=0.7485262537259498> 2: <2021-01-01T00:00:05.000Z=0.06910621516341653> 3: <2021-01-01T00:00:10.000Z=0.5834115216573992> 4: <2021-01-01T00:00:14.999Z=0.729380889565715> 5: <2021-01-01T00:00:15.000Z=0.23374119894171885> 6: <2021-01-01T00:00:19.999Z=0.6322932146116457> 7: <2021-01-01T00:00:20.000Z=0.9432465127358071> 8: <2021-01-01T00:00:25.000Z=0.6282098545274359> 9: <2021-01-01T00:00:30.000Z=0.1986163736396087> 10: <2021-01-01T00:00:34.999Z=0.9557792720522522> 11: <2021-01-01T00:00:35.000Z=0.9016222067275699> 12: <2021-01-01T00:00:40.000Z=0.4699220966529055> 13: <2021-01-01T00:00:44.999Z=0.36552271389986024> 14: <2021-01-01T00:00:45.000Z=0.4720142800420899> 15: <2021-01-01T00:00:49.999Z=0.7546810957114379> 16: <2021-01-01T00:00:50.000Z=0.7335687038583637> 17: <2021-01-01T00:00:55.000Z=0.6713546718821035> 18: <2021-01-01T00:00:59.999Z=0.7483808789801231> 19: <2021-01-01T00:01:00.000Z=0.6669291476433954> 20: <2021-01-01T00:01:04.999Z=0.5551205052707621> 21: <2021-01-01T00:01:05.000Z=0.5705932271106092> 22: <2021-01-01T00:01:09.999Z=0.27777033805003004> 23: <2021-01-01T00:01:10.000Z=0.4098798336208601> 24: <2021-01-01T00:01:14.999Z=0.9564344234899667> 25: <2021-01-01T00:01:15.000Z=0.2678063983638509> 26: <2021-01-01T00:01:19.999Z=0.44013393690657165> 27: <2021-01-01T00:01:20.000Z=0.843895110099188> 28: <2021-01-01T00:01:24.999Z=0.6004536424733807> 29: <2021-01-01T00:01:25.000Z=0.9574006573914045> 30: <2021-01-01T00:01:30.000Z=0.6585716206687732> 31: <2021-01-01T00:01:35.000Z=0.8342435965553686> 32: <2021-01-01T00:01:40.000Z=0.3933962644210489> 33: <2021-01-01T00:01:45.000Z=0.08386849299383348> 34: <2021-01-01T00:01:50.000Z=0.3299963902841695> 35: <2021-01-01T00:01:54.999Z=0.7239265312521174> 36: <2021-01-01T00:01:55.000Z=0.7386963931814903> 37: <2021-01-01T00:02:00.000Z=0.943167890739917> 38: <2021-01-01T00:02:05.000Z=0.9751943329628867> 39: <2021-01-01T00:02:10.000Z=0.3442903413376488> 40: <2021-01-01T00:02:15.000Z=0.2604928459833481> 41: <2021-01-01T00:02:20.000Z=0.7008197682562844> 42: <2021-01-01T00:02:24.999Z=0.09264030093367359> 43: <2021-01-01T00:02:25.000Z=0.44202896905148514> 44: <2021-01-01T00:02:29.999Z=0.5379917980316546> 45: <2021-01-01T00:02:30.000Z=0.14852740069289172> 46: <2021-01-01T00:02:35.000Z=0.8914095561698685> 47: <2021-01-01T00:02:39.999Z=0.8869424859863377> 48: <2021-01-01T00:02:40.000Z=0.08237582990042613> 49: <2021-01-01T00:02:45.000Z=0.7871913221420113> 50: <2021-01-01T00:02:50.000Z=0.7516884627463615> 51: <2021-01-01T00:02:54.999Z=0.46532180295055825> 52: <2021-01-01T00:02:55.000Z=0.3542074987717295> 53: <2021-01-01T00:03:00.000Z=0.839329469335387> 54: <2021-01-01T00:03:04.999Z=0.41727869781814475> 55: <2021-01-01T00:03:05.000Z=0.8085243025248715> 56: <2021-01-01T00:03:10.000Z=0.007792214236753137> 57: <2021-01-01T00:03:14.999Z=0.6761033913571318> 58: <2021-01-01T00:03:15.000Z=0.945735852013256> 59: <2021-01-01T00:03:20.000Z=0.6473870826444464> 60: <2021-01-01T00:03:24.999Z=0.670951490084183> 61: <2021-01-01T00:03:25.000Z=0.14639393785400878> 62: <2021-01-01T00:03:30.000Z=0.37047250651343944> 63: <2021-01-01T00:03:34.999Z=0.9908696227414945> 64: <2021-01-01T00:03:35.000Z=0.7742210529481296> 65: <2021-01-01T00:03:40.000Z=0.3588504584955219> 66: <2021-01-01T00:03:44.999Z=0.6089471902110216> 67: <2021-01-01T00:03:45.000Z=0.06432757327048799> 68: <2021-01-01T00:03:49.999Z=0.06389508085935103> 69: <2021-01-01T00:03:50.000Z=0.2532937785266578> 70: <2021-01-01T00:03:55.000Z=0.8249465084877867> 71: <2021-01-01T00:04:00.000Z=0.9502552250186133> 72: <2021-01-01T00:04:04.999Z=0.555828244719204> 73: <2021-01-01T00:04:05.000Z=0.8302026611579609> 74: <2021-01-01T00:04:09.999Z=0.5992591966085192> 75: <2021-01-01T00:04:10.000Z=0.5657798997164128> 76: <2021-01-01T00:04:15.000Z=0.13095347165068572> 77: <2021-01-01T00:04:20.000Z=0.12776170539789067> 78: <2021-01-01T00:04:24.999Z=0.9793636849452465> 79: <2021-01-01T00:04:25.000Z=0.4702729482172464> 80: <2021-01-01T00:04:30.000Z=0.6393581725772154> 81: <2021-01-01T00:04:34.999Z=0.9687029832655485> 82: <2021-01-01T00:04:35.000Z=0.737342205172745> 83: <2021-01-01T00:04:40.000Z=0.11258464685492464> 84: <2021-01-01T00:04:44.999Z=0.08057494679127608> 85: <2021-01-01T00:04:45.000Z=0.20137822561520924> 86: <2021-01-01T00:04:50.000Z=0.49241810407926045> 87: <2021-01-01T00:04:55.000Z=0.5640491852768988> 88: <2021-01-01T00:04:59.999Z=0.06787660126708783> 89: <2021-01-01T00:05:00.000Z=0.011973736906484511> 90: <2021-01-01T00:05:05.000Z=0.13890758085727084> 91: <2021-01-01T00:05:09.999Z=0.6746232013176242> 92: <2021-01-01T00:05:10.000Z=0.9298113289427435> 93: <2021-01-01T00:05:14.999Z=0.09154615128282007> 94: <2021-01-01T00:05:15.000Z=0.5746526609809449> 95: <2021-01-01T00:05:19.999Z=0.7889055972806583> 96: <2021-01-01T00:05:20.000Z=0.6183892343107337> 97: <2021-01-01T00:05:24.999Z=0.38262739162135073> 98: <2021-01-01T00:05:25.000Z=0.06019059319295872> 99: <2021-01-01T00:05:30.000Z=0.11849337617870181> 100: expected <2021-01-01T00:05:34.999Z=0.1698329273975857> but was <missing> 101: expected <2021-01-01T00:05:35.000Z=0.8065872669834374> but was <missing> 102: expected <2021-01-01T00:05:39.999Z=0.43784662313167777> but was <missing> 103: expected <2021-01-01T00:05:40.000Z=0.2075411765126287> but was <missing> 104: expected <2021-01-01T00:05:45.000Z=0.024228756254963235> but was <missing> 105: expected <2021-01-01T00:05:49.999Z=0.3384234818691708> but was <missing> 106: expected <2021-01-01T00:05:50.000Z=0.8489212493663634> but was <missing> 107: expected <2021-01-01T00:05:54.999Z=0.9231174129610852> but was <missing> 108: expected <2021-01-01T00:05:55.000Z=0.9514452226426685> but was <missing> 109: expected <2021-01-01T00:06:00.000Z=0.4617348325843589> but was <missing> 110: expected <2021-01-01T00:06:04.999Z=0.04404028735693155> but was <missing> 111: expected <2021-01-01T00:06:05.000Z=0.009915152695963547> but was <missing> 112: expected <2021-01-01T00:06:10.000Z=0.7286221085982443> but was <missing> 113: expected <2021-01-01T00:06:14.999Z=0.010617951443883> but was <missing> 114: expected <2021-01-01T00:06:15.000Z=0.07951689141426421> but was <missing> 115: expected <2021-01-01T00:06:20.000Z=0.4080373840609848> but was <missing> 116: expected <2021-01-01T00:06:24.999Z=0.9142297444114408> but was <missing> 117: expected <2021-01-01T00:06:25.000Z=0.1384617485611065> but was <missing> 118: expected <2021-01-01T00:06:29.999Z=0.41202144215154113> but was <missing> 119: expected <2021-01-01T00:06:30.000Z=0.3678501888248189> but was <missing> 120: expected <2021-01-01T00:06:34.999Z=0.7489590107333199> but was <missing> 121: expected <2021-01-01T00:06:35.000Z=0.6133704465933951> but was <missing> 122: expected <2021-01-01T00:06:40.000Z=0.6377353749661506> but was <missing> 123: expected <2021-01-01T00:06:44.999Z=0.6762784134817745> but was <missing> 124: expected <2021-01-01T00:06:45.000Z=0.1419206843573424> but was <missing> 125: expected <2021-01-01T00:06:50.000Z=0.11726909744952108> but was <missing> 126: expected <2021-01-01T00:06:55.000Z=0.4826327945621238> but was <missing> 127: expected <2021-01-01T00:07:00.000Z=0.8651886206787438> but was <missing> 128: expected <2021-01-01T00:07:04.999Z=0.5792086946309478> but was <missing> 129: expected <2021-01-01T00:07:05.000Z=0.8738259886805628> but was <missing> 130: expected <2021-01-01T00:07:09.999Z=0.09051287428266563> but was <missing> 131: expected <2021-01-01T00:07:10.000Z=0.28634333041764015> but was <missing> 132: expected <2021-01-01T00:07:14.999Z=0.7275540462753204> but was <missing> 133: expected <2021-01-01T00:07:15.000Z=0.4328669069450125> but was <missing> 134: expected <2021-01-01T00:07:19.999Z=0.9913345498059726> but was <missing> 135: expected <2021-01-01T00:07:20.000Z=0.9883789342508085> but was <missing> 136: expected <2021-01-01T00:07:25.000Z=0.5203523874336384> but was <missing> 137: expected <2021-01-01T00:07:30.000Z=0.024588853789757947> but was <missing> 138: expected <2021-01-01T00:07:34.999Z=0.7416093450887493> but was <missing> 139: expected <2021-01-01T00:07:35.000Z=0.31441479527553073> but was <missing> 140: expected <2021-01-01T00:07:40.000Z=0.5375621633944664> but was <missing> 141: expected <2021-01-01T00:07:44.999Z=0.108902192886421> but was <missing> 142: expected <2021-01-01T00:07:45.000Z=0.7649037414208626> but was <missing> 143: expected <2021-01-01T00:07:49.999Z=0.29589582169456197> but was <missing> 144: expected <2021-01-01T00:07:50.000Z=0.6541100573801683> but was <missing> 145: expected <2021-01-01T00:07:54.999Z=0.042056757103395515> but was <missing> 146: expected <2021-01-01T00:07:55.000Z=0.7440128532384114> but was <missing> 147: expected <2021-01-01T00:08:00.000Z=0.2826807150000388> but was <missing> 148: expected <2021-01-01T00:08:04.999Z=0.22358842375928745> but was <missing> 149: expected <2021-01-01T00:08:05.000Z=0.5385074096646784> but was <missing> 150: expected <2021-01-01T00:08:09.999Z=0.46280445333336384> but was <missing> 151: expected <2021-01-01T00:08:10.000Z=0.9906590696330075> but was <missing> 152: expected <2021-01-01T00:08:14.999Z=0.10249288609254781> but was <missing> 153: expected <2021-01-01T00:08:15.000Z=0.08642436232063488> but was <missing> 154: expected <2021-01-01T00:08:19.999Z=0.9249013422117551> but was <missing> 155: expected <2021-01-01T00:08:20.000Z=0.7999287534329088> but was <missing> 156: expected <2021-01-01T00:08:24.999Z=0.7348054501358876> but was <missing> 157: expected <2021-01-01T00:08:25.000Z=0.38706343984448455> but was <missing> 158: expected <2021-01-01T00:08:29.999Z=0.41905785195185674> but was <missing> 159: expected <2021-01-01T00:08:30.000Z=0.3375125275834001> but was <missing> 160: expected <2021-01-01T00:08:35.000Z=0.2946857970684531> but was <missing> 161: expected <2021-01-01T00:08:40.000Z=0.49390342578692625> but was <missing> 162: expected <2021-01-01T00:08:45.000Z=0.3735613152874746> but was <missing> 163: expected <2021-01-01T00:08:50.000Z=0.5105129968634158> but was <missing> 164: expected <2021-01-01T00:08:55.000Z=0.054902492533067115> but was <missing> 165: expected <2021-01-01T00:08:59.999Z=0.7041363545281037> but was <missing> 166: expected <2021-01-01T00:09:00.000Z=0.36476470363281477> but was <missing> 167: expected <2021-01-01T00:09:04.999Z=0.37502150085082775> but was <missing> 168: expected <2021-01-01T00:09:05.000Z=0.49262228925717455> but was <missing> 169: expected <2021-01-01T00:09:09.999Z=0.23046616975759482> but was <missing> 170: expected <2021-01-01T00:09:10.000Z=0.4548015590377461> but was <missing> 171: expected <2021-01-01T00:09:15.000Z=0.1848153438932918> but was <missing> 172: expected <2021-01-01T00:09:20.000Z=0.8834305280365184> but was <missing> 173: expected <2021-01-01T00:09:24.999Z=0.7640370560547635> but was <missing> 174: expected <2021-01-01T00:09:25.000Z=0.5721174067614762> but was <missing> 175: expected <2021-01-01T00:09:29.999Z=0.46966517000971> but was <missing> 176: expected <2021-01-01T00:09:30.000Z=0.9247936809835811> but was <missing> 177: expected <2021-01-01T00:09:35.000Z=0.4880043392105796> but was <missing> 178: expected <2021-01-01T00:09:39.999Z=0.3141527916170672> but was <missing> 179: expected <2021-01-01T00:09:40.000Z=0.6947259329772932> but was <missing> 180: expected <2021-01-01T00:09:45.000Z=0.6366530496103533> but was <missing> 181: expected <2021-01-01T00:09:50.000Z=0.33653494246137716> but was <missing> 182: expected <2021-01-01T00:09:54.999Z=0.06653010344640142> but was <missing> 183: expected <2021-01-01T00:09:55.000Z=0.42144838523127914> but was <missing> 184: expected <2021-01-01T00:09:59.999Z=0.41733458363095566> but was <missing> 185: expected <2021-01-01T00:10:00.000Z=0.11890810970134369> but was <missing> 186: expected <2021-01-01T00:10:05.000Z=0.3941475082296084> but was <missing> 187: expected <2021-01-01T00:10:09.999Z=0.987797750044224> but was <missing> 188: expected <2021-01-01T00:10:10.000Z=0.8135390142527839> but was <missing> 189: expected <2021-01-01T00:10:14.999Z=0.9071466820316876> but was <missing> 190: expected <2021-01-01T00:10:15.000Z=0.4368907592832023> but was <missing> 191: expected <2021-01-01T00:10:20.000Z=0.2676564296677034> but was <missing> 192: expected <2021-01-01T00:10:24.999Z=0.3445225038498161> but was <missing> 193: expected <2021-01-01T00:10:25.000Z=0.024497239261973225> but was <missing> 194: expected <2021-01-01T00:10:29.999Z=0.33978911370526976> but was <missing> 195: expected <2021-01-01T00:10:30.000Z=0.860107372478515> but was <missing> 196: expected <2021-01-01T00:10:35.000Z=0.12443862493601043> but was <missing> 197: expected <2021-01-01T00:10:40.000Z=0.06940172584490356> but was <missing> 198: expected <2021-01-01T00:10:44.999Z=0.07996691749120588> but was <missing> 199: expected <2021-01-01T00:10:45.000Z=0.2951838714741394> but was <missing> 200: expected <2021-01-01T00:10:49.999Z=0.04126816476143602> but was <missing> 201: expected <2021-01-01T00:10:50.000Z=0.662594990035955> but was <missing> 202: expected <2021-01-01T00:10:55.000Z=0.9798113934945016> but was <missing> 203: expected <2021-01-01T00:11:00.000Z=0.8545259035291183> but was <missing> 204: expected <2021-01-01T00:11:05.000Z=0.5997512471078215> but was <missing> 205: expected <2021-01-01T00:11:10.000Z=0.5451637447697013> but was <missing> 206: expected <2021-01-01T00:11:14.999Z=0.0568142010070124> but was <missing> 207: expected <2021-01-01T00:11:15.000Z=0.9162508959949868> but was <missing> 208: expected <2021-01-01T00:11:19.999Z=0.7446983344288761> but was <missing> 209: expected <2021-01-01T00:11:20.000Z=0.5579408149960118> but was <missing> 210: expected <2021-01-01T00:11:25.000Z=0.3205206396657406> but was <missing> 211: expected <2021-01-01T00:11:29.999Z=0.6974990349319966> but was <missing> 212: expected <2021-01-01T00:11:30.000Z=0.040280943588984375> but was <missing> 213: expected <2021-01-01T00:11:35.000Z=0.2644033982148998> but was <missing> 214: expected <2021-01-01T00:11:39.999Z=0.42222299123726736> but was <missing> 215: expected <2021-01-01T00:11:40.000Z=0.2690385808043301> but was <missing> 216: expected <2021-01-01T00:11:44.999Z=0.15128608486790762> but was <missing> 217: expected <2021-01-01T00:11:45.000Z=0.5171277357545414> but was <missing> 218: expected <2021-01-01T00:11:50.000Z=0.03859065433579867> but was <missing> 219: expected <2021-01-01T00:11:54.999Z=0.3727845886019916> but was <missing> 220: expected <2021-01-01T00:11:55.000Z=0.34206970015803895> but was <missing> 221: expected <2021-01-01T00:12:00.000Z=0.9457963759767719> but was <missing> 222: expected <2021-01-01T00:12:05.000Z=0.9916651916349725> but was <missing> 223: expected <2021-01-01T00:12:10.000Z=0.14894867307824167> but was <missing> 224: expected <2021-01-01T00:12:15.000Z=0.9448573955888433> but was <missing> 225: expected <2021-01-01T00:12:20.000Z=0.2717494014701203> but was <missing> 226: expected <2021-01-01T00:12:24.999Z=0.6590330873996542> but was <missing> 227: expected <2021-01-01T00:12:25.000Z=0.3797680349653746> but was <missing> 228: expected <2021-01-01T00:12:30.000Z=0.9514213556536654> but was <missing> 229: expected <2021-01-01T00:12:34.999Z=0.5306182842698053> but was <missing> 230: expected <2021-01-01T00:12:35.000Z=0.5799852130707656> but was <missing> 231: expected <2021-01-01T00:12:40.000Z=0.9450223839835813> but was <missing> 232: expected <2021-01-01T00:12:45.000Z=0.5660239060342634> but was <missing> 233: expected <2021-01-01T00:12:49.999Z=0.38579889609186035> but was <missing> 234: expected <2021-01-01T00:12:50.000Z=0.6206251138359106> but was <missing> 235: expected <2021-01-01T00:12:54.999Z=0.8783859884375864> but was <missing> 236: expected <2021-01-01T00:12:55.000Z=0.41562477947925125> but was <missing> 237: expected <2021-01-01T00:13:00.000Z=0.49497384696690583> but was <missing> 238: expected <2021-01-01T00:13:04.999Z=0.8368596737081982> but was <missing> 239: expected <2021-01-01T00:13:05.000Z=0.026848906334563938> but was <missing> 240: expected <2021-01-01T00:13:10.000Z=0.3215280778417898> but was <missing> 241: expected <2021-01-01T00:13:14.999Z=0.19335953839300524> but was <missing> 242: expected <2021-01-01T00:13:15.000Z=0.6763431240759723> but was <missing> 243: expected <2021-01-01T00:13:19.999Z=0.31101540275950057> but was <missing> 244: expected <2021-01-01T00:13:20.000Z=0.35875680973166857> but was <missing> 245: expected <2021-01-01T00:13:24.999Z=0.6995294125062822> but was <missing> 246: expected <2021-01-01T00:13:25.000Z=0.8298776213536803> but was <missing> 247: expected <2021-01-01T00:13:29.999Z=0.6558258984605987> but was <missing> 248: expected <2021-01-01T00:13:30.000Z=0.8082640715272454> but was <missing> 249: expected <2021-01-01T00:13:34.999Z=0.6830623546694924> but was <missing> 250: expected <2021-01-01T00:13:35.000Z=0.08667542512164306> but was <missing> 251: expected <2021-01-01T00:13:39.999Z=0.19729407621348383> but was <missing> 252: expected <2021-01-01T00:13:40.000Z=0.6932908173948499> but was <missing> 253: expected <2021-01-01T00:13:44.999Z=0.525526254359483> but was <missing> 254: expected <2021-01-01T00:13:45.000Z=0.6427289496963308> but was <missing> 255: expected <2021-01-01T00:13:50.000Z=0.5869770443795856> but was <missing> 256: expected <2021-01-01T00:13:54.999Z=0.5674164887746508> but was <missing> 257: expected <2021-01-01T00:13:55.000Z=0.6472085992432111> but was <missing> 258: expected <2021-01-01T00:14:00.000Z=0.5080826372822587> but was <missing> 259: expected <2021-01-01T00:14:04.999Z=0.9597422293350149> but was <missing> 260: expected <2021-01-01T00:14:05.000Z=0.9270671081988116> but was <missing> 261: expected <2021-01-01T00:14:09.999Z=0.12248739006365983> but was <missing> 262: expected <2021-01-01T00:14:10.000Z=0.7702236638751139> but was <missing> 263: expected <2021-01-01T00:14:15.000Z=0.7087306361100165> but was <missing> 264: expected <2021-01-01T00:14:20.000Z=0.6843871707457364> but was <missing> 265: expected <2021-01-01T00:14:25.000Z=0.17830916514380546> but was <missing> 266: expected <2021-01-01T00:14:29.999Z=0.6210697829553862> but was <missing> 267: expected <2021-01-01T00:14:30.000Z=0.11952053278007113> but was <missing> 268: expected <2021-01-01T00:14:35.000Z=0.4907080695735808> but was <missing> 269: expected <2021-01-01T00:14:39.999Z=0.5044229329899617> but was <missing> 270: expected <2021-01-01T00:14:40.000Z=0.8098449576363388> but was <missing> 271: expected <2021-01-01T00:14:45.000Z=0.7073947732309276> but was <missing> 272: expected <2021-01-01T00:14:50.000Z=0.741745360604035> but was <missing> 273: expected <2021-01-01T00:14:54.999Z=0.045642491936204066> but was <missing> 274: expected <2021-01-01T00:14:55.000Z=0.3925525054875817> but was <missing> 275: expected <2021-01-01T00:14:59.999Z=0.5611557283173259> but was <missing> 276: expected <2021-01-01T00:15:00.000Z=0.35400857091463045> but was <missing> 277: expected <2021-01-01T00:15:05.000Z=0.09168093525373877> but was <missing> 278: expected <2021-01-01T00:15:10.000Z=0.5475707225973417> but was <missing> 279: expected <2021-01-01T00:15:14.999Z=0.664752762568858> but was <missing> 280: expected <2021-01-01T00:15:15.000Z=0.08912724907486924> but was <missing> 281: expected <2021-01-01T00:15:20.000Z=0.6585387850803934> but was <missing> 282: expected <2021-01-01T00:15:24.999Z=0.09029273838340901> but was <missing> 283: expected <2021-01-01T00:15:25.000Z=0.409504420014975> but was <missing> 284: expected <2021-01-01T00:15:29.999Z=0.5651749841978154> but was <missing> 285: expected <2021-01-01T00:15:30.000Z=0.8878301126587491> but was <missing> 286: expected <2021-01-01T00:15:34.999Z=0.9281937114590947> but was <missing> 287: expected <2021-01-01T00:15:35.000Z=0.06646301838087065> but was <missing> 288: expected <2021-01-01T00:15:39.999Z=0.4735243111267289> but was <missing> 289: expected <2021-01-01T00:15:40.000Z=0.16506436612446573> but was <missing> 290: expected <2021-01-01T00:15:44.999Z=0.22065778611663822> but was <missing> 291: expected <2021-01-01T00:15:45.000Z=0.9905637641344318> but was <missing> 292: expected <2021-01-01T00:15:50.000Z=0.7850213935453285> but was <missing> 293: expected <2021-01-01T00:15:54.999Z=0.21579615803550412> but was <missing> 294: expected <2021-01-01T00:15:55.000Z=0.304878903442504> but was <missing> 295: expected <2021-01-01T00:16:00.000Z=0.015409635034005387> but was <missing> 296: expected <2021-01-01T00:16:05.000Z=0.725866088480892> but was <missing> 297: expected <2021-01-01T00:16:10.000Z=0.11254146898894912> but was <missing> 298: expected <2021-01-01T00:16:15.000Z=0.5062509646668806> but was <missing> 299: expected <2021-01-01T00:16:20.000Z=0.3459109886548972> but was <missing> 300: expected <2021-01-01T00:16:24.999Z=0.06227854455431503> but was <missing> 301: expected <2021-01-01T00:16:25.000Z=0.4499948775529975> but was <missing> 302: expected <2021-01-01T00:16:30.000Z=0.4466990295074956> but was <missing> 303: expected <2021-01-01T00:16:35.000Z=0.6403157892915267> but was <missing> 304: expected <2021-01-01T00:16:40.000Z=0.35460811726538977> but was <missing> 305: expected <2021-01-01T00:16:45.000Z=0.659061881405667> but was <missing> 306: expected <2021-01-01T00:16:49.999Z=0.6791216949299511> but was <missing> 307: expected <2021-01-01T00:16:50.000Z=0.0039387171400246945> but was <missing> 308: expected <2021-01-01T00:16:54.999Z=0.6022733938969255> but was <missing> 309: expected <2021-01-01T00:16:55.000Z=0.18676136868684134> but was <missing> 310: expected <2021-01-01T00:17:00.000Z=0.2666263570400442> but was <missing> 311: expected <2021-01-01T00:17:04.999Z=0.15643966865189407> but was <missing> 312: expected <2021-01-01T00:17:05.000Z=0.199943621765991> but was <missing> 313: expected <2021-01-01T00:17:10.000Z=0.43746268234011776> but was <missing> 314: expected <2021-01-01T00:17:15.000Z=0.7723177878078241> but was <missing> 315: expected <2021-01-01T00:17:19.999Z=0.41763277213436567> but was <missing> 316: expected <2021-01-01T00:17:20.000Z=0.48210455280317754> but was <missing> 317: expected <2021-01-01T00:17:24.999Z=0.4511453528141526> but was <missing> 318: expected <2021-01-01T00:17:25.000Z=0.9130225236967551> but was <missing> 319: expected <2021-01-01T00:17:30.000Z=0.6210789011495227> but was <missing> 320: expected <2021-01-01T00:17:34.999Z=0.22924523568544397> but was <missing> 321: expected <2021-01-01T00:17:35.000Z=0.16399779965098615> but was <missing> 322: expected <2021-01-01T00:17:40.000Z=0.48744322691080544> but was <missing> 323: expected <2021-01-01T00:17:45.000Z=0.26610831973799576> but was <missing> 324: expected <2021-01-01T00:17:50.000Z=0.4422157041900304> but was <missing> 325: expected <2021-01-01T00:17:54.999Z=0.6860169353820335> but was <missing> 326: expected <2021-01-01T00:17:55.000Z=0.7553872377043779> but was <missing> 327: expected <2021-01-01T00:17:59.999Z=0.2480655219381852> but was <missing> 328: expected <2021-01-01T00:18:00.000Z=0.7213040825749619> but was <missing> 329: expected <2021-01-01T00:18:05.000Z=0.9729698054392547> but was <missing> 330: expected <2021-01-01T00:18:10.000Z=0.4208461554192252> but was <missing> 331: expected <2021-01-01T00:18:15.000Z=0.30416626182711204> but was <missing> 332: expected <2021-01-01T00:18:19.999Z=0.07749791000291806> but was <missing> 333: expected <2021-01-01T00:18:20.000Z=0.4757073924452886> but was <missing> 334: expected <2021-01-01T00:18:25.000Z=0.08554592036336717> but was <missing> 335: expected <2021-01-01T00:18:29.999Z=0.7340012583287395> but was <missing> 336: expected <2021-01-01T00:18:30.000Z=0.9941635331663973> but was <missing> 337: expected <2021-01-01T00:18:34.999Z=0.7828316503597539> but was <missing> 338: expected <2021-01-01T00:18:35.000Z=0.30945351301952173> but was <missing> 339: expected <2021-01-01T00:18:40.000Z=0.30234854049226056> but was <missing> 340: expected <2021-01-01T00:18:45.000Z=0.4002144176760304> but was <missing> 341: expected <2021-01-01T00:18:50.000Z=0.32881899569170037> but was <missing> 342: expected <2021-01-01T00:18:54.999Z=0.0614987375019721> but was <missing> 343: expected <2021-01-01T00:18:55.000Z=0.5084742831743445> but was <missing> 344: expected <2021-01-01T00:19:00.000Z=0.8934453952345911> but was <missing> 345: expected <2021-01-01T00:19:05.000Z=0.6092914178452781> but was <missing> 346: expected <2021-01-01T00:19:09.999Z=0.7004464908699153> but was <missing> 347: expected <2021-01-01T00:19:10.000Z=0.6009157811712023> but was <missing> 348: expected <2021-01-01T00:19:14.999Z=0.6895813253251787> but was <missing> 349: expected <2021-01-01T00:19:15.000Z=0.6239452397065652> but was <missing> 350: expected <2021-01-01T00:19:19.999Z=0.6810945577345899> but was <missing> 351: expected <2021-01-01T00:19:20.000Z=0.5730112791258264> but was <missing> 352: expected <2021-01-01T00:19:24.999Z=0.86800660804153> but was <missing> 353: expected <2021-01-01T00:19:25.000Z=0.9733871933514536> but was <missing> 354: expected <2021-01-01T00:19:30.000Z=0.6906965554241613> but was <missing> 355: expected <2021-01-01T00:19:35.000Z=0.5739682642911249> but was <missing> 356: expected <2021-01-01T00:19:39.999Z=0.8990359655937489> but was <missing> 357: expected <2021-01-01T00:19:40.000Z=0.09049997981422186> but was <missing> 358: expected <2021-01-01T00:19:45.000Z=0.4324231780839509> but was <missing> 359: expected <2021-01-01T00:19:49.999Z=0.616003346497332> but was <missing> 360: expected <2021-01-01T00:19:50.000Z=0.36203941965651454> but was <missing> 361: expected <2021-01-01T00:19:54.999Z=0.17797293934401093> but was <missing> 362: expected <2021-01-01T00:19:55.000Z=0.3331551834595773> but was <missing> 363: expected <2021-01-01T00:19:59.999Z=0.09035570601766152> but was <missing> 364: expected <2021-01-01T00:20:00.000Z=0.7894560954769962> but was <missing> 365: expected <2021-01-01T00:20:05.000Z=0.448010283688529> but was <missing> 366: expected <2021-01-01T00:20:10.000Z=0.3663577416105226> but was <missing> 367: expected <2021-01-01T00:20:14.999Z=0.7276265964764296> but was <missing> 368: expected <2021-01-01T00:20:15.000Z=0.6362605716405826> but was <missing> 369: expected <2021-01-01T00:20:19.999Z=0.9409268279747252> but was <missing> 370: expected <2021-01-01T00:20:20.000Z=0.8583165107949413> but was <missing> 371: expected <2021-01-01T00:20:24.999Z=0.7387645499111701> but was <missing> 372: expected <2021-01-01T00:20:25.000Z=0.07331642188557785> but was <missing> 373: expected <2021-01-01T00:20:30.000Z=0.4903891638382155> but was <missing> 374: expected <2021-01-01T00:20:34.999Z=0.3102301543178899> but was <missing> 375: expected <2021-01-01T00:20:35.000Z=0.5557337619144058> but was <missing> 376: expected <2021-01-01T00:20:40.000Z=0.0717768117526818> but was <missing> 377: expected <2021-01-01T00:20:44.999Z=0.09273677162106087> but was <missing> 378: expected <2021-01-01T00:20:45.000Z=0.45428670065818666> but was <missing> 379: expected <2021-01-01T00:20:50.000Z=0.19948240702096132> but was <missing> 380: expected <2021-01-01T00:20:54.999Z=0.7564090715516368> but was <missing> 381: expected <2021-01-01T00:20:55.000Z=0.23429707096863506> but was <missing> 382: expected <2021-01-01T00:21:00.000Z=0.7201046584443479> but was <missing> 383: expected <2021-01-01T00:21:05.000Z=0.3908252868120208> but was <missing> 384: expected <2021-01-01T00:21:10.000Z=0.8866702504069978> but was <missing> 385: expected <2021-01-01T00:21:15.000Z=0.016825491750226407> but was <missing> 386: expected <2021-01-01T00:21:19.999Z=0.5138063909477396> but was <missing> 387: expected <2021-01-01T00:21:20.000Z=0.9546463428765657> but was <missing> 388: expected <2021-01-01T00:21:25.000Z=0.9299669224098617> but was <missing> 389: expected <2021-01-01T00:21:30.000Z=0.6313641340645438> but was <missing> 390: expected <2021-01-01T00:21:34.999Z=0.1026536182083384> but was <missing> 391: expected <2021-01-01T00:21:35.000Z=0.4248279931224037> but was <missing> 392: expected <2021-01-01T00:21:40.000Z=0.5034890447097179> but was <missing> 393: expected <2021-01-01T00:21:44.999Z=0.37704655179166> but was <missing> 394: expected <2021-01-01T00:21:45.000Z=0.9462089840695226> but was <missing> 395: expected <2021-01-01T00:21:49.999Z=0.545432001691098> but was <missing> 396: expected <2021-01-01T00:21:50.000Z=0.1340620081786419> but was <missing> 397: expected <2021-01-01T00:21:55.000Z=0.25123413355136825> but was <missing> 398: expected <2021-01-01T00:22:00.000Z=0.778774116909822> but was <missing> 399: expected <2021-01-01T00:22:05.000Z=0.12786778524181597> but was <missing> 400: expected <2021-01-01T00:22:10.000Z=0.36516830444724113> but was <missing> 401: expected <2021-01-01T00:22:14.999Z=0.7519529722143993> but was <missing> 402: expected <2021-01-01T00:22:15.000Z=0.08778373852526666> but was <missing> 403: expected <2021-01-01T00:22:20.000Z=0.6077578745815715> but was <missing> 404: expected <2021-01-01T00:22:25.000Z=0.886109568533835> but was <missing> 405: expected <2021-01-01T00:22:29.999Z=0.1050054631672448> but was <missing> 406: expected <2021-01-01T00:22:30.000Z=0.20796312143292472> but was <missing> 407: expected <2021-01-01T00:22:35.000Z=0.8153058065096401> but was <missing> at __randomizedtesting.SeedInfo.seed([7622EAB321665ED6:17A2B91D02A5B6D7]:0) at io.github.nik9000.mapmatcher.MapMatcher.assertMap(MapMatcher.java:79) at io.github.nik9000.mapmatcher.MapMatcher.assertMap(MapMatcher.java:62) at org.elasticsearch.timeseries.support.TimeSeriesMetricsIT.testManySteps(TimeSeriesMetricsIT.java:346) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/81533
https://github.com/elastic/elasticsearch/pull/81683
e391d75d8263140c52206a12bd3c1118935a486f
39fba16d971e819f4a9100b9e6c60df76c5b5071
2021-12-08T15:01:08Z
java
2021-12-15T00:21:22Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,529
["docs/changelog/83213.yaml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.aggregation/40_range.yml", "server/src/main/java/org/elasticsearch/index/mapper/NumberFieldMapper.java", "server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregatorTests.java"]
Long.MIN_VALUE considered out of range for type `long` in range aggregations
<!-- GitHub is reserved for bug reports and feature requests; it is not the place for general questions. If you have a question or an unconfirmed bug , please visit the [forums](https://discuss.elastic.co/c/elasticsearch). Please also check your OS is [supported](https://www.elastic.co/support/matrix#show_os). If it is not, the issue is likely to be closed. For security vulnerabilities please only send reports to [email protected]. See https://www.elastic.co/community/security for more information. Please fill in the following details to help us reproduce the bug: --> **Elasticsearch version** (`bin/elasticsearch --version`): 7.16.0 **Plugins installed**: [] **JVM version** (`java -version`): **OS version** (`uname -a` if on a Unix-like system): **Description of the problem including expected versus actual behavior**: When defining a range aggregation on a field of type `long`, if one of the ranges has a bound equal to `Long.MIN_VALUE` (the java constant, equal to `-(2^63)`) or just a bit higher, Elasticsearch raises an error: ``` "Value [-9.223372036854776E18] is out of range for a long" ``` This directly contradicts the [documentation of numeric types](https://www.elastic.co/guide/en/elasticsearch/reference/current/number.html) which states that a `long` is "A signed 64-bit integer with a minimum value of -2^63 and a maximum value of 2^63-1" It is a regression compared to 7.15.2, which didn't raise such an error. **Steps to reproduce**: ``` curl -XDELETE -H "Content-Type: application/json" 'localhost:9200/test/' || true echo curl -XPUT -H "Content-Type: application/json" 'localhost:9200/test/' -d'{"mappings": {"properties": {"mylong": {"type": "long" } } } }' echo curl -XPUT -H "Content-Type: application/json" 'localhost:9200/test/_doc/1?refresh=true' -d '{"mylong": -9223372036854775808 }' echo curl -XPOST -H "Content-Type: application/json" 'localhost:9200/test/_search?size=0&pretty' -d '{"query":{"match_all":{}},"aggregations":{"myagg":{"range":{"field":"mylong","ranges":[{"from":-9223372036854775808,"to":9223372036854775807}]}}}}' ``` Output of the last command with Elasticsearch 7.16.0: ```json{"total":2,"successful":1,"failed":0},"_seq_no":0,"_primary_term":1} { "error" : { "root_cause" : [ { "type" : "illegal_argument_exception", "reason" : "Value [-9.223372036854776E18] is out of range for a long" } ], "type" : "search_phase_execution_exception", "reason" : "all shards failed", "phase" : "query", "grouped" : true, "failed_shards" : [ { "shard" : 0, "index" : "test", "node" : "MgMAsXzNTxeaMkLvCsZjuw", "reason" : { "type" : "illegal_argument_exception", "reason" : "Value [-9.223372036854776E18] is out of range for a long" } } ], "caused_by" : { "type" : "illegal_argument_exception", "reason" : "Value [-9.223372036854776E18] is out of range for a long", "caused_by" : { "type" : "illegal_argument_exception", "reason" : "Value [-9.223372036854776E18] is out of range for a long" } } }, "status" : 400 } ``` Output of the last command with Elasticsearch 7.15.2: ```json { "took" : 49, "timed_out" : false, "_shards" : { "total" : 1, "successful" : 1, "skipped" : 0, "failed" : 0 }, "hits" : { "total" : { "value" : 1, "relation" : "eq" }, "max_score" : null, "hits" : [ ] }, "aggregations" : { "myagg" : { "buckets" : [ { "key" : "-9.223372036854776E18-9.223372036854776E18", "from" : -9.223372036854776E18, "to" : 9.223372036854776E18, "doc_count" : 1 } ] } } } ``` **Provide logs (if relevant)**: N/A **Workaround**: Sending long values as JSON strings instead of JSON numbers removes the problem completely, apparently bypassing the (invalid) check. So I suppose this is a deserialization bug, where extreme integer values are rounded and converted to doubles during deserialization.
https://github.com/elastic/elasticsearch/issues/81529
https://github.com/elastic/elasticsearch/pull/83213
7f0595abe68e07d927c874a53737556f6555fdaf
2d701b99670246724399f37df2fd63299af7d33b
2021-12-08T14:20:37Z
java
2022-02-02T13:59:13Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,514
["x-pack/plugin/transform/qa/single-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/transform/integration/TransformPivotRestIT.java", "x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/action/TransportPreviewTransformAction.java"]
[Transform] Preview transform returns 'null' when ingest pipeline throws an exception
**Elasticsearch version** (`bin/elasticsearch --version`): 7.15.2 **Description of the problem including expected versus actual behavior**: Running a transform with a pipeline that throws an exception results in `preview` array containung `null` elements without any further explanation what the issue could be - this makes it very hard to debug. I would expect an error message, what had failed in the pipeline within my preview response. **Steps to reproduce**: ``` PUT _ingest/pipeline/orders-set-id { "processors": [ { "script": { "lang": "painless", "source": "ctx._id = ctx['non']['existing'];" } } ] } POST _transform/_preview { "source": { "index": "my-index" }, "dest": { "index": "my-other-index", "pipeline": "orders-set-id" }, "frequency": "1h", "pivot": { "group_by": { "order_id": { "terms": { "field": "order_id.keyword" } } }, "aggregations": { "products": { "scripted_metric": { "init_script": "state.docs = [];", "map_script": "state.docs.add(doc['order_id.keyword'].value);", "combine_script": "return state.docs", "reduce_script": "return [];" } } } } } ``` This returns ```json { "preview" : [ null ], "generated_dest_index" : { "mappings" : { "_meta" : { "_transform" : { "transform" : "transform-preview", "version" : { "created" : "7.15.2" }, "creation_date_in_millis" : 1638962189562 }, "created_by" : "transform" }, "properties" : { "order_id" : { "type" : "keyword" } } }, "settings" : { "index" : { "number_of_shards" : "1", "auto_expand_replicas" : "0-1" } }, "aliases" : { } } } ```
https://github.com/elastic/elasticsearch/issues/81514
https://github.com/elastic/elasticsearch/pull/81972
c813bd995de6c960c2b8000e9909128ea7997f3a
e9af7c608f9686e04d991034cd0cf043f1d9ed1a
2021-12-08T11:19:37Z
java
2022-01-04T13:25:12Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,502
["x-pack/plugin/sql/qa/server/src/main/java/org/elasticsearch/xpack/sql/qa/rest/RestSqlUsageTestCase.java", "x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/execution/PlanExecutor.java", "x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/execution/search/Querier.java"]
SQL: Incorrect stats reported when sorting by aggregated values
The following query increases the `rest.total` counter by 11 and the `rest.paging` counter by 10 (as returned by `_sql/stats`): ``` GET http://localhost:9201/_sql { "fetch_size": 10, "query": "select last_name, sum(languages) from test_emp group by 1 order by 2" } ``` Expected behavior would be to only increase `rest.total` by 1. The bug is caused by `LocalAggregationSorterListener` using `PlanExecutor` to fetch all records before sorting.
https://github.com/elastic/elasticsearch/issues/81502
https://github.com/elastic/elasticsearch/pull/81510
9a3422e1a6cf519e3fedce396784be2ef48dc7f9
7d1c434922145c5a285798a7f3dd2525f17a5c74
2021-12-08T09:39:44Z
java
2021-12-13T08:29:21Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,486
["docs/changelog/81552.yaml", "server/src/main/java/org/elasticsearch/script/ScriptService.java", "server/src/test/java/org/elasticsearch/script/ScriptServiceTests.java", "x-pack/plugin/deprecation/src/main/java/org/elasticsearch/xpack/deprecation/NodeDeprecationChecks.java", "x-pack/plugin/deprecation/src/test/java/org/elasticsearch/xpack/deprecation/NodeDeprecationChecksTests.java"]
Script settings validation breaks mixed version cluster (7.15 + 7.16)
In #79508 the default value for `script.max_compilations_rate` [was changed](https://github.com/elastic/elasticsearch/pull/79508/files#diff-d072249a052aa7da92041f1e174a48ea6329987eaf927b8025aba11ddc2b2818L68-R71) from `"use-context"` to `"150/5m"`. That means, that `validateCacheSetting` now treats `useContext` as false, and rejects any cluster settings on a context. https://github.com/elastic/elasticsearch/blob/v7.16.0/server/src/main/java/org/elasticsearch/script/ScriptService.java#L349-L360 When in a mixed version cluster, the 7.15 node will accept cluster settings such as ``` PUT /_cluster/settings { "persistent": { "script.context.template.max_compilations_rate": "5000/5m" } } ``` But the 7.16 version will reject them, and will fail to apply the cluster state on the local node. Consequently, rolling upgrades with context settings will fail unless `script.max_compilations_rate` is explicitly set to `use-context` on the 7.15 node.
https://github.com/elastic/elasticsearch/issues/81486
https://github.com/elastic/elasticsearch/pull/81552
9f37097a748a2cdde62ce641df442db6837969bf
ba6c17d30faafc0cbfdb95f3254835ce9daad0f7
2021-12-08T02:29:08Z
java
2021-12-08T21:12:44Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,477
["x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/TimeseriesLifecycleTypeTests.java"]
[CI] TimeseriesLifecycleTypeTests testValidateFrozenPhase failing
**Build scan:** https://gradle-enterprise.elastic.co/s/xsjrax5txdnyc/tests/:x-pack:plugin:core:test/org.elasticsearch.xpack.core.ilm.TimeseriesLifecycleTypeTests/testValidateFrozenPhase **Reproduction line:** `./gradlew ':x-pack:plugin:core:test' --tests "org.elasticsearch.xpack.core.ilm.TimeseriesLifecycleTypeTests.testValidateFrozenPhase" -Dtests.seed=9841D5E77E0800F0 -Dtests.locale=es-AR -Dtests.timezone=America/Indiana/Indianapolis -Druntime.java=17` **Applicable branches:** master **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.core.ilm.TimeseriesLifecycleTypeTests&tests.test=testValidateFrozenPhase **Failure excerpt:** ``` java.lang.IllegalArgumentException: policy specifies the [frozen] phase without a corresponding [searchable_snapshot] action, but a searchable snapshot action is required in the frozen phase at __randomizedtesting.SeedInfo.seed([9841D5E77E0800F0:11FAB12CC16D116F]:0) at org.elasticsearch.xpack.core.ilm.TimeseriesLifecycleType.lambda$validateFrozenPhaseHasSearchableSnapshotAction$21(TimeseriesLifecycleType.java:490) at java.util.Optional.ifPresent(Optional.java:178) at org.elasticsearch.xpack.core.ilm.TimeseriesLifecycleType.validateFrozenPhaseHasSearchableSnapshotAction(TimeseriesLifecycleType.java:488) at org.elasticsearch.xpack.core.ilm.TimeseriesLifecycleType.validate(TimeseriesLifecycleType.java:333) at org.elasticsearch.xpack.core.ilm.TimeseriesLifecycleTypeTests.testValidateFrozenPhase(TimeseriesLifecycleTypeTests.java:196) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/81477
https://github.com/elastic/elasticsearch/pull/81479
3f5edd167843059f23a7cb652c7eaebcb77d26f9
cd344e30eafb0ddc797af1263bd86445d002226a
2021-12-07T22:08:38Z
java
2021-12-08T07:33:25Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,470
["x-pack/plugin/ml/qa/native-multi-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/ml/integration/AutoscalingIT.java", "x-pack/plugin/ml/qa/native-multi-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/ml/integration/PyTorchModelIT.java", "x-pack/plugin/ml/qa/native-multi-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/ml/integration/TestFeatureResetIT.java", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/nlp/tokenizers/BertTokenizer.java", "x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/inference/nlp/BertRequestBuilderTests.java", "x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/inference/nlp/NerProcessorTests.java", "x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/inference/nlp/TextClassificationProcessorTests.java", "x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/inference/nlp/ZeroShotClassificationProcessorTests.java", "x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/inference/nlp/tokenizers/BertTokenizerTests.java"]
[ML] validate vocab tokens on model initialization
The passed vocabulary for NER models should be validated on model start up. We should: - Ensure the UNKNOWN token is provided - That special tokens exist if they are requested by the tokenizer - That the PAD token is provided Right now, there are many smaller functional tests that take advantage of this validation error. But, in production, not having these tokens would result in unfriendly NPEs or weird tokenization errors.
https://github.com/elastic/elasticsearch/issues/81470
https://github.com/elastic/elasticsearch/pull/81548
90e4e8ce630aecba6b1d631cad77c903f892d655
0fc4dff194767b6b76c5936163ab16e10d593d7f
2021-12-07T21:27:05Z
java
2021-12-09T13:26:15Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,468
["rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/tsdb/40_search.yml"]
[CI] SmokeTestMultiNodeClientYamlTestSuiteIT test {yaml=tsdb/40_search/ids query} failing
**Build scan:** https://gradle-enterprise.elastic.co/s/edbbtbzes7dxg/tests/:qa:smoke-test-multinode:integTest/org.elasticsearch.smoketest.SmokeTestMultiNodeClientYamlTestSuiteIT/test%20%7Byaml=tsdb%2F40_search%2Fids%20query%7D **Reproduction line:** `./gradlew ':qa:smoke-test-multinode:integTest' --tests "org.elasticsearch.smoketest.SmokeTestMultiNodeClientYamlTestSuiteIT.test {yaml=tsdb/40_search/ids query}" -Dtests.seed=11B63D69F126C92A -Dtests.locale=sk-SK -Dtests.timezone=America/Punta_Arenas -Druntime.java=17` **Applicable branches:** master **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.smoketest.SmokeTestMultiNodeClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dtsdb/40_search/ids%20query%7D **Failure excerpt:** ``` java.lang.AssertionError: Failure at [tsdb/40_search:358]: Expected: "u1" but: was "u3" at __randomizedtesting.SeedInfo.seed([11B63D69F126C92A:99E202B35FDAA4D2]:0) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:489) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462) at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) Caused by: java.lang.AssertionError: Expected: "u1" but: was "u3" at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.junit.Assert.assertThat(Assert.java:923) at org.elasticsearch.test.rest.yaml.section.MatchAssertion.doAssert(MatchAssertion.java:99) at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:478) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462) at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(null:-1) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/81468
https://github.com/elastic/elasticsearch/pull/81731
4d085d7551aedc34cd7a1d7ea06ea9dc1ed12ed9
201cc86b31485c5a1ef5a3f336bed1780a229f64
2021-12-07T21:02:12Z
java
2021-12-14T16:22:59Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,462
["x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/data_stream/10_basic.yml"]
[CI] XPackRestIT test {p0=data_stream/10_basic/Get data stream api check existence of replicated and allow_custom_routing fields} failing
allow_custom_routing is only in 8.0 but the test assumes it's in 7.16.1 and above. **Build scan:** https://gradle-enterprise.elastic.co/s/lamn7fwv2wwy2/tests/:x-pack:plugin:yamlRestTest/org.elasticsearch.xpack.test.rest.XPackRestIT/test%20%7Bp0=data_stream%2F10_basic%2FGet%20data%20stream%20api%20check%20existence%20of%20replicated%20and%20allow_custom_routing%20fields%7D **Reproduction line:** `./gradlew ':x-pack:plugin:yamlRestTest' --tests "org.elasticsearch.xpack.test.rest.XPackRestIT.test {p0=data_stream/10_basic/Get data stream api check existence of replicated and allow_custom_routing fields}" -Dtests.seed=862835B30F4AEBBB -Dtests.locale=vi -Dtests.timezone=America/Denver -Druntime.java=8` **Applicable branches:** 7.16 **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%3Ddata_stream/10_basic/Get%20data%20stream%20api%20check%20existence%20of%20replicated%20and%20allow_custom_routing%20fields%7D **Failure excerpt:** ``` java.lang.AssertionError: Failure at [data_stream/10_basic:652]: field [data_streams.0.allow_custom_routing] is null at __randomizedtesting.SeedInfo.seed([862835B30F4AEBBB:E7C0A69A1B68643]:0) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:482) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:455) at sun.reflect.GeneratedMethodAccessor15.invoke(null:-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1750) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:938) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:974) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:988) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:49) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:48) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:368) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:817) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:468) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:947) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:832) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:883) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:894) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:41) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:54) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:368) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.AssertionError: field [data_streams.0.allow_custom_routing] 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:471) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:455) at sun.reflect.GeneratedMethodAccessor15.invoke(null:-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1750) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:938) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:974) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:988) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:49) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:48) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:368) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:817) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:468) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:947) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:832) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:883) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:894) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:41) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:54) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:368) at java.lang.Thread.run(Thread.java:748) ```
https://github.com/elastic/elasticsearch/issues/81462
https://github.com/elastic/elasticsearch/pull/81590
d467aae67eb5ca24cb9d8ec76e9ea29538834aed
616b417fb07e9653ef3eeeeaab2e65902cc9e710
2021-12-07T17:31:30Z
java
2021-12-13T12:23:29Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,461
["client/rest-high-level/src/main/java/org/elasticsearch/client/ilm/LifecyclePolicy.java", "client/rest-high-level/src/main/java/org/elasticsearch/client/ilm/MigrateAction.java", "client/rest-high-level/src/test/java/org/elasticsearch/client/ilm/GetLifecyclePolicyResponseTests.java", "client/rest-high-level/src/test/java/org/elasticsearch/client/ilm/LifecyclePolicyMetadataTests.java", "client/rest-high-level/src/test/java/org/elasticsearch/client/ilm/LifecyclePolicyTests.java", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/TimeseriesLifecycleType.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/TimeseriesLifecycleTypeTests.java"]
HLRC's LifecyclePolicy is missing multiple valid actions in ALLOWED_ACTIONS
The `ALLOWED_ACTIONS` map in the HLRC `LifecyclePolicy.java` is missing actions (actually the entire `frozen` phase). We should bring it up to parity in the 7.x timeseries.
https://github.com/elastic/elasticsearch/issues/81461
https://github.com/elastic/elasticsearch/pull/81483
39fba16d971e819f4a9100b9e6c60df76c5b5071
62472480aed054e98d64b673febf029003a023b7
2021-12-07T17:27:50Z
java
2021-12-15T00:50:17Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,431
["docs/reference/aggregations/bucket/composite-aggregation.asciidoc"]
Update `composite` aggregation docs that `size` is not allowed in `terms` aggregation
It's not possible to use `size` parameter when `terms` aggregation is used as `sources` in a `composite` aggregation. <img width="1381" alt="Screenshot 2021-12-07 at 14 15 26" src="https://user-images.githubusercontent.com/6585477/145038667-d74305e2-50d1-44b1-bc6e-d9f2f85c38e9.png"> The [docs page](https://www.elastic.co/guide/en/elasticsearch/reference/master/search-aggregations-bucket-composite-aggregation.html#_terms) for `composite` aggregation should mention that. It currently says > The terms value source is equivalent to a simple terms aggregation. The values are extracted from a field exactly like the terms aggregation.
https://github.com/elastic/elasticsearch/issues/81431
https://github.com/elastic/elasticsearch/pull/81775
1bd0561a91bb6bdbb3103fb3b24de9d1044f143e
04318961b948cd0794bfd7e5eaf4a0dee8ba8bd4
2021-12-07T13:36:22Z
java
2021-12-15T19:32:16Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,415
["modules/legacy-geo/build.gradle"]
[CI] LegacyGeoShapeFieldMapperTests testMinimalIsInvalidInRoutingPath failing
**Build scan:** https://gradle-enterprise.elastic.co/s/l3web4uikmzda/tests/:modules:legacy-geo:test/org.elasticsearch.legacygeo.mapper.LegacyGeoShapeFieldMapperTests/testMinimalIsInvalidInRoutingPath **Reproduction line:** `./gradlew ':modules:legacy-geo:test' --tests "org.elasticsearch.legacygeo.mapper.LegacyGeoShapeFieldMapperTests.testMinimalIsInvalidInRoutingPath" -Dtests.seed=9D9C10E69693AB84 -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=fi -Dtests.timezone=America/Bahia_Banderas -Druntime.java=17` **Applicable branches:** master **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.legacygeo.mapper.LegacyGeoShapeFieldMapperTests&tests.test=testMinimalIsInvalidInRoutingPath **Failure excerpt:** ``` java.lang.IllegalArgumentException: setting index.time_series.start_time has not been registered at __randomizedtesting.SeedInfo.seed([9D9C10E69693AB84:C8CED0B44AAE8F09]:0) at org.elasticsearch.common.settings.AbstractScopedSettings.get(AbstractScopedSettings.java:740) at org.elasticsearch.index.TimestampBounds.<init>(TimestampBounds.java:22) at org.elasticsearch.index.IndexSettings.<init>(IndexSettings.java:701) at org.elasticsearch.index.IndexSettings.<init>(IndexSettings.java:680) at org.elasticsearch.index.mapper.MapperServiceTestCase.createIndexSettings(MapperServiceTestCase.java:215) at org.elasticsearch.index.mapper.MapperTestCase.testMinimalIsInvalidInRoutingPath(MapperTestCase.java:750) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/81415
https://github.com/elastic/elasticsearch/pull/81494
1ffd17df590af3560829c2c52b06af87633a23a1
6819d57bcb96d1b8ace841eb69dfdb0144c75199
2021-12-07T10:06:40Z
java
2021-12-14T15:22:17Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,411
["docs/changelog/84780.yaml", "server/src/main/java/org/elasticsearch/cluster/metadata/SystemIndexMetadataUpgradeService.java", "x-pack/qa/full-cluster-restart/src/test/java/org/elasticsearch/xpack/restart/FullClusterRestartIT.java"]
[CI] FullClusterRestartIT testSecurityNativeRealm failing
This seems to be related to some unexpected deprecation warning related to system indices, that's why I tagged it as Core/Infra. **Build scan:** https://gradle-enterprise.elastic.co/s/cnwwh5dnseay4/tests/:x-pack:qa:full-cluster-restart:v7.9.2%23upgradedClusterTest/org.elasticsearch.xpack.restart.FullClusterRestartIT/testSecurityNativeRealm **Reproduction line:** `./gradlew ':x-pack:qa:full-cluster-restart:v7.9.2#upgradedClusterTest' -Dtests.class="org.elasticsearch.xpack.restart.FullClusterRestartIT" -Dtests.method="testSecurityNativeRealm" -Dtests.seed=AEA01868BA18CBDC -Dtests.bwc=true -Dtests.locale=el-GR -Dtests.timezone=EST5EDT -Druntime.java=17` **Applicable branches:** master, 8.0 **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.restart.FullClusterRestartIT&tests.test=testSecurityNativeRealm **Failure excerpt:** ``` org.elasticsearch.client.WarningFailureException: method [GET], host [http://127.0.0.1:45353], URI [/.security/_settings/index.format], status line [HTTP/1.1 200 OK] {".security-7":{"settings":{"index":{"format":"6"}}}} at __randomizedtesting.SeedInfo.seed([AEA01868BA18CBDC:2558E43B80AE6BC4]:0) at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:331) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:301) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:276) at org.elasticsearch.xpack.restart.FullClusterRestartIT.testSecurityNativeRealm(FullClusterRestartIT.java:112) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/81411
https://github.com/elastic/elasticsearch/pull/84780
5f06b5f6275f982780cdd1888ad4538b89cbc297
87bd2eb24dc653ca4f100549e1ee502d86550bf2
2021-12-07T09:47:25Z
java
2022-03-09T18:15:29Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,409
["qa/full-cluster-restart/src/test/java/org/elasticsearch/upgrades/FullClusterRestartIT.java"]
[CI] FullClusterRestartIT testSystemIndexMetadataIsUpgraded failing
**Build scan:** https://gradle-enterprise.elastic.co/s/kpoocm5rmmqv6/tests/:qa:full-cluster-restart:v7.2.0%23upgradedClusterTest/org.elasticsearch.upgrades.FullClusterRestartIT/testSystemIndexMetadataIsUpgraded **Reproduction line:** `./gradlew ':qa:full-cluster-restart:v7.2.0#upgradedClusterTest' -Dtests.class="org.elasticsearch.upgrades.FullClusterRestartIT" -Dtests.method="testSystemIndexMetadataIsUpgraded" -Dtests.seed=493EAE6B5BB5BDE4 -Dtests.bwc=true -Dtests.locale=es-EC -Dtests.timezone=Australia/West -Druntime.java=17` **Applicable branches:** master, 8.0 **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.upgrades.FullClusterRestartIT&tests.test=testSystemIndexMetadataIsUpgraded **Failure excerpt:** ``` java.lang.AssertionError: Expected: is <true> but: was <false> at __randomizedtesting.SeedInfo.seed([493EAE6B5BB5BDE4:6AF039AC8CE8B14]:0) at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.junit.Assert.assertThat(Assert.java:923) at org.elasticsearch.upgrades.FullClusterRestartIT.lambda$testSystemIndexMetadataIsUpgraded$15(FullClusterRestartIT.java:1630) at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1053) at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1026) at org.elasticsearch.upgrades.FullClusterRestartIT.testSystemIndexMetadataIsUpgraded(FullClusterRestartIT.java:1619) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/81409
https://github.com/elastic/elasticsearch/pull/84830
744e5f72ae78b1552e6b46fbd87d2c7097170358
5b1be932410645400afb1e07cf2d187d2486ddfe
2021-12-07T09:34:44Z
java
2022-03-10T16:39:22Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,393
["server/src/test/java/org/elasticsearch/monitor/os/OsProbeTests.java"]
OsProbeTests#testOsStats fails when you don't have much swap free
Top says: ``` MiB Mem : 31715.4 total, 1456.4 free, 26600.9 used, 3658.1 buff/cache MiB Swap: 4096.0 total, 21.1 free, 4074.9 used. 3770.5 avail Mem ``` The test says: ``` java.lang.AssertionError: Expected: a value greater than <0L> but: <0L> was equal to <0L> at __randomizedtesting.SeedInfo.seed([880A718A8C675F27:300738D0F8DF317]: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.monitor.os.OsProbeTests.testOsStats(OsProbeTests.java:126) ``` So, yeah, I should totally turn off some stuff before the OOKiller starts knocking out processes, but maybe the test shouldn't fail?
https://github.com/elastic/elasticsearch/issues/81393
https://github.com/elastic/elasticsearch/pull/82486
3f9b322374364b8eb9b3edb73f613eb0a3f1fc5a
1e85d567dbf568615fe33e958d97b307242ea09d
2021-12-06T22:18:11Z
java
2022-01-12T18:35:49Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,380
["docs/changelog/86134.yaml", "x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/Realms.java", "x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/RealmsTests.java"]
Boot message possible confusion: reporting trial license
## Description During Elasticsearch boot, users get the following message: > license mode is [trial], currently licensed security realms are [reserved/reserved,file/default_file,native/default_native] Even if it's technically true (and necessary), it may be confusing for end users since they may expect `[basic]` instead. ## Proposal Avoid the message reporting the trial license, since the "correct" license level is written again later in the boot process.
https://github.com/elastic/elasticsearch/issues/81380
https://github.com/elastic/elasticsearch/pull/86134
0a5523cb4e92a3cb662b9ab1879ef923773aae84
25c50919102d27dd8faabb6f6a529b2965907cf3
2021-12-06T16:26:46Z
java
2022-04-27T06:58:52Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,362
[".ci/jobs.t/elastic+elasticsearch+periodic+ear.yml", "server/src/main/java/org/elasticsearch/common/filesystem/LinuxFileSystemNatives.java", "x-pack/plugin/searchable-snapshots/src/test/java/org/elasticsearch/xpack/searchablesnapshots/cache/common/CacheFileTests.java"]
[CI] CacheFileTests.testCacheFileCreatedAsSparseFile fails on master
**Build scan**: https://gradle-enterprise.elastic.co/s/lny65mo6chmek **Repro line**: ``` REPRODUCE WITH: ./gradlew ':x-pack:plugin:searchable-snapshots:test' --tests "org.elasticsearch.xpack.searchablesnapshots.cache.common.CacheFileTests.testCacheFileCreatedAsSparseFile" \ -Dtests.seed=E7AB31A9E717E54B \ -Dtests.locale=zh-CN \ -Dtests.timezone=Etc/GMT-5 \ -Druntime.java=17 REPRODUCE WITH: ./gradlew ':x-pack:plugin:searchable-snapshots:test' --tests "org.elasticsearch.xpack.searchablesnapshots.cache.common.CacheFileTests.testCacheFileCreatedAsSparseFile" \ -Dtests.seed=E7AB31A9E717E54B \ -Dtests.locale=zh-CN \ -Dtests.timezone=Etc/GMT-5 \ -Druntime.java=17 ``` **Reproduces locally?**: No **Applicable branches**: `master` **Failure history**: Two failures today. No prior failures of this test. **Failure excerpt**: ``` 11:54:36 org.elasticsearch.xpack.searchablesnapshots.cache.common.CacheFileTests > testCacheFileCreatedAsSparseFile FAILED 11:54:36 java.lang.AssertionError 11:54:36 at __randomizedtesting.SeedInfo.seed([45B7968DCEE813EC:C0396B8309F7EF9D]:0) 11:54:36 at org.junit.Assert.fail(Assert.java:86) 11:54:36 at org.junit.Assert.assertTrue(Assert.java:41) 11:54:36 at org.junit.Assert.assertTrue(Assert.java:52) 11:54:36 at org.elasticsearch.xpack.searchablesnapshots.cache.common.CacheFileTests.testCacheFileCreatedAsSparseFile(CacheFileTests.java:422) ```
https://github.com/elastic/elasticsearch/issues/81362
https://github.com/elastic/elasticsearch/pull/81527
7d69f1a97401aa20e9c7276251cadbb714f5e2ed
647e5fe64861eb64b7daeb965768f79ed99105d7
2021-12-06T11:54:22Z
java
2021-12-09T09:48:28Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,313
["x-pack/plugin/security/cli/build.gradle", "x-pack/plugin/security/cli/src/main/java/org/elasticsearch/xpack/security/cli/AutoConfigureNode.java", "x-pack/plugin/security/cli/src/test/java/org/elasticsearch/xpack/security/cli/AutoConfigureNodeTests.java"]
Cannot enroll to nodes with publish addresses
In this scenario the initial node is started behind some IP translation, and the second, to-enroll, node has to use the initial node's published address to contact it. Enrolling fails because the second node doesn't trust the certificate from the initial's node enroll endpoint. That certificate doesn't contain the published address in the SAN field. In the following example the initial node runs inside a docker container, and the second node attempts to enroll from the host: ``` docker run -it -p 192.168.1.137:19300:9300 -p 192.168.1.137:19200:9200 -e "http.publish_host=192.168.1.137" -e "http.publish_port=19300" -e "transport.publish_host=192.168.1.137" -e "transport.publish_port=19200" -e "ES_JAVA_OPTS=-Xms2g -Xmx2g" elasticsearch:test ``` The generated node-enrollment token indeed contains the published address: ``` {"ver":"8.1.0","adr":["192.168.1.137:19300"], ...} ``` But enrolling the second node, from the docker host, fails with: ``` ./bin/elasticsearch -v --enrollment-token eyJ2ZXIiOiI4LjEuMCIsImFkciI6WyIxOTIuMTY4LjEuMTM3OjE5MzAwIl0sImZnciI6ImRjYjMyMzkyZGU0Mzg3NGQyN2VhYThmZWM1ZDJmMmZhZjkxZDcwNTE1ZmIxZGRhNzlmNjFiZDhlMjE2YzY1ZjciLCJrZXkiOiJ4YktHZ0gwQm9jS1d0b2xRVmlQYzo0TW4zRm5FRlN1NmtjLWhKNF9XdEZRIn0= warning: ignoring JAVA_HOME=/Users/albert/Library/Java/JavaVirtualMachines/temurin-17.0.1/Contents/Home; using bundled JDK warning: ignoring JAVA_HOME=/Users/albert/Library/Java/JavaVirtualMachines/temurin-17.0.1/Contents/Home; using bundled JDK warning: ignoring JAVA_HOME=/Users/albert/Library/Java/JavaVirtualMachines/temurin-17.0.1/Contents/Home; using bundled JDK Exception in thread "main" javax.net.ssl.SSLHandshakeException at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:131) at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:370) at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:313) at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:308) at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(CertificateMessage.java:1357) at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.onConsumeCertificate(CertificateMessage.java:1232) at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.consume(CertificateMessage.java:1175) at java.base/sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:396) at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:480) at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:458) at java.base/sun.security.ssl.TransportContext.dispatch(TransportContext.java:200) at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:172) at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1500) at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1415) at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:450) at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:421) at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:580) at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:183) at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:142) at org.elasticsearch.xpack.core.common.socket.SocketAccess.lambda$doPrivileged$0(SocketAccess.java:42) at java.base/java.security.AccessController.doPrivileged(AccessController.java:569) at org.elasticsearch.xpack.core.common.socket.SocketAccess.doPrivileged(SocketAccess.java:41) at org.elasticsearch.xpack.core.security.CommandLineHttpClient.execute(CommandLineHttpClient.java:178) at org.elasticsearch.xpack.core.security.CommandLineHttpClient.execute(CommandLineHttpClient.java:135) at org.elasticsearch.xpack.security.cli.AutoConfigureNode.execute(AutoConfigureNode.java:289) at org.elasticsearch.common.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:81) at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112) at org.elasticsearch.cli.Command.main(Command.java:77) at org.elasticsearch.xpack.security.cli.AutoConfigureNode.main(AutoConfigureNode.java:144) Caused by: java.security.cert.CertificateException at org.elasticsearch.xpack.core.security.CommandLineHttpClient$1.checkServerTrusted(CommandLineHttpClient.java:358) at java.base/sun.security.ssl.AbstractTrustManagerWrapper.checkServerTrusted(SSLContextImpl.java:1441) at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(CertificateMessage.java:1341) ... 24 more ``` From ``` openssl s_client -connect 192.168.1.137:19300 -showcerts 2> /dev/null | openssl x509 -text ``` I can see the published address is not in the SAN ``` X509v3 Subject Alternative Name: DNS:localhost, IP Address:172.17.0.2, IP Address:127.0.0.1, DNS:3f73bd091c2d ``` @jkakavas I worked on the code that introduced this bug. Let me know if you want me to raise a fix.
https://github.com/elastic/elasticsearch/issues/81313
https://github.com/elastic/elasticsearch/pull/81747
a934f8c1e8c56457096fdf098c543ced1bfec506
ba0ac8e1bb946972788a7b28814b4811aaabfa47
2021-12-03T15:37:51Z
java
2021-12-22T15:51:43Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,305
["server/src/test/java/org/elasticsearch/watcher/FileWatcherTests.java"]
[CI] FileWatcherTests testSimpleFileOperations failing
It seems this test stated failing on Dec 1st **Build scan:** https://gradle-enterprise.elastic.co/s/d7426kw4dcfxg/tests/:server:test/org.elasticsearch.watcher.FileWatcherTests/testSimpleFileOperations **Reproduction line:** `./gradlew ':server:test' --tests "org.elasticsearch.watcher.FileWatcherTests.testSimpleFileOperations" -Dtests.seed=B6EC439B4D4CE3D6 -Dtests.locale=sv -Dtests.timezone=Etc/GMT-13 -Druntime.java=17` **Applicable branches:** master, 8.0 **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.watcher.FileWatcherTests&tests.test=testSimpleFileOperations **Failure excerpt:** ``` java.lang.AssertionError: Expected: iterable containing ["onFileChanged: test.txt"] but: no item was "onFileChanged: test.txt" at __randomizedtesting.SeedInfo.seed([B6EC439B4D4CE3D6:59621166A963CE02]: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.watcher.FileWatcherTests.testSimpleFileOperations(FileWatcherTests.java:111) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/81305
https://github.com/elastic/elasticsearch/pull/93556
464251cf4e003c49aca08f039ec1fa0290a76025
eff2fdb95889a6a88d22a5bb1b4c6633cb4680e8
2021-12-03T11:28:32Z
java
2023-02-07T14:47:15Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,302
["x-pack/plugin/ccr/src/internalClusterTest/java/org/elasticsearch/xpack/ccr/RestartIndexFollowingIT.java"]
[CI] RestartIndexFollowingIT testFollowIndex failing
It seems to fail rarely. I can see a similar failure on Oct25 in master and another on Nov 22 in 7.16 **Build scan:** https://gradle-enterprise.elastic.co/s/bf3jiz2ojwa5q/tests/:x-pack:plugin:ccr:internalClusterTest/org.elasticsearch.xpack.ccr.RestartIndexFollowingIT/testFollowIndex **Reproduction line:** `./gradlew ':x-pack:plugin:ccr:internalClusterTest' --tests "org.elasticsearch.xpack.ccr.RestartIndexFollowingIT.testFollowIndex" -Dtests.seed=515B350E07CA8464 -Dtests.locale=es-EC -Dtests.timezone=America/Belize -Druntime.java=17` **Applicable branches:** master **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.ccr.RestartIndexFollowingIT&tests.test=testFollowIndex **Failure excerpt:** ``` java.lang.AssertionError: (No message provided) at __randomizedtesting.SeedInfo.seed([515B350E07CA8464:B237FA3C3E72BDEE]:0) at org.junit.Assert.fail(Assert.java:86) at org.junit.Assert.assertTrue(Assert.java:41) at org.junit.Assert.assertTrue(Assert.java:52) at org.elasticsearch.xpack.ccr.RestartIndexFollowingIT.setupRemoteCluster(RestartIndexFollowingIT.java:125) at org.elasticsearch.xpack.ccr.RestartIndexFollowingIT.testFollowIndex(RestartIndexFollowingIT.java:91) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/81302
https://github.com/elastic/elasticsearch/pull/89116
a67920e1dcc3c2f11e6f935f2a87e8528d35331f
d2fe335a6c7f1e3a45e6240e60da0a8b30907162
2021-12-03T11:22:36Z
java
2022-08-08T06:24:35Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,289
["x-pack/plugin/ccr/qa/src/main/java/org/elasticsearch/xpack/ccr/ESCCRRestTestCase.java"]
[CI] AutoFollowIT testRolloverDataStreamInFollowClusterForbidden failing
**Build scan:** https://gradle-enterprise.elastic.co/s/r4vanbxzoaowk/tests/:x-pack:plugin:ccr:qa:multi-cluster:follow-cluster/org.elasticsearch.xpack.ccr.AutoFollowIT/testRolloverDataStreamInFollowClusterForbidden **Reproduction line:** `./gradlew ':x-pack:plugin:ccr:qa:multi-cluster:follow-cluster' --tests "org.elasticsearch.xpack.ccr.AutoFollowIT.testRolloverDataStreamInFollowClusterForbidden" -Dtests.seed=CDF1C3319CF5DE24 -Dtests.locale=ro-RO -Dtests.timezone=Pacific/Kosrae -Druntime.java=17` **Applicable branches:** master **Reproduces locally?:** No **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.ccr.AutoFollowIT&tests.test=testRolloverDataStreamInFollowClusterForbidden **Failure excerpt:** ``` org.elasticsearch.client.ResponseException: method [POST], host [http://127.0.0.1:43463], URI [/.ds-logs-tomcat-prod-2021.12.03-000001/_ccr/pause_follow], status line [HTTP/1.1 404 Not Found] {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index [.ds-logs-tomcat-prod-2021.12.03-000001]","index_uuid":"_na_","index":".ds-logs-tomcat-prod-2021.12.03-000001"}],"type":"index_not_found_exception","reason":"no such index [.ds-logs-tomcat-prod-2021.12.03-000001]","index_uuid":"_na_","index":".ds-logs-tomcat-prod-2021.12.03-000001"},"status":404} at __randomizedtesting.SeedInfo.seed([CDF1C3319CF5DE24:AA3B642E480F97ED]:0) at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:335) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:301) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:276) at org.elasticsearch.xpack.ccr.ESCCRRestTestCase.pauseFollow(ESCCRRestTestCase.java:118) at org.elasticsearch.xpack.ccr.ESCCRRestTestCase.pauseFollow(ESCCRRestTestCase.java:114) at org.elasticsearch.xpack.ccr.AutoFollowIT.testRolloverDataStreamInFollowClusterForbidden(AutoFollowIT.java:461) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/81289
https://github.com/elastic/elasticsearch/pull/81732
d2ef57853401360870c7e9a4d98fb9010e48ab97
171335dd1e6324c7b671bacd3910dfd07ca64f02
2021-12-03T08:02:53Z
java
2021-12-15T10:18:15Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,247
["server/src/internalClusterTest/java/org/elasticsearch/snapshots/CustomMetadataSnapshotIT.java", "server/src/main/java/org/elasticsearch/cluster/metadata/DataStreamMetadata.java", "server/src/main/java/org/elasticsearch/cluster/metadata/Metadata.java", "server/src/main/java/org/elasticsearch/snapshots/RestoreService.java", "server/src/test/java/org/elasticsearch/cluster/metadata/MetadataTests.java", "x-pack/plugin/autoscaling/src/main/java/org/elasticsearch/xpack/autoscaling/AutoscalingMetadata.java"]
Restore snapshot with include_global_state=true is not reverting some custom metadata
<!-- GitHub is reserved for bug reports and feature requests; it is not the place for general questions. If you have a question or an unconfirmed bug , please visit the [forums](https://discuss.elastic.co/c/elasticsearch). Please also check your OS is [supported](https://www.elastic.co/support/matrix#show_os). If it is not, the issue is likely to be closed. For security vulnerabilities please only send reports to [email protected]. See https://www.elastic.co/community/security for more information. Please fill in the following details to help us reproduce the bug: --> **Elasticsearch version** (`bin/elasticsearch --version`): 7.16 **Description of the problem including expected versus actual behavior**: According to the code: https://github.com/elastic/elasticsearch/blob/0f108251341303dbf4afabaadc8f1d673a368b0c/server/src/main/java/org/elasticsearch/snapshots/RestoreService.java#L1203 and https://github.com/elastic/elasticsearch/blob/0f108251341303dbf4afabaadc8f1d673a368b0c/server/src/main/java/org/elasticsearch/snapshots/RestoreService.java#L1410-L1422 when restoring global state from a snapshot we keep existing metadata as a baseline. This means some custom metadata items are going to be preserved as is if they are not present in a global state from the snapshot (if it was taken before the those were configured or even existed). **Steps to reproduce**: * start a new cluster * configure a snapshot repository * create a snapshot (with include_global_state=true) * configure any custom metadata that could be restored from a snapshot (for example auto-follow pattern, but not data repository/stream/autoscaling) restore from the snapshot (with include_global_state=true) Expected result: * new custom metadata is set to null Actual result: * new custom metadata is kept as is
https://github.com/elastic/elasticsearch/issues/81247
https://github.com/elastic/elasticsearch/pull/81373
34be852f18c15a2ebc18630671b909c9b74eae07
0a4ec4cf635f50ee7ff9918578a95537f9c50deb
2021-12-02T10:38:23Z
java
2022-01-19T09:09:05Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,244
["docs/changelog/93329.yaml", "modules/ingest-common/src/yamlRestTest/resources/rest-api-spec/test/ingest/190_script_processor.yml", "server/src/internalClusterTest/java/org/elasticsearch/index/FinalPipelineIT.java", "server/src/main/java/org/elasticsearch/ingest/IngestDocument.java", "server/src/main/java/org/elasticsearch/ingest/IngestService.java", "server/src/test/java/org/elasticsearch/ingest/IngestServiceTests.java"]
Ingest parses index requests twice when there is a final pipeline
I was looking at a flame graph of an ingestion workload with @dliappis, and it looks like we parse the JSON representation of the index request twice when a document has both a pipeline and a final pipeline. It's hard to know how much we would save on this benchmark since not all data streams in this benchmark had both a pipeline and a final pipeline, but the cost of parsing index request into maps of maps via IngestService represented 4.06% of overall CPU time according to the flame graph, so this might not be negligible.
https://github.com/elastic/elasticsearch/issues/81244
https://github.com/elastic/elasticsearch/pull/93329
63ca70897553fbfea45c7c63b92134d59e5d4c77
3e3b2711cf7be388faad499a1d713bb146ef69c6
2021-12-02T09:20:17Z
java
2023-01-30T16:48:19Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,242
["x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/AutoFollowCoordinator.java", "x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/action/AutoFollowCoordinatorTests.java", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/AutoFollowMetadata.java"]
Auto-follow pattern and remote might not be stopped when restoring from old snapshot with global state
**Elasticsearch version** (`bin/elasticsearch --version`): 7.16 **Description of the problem including expected versus actual behavior**: According to the code: https://github.com/elastic/elasticsearch/blob/0f108251341303dbf4afabaadc8f1d673a368b0c/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/AutoFollowCoordinator.java#L244-L248 AutoFollowCoordinator will not perform any actions (such as stopping already running patterns and remotes) if the new auto-follow metadata is null. This could theoretically happen when restoring from a snapshot with global state that was taken **before** any auto-follower patterns were configured or even before the feature were available. **Steps to reproduce**: * start a new cluster * configure a snapshot repository * create a snapshot (with `include_global_state=true`) * configure remote and auto-follow pattern * restore from the snapshot (with `include_global_state=true`) Expected result: * existing auto-follow patterns are stopped Actual result: * auto-follow patterns are not stopped
https://github.com/elastic/elasticsearch/issues/81242
https://github.com/elastic/elasticsearch/pull/81290
d7117f22ec9ef6e0ab2115486f7f610c0d7eba6f
bdc1b73006434f50aae57ba499ef424f7ffe48aa
2021-12-02T08:25:08Z
java
2021-12-07T13:33:36Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,208
["distribution/docker/build.gradle", "distribution/docker/src/docker/Dockerfile", "distribution/src/bin/elasticsearch", "docs/changelog/81245.yaml", "qa/os/src/test/java/org/elasticsearch/packaging/test/DockerTests.java"]
Package cloudflare-zlib with the Docker image
Elasticsearch uses zlib for two purposes: - Compression of stored fields with `index.codec: best_compression`, which we use for observability and security data. - Request / response compression. The original zlib, which is usually the one that is installed, optimizes for portability and misses a number of important optimizations such as leveraging vectorization support for x86 and ARM architectures. Several forks have been created in order to address this, notably an [Intel fork](https://github.com/jtkukunas/zlib), [zlib-ng](https://github.com/zlib-ng/zlib-ng) and a [Cloudflare fork](https://github.com/cloudflare/zlib). Historically, zlib was packaged within the JDK, so that users wouldn't have to have zlib installed for basic usage of Java. A downside of this approach is that it didn't allow using one of these faster forks, but [since version 9 the JDK uses the system's zlib when available](https://bugs.openjdk.java.net/browse/JDK-8031767) and falls back to the zlib that is packaged within the JDK if a system zlib cannot be found. I performed testing with the Cloudflare zlib, which yielded almost 2x faster compression and decompression for JSON documents that are representative of those produced by the Elastic Observability solution. A run of the `solutions/logs` track with Rally yielded 2.35% faster indexing, 8.28% less cumulative merge time and 4.83% less cumulative indexing time. One particularity of the Cloudflare zlib is that compression levels retain the same semantics as the original zlib (unlike the Intel fork which uses a compatible format but gives different semantics for some compression levels) so the space efficiency of the produced indices was sensibly the same. This issue suggests that we update our Docker image to use the Cloudflare fork of zlib instead of the original zlib so that users of the Elastic Cloud service and of the Docker image in general would get better performance out of their Elasticsearch clusters.
https://github.com/elastic/elasticsearch/issues/81208
https://github.com/elastic/elasticsearch/pull/81245
a7fdb08046ba7041d91016349df62b7f932b23f9
1f5a0ed2d197d7a12eb20ea28bc2c759ec57f416
2021-12-01T13:55:30Z
java
2021-12-03T09:48:45Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,205
["x-pack/plugin/spatial/src/test/java/org/elasticsearch/xpack/spatial/index/mapper/GeoShapeWithDocValuesFieldTypeTests.java"]
[CI] GeoShapeWithDocValuesFieldTypeTests testFetchVectorTile failing
fetchVectorTile test failing **Build scan:** https://gradle-enterprise.elastic.co/s/w72eiwajpxlie/tests/:x-pack:plugin:spatial:test/org.elasticsearch.xpack.spatial.index.mapper.GeoShapeWithDocValuesFieldTypeTests/testFetchVectorTile **Reproduction line:** `./gradlew ':x-pack:plugin:spatial:test' --tests "org.elasticsearch.xpack.spatial.index.mapper.GeoShapeWithDocValuesFieldTypeTests.testFetchVectorTile" -Dtests.seed=16FA191C3436D609 -Dtests.locale=pl-PL -Dtests.timezone=Europe/Tiraspol -Druntime.java=17` **Applicable branches:** master **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.spatial.index.mapper.GeoShapeWithDocValuesFieldTypeTests&tests.test=testFetchVectorTile **Failure excerpt:** ``` java.lang.AssertionError: Expected: <0> but: was <1> at __randomizedtesting.SeedInfo.seed([16FA191C3436D609:41CF6A7831D49FB9]: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.spatial.index.mapper.GeoShapeWithDocValuesFieldTypeTests.fetchVectorTile(GeoShapeWithDocValuesFieldTypeTests.java:132) at org.elasticsearch.xpack.spatial.index.mapper.GeoShapeWithDocValuesFieldTypeTests.testFetchVectorTile(GeoShapeWithDocValuesFieldTypeTests.java:94) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/81205
https://github.com/elastic/elasticsearch/pull/81207
591f551f6fd1ed7896ed0d5766792971c20d6136
28370eea329f081f04dbe01e48d425225830af0f
2021-12-01T12:27:09Z
java
2021-12-02T06:35:13Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,192
["x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authc/Subject.java", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/permission/LimitedRole.java", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/permission/Role.java", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/permission/SimpleRole.java", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/store/RoleReferenceIntersection.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/authc/SubjectTests.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/authz/permission/LimitedRoleTests.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/authz/store/RoleReferenceIntersectionTests.java", "x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authz/store/CompositeRolesStore.java", "x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authz/store/CompositeRolesStoreTests.java"]
Rework Role and LimitedRole to support more general limiting
The `LimitedRole` limits what a `Role` can authorize by intersecting it privileges with an additional set of privileges. This concept is useful in general and we plan to leverage it in more features. However the current implementation only works for one level of limiting and this prevents its general usefulness. For example, an API key already has one level of limiting. So it is not possible to further limiting it which might be useful in cases like derived API keys, cross-cluster API keys. We should remove the above constraint by reworking the implementation of `Role` and `LimitedRole`.
https://github.com/elastic/elasticsearch/issues/81192
https://github.com/elastic/elasticsearch/pull/81403
c98833f9c6ce2116e95936d9717df1b3eb6101bc
c4912794661e77d15debe08ea49aef27910dc27d
2021-12-01T00:31:40Z
java
2022-01-19T02:44:28Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,183
["docs/reference/migration/migrate_8_0/rest-api-changes.asciidoc", "docs/reference/snapshot-restore/apis/create-snapshot-api.asciidoc", "docs/reference/snapshot-restore/apis/restore-snapshot-api.asciidoc", "docs/reference/snapshot-restore/index.asciidoc", "docs/reference/snapshot-restore/restore-snapshot.asciidoc", "docs/reference/snapshot-restore/take-snapshot.asciidoc"]
[DOCS] Update snapshot and restore docs for system index resolution changes
https://github.com/elastic/elasticsearch/pull/79670 updates some of the defaults for capturing system indices in a snapshot and restoring system indices from a snapshot. This issue tracks related updates to the docs.
https://github.com/elastic/elasticsearch/issues/81183
https://github.com/elastic/elasticsearch/pull/81226
d0d91c690ead75466dcc920f85a5d47a25bcc75c
1519bb6ecbcb44375108b650f4d30ee25649e9ee
2021-11-30T22:06:42Z
java
2021-12-08T15:15:14Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,167
["docs/reference/mapping/types/dense-vector.asciidoc", "x-pack/plugin/vectors/src/main/java/org/elasticsearch/xpack/vectors/mapper/DenseVectorFieldMapper.java", "x-pack/plugin/vectors/src/test/java/org/elasticsearch/xpack/vectors/mapper/DenseVectorFieldMapperTests.java", "x-pack/plugin/vectors/src/test/java/org/elasticsearch/xpack/vectors/mapper/DenseVectorFieldTypeTests.java"]
Edge cases with 0-vectors in knn_search
While playing around with the new vector search endpoint I ran into two interesting edge cases with "cosine" similarity. I myabe didn't read the docs too carefully so I used zero-valued vectors in the query which raised an assertion error on my locally started nodes where we run with "-ea" turned on. If assertions are disabled, and start with this setup <details> ``` DELETE my-index PUT my-index { "mappings": { "properties": { "my_vector": { "type": "dense_vector", "dims": 3, "index": true, "similarity": "cosine" }, "my_text" : { "type" : "keyword" } } } } PUT my-index/_doc/1 { "my_text" : "text1", "my_vector" : [3, 0, 6] } PUT my-index/_doc/2 { "my_text" : "text2", "my_vector" : [0, 1, 0] } POST my-index/_knn_search { "knn": { "field": "my_vector", "query_vector": [0, 0, 0], "k": 2, "num_candidates" : 100 } } ``` </details> I get <details><summary>this error</summary> ``` org.elasticsearch.action.search.SearchPhaseExecutionException: all shards failed [...] Caused by: org.elasticsearch.ElasticsearchException$1: Index 2147483645 out of bounds for length 1 at org.elasticsearch.ElasticsearchException.guessRootCauses(ElasticsearchException.java:639) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:410) [elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] ... 20 more Caused by: java.lang.IndexOutOfBoundsException: Index 2147483645 out of bounds for length 1 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 org.apache.lucene.index.CodecReader.checkBounds(CodecReader.java:103) ~[lucene-core-9.0.0-snapshot-cc2a31f2be8.jar:9.0.0-snapshot-cc2a31f2be8 cc2a31f2be843935a67c0fdcd3478a65970e791d - mayyasharipova - 2021-11-02 14:36:40] at org.apache.lucene.index.CodecReader.document(CodecReader.java:88) ~[lucene-core-9.0.0-snapshot-cc2a31f2be8.jar:9.0.0-snapshot-cc2a31f2be8 cc2a31f2be843935a67c0fdcd3478a65970e791d - mayyasharipova - 2021-11-02 14:36:40] at org.apache.lucene.index.FilterLeafReader.document(FilterLeafReader.java:374) ~[lucene-core-9.0.0-snapshot-cc2a31f2be8.jar:9.0.0-snapshot-cc2a31f2be8 cc2a31f2be843935a67c0fdcd3478a65970e791d - mayyasharipova - 2021-11-02 14:36:40] at org.apache.lucene.index.FilterLeafReader.document(FilterLeafReader.java:374) ~[lucene-core-9.0.0-snapshot-cc2a31f2be8.jar:9.0.0-snapshot-cc2a31f2be8 cc2a31f2be843935a67c0fdcd3478a65970e791d - mayyasharipova - 2021-11-02 14:36:40] at org.elasticsearch.search.internal.FieldUsageTrackingDirectoryReader$FieldUsageTrackingLeafReader.document(FieldUsageTrackingDirectoryReader.java:123) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.apache.lucene.index.FilterLeafReader.document(FilterLeafReader.java:374) ~[lucene-core-9.0.0-snapshot-cc2a31f2be8.jar:9.0.0-snapshot-cc2a31f2be8 cc2a31f2be843935a67c0fdcd3478a65970e791d - mayyasharipova - 2021-11-02 14:36:40] at org.elasticsearch.search.fetch.FetchPhase.loadStoredFields(FetchPhase.java:448) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.search.fetch.FetchPhase.prepareNonNestedHitContext(FetchPhase.java:314) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.search.fetch.FetchPhase.prepareHitContext(FetchPhase.java:270) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.search.fetch.FetchPhase.buildSearchHits(FetchPhase.java:158) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.search.fetch.FetchPhase.execute(FetchPhase.java:90) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.search.SearchService.executeFetchPhase(SearchService.java:653) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:628) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.search.SearchService.lambda$executeQueryPhase$2(SearchService.java:483) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.ActionRunnable.lambda$supply$0(ActionRunnable.java:47) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.action.ActionRunnable$2.doRun(ActionRunnable.java:62) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] ... 6 more ``` </details> When running with assertions enabled I run into this check even earlier: <details> ``` java.lang.AssertionError: null » at org.apache.lucene.search.TopScoreDocCollector$SimpleTopScoreDocCollector$1.collect(TopScoreDocCollector.java:75) ~[lucene-core-9.0.0-snapshot-cc2a31f2be8.jar:9.0.0-snapshot-cc2a31f2be8 cc2a31f2be843935a67c0fdcd3478a65970e791d - mayyasharipova - 2021-11-02 14:36:40] » at org.apache.lucene.search.Weight$DefaultBulkScorer.scoreRange(Weight.java:274) ~[lucene-core-9.0.0-snapshot-cc2a31f2be8.jar:9.0.0-snapshot-cc2a31f2be8 cc2a31f2be843935a67c0fdcd3478a65970e791d - mayyasharipova - 2021-11-02 14:36:40] » at org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:254) ~[lucene-core-9.0.0-snapshot-cc2a31f2be8.jar:9.0.0-snapshot-cc2a31f2be8 cc2a31f2be843935a67c0fdcd3478a65970e791d - mayyasharipova - 2021-11-02 14:36:40] » at org.elasticsearch.search.internal.CancellableBulkScorer.score(CancellableBulkScorer.java:45) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] » at org.apache.lucene.search.BulkScorer.score(BulkScorer.java:38) ~[lucene-core-9.0.0-snapshot-cc2a31f2be8.jar:9.0.0-snapshot-cc2a31f2be8 cc2a31f2be843935a67c0fdcd3478a65970e791d - mayyasharipova - 2021-11-02 14:36:40] » at org.elasticsearch.search.internal.ContextIndexSearcher.searchLeaf(ContextIndexSearcher.java:194) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] » at org.elasticsearch.search.internal.ContextIndexSearcher.search(ContextIndexSearcher.java:167) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] » at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:541) ~[lucene-core-9.0.0-snapshot-cc2a31f2be8.jar:9.0.0-snapshot-cc2a31f2be8 cc2a31f2be843935a67c0fdcd3478a65970e791d - mayyasharipova - 2021-11-02 14:36:40] » at org.elasticsearch.search.query.QueryPhase.searchWithCollector(QueryPhase.java:233) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] » at org.elasticsearch.search.query.QueryPhase.executeInternal(QueryPhase.java:187) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] » at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:88) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] » at org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:458) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] » at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:621) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] » at org.elasticsearch.search.SearchService.lambda$executeQueryPhase$2(SearchService.java:483) ~[elasticsearch-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT] ``` </details> I also noted that indexing a document with e.g. a [0,0,0] vector into a field with similarity "cosine" is possible and if matched returns "null" scores (or runs into an assertion error if -ea is enabled like in local tests etc...) Just wanted to mention this, maybe its is useful to protect against this with some better error message etc...
https://github.com/elastic/elasticsearch/issues/81167
https://github.com/elastic/elasticsearch/pull/82241
20c9bf95ea76416fb813dc7fcb265207a8006fa9
6c442920ba29165745934f5b24df1f9da1b907fd
2021-11-30T18:47:54Z
java
2022-01-11T17:34:04Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,164
["x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/data_stream/10_basic.yml"]
[CI] XPackRestIT test {p0=data_stream/10_basic/Create data stream} failing
This has failed about a dozen times today and did reproduce for me. **Build scan:** https://gradle-enterprise.elastic.co/s/jx24cqobh7sug/tests/:x-pack:plugin:yamlRestTestV7CompatTest/org.elasticsearch.xpack.test.rest.XPackRestIT/test%20%7Bp0=data_stream%2F10_basic%2FCreate%20data%20stream%7D **Reproduction line:** `./gradlew ':x-pack:plugin:yamlRestTestV7CompatTest' --tests "org.elasticsearch.xpack.test.rest.XPackRestIT.test {p0=data_stream/10_basic/Create data stream}" -Dtests.seed=CDB9BA92F9896F93 -Dtests.locale=de-CH -Dtests.timezone=Pacific/Guam -Druntime.java=17` **Applicable branches:** master **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.test.rest.XPackRestIT&tests.test=test%20%7Bp0%3Ddata_stream/10_basic/Create%20data%20stream%7D **Failure excerpt:** ``` java.lang.AssertionError: Failure at [data_stream/10_basic:96]: field [data_streams.0.replicated] is null at __randomizedtesting.SeedInfo.seed([CDB9BA92F9896F93:45ED85485775026B]:0) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:489) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462) at jdk.internal.reflect.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.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) Caused by: java.lang.AssertionError: field [data_streams.0.replicated] 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:478) at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:462) 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.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/81164
https://github.com/elastic/elasticsearch/pull/81201
8fd4a2d04e6ade1886f14c0b1072749ce4de2893
c934fb501269eef993b8f0611364a856d661e6f1
2021-11-30T18:24:56Z
java
2021-12-01T14:47:23Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,157
["x-pack/plugin/ql/src/main/java/org/elasticsearch/xpack/ql/index/IndexResolver.java", "x-pack/plugin/sql/src/test/java/org/elasticsearch/xpack/sql/plan/logical/command/sys/SysTablesTests.java"]
SQL: SYS TABLES returns local aliases for remote clusters
A query like `SYS TABLES CATALOG LIKE 'remoteCluster' LIKE '%' TYPE 'VIEW'` will return the local aliases. Expected is to return nothing (as the remote aliases are not discoverable through field caps).
https://github.com/elastic/elasticsearch/issues/81157
https://github.com/elastic/elasticsearch/pull/81158
f205b7655fef514756860d033f6a0d1ee980a3eb
1650e8096853e66acbd41b0bee0adfa923f05a32
2021-11-30T15:28:19Z
java
2021-12-08T11:24:46Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,128
["server/src/main/java/org/elasticsearch/common/geo/SphericalMercatorUtils.java", "server/src/test/java/org/elasticsearch/common/geo/SphericalMercatorUtilTests.java"]
[CI] GeoShapeWithDocValuesFieldTypeTests testFetchVectorTile failing
**Build scan:** https://gradle-enterprise.elastic.co/s/nqq2qsasgv6bo/tests/:x-pack:plugin:spatial:test/org.elasticsearch.xpack.spatial.index.mapper.GeoShapeWithDocValuesFieldTypeTests/testFetchVectorTile **Reproduction line:** `./gradlew ':x-pack:plugin:spatial:test' --tests "org.elasticsearch.xpack.spatial.index.mapper.GeoShapeWithDocValuesFieldTypeTests.testFetchVectorTile" -Dtests.seed=484C606413FB6694 -Dtests.locale=uk -Dtests.timezone=America/Adak -Druntime.java=17` **Applicable branches:** 8.0 **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.spatial.index.mapper.GeoShapeWithDocValuesFieldTypeTests&tests.test=testFetchVectorTile **Failure excerpt:** ``` java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0 at __randomizedtesting.SeedInfo.seed([484C606413FB6694:1F79130016192F24]:0) at com.wdtinc.mapbox_vector_tile.adapt.jts.JtsAdapter.countCoordRepeatReverse(JtsAdapter.java:576) at com.wdtinc.mapbox_vector_tile.adapt.jts.JtsAdapter.linesToGeomCmds(JtsAdapter.java:501) at com.wdtinc.mapbox_vector_tile.adapt.jts.JtsAdapter.toFeature(JtsAdapter.java:344) at com.wdtinc.mapbox_vector_tile.adapt.jts.JtsAdapter.toFeatures(JtsAdapter.java:300) at org.elasticsearch.xpack.vectortile.feature.FeatureFactory.getFeatures(FeatureFactory.java:91) at org.elasticsearch.xpack.spatial.index.mapper.GeoShapeWithDocValuesFieldTypeTests.fetchVectorTile(GeoShapeWithDocValuesFieldTypeTests.java:118) at org.elasticsearch.xpack.spatial.index.mapper.GeoShapeWithDocValuesFieldTypeTests.testFetchVectorTile(GeoShapeWithDocValuesFieldTypeTests.java:85) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/81128
https://github.com/elastic/elasticsearch/pull/81145
66dc62618eac2dd2f20762348d932ed2b78db9a2
3a3bb236105d06db89ef779ff27ab3d69daa4eea
2021-11-29T21:24:42Z
java
2021-12-01T06:04:40Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,091
["x-pack/plugin/ml/qa/native-multi-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/ml/integration/PyTorchModelIT.java", "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/deployment/DeploymentManager.java"]
[CI][ML] PyTorchModelIT testEvaluateWithMinimalTimeout failure
**Build scan**: https://gradle-enterprise.elastic.co/s/irafccgouilyk https://gradle-enterprise.elastic.co/s/vgysxwentnox6 **Repro line**: ``` ./gradlew ':x-pack:plugin:ml:qa:native-multi-node-tests:javaRestTest' --tests "org.elasticsearch.xpack.ml.integration.PyTorchModelIT.testEvaluateWithMinimalTimeout" \ -Dtests.seed=82882C0276D19551 \ -Dtests.locale=fr-CH \ -Dtests.timezone=Europe/Dublin \ -Druntime.java=17 ``` **Reproduces locally?**: No **Applicable branches**: 8.1, 8.0 **Failure history**: **Failure excerpt**: ``` junit.framework.AssertionFailedError: Expected exception ResponseException but no exception was thrown at __randomizedtesting.SeedInfo.seed([82882C0276D19551:65FE53F0D91AAB91]:0) at org.apache.lucene.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2874) at org.apache.lucene.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2860) at org.elasticsearch.xpack.ml.integration.PyTorchModelIT.testEvaluateWithMinimalTimeout(PyTorchModelIT.java:203) ```
https://github.com/elastic/elasticsearch/issues/81091
https://github.com/elastic/elasticsearch/pull/81094
e54438004504d543673613fb6bce5ef90dca9fb1
92b6b6f1b28cc1c98ff7cc15733b4ef8bd26805d
2021-11-29T11:23:54Z
java
2021-11-29T13:08:02Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,076
["server/src/main/java/org/elasticsearch/common/geo/GeoPolygonDecomposer.java", "server/src/test/java/org/elasticsearch/common/geo/GeometryIndexerTests.java"]
geotile_grid aggregation on geo_shape produces incorrect results for polygons in certain corner cases
**Elasticsearch version** (`bin/elasticsearch --version`): 7.13.2-SNAPSHOT **Description of the problem including expected versus actual behavior**: Certain geo_shapes cause the geotile_grid aggregation to produce incorrect results. **Steps to reproduce**: 1. Create the index ``` PUT /test-data { "settings": { "number_of_shards": 1 }, "mappings": { "properties": { "shape": { "type": "geo_shape" }, "time": { "type": "date" } } } } ``` 2. Put a rectangle ``` POST /test-data/_doc { "shape" : { "type" : "polygon", "coordinates" : [ [ [180.0, 20.54099347935443], [180.00, 56.22356828010862], [173.32664998748726, 56.22356828010862], [173.32664998748726, 20.54099347935443], [180.0, 20.54099347935443] ] ] }, "time": "2021-11-26T00:00:00Z" } ``` 3. Do an aggregation and observe correct results. ``` POST test-data/_search?size=0 { "query": { "match_all": {} }, "aggs": { "grids": {"geotile_grid": {"field": "shape", "precision": 4}} } } "buckets" : [ { "key" : "4/15/7", "doc_count" : 1 }, { "key" : "4/15/6", "doc_count" : 1 }, { "key" : "4/15/5", "doc_count" : 1 }, { "key" : "4/15/4", "doc_count" : 1 } ] ``` 4. Put a more complex polygon that is contained within the same area as the previous shape ``` POST /test-data/_doc { "shape" : { "type" : "polygon", "coordinates" : [ [ [ 180, 38.382280879731525 ], [ 180, 39.20402540758703 ], [ 180, 40.20983928828463 ], [ 180, 41.5905083136395 ], [ 180, 43.79069222748844 ], [ 180, 48.05737800943521 ], [ 180, 56.22356828010862 ], [ 180, 53.61517437197104 ], [ 178.17058562712035, 47.44994633100819 ], [ 177.161329896696, 44.42163705320016 ], [ 176.63491363226575, 42.6928738950413 ], [ 176.29683812379142, 41.52175761146341 ], [ 176.0458600769842, 40.61841573973024 ], [ 175.83768485617443, 39.84528044056929 ], [ 175.64814528805073, 39.12101916544052 ], [ 175.4602369741285, 38.382280879731525 ], [ 175.2576316219736, 37.56053635187602 ], [ 175.01887227795362, 36.55472247117842 ], [ 174.7078894332312, 35.174053445823546 ], [ 174.25388021927512, 32.97386953197461 ], [ 173.53771573775157, 28.707183750027852 ], [ 173.32664998748726, 20.54099347935443 ], [ 177.52259404863642, 23.14938738749197 ], [ 180, 29.314615428454847 ], [ 180, 32.34292470626289 ], [ 180, 34.07168786442174 ], [ 180, 35.24280414799964 ], [ 180, 36.14614601973281 ], [ 180, 36.91928131889376 ], [ 180, 37.64354259402253 ], [ 180, 38.382280879731525 ] ] ] }, "time": "2021-11-26T00:00:00Z" } ``` 5. Do another aggregation ``` POST test-data/_search?size=0 { "query": { "match_all": {} }, "aggs": { "grids": {"geotile_grid": {"field": "shape", "precision": 4}} } } ``` 6. Observe that you get buckets way outside of the expected area. Picture from Kibana makes it very clear. ![image](https://user-images.githubusercontent.com/229922/143610546-9c1a05da-f31b-474d-9692-9a4e89c4dfe7.png)
https://github.com/elastic/elasticsearch/issues/81076
https://github.com/elastic/elasticsearch/pull/81155
32ca555b620a4d1567d3bca9104e8880299bb5cd
8b077479b61d9633565440f9b80231c4cb7ca4f6
2021-11-26T16:39:13Z
java
2021-12-02T08:02:50Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,070
["build.gradle", "server/src/main/java/org/elasticsearch/common/compress/CompressedXContent.java", "x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/MlJobSnapshotUpgradeIT.java"]
[CI] MlJobSnapshotUpgradeIT testSnapshotUpgrader failing
**Build scan:** https://gradle-enterprise.elastic.co/s/gl44hd4klfowm/tests/:x-pack:qa:rolling-upgrade:v8.0.0%23oldClusterTest/org.elasticsearch.upgrades.MlJobSnapshotUpgradeIT/testSnapshotUpgrader **Reproduction line:** `./gradlew ':x-pack:qa:rolling-upgrade:v8.0.0#oldClusterTest' -Dtests.class="org.elasticsearch.upgrades.MlJobSnapshotUpgradeIT" -Dtests.method="testSnapshotUpgrader" -Dtests.seed=87752AF01773C568 -Dtests.bwc=true -Dtests.locale=ar-YE -Dtests.timezone=Etc/GMT-14 -Druntime.java=17` **Applicable branches:** master **Reproduces locally?:** Yes **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.upgrades.MlJobSnapshotUpgradeIT&tests.test=testSnapshotUpgrader **Failure excerpt:** ``` java.lang.AssertionError: Expected: <7> but: was <8> at __randomizedtesting.SeedInfo.seed([87752AF01773C568:9B56339F10066EE6]:0) at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.junit.Assert.assertThat(Assert.java:923) at org.elasticsearch.upgrades.MlJobSnapshotUpgradeIT.createJobAndSnapshots(MlJobSnapshotUpgradeIT.java:240) at org.elasticsearch.upgrades.MlJobSnapshotUpgradeIT.testSnapshotUpgrader(MlJobSnapshotUpgradeIT.java:102) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/81070
https://github.com/elastic/elasticsearch/pull/81054
e5de9d8ad7693691739ef1b3fc43ff9943afb737
d51678562e0b79a87f2c18bfae207385997cf311
2021-11-25T18:46:32Z
java
2021-11-25T19:48:12Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,068
["distribution/docker/src/docker/bin/docker-entrypoint.sh", "docs/changelog/81082.yaml", "qa/os/src/test/java/org/elasticsearch/packaging/test/DockerTests.java", "qa/os/src/test/java/org/elasticsearch/packaging/test/EnrollmentProcessTests.java", "qa/os/src/test/java/org/elasticsearch/packaging/util/docker/Docker.java", "qa/os/src/test/java/org/elasticsearch/packaging/util/docker/DockerRun.java", "x-pack/plugin/security/cli/src/main/java/org/elasticsearch/xpack/security/cli/AutoConfigureNode.java"]
Issue enrolling nodes to existing cluster on docker
In 8.0.0 nodes can enroll to an existing secured cluster by passing the `--enrollment-token <token>` parameter on node start. This approach sadly doesn't work for Docker as we don't pass arbitrary parameters passed to `docker run` to the actual entrypoint of our Docker image. The work around for now is to override the entrypoint when starting a new node that should enroll to an existing cluster, as follows for instance : ``` docker run -it --rm -m 1g --entrypoint /usr/share/elasticsearch/bin/elasticsearch docker.elastic.co/elasticsearch/elasticsearch:8.0.0-beta1 --enrollment-token <token> ``` We should look into ways of allowing the enrollment token to be passed to docker run commands in a way that this will be relayed to the the elasticsearch executable so users don't need to override the entrypoint
https://github.com/elastic/elasticsearch/issues/81068
https://github.com/elastic/elasticsearch/pull/81082
0ab502f1943b85a68f27215b353d9f0174682415
54eb955a650211cb5d1705f7bacd9d47d2a706dd
2021-11-25T18:13:35Z
java
2021-12-07T16:10:05Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,067
["docs/changelog/86311.yaml", "x-pack/plugin/security/cli/src/main/java/org/elasticsearch/xpack/security/cli/AutoConfigureNode.java", "x-pack/plugin/security/cli/src/main/java/org/elasticsearch/xpack/security/cli/CertGenUtils.java", "x-pack/plugin/security/cli/src/main/java/org/elasticsearch/xpack/security/cli/HttpCertificateCommand.java", "x-pack/plugin/security/cli/src/test/java/org/elasticsearch/xpack/security/cli/AutoConfigureNodeTests.java", "x-pack/plugin/security/cli/src/test/java/org/elasticsearch/xpack/security/cli/CertGenUtilsTests.java", "x-pack/plugin/security/cli/src/test/java/org/elasticsearch/xpack/security/cli/HttpCertificateCommandTests.java"]
certutil http and auto-configured certificates for http layer should set extended key usage
We generate certificates that are intended to be used for server authentication in a couple of places: - `bin/elasticsearch-certutil http` command ( See `CertGenUtils.generateSignedCertificate` in `HttpCertificateCommand` ) - TLS auto-configuraion for node startup ( see [`AutoConfigureNode`](https://github.com/elastic/elasticsearch/blob/814f7f9f52cb8c05db6465b9bfc818ea5d76c575/x-pack/plugin/security/cli/src/main/java/org/elasticsearch/xpack/security/cli/AutoConfigureNode.java#L454) ) In these cases we know that the certificate is meant to be used for server authentication, so we can set Extended Key Usage extension to `1.3.6.1.5.5.7.3.1`
https://github.com/elastic/elasticsearch/issues/81067
https://github.com/elastic/elasticsearch/pull/86311
e3778f70803f4798c0e87888ded5278e2653996f
1bc90ea217d0be79a123cae1617c3066f1f39715
2021-11-25T18:07:36Z
java
2022-05-06T05:45:03Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,058
["docs/reference/ingest/processors/date.asciidoc"]
Invalid output format when using ISO8601 as date processor output_format
Hello ! **Elasticsearch version** (`bin/elasticsearch --version`): 7.14.2 As the doc mentions it, the [date processor output_format](https://www.elastic.co/guide/en/elasticsearch/reference/current/date-processor.html) should accept `ISO8601` or `UNIX` values as `output_format`. However, here is the result: ```json PUT _ingest/pipeline/timestamp { "processors": [ { "date": { "field": "date_iso", "target_field": "timestamp", "formats": [ "ISO8601" ], "output_format": "UNIX" } } ] } ``` ```json { "error" : { "root_cause" : [ { "type" : "exception", "reason" : "java.lang.IllegalArgumentException: invalid output format [UNIX]", "processor_type" : "date" } ], "type" : "exception", "reason" : "java.lang.IllegalArgumentException: invalid output format [UNIX]", "processor_type" : "date", "caused_by" : { "type" : "illegal_argument_exception", "reason" : "invalid output format [UNIX]", "caused_by" : { "type" : "illegal_argument_exception", "reason" : "Invalid format: [UNIX]: Unknown pattern letter: U", "caused_by" : { "type" : "illegal_argument_exception", "reason" : "Unknown pattern letter: U" } } } }, "status" : 500 } ``` The `format` parameter accepts those values. Thanks! Romain
https://github.com/elastic/elasticsearch/issues/81058
https://github.com/elastic/elasticsearch/pull/81557
f0bf6f5ee368cb36080ee3557afbb68a9c44073c
b1f5373e022f1f268aec99470c71f80d014d7429
2021-11-25T16:04:38Z
java
2021-12-17T12:07:03Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,055
["build.gradle", "server/src/main/java/org/elasticsearch/common/compress/CompressedXContent.java", "x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/MlJobSnapshotUpgradeIT.java"]
[CI] MlJobSnapshotUpgradeIT testSnapshotUpgrader failing
**Build scan:** https://gradle-enterprise.elastic.co/s/hdxnxygj5jwd6/tests/:x-pack:qa:rolling-upgrade:v8.0.0%23oldClusterTest/org.elasticsearch.upgrades.MlJobSnapshotUpgradeIT/testSnapshotUpgrader **Reproduction line:** `./gradlew ':x-pack:qa:rolling-upgrade:v8.0.0#oldClusterTest' -Dtests.class="org.elasticsearch.upgrades.MlJobSnapshotUpgradeIT" -Dtests.method="testSnapshotUpgrader" -Dtests.seed=123C56AFC7D14324 -Dtests.bwc=true -Dtests.locale=fi-FI -Dtests.timezone=America/Kentucky/Louisville -Druntime.java=17` **Applicable branches:** master **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.upgrades.MlJobSnapshotUpgradeIT&tests.test=testSnapshotUpgrader **Failure excerpt:** ``` java.lang.AssertionError: Expected: <7> but: was <8> at __randomizedtesting.SeedInfo.seed([123C56AFC7D14324:E1F4FC0C0A4E8AA]:0) at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.junit.Assert.assertThat(Assert.java:923) at org.elasticsearch.upgrades.MlJobSnapshotUpgradeIT.createJobAndSnapshots(MlJobSnapshotUpgradeIT.java:240) at org.elasticsearch.upgrades.MlJobSnapshotUpgradeIT.testSnapshotUpgrader(MlJobSnapshotUpgradeIT.java:102) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) at java.lang.Thread.run(Thread.java:833) ```
https://github.com/elastic/elasticsearch/issues/81055
https://github.com/elastic/elasticsearch/pull/81054
e5de9d8ad7693691739ef1b3fc43ff9943afb737
d51678562e0b79a87f2c18bfae207385997cf311
2021-11-25T15:22:11Z
java
2021-11-25T19:48:12Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,052
["docs/reference/query-dsl/nested-query.asciidoc"]
[Docs] Clarify nested query behavior when using 'must_not' filter
I have a situation when my document could contain several nested objects in it and I want to check that it *doesn't contain* nested object with particular properties. Since I didn't find any tool for working with nested object collections I try to utilize `bool` query with `must_not` clause for this purpose. So I have the following mapping: ``` { "space-app.profiles.17": { "mappings": { "doc": { "_routing": { "required": true }, "properties": { "customFields": { "type": "nested", "properties": { "AUTONUMBER": { "type": "text", "analyzer": "links" }, "BOOLEAN": { "type": "boolean" }, "CONTACT": { "type": "text", "analyzer": "links" }, "DATE": { "type": "date" }, "DATE_TIME": { "type": "date" }, "ENUM": { "type": "keyword" }, "FRACTION": { "type": "keyword" }, "INTEGER": { "type": "long" }, "STRING": { "type": "text", "analyzer": "string_analyzer" }, "URL": { "type": "text", "analyzer": "links" }, "VCS_COMMIT": { "type": "text", "analyzer": "string_analyzer" }, "entityLinks": { "type": "keyword" }, "extendedType": { "type": "keyword" }, "id": { "type": "long" }, "valueId": { "type": "long", "index": false } } }, "id": { "type": "long" }, "organizationKey": { "type": "long" }, "profiles_about": { "type": "text", "analyzer": "text_analyzer" }, "profiles_emails": { "type": "text", "analyzer": "email" }, "profiles_firstName": { "type": "text", "analyzer": "string_analyzer" }, "profiles_fullName": { "type": "text", "analyzer": "string_analyzer" }, "profiles_internationalNames": { "type": "text", "analyzer": "string_analyzer" }, "profiles_lastName": { "type": "text", "analyzer": "string_analyzer" }, "profiles_links": { "type": "text", "analyzer": "links" }, "profiles_messengers": { "type": "text", "analyzer": "string_analyzer" }, "profiles_notAMember": { "type": "boolean" }, "profiles_phones": { "type": "text", "analyzer": "phone" }, "profiles_userName": { "type": "text", "analyzer": "string_analyzer" } } } } } } ``` Than I'm executing the following query: ``` curl -X GET "localhost:9200/space-app.profiles.17/_search?pretty" -H 'Content-Type: application/json' -d' { "from": 0, "size": 30, "query": { "bool": { "must": [ { "nested": { "query": { "bool": { "must_not": [ { "term": { "customFields.id": { "value": 825769069716586058, "boost": 1.0 } } } ], "adjust_pure_negative": true, "boost": 1.0 } }, "path": "customFields", "ignore_unmapped": true, "score_mode": "max", "boost": 1.0 } } ], "adjust_pure_negative": true, "boost": 1.0 } } } ' ``` In the results I'm receiving the following document: ``` { "_index": "space-app.profiles.17", "_type": "doc", "_id": "7010800587899399528-4133272973067776871", "_score": 0.042559616, "_routing": "organizationKey", "_source": { "id": 4133272973067776871, "organizationKey": 7010800587899399528, "profiles_firstName": "Angela", "profiles_lastName": "Bohl", "profiles_fullName": "Angela Bohl", "profiles_about": "At cum ocurreret imperdiet, no sint albucius vix, eius petentium vel ne! Per ut impetus consetetur, tacimates convenire ne nam, no maluisset deseruisse moderatius quo!", "profiles_userName": "angela.bohl", "profiles_phones": [], "profiles_emails": [ "[email protected]", "[email protected]" ], "profiles_links": [], "profiles_messengers": [ "slack:Angela" ], "profiles_notAMember": false, "customFields": [ { "valueId": 7486325966825161302, "extendedType": "ppl", "STRING": "Lamborgini", "id": 825769069716586058 }, { "valueId": 3106313864822063649, "entityLinks": "PROJECT|7251758770176377084", "extendedType": "ppl", "id": 8935354544283173893 } ] } } ``` This document is unexpected for me since I'm trying to filter it out with ``` "must_not": [ { "term": { "customFields.id": { "value": 825769069716586058, "boost": 1.0 } } } ] ``` Looks like I receive this result because I have other nested objects in this document which satisfy my query. This is an unexpected behavior for me since "must" would return me all the documents which contains satisfying nested object, so I need to negate this query somehow. Elastic version info: ``` { "name": "N6U3BIi", "cluster_name": "docker-cluster", "cluster_uuid": "Q_7PaMemTzGiQvgL8XODBw", "version": { "number": "6.5.4", "build_flavor": "default", "build_type": "tar", "build_hash": "d2ef93d", "build_date": "2018-12-17T21:17:40.758843Z", "build_snapshot": false, "lucene_version": "7.5.0", "minimum_wire_compatibility_version": "5.6.0", "minimum_index_compatibility_version": "5.0.0" } } ```
https://github.com/elastic/elasticsearch/issues/81052
https://github.com/elastic/elasticsearch/pull/82727
25dd4a31587710d050492cace27aa5d72accc042
0a3f6acaddcce12046e0be153fb327c4903d3d9f
2021-11-25T14:39:15Z
java
2022-01-18T15:14:26Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,045
["server/src/internalClusterTest/java/org/elasticsearch/timeseries/support/TimeSeriesMetricsIT.java"]
[CI] TimeSeriesMetricsIT runs OOM
**Build scan**: https://gradle-enterprise.elastic.co/s/ifqr2xck7cpao **Repro line**: `gradlew ':server:internalClusterTest' --tests "org.elasticsearch.timeseries.support.TimeSeriesMetricsIT" -Dtests.seed=3D9EF5828D9382A7 -Dtests.locale=en-US -Dtests.timezone=UTC -Druntime.java=17` **Reproduces locally?**: Yes **Applicable branches**: master **Failure excerpt**: ``` org.elasticsearch.timeseries.support.TimeSeriesMetricsIT > classMethod FAILED java.lang.Exception: Suite timeout exceeded (>= 1200000 msec). at __randomizedtesting.SeedInfo.seed([3D9EF5828D9382A7]:0) REPRODUCE WITH: ./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.timeseries.support.TimeSeriesMetricsIT" -Dtests.seed=3D9EF5828D9382A7 -Dtests.locale=en-US -Dtests.timezone=UTC -Druntime.java=17 org.elasticsearch.timeseries.support.TimeSeriesMetricsIT > classMethod FAILED com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=5779, name=elasticsearch[node_s1][search][T#7], state=RUNNABLE, group=TGRP-TimeSeriesMetricsIT] Caused by: java.lang.OutOfMemoryError: Java heap space at __randomizedtesting.SeedInfo.seed([3D9EF5828D9382A7]:0) at java.base/java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:64) at java.base/java.nio.ByteBuffer.allocate(ByteBuffer.java:363) at org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:285) at org.apache.lucene.store.BufferedIndexInput.readByte(BufferedIndexInput.java:55) at org.apache.lucene.store.DataInput.readInt(DataInput.java:94) at org.apache.lucene.store.BufferedIndexInput.readInt(BufferedIndexInput.java:149) at org.apache.lucene.store.MockIndexInputWrapper.readInt(MockIndexInputWrapper.java:172) at org.apache.lucene.store.IndexInput$1.readInt(IndexInput.java:166) at org.apache.lucene.util.packed.DirectReader$DirectPackedReader24.get(DirectReader.java:342) at org.apache.lucene.codecs.lucene90.Lucene90DocValuesProducer$10.longValue(Lucene90DocValuesProducer.java:592) at org.apache.lucene.document.SortedNumericDocValuesRangeQuery$1$1.matches(SortedNumericDocValuesRangeQuery.java:124) at org.apache.lucene.search.ConjunctionDISI$ConjunctionTwoPhaseIterator.matches(ConjunctionDISI.java:350) at org.elasticsearch.common.lucene.Lucene$2.get(Lucene.java:887) at org.elasticsearch.search.aggregations.bucket.filter.FilterAggregator$1.collect(FilterAggregator.java:55) at org.elasticsearch.search.aggregations.MultiBucketCollector$MultiLeafBucketCollector.collect(MultiBucketCollector.java:237) at org.elasticsearch.search.aggregations.bucket.BucketsAggregator.collectExistingBucket(BucketsAggregator.java:92) at org.elasticsearch.search.aggregations.bucket.BucketsAggregator.collectBucket(BucketsAggregator.java:78) at org.elasticsearch.search.aggregations.bucket.filter.FilterAggregator$1.collect(FilterAggregator.java:56) at org.elasticsearch.search.aggregations.bucket.composite.CompositeAggregator$4.collect(CompositeAggregator.java:577) at org.elasticsearch.search.aggregations.bucket.composite.GlobalOrdinalValuesSource$1.collect(GlobalOrdinalValuesSource.java:144) at org.elasticsearch.search.aggregations.LeafBucketCollector.collect(LeafBucketCollector.java:86) at org.elasticsearch.search.aggregations.bucket.composite.CompositeAggregator.runDeferredCollections(CompositeAggregator.java:559) at org.elasticsearch.search.aggregations.bucket.composite.CompositeAggregator.buildAggregations(CompositeAggregator.java:175) at org.elasticsearch.search.aggregations.Aggregator.buildTopLevel(Aggregator.java:154) at org.elasticsearch.search.aggregations.AggregationPhase.execute(AggregationPhase.java:67) at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:94) at org.elasticsearch.indices.IndicesService.lambda$loadIntoContext$27(IndicesService.java:1525) at org.elasticsearch.indices.IndicesService$$Lambda$5684/0x00000008016eca88.accept(Unknown Source) at org.elasticsearch.indices.IndicesService.lambda$cacheShardLevelResult$28(IndicesService.java:1591) at org.elasticsearch.indices.IndicesService$$Lambda$5685/0x00000008016ed1e8.get(Unknown Source) at org.elasticsearch.indices.IndicesRequestCache$Loader.load(IndicesRequestCache.java:178) at org.elasticsearch.indices.IndicesRequestCache$Loader.load(IndicesRequestCache.java:161) ``` CC @nik9000 @imotov
https://github.com/elastic/elasticsearch/issues/81045
https://github.com/elastic/elasticsearch/pull/81159
be7cf05c827c4133d57a9dc56c50e4dbafbb9ec0
b6f19a8f9d787f95e15980a29feb0aa326196edd
2021-11-25T12:36:52Z
java
2021-11-30T18:37:54Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,024
["x-pack/plugin/security/src/internalClusterTest/java/org/elasticsearch/xpack/security/user/AnonymousUserIntegTests.java", "x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/support/ApiKeyGenerator.java", "x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authz/store/CompositeRolesStore.java", "x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authz/store/RoleDescriptorStore.java", "x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/support/ApiKeyGeneratorTests.java"]
Anonymous roles not captured when creating API keys
When creating an API key, the own's roles at creation time are captured. The owner's roles are a superset of the final privileges that an API key can effectively have. Elasticsearch have the feature of [anonymous access](https://www.elastic.co/guide/en/elasticsearch/reference/current/anonymous-access.html). The anonymous roles are automaticaly assigned to every login user (regular users, not service account or API keys). However, these roles are not captured when creating API keys. This is a surprising behaviour because a user should be able to create API keys to do things that can be done by the user itself. If the user itself has no role and purely rely on anonymous roles for access (for emulating open cluster while still apply other security features), the API key is created with an empty superset of roles. This means the API key is essentially useless because it cannot be used to perform any actions. It is also hard to explain this behaviour in documentation. The proposal is to fix it by capturing the anonymous roles when creating API keys (including granting API keys).
https://github.com/elastic/elasticsearch/issues/81024
https://github.com/elastic/elasticsearch/pull/81427
24e1888ae3de0cd04a2132716c96c08438f22e78
20e24c3db612631712fcf417ea914b88ceab5dfd
2021-11-24T23:44:31Z
java
2022-01-24T11:49:25Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,013
["x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/datafeed/DatafeedNodeSelector.java", "x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/datafeed/DatafeedNodeSelectorTests.java"]
[ML] Datafeed fails to start when using CCS and multi-index wildcards and data only exists in remote cluster
Seen in `8.0.0-SNAPSHOT`, likely occurs in earlier versions. Datafeed fails to start when using CCS and multi-index wildcards and data only exists in remote cluster **Steps to reproduce** 1. Configure 2 clusters for CCS. Remote cluster should contain data. Local cluster should not. 2. Configure datafeed to use `remote:index1-*, remote:index2-*, index1-*, index2-*` with options `{"expand_wildcards":["open"],"ignore_unavailable":true,"allow_no_indices":true,"ignore_throttled":true}` 3. Start datafeed The following error occurs: `No node found to start datafeed [datafeed-job1], allocation explanation [cannot start datafeed [datafeed-job1] because index [index1-*,index2-*] does not exist, is closed, or is still initializing.]` If trying to reproduce without using CCS, the datafeed would successfully start as long as either `index1-*` or `index2-*` existed. If neither `index1-*` or `index2-*` existed, there is an error `cannot retrieve field [timestamp] because it has no mappings` Without using wildcards, then I would expect different behaviour, and depending on index options. Internal edge test clusters are using this CCS pattern and there is no data in the local cluster. **Expected behaviour** - As long as data exists in at least one of those indexes (either remote or local), the datafeed should start. - Errors should be meaningful. - Where possible, we should follow how this is handled in `_search` **Workaround** Either 1. Update the datafeed to exclude the indices which do not exist, or 2. Create empty index in local cluster with mappings for the fields used in the detection config
https://github.com/elastic/elasticsearch/issues/81013
https://github.com/elastic/elasticsearch/pull/81074
d9e73eb441a6a3b1c1a62a4a49b6f7ce8e7d9f4e
e54438004504d543673613fb6bce5ef90dca9fb1
2021-11-24T19:21:49Z
java
2021-11-29T12:19:34Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
81,011
["x-pack/plugin/ml/src/internalClusterTest/java/org/elasticsearch/xpack/ml/integration/AnomalyJobCRUDIT.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/job/task/OpenJobPersistentTasksExecutor.java"]
[ML] A model state created in 7.0-7.9 should not have to be upgraded before upgrading to version 8
Step to reproduce: 1. On a 7.6.0 cluster, create and run a few of AD jobs, 2. After jobs finish and stop, upgrade the cluster to 7.16.0 3. After upgrade, login kibana and go to Stack Management -> Upgrade Assistant, Observed: there are critical warnings about obsolete minimum version of model snapshot ![image](https://user-images.githubusercontent.com/47184485/143296527-c5882a4a-6081-4b0f-beb3-19676571a19b.png) Expected: A model state created in 7.0-7.9 should not have to be upgraded before upgrading to version 8
https://github.com/elastic/elasticsearch/issues/81011
https://github.com/elastic/elasticsearch/pull/81039
15de6035148fd7904bb4f609f10d9b29af492a4f
64338bff3ef2fbea8b3bd153d92f79168c8cdd7a
2021-11-24T18:45:34Z
java
2021-11-25T13:36:58Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
80,990
["libs/ssl-config/src/test/java/org/elasticsearch/common/ssl/PemUtilsTests.java", "qa/os/src/test/java/org/elasticsearch/packaging/test/PackagesSecurityAutoConfigurationTests.java", "qa/os/src/test/resources/org/elasticsearch/packaging/test/http.crt", "qa/os/src/test/resources/org/elasticsearch/packaging/test/http.key", "qa/os/src/test/resources/org/elasticsearch/packaging/test/http_ca.crt", "qa/os/src/test/resources/org/elasticsearch/packaging/test/http_ca.key", "qa/os/src/test/resources/org/elasticsearch/packaging/test/transport.crt", "qa/os/src/test/resources/org/elasticsearch/packaging/test/transport.key", "qa/os/src/test/resources/org/elasticsearch/packaging/test/transport_ca.crt", "x-pack/plugin/security/cli/src/main/java/org/elasticsearch/xpack/security/cli/AutoConfigureNode.java"]
bin/elasticsearch-reconfigure-node bugs and enhancements
This is a meta issue to cover identified bugs and enhancements we want to make to `elasticsearch-reconfigure-node`. This CLI tool is introduced in 8.0.0 and the main use case it satisfies is to allow users to reconfigure an elasticsearch node that has been installed via a DEB or RPM package and enroll it into an existing cluster. DEB/RPM installations by default make the assumption that the installed node is the first (or only) one in the cluster and configure TLS for transport and http layers accordingly. This CLI tool allows users to revisit the assumption after installation (before the node is ever started), so that it can enroll to an existing, secured cluster. - [ ] `elasticsearch-reconfigure-node` should be safer to use. The current behavior is to remove existing configuration and then attempt to enroll to the cluster. We should first attempt to enroll to the cluster and then remove/replace existing configuration, or backup/restore the existing configuration upon failure to enroll, so that we leave the node in a working state in every case. - [ ] `elasticsearch-reconfigure-node` lacks documentation - [ ] `elasticsearch-reconfigure-node` is expected to be run as root and wrongly sets file owners for generated keystores, so elasticsearch fails to read them on startup.
https://github.com/elastic/elasticsearch/issues/80990
https://github.com/elastic/elasticsearch/pull/82789
0a16177f407c4b410e93fc52c1d514b3387fc7ee
814f7f9f52cb8c05db6465b9bfc818ea5d76c575
2021-11-24T13:34:18Z
java
2022-01-21T13:32:02Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
80,977
["x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/WatcherRestartIT.java"]
[CI] WatcherRestartIT testEnsureWatcherDeletesLegacyTemplates failing
This seems to related to #69918. The failed tests include testWatcherRestart as well. **Build scan:** https://gradle-enterprise.elastic.co/s/djloumy34vwao/tests/:x-pack:qa:rolling-upgrade:v7.4.0%23twoThirdsUpgradedTest/org.elasticsearch.upgrades.WatcherRestartIT/testEnsureWatcherDeletesLegacyTemplates **Reproduction line:** `./gradlew ':x-pack:qa:rolling-upgrade:v7.4.0#twoThirdsUpgradedTest' -Dtests.class="org.elasticsearch.upgrades.WatcherRestartIT" -Dtests.method="testEnsureWatcherDeletesLegacyTemplates" -Dtests.seed=75857148BDB2692E -Dtests.bwc=true -Dtests.locale=de-LU -Dtests.timezone=Atlantic/Faeroe -Druntime.java=8` **Applicable branches:** 7.16 **Reproduces locally?:** Didn't try **Failure history:** https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.upgrades.WatcherRestartIT&tests.test=testEnsureWatcherDeletesLegacyTemplates **Failure excerpt:** ``` java.lang.AssertionError: Expected: not a string containing "\"watcher_state\":\"stopped\"" but: was "{\"_nodes\":{\"total\":3,\"successful\":3,\"failed\":0},\"cluster_name\":\"v7.4.0\",\"manually_stopped\":false,\"stats\":[{\"node_id\":\"HABVI3E7QPCYZ0yEQnQ9mw\",\"watcher_state\":\"started\",\"watch_count\":0,\"execution_thread_pool\":{\"queue_size\":0,\"max_size\":0}},{\"node_id\":\"6rPU8dtMT2ueg9rmvOxKgg\",\"watcher_state\":\"started\",\"watch_count\":0,\"execution_thread_pool\":{\"queue_size\":0,\"max_size\":0}},{\"node_id\":\"zU88hVu-RpapPD5IRywWcA\",\"watcher_state\":\"stopped\",\"watch_count\":0,\"execution_thread_pool\":{\"queue_size\":0,\"max_size\":0}}]}" at __randomizedtesting.SeedInfo.seed([75857148BDB2692E:589F4C1C5F424D33]:0) at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:956) at org.junit.Assert.assertThat(Assert.java:923) at org.elasticsearch.upgrades.WatcherRestartIT.lambda$ensureWatcherStarted$3(WatcherRestartIT.java:183) at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1123) at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1096) at org.elasticsearch.upgrades.WatcherRestartIT.ensureWatcherStarted(WatcherRestartIT.java:177) at org.elasticsearch.upgrades.WatcherRestartIT.testEnsureWatcherDeletesLegacyTemplates(WatcherRestartIT.java:139) at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1750) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:938) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:974) at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:988) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:49) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:48) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:368) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:817) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:468) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:947) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:832) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:883) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:894) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:41) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:54) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:368) at java.lang.Thread.run(Thread.java:748) ```
https://github.com/elastic/elasticsearch/issues/80977
https://github.com/elastic/elasticsearch/pull/80986
0f108251341303dbf4afabaadc8f1d673a368b0c
594fe00396ed70a2cd035775badbdb5ef2aecc98
2021-11-23T23:41:02Z
java
2021-11-24T13:57:32Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
80,976
["server/src/main/java/org/elasticsearch/cluster/metadata/DataStreamAlias.java", "server/src/main/java/org/elasticsearch/snapshots/RestoreService.java", "server/src/test/java/org/elasticsearch/cluster/metadata/DataStreamAliasTests.java"]
Snapshot restore requests allow you to restore alias with write data stream, even if the alias already has a write data stream
**Elasticsearch version** (`bin/elasticsearch --version`): Version: 8.1.0-SNAPSHOT, Build: default/tar/e38cadb5283feeea06f09d555dbe47fb1d5e8b39/2021-11-22T22:35:22.825882Z, JVM: 17.0.1 **OS version** (`uname -a` if on a Unix-like system): Darwin 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6~3/RELEASE_X86_64 x86_64 **Description of the problem including expected versus actual behavior**: I expect ES to reject snapshot restore requests that restore an alias with a write data stream if that alias already exists and has another write data stream. However, ES currently accepts these requests. It appears that the alias uses the restored write data stream, which may be unexpected and confusing to users. This is likely related to https://github.com/elastic/elasticsearch/issues/80972. **Steps to reproduce**: 1. Register a snapshot repository ``` PUT /_snapshot/my_repository { "type": "fs", "settings": { "location": "my_backup_location" } } ``` 2. Create the `logs-my_app-default` data stream. ``` POST logs-my_app-default/_doc { "@timestamp": "2099-05-06T16:21:15.000Z" } ``` 3. Add the `logs` alias to the data stream and set it as the write data stream. ``` POST _aliases { "actions": [ { "add": { "index": "logs-my_app-default", "alias": "logs", "is_write_index": true } } ] } ``` 4. Create a snapshot containing the data stream. This also backs up its alias. ``` PUT _snapshot/my_repository/my_snapshot?wait_for_completion=true ``` 5. Delete the data stream. ``` DELETE _data_stream/logs-my_app-default ``` 6. Create another data stream, `logs-my_other_app-default`, and add it as the write data stream to the `logs` alias. ``` POST logs-my_other_app-default/_doc { "@timestamp": "2099-05-07T16:21:15.000Z" } POST _aliases { "actions": [ { "add": { "index": "logs-my_other_app-default", "alias": "logs", "is_write_index": true } } ] } ``` 7. Restore the `logs-my_app-default` data stream and its aliases from the snapshot. ``` POST /_snapshot/my_repository/my_snapshot/_restore?wait_for_completion=true { "indices": "logs-my_app-default", "include_aliases": true } ``` I expected this to return an error like `alias [logs] has more than one write index [logs-my_other_app-default,logs-my_app-default]`. This occurs for index aliases in a similar situation. However, the request was accepted. When you check the `logs` alias, the restored `logs-my_app-default` data stream is the current write data stream: ``` GET _alias/logs ``` Returns: ``` { "logs-my_other_app-default" : { "aliases" : { "logs" : { } } }, "logs-my_app-default" : { "aliases" : { "logs" : { "is_write_index" : true } } } } ```
https://github.com/elastic/elasticsearch/issues/80976
https://github.com/elastic/elasticsearch/pull/81217
eec64f72bf6280445ed0f74d219632b87f46572c
a4b232a09fd7217e6fc7bb7910ca07c7b609d031
2021-11-23T23:00:33Z
java
2021-12-17T07:40:07Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
80,972
["server/src/main/java/org/elasticsearch/cluster/metadata/Metadata.java", "server/src/test/java/org/elasticsearch/cluster/metadata/MetadataTests.java", "x-pack/plugin/data-streams/src/internalClusterTest/java/org/elasticsearch/datastreams/DataStreamIT.java", "x-pack/plugin/data-streams/src/internalClusterTest/java/org/elasticsearch/datastreams/DataStreamsSnapshotsIT.java"]
Snapshot restore requests allow you to restore data stream alias with conflicting name
**Elasticsearch version** (`bin/elasticsearch --version`): Version: 8.1.0-SNAPSHOT, Build: default/tar/e38cadb5283feeea06f09d555dbe47fb1d5e8b39/2021-11-22T22:35:22.825882Z, JVM: 17.0.1 **OS version** (`uname -a` if on a Unix-like system): Darwin 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6~3/RELEASE_X86_64 x86_64 **Description of the problem including expected versus actual behavior**: I expect ES to reject snapshot restore requests that restore a data stream alias with the same name as an existing data stream or index. However, ES currently accepts these requests. This cluster now has a data stream/index and alias with the same name. A user may not be sure which resource a search request targeting the name will hit. **Steps to reproduce**: 1. Register a snapshot repository ``` PUT /_snapshot/my_repository { "type": "fs", "settings": { "location": "my_backup_location" } } ``` 2. Create a data stream. ``` POST logs-my_app-default/_doc { "@timestamp": "2099-05-06T16:21:15.000Z" } ``` 3. Add a `logs` alias to the data stream. ``` POST _aliases { "actions": [ { "add": { "index": "logs-my_app-default", "alias": "logs" } } ] } ``` 4. Create a snapshot containing the data stream and its alias ``` PUT _snapshot/my_repository/my_snapshot?wait_for_completion=true ``` 5. Delete the data stream. This also deletes the alias. ``` DELETE _data_stream/logs-my_app-default ``` 6. Create another data stream with same name as the deleted alias (`logs`). ``` PUT _index_template/my-index-template { "index_patterns": ["logs"], "data_stream": { }, "priority": 500 } POST logs/_doc { "@timestamp": "2099-05-07T16:21:15.000Z" } ``` 7. Restore the data stream and `logs` alias from the snapshot. ``` POST /_snapshot/my_repository/my_snapshot/_restore?wait_for_completion=true { "indices": "logs-my_app-default", "include_aliases": true } ``` I expected this to return an error due to a conflict between the restored `logs` alias and the pre-existing `logs` data stream. However, the request was accepted, and both resources now exist. Retrieve the `logs` data stream: ``` GET _data_stream/logs ``` Retrieve the `logs` alias: ``` GET _alias/logs ``` A search on `logs` only hits the `logs` data stream: ``` GET logs/_search ``` However, a search on `log*` hits both the alias and the data stream: ``` GET log*/_search ```
https://github.com/elastic/elasticsearch/issues/80972
https://github.com/elastic/elasticsearch/pull/81040
e20fe6d6390b46d21a09cbdd63f75753cd8d1b0d
5c4330292ffead1218ddba896431ca04408f766c
2021-11-23T21:27:38Z
java
2021-11-30T08:31:26Z
closed
elastic/elasticsearch
https://github.com/elastic/elasticsearch
80,962
["docs/reference/docs/delete-by-query.asciidoc", "docs/reference/docs/update-by-query.asciidoc", "rest-api-spec/src/main/resources/rest-api-spec/api/delete_by_query.json", "rest-api-spec/src/main/resources/rest-api-spec/api/update_by_query.json"]
[Docs] _source* params don't work for Update by query / Delete by query
The docs for [Update by query](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html) and [Delete by query](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html) mention that you can use the following parameters to include/exclude fields returned from the affected docs: * `_source` * `_source_excludes` * `_source_includes` However, in testing this it doesn't appear to actually work. Example in Kibana Dev Tools: ``` POST test/_doc/123 { "foo": "bar" } POST test/_delete_by_query { "query": { "term": { "foo": { "value": "bar" } } }, "_source": true } ``` Result: ``` { "took" : 80, "timed_out" : false, "total" : 1, "deleted" : 1, "batches" : 1, "version_conflicts" : 0, "noops" : 0, "retries" : { "bulk" : 0, "search" : 0 }, "throttled_millis" : 0, "requests_per_second" : -1.0, "throttled_until_millis" : 0, "failures" : [ ] } ``` I spoke with @DaveCTurner offline and he indicated: > I think this is a docs bug, I don’t believe DBQ or UBQ support `_source`. You could easily hit billions of docs, there’s no way we could return them all. If that's confirmed to be the case, I believe we should remove mention of those from the docs.
https://github.com/elastic/elasticsearch/issues/80962
https://github.com/elastic/elasticsearch/pull/81131
86978e87b877b304d81ae749266c248607da6f7e
ca8c9be01696d81998de15ef0ec50cd021cb5dfd
2021-11-23T18:56:31Z
java
2021-12-01T14:06:12Z