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 | 96,501 | ["modules/aggregations/src/internalClusterTest/java/org/elasticsearch/aggregations/bucket/TimeSeriesAggregationsIT.java", "server/src/main/java/org/elasticsearch/index/query/RangeQueryBuilder.java", "server/src/test/java/org/elasticsearch/index/query/RangeQueryBuilderTests.java", "test/framework/src/main/java/org/elasticsearch/test/AbstractBuilderTestCase.java"] | [CI] TimeSeriesAggregationsIT testStandAloneTimeSeriesAggWithMetricFilter failing | It did fail locally too, but with assertion error, so I am not sure how reproducible it is. This was my local failure:
```
Expected: <[{dim_1=eBWMVnXtSv, dim_0=GqwoZjLxGl}, {dim_1=lrShvRvVAL, dim_0=GqwoZjLxGl}]>
but: was <[]>
```
**Build scan:**
https://gradle-enterprise.elastic.co/s/sp3gjxdpq5cwq/tests/:modules:aggregations:internalClusterTest/org.elasticsearch.aggregations.bucket.TimeSeriesAggregationsIT/testStandAloneTimeSeriesAggWithMetricFilter
**Reproduction line:**
```
./gradlew ':modules:aggregations:internalClusterTest' --tests "org.elasticsearch.aggregations.bucket.TimeSeriesAggregationsIT.testStandAloneTimeSeriesAggWithMetricFilter" -Dtests.seed=A171F282D702F22D -Dtests.locale=es-US -Dtests.timezone=Asia/Novokuznetsk -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.aggregations.bucket.TimeSeriesAggregationsIT&tests.test=testStandAloneTimeSeriesAggWithMetricFilter
**Failure excerpt:**
```
java.lang.AssertionError:
Expected: <[{dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_0=vHfCAmQdHU, dim_3=FUWQEBfirs}, {dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_0=wrlWqNbnPL, dim_3=FUWQEBfirs}, {dim_1=MAiasUEDTJ, dim_2=YPaMGnXMmh, dim_0=ggPcpWhciw, dim_3=OXppfSYngm}, {dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_0=wrlWqNbnPL, dim_3=FUWQEBfirs}, {dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_0=vHfCAmQdHU, dim_3=FUWQEBfirs}, {dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_0=ggPcpWhciw, dim_3=cxggyHWONK}, {dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_0=ggPcpWhciw, dim_3=cxggyHWONK}, {dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_0=TeDNOQPTGz, dim_3=OXppfSYngm}, {dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_0=wrlWqNbnPL, dim_3=FUWQEBfirs}, {dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_0=vHfCAmQdHU, dim_3=FUWQEBfirs}, {dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_0=wrlWqNbnPL, dim_3=FUWQEBfirs}, {dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_0=wrlWqNbnPL, dim_3=FUWQEBfirs}, {dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_0=TeDNOQPTGz, dim_3=OXppfSYngm}, {dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_0=ggPcpWhciw, dim_3=cxggyHWONK}, {dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_0=wrlWqNbnPL, dim_3=bzPFVYCdHg}, {dim_1=MAiasUEDTJ, dim_2=uCJIIgeBTT, dim_0=TeDNOQPTGz, dim_3=bzPFVYCdHg}, {dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_0=OstKURUooK, dim_3=OXppfSYngm}, {dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_0=TeDNOQPTGz, dim_3=OXppfSYngm}, {dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_0=ggPcpWhciw, dim_3=OXppfSYngm}, {dim_1=MAiasUEDTJ, dim_2=uCJIIgeBTT, dim_0=wrlWqNbnPL, dim_3=FUWQEBfirs}, {dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_0=vHfCAmQdHU, dim_3=FUWQEBfirs}, {dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_0=TeDNOQPTGz, dim_3=cxggyHWONK}, {dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_0=ggPcpWhciw, dim_3=FUWQEBfirs}, {dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_0=TeDNOQPTGz, dim_3=bzPFVYCdHg}, {dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_0=OstKURUooK, dim_3=cxggyHWONK}, {dim_1=MAiasUEDTJ, dim_2=uCJIIgeBTT, dim_0=ggPcpWhciw, dim_3=OXppfSYngm}, {dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_0=OstKURUooK, dim_3=OXppfSYngm}, {dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_0=ggPcpWhciw, dim_3=OXppfSYngm}, {dim_1=MAiasUEDTJ, dim_2=YPaMGnXMmh, dim_0=vHfCAmQdHU, dim_3=OXppfSYngm}, {dim_1=MAiasUEDTJ, dim_2=YPaMGnXMmh, dim_0=wrlWqNbnPL, dim_3=cxggyHWONK}, {dim_1=MAiasUEDTJ, dim_2=YPaMGnXMmh, dim_0=OstKURUooK, dim_3=bzPFVYCdHg}, {dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_0=TeDNOQPTGz, dim_3=bzPFVYCdHg}, {dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_0=vHfCAmQdHU, dim_3=cxggyHWONK}, {dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_0=vHfCAmQdHU, dim_3=OXppfSYngm}, {dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_0=ggPcpWhciw, dim_3=OXppfSYngm}, {dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_0=TeDNOQPTGz, dim_3=bzPFVYCdHg}, {dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_0=OstKURUooK, dim_3=bzPFVYCdHg}, {dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_0=ggPcpWhciw, dim_3=FUWQEBfirs}, {dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_0=ggPcpWhciw, dim_3=FUWQEBfirs}, {dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_0=vHfCAmQdHU, dim_3=bzPFVYCdHg}, {dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_0=vHfCAmQdHU, dim_3=cxggyHWONK}, {dim_1=MAiasUEDTJ, dim_2=uCJIIgeBTT, dim_0=vHfCAmQdHU, dim_3=OXppfSYngm}, {dim_1=MAiasUEDTJ, dim_2=uCJIIgeBTT, dim_0=TeDNOQPTGz, dim_3=OXppfSYngm}, {dim_1=MAiasUEDTJ, dim_2=YPaMGnXMmh, dim_0=vHfCAmQdHU, dim_3=FUWQEBfirs}, {dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_0=OstKURUooK, dim_3=bzPFVYCdHg}, {dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_0=vHfCAmQdHU, dim_3=bzPFVYCdHg}, {dim_1=MAiasUEDTJ, dim_2=YPaMGnXMmh, dim_0=OstKURUooK, dim_3=FUWQEBfirs}, {dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_0=TeDNOQPTGz, dim_3=OXppfSYngm}, {dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_0=vHfCAmQdHU, dim_3=cxggyHWONK}, {dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_0=OstKURUooK, dim_3=OXppfSYngm}, {dim_1=MAiasUEDTJ, dim_2=YPaMGnXMmh, dim_0=wrlWqNbnPL, dim_3=FUWQEBfirs}, {dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_0=vHfCAmQdHU, dim_3=bzPFVYCdHg}, {dim_1=MAiasUEDTJ, dim_2=uCJIIgeBTT, dim_0=wrlWqNbnPL, dim_3=OXppfSYngm}, {dim_1=MAiasUEDTJ, dim_2=uCJIIgeBTT, dim_0=TeDNOQPTGz, dim_3=cxggyHWONK}, {dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_0=ggPcpWhciw, dim_3=cxggyHWONK}, {dim_1=MAiasUEDTJ, dim_2=YPaMGnXMmh, dim_0=ggPcpWhciw, dim_3=cxggyHWONK}, {dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_0=OstKURUooK, dim_3=bzPFVYCdHg}, {dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_0=TeDNOQPTGz, dim_3=cxggyHWONK}, {dim_1=MAiasUEDTJ, dim_2=uCJIIgeBTT, dim_0=OstKURUooK, dim_3=FUWQEBfirs}, {dim_1=MAiasUEDTJ, dim_2=YPaMGnXMmh, dim_0=TeDNOQPTGz, dim_3=FUWQEBfirs}, {dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_0=wrlWqNbnPL, dim_3=cxggyHWONK}, {dim_1=MAiasUEDTJ, dim_2=uCJIIgeBTT, dim_0=wrlWqNbnPL, dim_3=cxggyHWONK}, {dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_0=wrlWqNbnPL, dim_3=cxggyHWONK}, {dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_0=OstKURUooK, dim_3=cxggyHWONK}, {dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_0=wrlWqNbnPL, dim_3=OXppfSYngm}, {dim_1=MAiasUEDTJ, dim_2=uCJIIgeBTT, dim_0=OstKURUooK, dim_3=bzPFVYCdHg}, {dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_0=OstKURUooK, dim_3=OXppfSYngm}, {dim_1=MAiasUEDTJ, dim_2=YPaMGnXMmh, dim_0=TeDNOQPTGz, dim_3=bzPFVYCdHg}, {dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_0=ggPcpWhciw, dim_3=OXppfSYngm}, {dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_0=ggPcpWhciw, dim_3=cxggyHWONK}, {dim_1=MAiasUEDTJ, dim_2=YPaMGnXMmh, dim_0=wrlWqNbnPL, dim_3=bzPFVYCdHg}, {dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_0=TeDNOQPTGz, dim_3=FUWQEBfirs}, {dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_0=wrlWqNbnPL, dim_3=bzPFVYCdHg}, {dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_0=TeDNOQPTGz, dim_3=bzPFVYCdHg}, {dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_0=wrlWqNbnPL, dim_3=OXppfSYngm}, {dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_0=TeDNOQPTGz, dim_3=cxggyHWONK}, {dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_0=ggPcpWhciw, dim_3=bzPFVYCdHg}, {dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_0=OstKURUooK, dim_3=FUWQEBfirs}, {dim_1=MAiasUEDTJ, dim_2=YPaMGnXMmh, dim_0=vHfCAmQdHU, dim_3=bzPFVYCdHg}, {dim_1=MAiasUEDTJ, dim_2=YPaMGnXMmh, dim_0=OstKURUooK, dim_3=cxggyHWONK}, {dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_0=TeDNOQPTGz, dim_3=FUWQEBfirs}, {dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_0=wrlWqNbnPL, dim_3=OXppfSYngm}, {dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_0=vHfCAmQdHU, dim_3=OXppfSYngm}, {dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_0=OstKURUooK, dim_3=FUWQEBfirs}, {dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_0=TeDNOQPTGz, dim_3=FUWQEBfirs}, {dim_1=MAiasUEDTJ, dim_2=uCJIIgeBTT, dim_0=ggPcpWhciw, dim_3=bzPFVYCdHg}, {dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_0=OstKURUooK, dim_3=FUWQEBfirs}, {dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_0=ggPcpWhciw, dim_3=bzPFVYCdHg}, {dim_1=MAiasUEDTJ, dim_2=YPaMGnXMmh, dim_0=TeDNOQPTGz, dim_3=cxggyHWONK}, {dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_0=OstKURUooK, dim_3=FUWQEBfirs}, {dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_0=TeDNOQPTGz, dim_3=FUWQEBfirs}, {dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_0=TeDNOQPTGz, dim_3=FUWQEBfirs}, {dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_0=OstKURUooK, dim_3=FUWQEBfirs}, {dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_0=TeDNOQPTGz, dim_3=FUWQEBfirs}, {dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_0=wrlWqNbnPL, dim_3=OXppfSYngm}, {dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_0=vHfCAmQdHU, dim_3=bzPFVYCdHg}, {dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_0=ggPcpWhciw, dim_3=bzPFVYCdHg}, {dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_0=OstKURUooK, dim_3=FUWQEBfirs}, {dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_0=OstKURUooK, dim_3=cxggyHWONK}, {dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_0=ggPcpWhciw, dim_3=bzPFVYCdHg}, {dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_0=TeDNOQPTGz, dim_3=bzPFVYCdHg}, {dim_1=MAiasUEDTJ, dim_2=uCJIIgeBTT, dim_0=vHfCAmQdHU, dim_3=bzPFVYCdHg}, {dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_0=OstKURUooK, dim_3=cxggyHWONK}, {dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_0=vHfCAmQdHU, dim_3=bzPFVYCdHg}, {dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_0=vHfCAmQdHU, dim_3=OXppfSYngm}, {dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_0=TeDNOQPTGz, dim_3=cxggyHWONK}, {dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_0=wrlWqNbnPL, dim_3=bzPFVYCdHg}, {dim_1=MAiasUEDTJ, dim_2=uCJIIgeBTT, dim_0=wrlWqNbnPL, dim_3=bzPFVYCdHg}, {dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_0=vHfCAmQdHU, dim_3=OXppfSYngm}, {dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_0=wrlWqNbnPL, dim_3=cxggyHWONK}, {dim_1=MAiasUEDTJ, dim_2=uCJIIgeBTT, dim_0=TeDNOQPTGz, dim_3=FUWQEBfirs}, {dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_0=ggPcpWhciw, dim_3=FUWQEBfirs}, {dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_0=wrlWqNbnPL, dim_3=OXppfSYngm}, {dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_0=OstKURUooK, dim_3=OXppfSYngm}, {dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_0=wrlWqNbnPL, dim_3=cxggyHWONK}, {dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_0=OstKURUooK, dim_3=cxggyHWONK}, {dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_0=OstKURUooK, dim_3=cxggyHWONK}, {dim_1=MAiasUEDTJ, dim_2=YPaMGnXMmh, dim_0=wrlWqNbnPL, dim_3=OXppfSYngm}, {dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_0=TeDNOQPTGz, dim_3=cxggyHWONK}, {dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_0=OstKURUooK, dim_3=bzPFVYCdHg}, {dim_1=MAiasUEDTJ, dim_2=uCJIIgeBTT, dim_0=ggPcpWhciw, dim_3=FUWQEBfirs}, {dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_0=TeDNOQPTGz, dim_3=bzPFVYCdHg}, {dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_0=wrlWqNbnPL, dim_3=cxggyHWONK}, {dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_0=vHfCAmQdHU, dim_3=bzPFVYCdHg}, {dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_0=vHfCAmQdHU, dim_3=cxggyHWONK}, {dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_0=vHfCAmQdHU, dim_3=OXppfSYngm}, {dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_0=ggPcpWhciw, dim_3=OXppfSYngm}, {dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_0=ggPcpWhciw, dim_3=cxggyHWONK}, {dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_0=TeDNOQPTGz, dim_3=OXppfSYngm}, {dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_0=OstKURUooK, dim_3=bzPFVYCdHg}, {dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_0=ggPcpWhciw, dim_3=OXppfSYngm}, {dim_1=MAiasUEDTJ, dim_2=uCJIIgeBTT, dim_0=OstKURUooK, dim_3=OXppfSYngm}, {dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_0=TeDNOQPTGz, dim_3=cxggyHWONK}, {dim_1=MAiasUEDTJ, dim_2=YPaMGnXMmh, dim_0=OstKURUooK, dim_3=OXppfSYngm}, {dim_1=MAiasUEDTJ, dim_2=uCJIIgeBTT, dim_0=vHfCAmQdHU, dim_3=FUWQEBfirs}, {dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_0=wrlWqNbnPL, dim_3=bzPFVYCdHg}, {dim_1=MAiasUEDTJ, dim_2=YPaMGnXMmh, dim_0=ggPcpWhciw, dim_3=bzPFVYCdHg}, {dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_0=OstKURUooK, dim_3=OXppfSYngm}, {dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_0=wrlWqNbnPL, dim_3=OXppfSYngm}, {dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_0=vHfCAmQdHU, dim_3=FUWQEBfirs}, {dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_0=ggPcpWhciw, dim_3=bzPFVYCdHg}, {dim_1=MAiasUEDTJ, dim_2=YPaMGnXMmh, dim_0=ggPcpWhciw, dim_3=FUWQEBfirs}, {dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_0=ggPcpWhciw, dim_3=FUWQEBfirs}, {dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_0=TeDNOQPTGz, dim_3=OXppfSYngm}, {dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_0=wrlWqNbnPL, dim_3=FUWQEBfirs}, {dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_0=vHfCAmQdHU, dim_3=cxggyHWONK}, {dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_0=vHfCAmQdHU, dim_3=OXppfSYngm}, {dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_0=OstKURUooK, dim_3=bzPFVYCdHg}, {dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_0=vHfCAmQdHU, dim_3=FUWQEBfirs}, {dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_0=ggPcpWhciw, dim_3=FUWQEBfirs}]>
but: was <[{dim_0=vHfCAmQdHU, dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_3=FUWQEBfirs}, {dim_0=ggPcpWhciw, dim_1=MAiasUEDTJ, dim_2=YPaMGnXMmh, dim_3=OXppfSYngm}, {dim_0=wrlWqNbnPL, dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_3=FUWQEBfirs}, {dim_0=vHfCAmQdHU, dim_1=MAiasUEDTJ, dim_2=YPaMGnXMmh, dim_3=bzPFVYCdHg}, {dim_0=OstKURUooK, dim_1=MAiasUEDTJ, dim_2=YPaMGnXMmh, dim_3=cxggyHWONK}, {dim_0=ggPcpWhciw, dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_3=cxggyHWONK}, {dim_0=TeDNOQPTGz, dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_3=FUWQEBfirs}, {dim_0=ggPcpWhciw, dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_3=cxggyHWONK}, {dim_0=TeDNOQPTGz, dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_3=OXppfSYngm}, {dim_0=wrlWqNbnPL, dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_3=OXppfSYngm}, {dim_0=vHfCAmQdHU, dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_3=OXppfSYngm}, {dim_0=OstKURUooK, dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_3=FUWQEBfirs}, {dim_0=TeDNOQPTGz, dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_3=FUWQEBfirs}, {dim_0=ggPcpWhciw, dim_1=MAiasUEDTJ, dim_2=uCJIIgeBTT, dim_3=bzPFVYCdHg}, {dim_0=vHfCAmQdHU, dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_3=FUWQEBfirs}, {dim_0=OstKURUooK, dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_3=FUWQEBfirs}, {dim_0=ggPcpWhciw, dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_3=bzPFVYCdHg}, {dim_0=wrlWqNbnPL, dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_3=FUWQEBfirs}, {dim_0=TeDNOQPTGz, dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_3=FUWQEBfirs}, {dim_0=wrlWqNbnPL, dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_3=FUWQEBfirs}, {dim_0=TeDNOQPTGz, dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_3=FUWQEBfirs}, {dim_0=TeDNOQPTGz, dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_3=FUWQEBfirs}, {dim_0=vHfCAmQdHU, dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_3=bzPFVYCdHg}, {dim_0=wrlWqNbnPL, dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_3=OXppfSYngm}, {dim_0=ggPcpWhciw, dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_3=cxggyHWONK}, {dim_0=OstKURUooK, dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_3=FUWQEBfirs}, {dim_0=TeDNOQPTGz, dim_1=MAiasUEDTJ, dim_2=uCJIIgeBTT, dim_3=bzPFVYCdHg}, {dim_0=wrlWqNbnPL, dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_3=bzPFVYCdHg}, {dim_0=TeDNOQPTGz, dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_3=OXppfSYngm}, {dim_0=ggPcpWhciw, dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_3=bzPFVYCdHg}, {dim_0=ggPcpWhciw, dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_3=OXppfSYngm}, {dim_0=wrlWqNbnPL, dim_1=MAiasUEDTJ, dim_2=uCJIIgeBTT, dim_3=FUWQEBfirs}, {dim_0=OstKURUooK, dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_3=cxggyHWONK}, {dim_0=vHfCAmQdHU, dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_3=FUWQEBfirs}, {dim_0=TeDNOQPTGz, dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_3=cxggyHWONK}, {dim_0=ggPcpWhciw, dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_3=FUWQEBfirs}, {dim_0=TeDNOQPTGz, dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_3=bzPFVYCdHg}, {dim_0=OstKURUooK, dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_3=cxggyHWONK}, {dim_0=OstKURUooK, dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_3=OXppfSYngm}, {dim_0=TeDNOQPTGz, dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_3=cxggyHWONK}, {dim_0=wrlWqNbnPL, dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_3=bzPFVYCdHg}, {dim_0=ggPcpWhciw, dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_3=OXppfSYngm}, {dim_0=vHfCAmQdHU, dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_3=OXppfSYngm}, {dim_0=wrlWqNbnPL, dim_1=MAiasUEDTJ, dim_2=YPaMGnXMmh, dim_3=cxggyHWONK}, {dim_0=wrlWqNbnPL, dim_1=MAiasUEDTJ, dim_2=uCJIIgeBTT, dim_3=bzPFVYCdHg}, {dim_0=OstKURUooK, dim_1=MAiasUEDTJ, dim_2=YPaMGnXMmh, dim_3=bzPFVYCdHg}, {dim_0=TeDNOQPTGz, dim_1=MAiasUEDTJ, dim_2=uCJIIgeBTT, dim_3=FUWQEBfirs}, {dim_0=wrlWqNbnPL, dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_3=cxggyHWONK}, {dim_0=TeDNOQPTGz, dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_3=bzPFVYCdHg}, {dim_0=wrlWqNbnPL, dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_3=OXppfSYngm}, {dim_0=vHfCAmQdHU, dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_3=cxggyHWONK}, {dim_0=vHfCAmQdHU, dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_3=OXppfSYngm}, {dim_0=wrlWqNbnPL, dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_3=cxggyHWONK}, {dim_0=OstKURUooK, dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_3=cxggyHWONK}, {dim_0=ggPcpWhciw, dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_3=OXppfSYngm}, {dim_0=OstKURUooK, dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_3=cxggyHWONK}, {dim_0=wrlWqNbnPL, dim_1=MAiasUEDTJ, dim_2=YPaMGnXMmh, dim_3=OXppfSYngm}, {dim_0=TeDNOQPTGz, dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_3=cxggyHWONK}, {dim_0=ggPcpWhciw, dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_3=FUWQEBfirs}, {dim_0=vHfCAmQdHU, dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_3=bzPFVYCdHg}, {dim_0=OstKURUooK, dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_3=bzPFVYCdHg}, {dim_0=vHfCAmQdHU, dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_3=cxggyHWONK}, {dim_0=TeDNOQPTGz, dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_3=bzPFVYCdHg}, {dim_0=TeDNOQPTGz, dim_1=MAiasUEDTJ, dim_2=uCJIIgeBTT, dim_3=OXppfSYngm}, {dim_0=vHfCAmQdHU, dim_1=MAiasUEDTJ, dim_2=uCJIIgeBTT, dim_3=OXppfSYngm}, {dim_0=vHfCAmQdHU, dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_3=cxggyHWONK}, {dim_0=vHfCAmQdHU, dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_3=bzPFVYCdHg}, {dim_0=vHfCAmQdHU, dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_3=OXppfSYngm}, {dim_0=ggPcpWhciw, dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_3=OXppfSYngm}, {dim_0=OstKURUooK, dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_3=bzPFVYCdHg}, {dim_0=ggPcpWhciw, dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_3=OXppfSYngm}, {dim_0=TeDNOQPTGz, dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_3=OXppfSYngm}, {dim_0=vHfCAmQdHU, dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_3=cxggyHWONK}, {dim_0=wrlWqNbnPL, dim_1=MAiasUEDTJ, dim_2=yZMjIcNXff, dim_3=bzPFVYCdHg}, {dim_0=wrlWqNbnPL, dim_1=MAiasUEDTJ, dim_2=YPaMGnXMmh, dim_3=FUWQEBfirs}, {dim_0=vHfCAmQdHU, dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_3=bzPFVYCdHg}, {dim_0=ggPcpWhciw, dim_1=MAiasUEDTJ, dim_2=YPaMGnXMmh, dim_3=cxggyHWONK}, {dim_0=ggPcpWhciw, dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_3=cxggyHWONK}, {dim_0=OstKURUooK, dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_3=OXppfSYngm}, {dim_0=wrlWqNbnPL, dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_3=OXppfSYngm}, {dim_0=OstKURUooK, dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_3=bzPFVYCdHg}, {dim_0=ggPcpWhciw, dim_1=vqcAkOKUBW, dim_2=MffkyVXXAG, dim_3=bzPFVYCdHg}, {dim_0=vHfCAmQdHU, dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_3=FUWQEBfirs}, {dim_0=TeDNOQPTGz, dim_1=MAiasUEDTJ, dim_2=MffkyVXXAG, dim_3=cxggyHWONK}, {dim_0=TeDNOQPTGz, dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_3=OXppfSYngm}, {dim_0=TeDNOQPTGz, dim_1=MAiasUEDTJ, dim_2=YPaMGnXMmh, dim_3=FUWQEBfirs}, {dim_0=wrlWqNbnPL, dim_1=MAiasUEDTJ, dim_2=uCJIIgeBTT, dim_3=cxggyHWONK}, {dim_0=vHfCAmQdHU, dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_3=OXppfSYngm}, {dim_0=TeDNOQPTGz, dim_1=MAiasUEDTJ, dim_2=YPaMGnXMmh, dim_3=bzPFVYCdHg}, {dim_0=ggPcpWhciw, dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_3=OXppfSYngm}, {dim_0=OstKURUooK, dim_1=vqcAkOKUBW, dim_2=YPaMGnXMmh, dim_3=bzPFVYCdHg}, {dim_0=TeDNOQPTGz, dim_1=vqcAkOKUBW, dim_2=uCJIIgeBTT, dim_3=FUWQEBfirs}, {dim_0=vHfCAmQdHU, dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_3=FUWQEBfirs}, {dim_0=wrlWqNbnPL, dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_3=OXppfSYngm}, {dim_0=TeDNOQPTGz, dim_1=vqcAkOKUBW, dim_2=yZMjIcNXff, dim_3=cxggyHWONK}]>
at __randomizedtesting.SeedInfo.seed([A171F282D702F22D:37AA91D455CA3751]: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.aggregations.bucket.TimeSeriesAggregationsIT.testStandAloneTimeSeriesAggWithMetricFilter(TimeSeriesAggregationsIT.java:357)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/96501 | https://github.com/elastic/elasticsearch/pull/96524 | 5383682d82d285dc55da2d7035fbdbca47794439 | 0a81be5698ecda791f27eacd5a1001dcc536efaf | 2023-06-01T15:33:45Z | java | 2023-06-02T16:21:27Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,487 | ["modules/aggregations/src/internalClusterTest/java/org/elasticsearch/aggregations/bucket/TimeSeriesAggregationsIT.java", "server/src/main/java/org/elasticsearch/index/query/RangeQueryBuilder.java", "server/src/test/java/org/elasticsearch/index/query/RangeQueryBuilderTests.java", "test/framework/src/main/java/org/elasticsearch/test/AbstractBuilderTestCase.java"] | [CI] TimeSeriesAggregationsIT testRetrievingHits failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/medyxx6bc4zyi/tests/:modules:aggregations:internalClusterTest/org.elasticsearch.aggregations.bucket.TimeSeriesAggregationsIT/testRetrievingHits
**Reproduction line:**
```
./gradlew ':modules:aggregations:internalClusterTest' --tests "org.elasticsearch.aggregations.bucket.TimeSeriesAggregationsIT.testRetrievingHits" -Dtests.seed=B00C75BA996A0C90 -Dtests.locale=en-GB -Dtests.timezone=Asia/Ashgabat -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.aggregations.bucket.TimeSeriesAggregationsIT&tests.test=testRetrievingHits
**Failure excerpt:**
```
junit.framework.AssertionFailedError: Expected exception ElasticsearchException but no exception was thrown
at __randomizedtesting.SeedInfo.seed([B00C75BA996A0C90:C1B6A560BE89D3FC]:0)
at org.apache.lucene.tests.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2864)
at org.apache.lucene.tests.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2850)
at org.elasticsearch.aggregations.bucket.TimeSeriesAggregationsIT.testRetrievingHits(TimeSeriesAggregationsIT.java:380)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/96487 | https://github.com/elastic/elasticsearch/pull/96524 | 5383682d82d285dc55da2d7035fbdbca47794439 | 0a81be5698ecda791f27eacd5a1001dcc536efaf | 2023-06-01T12:02:30Z | java | 2023-06-02T16:21:27Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,478 | ["docs/changelog/96494.yaml", "x-pack/plugin/rollup/qa/rest/build.gradle", "x-pack/plugin/rollup/qa/rest/src/yamlRestTest/resources/rest-api-spec/test/rollup/60_settings.yml", "x-pack/plugin/rollup/src/main/java/org/elasticsearch/xpack/downsample/TransportDownsampleAction.java"] | Prevent downsample indices to inherit pipeline-related index settings | ### Elasticsearch Version
8.7
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
All
### Problem Description
When downsampling a source index into a target index, the target index is created copying some settings from the source index. Among the settings we copy there are two of them `index.default_pipeline` and `index.final_pipeline` which control execution of ingest pipelines for the (target) index. As a result of the transformation we apply to the target (downsampled) index, including aggregation of metric fields, it is possible that the pipeline script execution fails because some metric fields are converted to `aggregate_metric_double` fields. These fields are not accessible in the same way as the original ones since they are of different type and because they just include aggregate metrics (sum, min, max and value_count).
We need to skip copying the two settings, `index.default_pipeline` and `index.final_pipeline`, from the source index to the target index in order to avoid pipeline processing to be applied to the target (downsampled) index.
NOTE: the two settings might be inherited by a source index that is part of a data stream
### Steps to Reproduce
Try to downsample a source index that has the following two settings `index.default_pipeline` and `index.final_pipeline`. The target index will include the same settings. That should not be the case.
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/96478 | https://github.com/elastic/elasticsearch/pull/96494 | c777925450354d0b3f8972ac5320ba91892236c5 | 75ee1fc775d233f795ed38391ceff51c3b29971e | 2023-06-01T09:15:52Z | java | 2023-06-01T15:03:46Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,471 | ["docs/reference/rest-api/usage.asciidoc"] | [CI] DocsClientYamlTestSuiteIT test {yaml=reference/rest-api/usage/line_38} failing | It looks like there is some issue with the response format.
**Build scan:**
https://gradle-enterprise.elastic.co/s/fgywlwd2jzobe/tests/:docs:yamlRestTest/org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT/test%20%7Byaml=reference%2Frest-api%2Fusage%2Fline_38%7D
**Reproduction line:**
```
./gradlew ':docs:yamlRestTest' --tests "org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT.test {yaml=reference/rest-api/usage/line_38}" -Dtests.seed=A2E9F58B9E81A215 -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=zh-CN -Dtests.timezone=Etc/UTC -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dreference/rest-api/usage/line_38%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [reference/rest-api/usage:16]: Expected a map containing
eql: a map containing
available: <true>
enabled: <true>
features: a map containing
joins: a map containing
join_queries_three: <0>
join_queries_two: <0>
join_until: <0>
join_queries_five_or_more: <0>
join_queries_four: <0>
sequence: <4>
keys: a map containing
join_keys_two: <0>
join_keys_one: <3>
join_keys_three: <0>
join_keys_five_or_more: <0>
join_keys_four: <0>
join: <0>
sequences: a map containing
sequence_queries_three: <1>
sequence_queries_four: <0>
sequence_queries_two: <3>
sequence_until: <0>
sequence_maxspan: <2>
sequence_queries_five_or_more: <0>
event: <8>
pipes: a map containing
pipe_tail: <9>
pipe_head: <0>
queries: a map containing
all: a map containing
total: <12>
failed: <0>
_all: a map containing
total: <12>
failed: <0>
frozen_indices: a map containing
indices_count: <0>
available: <true>
enabled: <true>
sql: a map containing
features: a map containing
having: <1>
subselect: <0>
limit: <1>
orderby: <7>
where: <3>
join: <0>
groupby: <1>
command: <0>
local: <0>
available: <true>
queries: a map containing
rest: a map containing
total: <10>
paging: <1>
failed: <0>
cli: a map containing
total: <0>
paging: <0>
failed: <0>
canvas: a map containing
total: <0>
paging: <0>
failed: <0>
odbc: a map containing
total: <0>
paging: <0>
failed: <0>
jdbc: a map containing
total: <0>
paging: <0>
failed: <0>
odbc32: a map containing
total: <0>
paging: <0>
failed: <0>
odbc64: a map containing
total: <0>
paging: <0>
failed: <0>
_all: a map containing
total: <10>
paging: <1>
failed: <0>
translate: a map containing
count: <1>
enabled: <true>
rollup: a map containing
available: <true>
enabled: <true>
searchable_snapshots: a map containing
shared_cache_indices_count: <0>
indices_count: <0>
available: <true>
full_copy_indices_count: <0>
enabled: <true>
analytics: a map containing
stats: a map containing
rate_usage: <2>
normalize_usage: <0>
boxplot_usage: <3>
top_metrics_usage: <4>
multi_terms_usage: <1>
cumulative_cardinality_usage: <0>
string_stats_usage: <1>
moving_percentiles_usage: <0>
t_test_usage: <1>
available: <true>
enabled: <true>
logstash: a map containing
available: <true>
enabled: <true>
security: a map containing
available: <true>
enabled: <false>
transform: a map containing
available: <true>
enabled: <true>
ccr: a map containing
auto_follow_patterns_count: <0>
available: <true>
follower_indices_count: <0>
enabled: <true>
health_api: a map containing
available: <true>
enabled: <true>
statuses: a map containing
green: <5>
values: a list containing
0: "green"
invocations: a map containing
total: <5>
verbose_true: <5>
spatial: a map containing
available: <true>
enabled: <true>
ml: a map containing
inference: a map containing
deployments: a map containing
time_ms: a map containing
avg: <0.0>
count: <0>
model_sizes_bytes: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
inference_counts: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
trained_models: a map containing
model_size_bytes: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
estimated_operations: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
count: a map containing
total: <1>
prepackaged: <1>
other: <0>
_all: a map containing
count: <1>
ingest_processors: a map containing
_all: a map containing
pipelines: a map containing
count: <0>
time_ms: a map containing
min: <0>
max: <0>
sum: <0>
num_docs_processed: a map containing
min: <0>
max: <0>
sum: <0>
num_failures: a map containing
min: <0>
max: <0>
sum: <0>
data_frame_analytics_jobs: a map containing
memory_usage: a map containing
peak_usage_bytes: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
_all: a map containing
count: <0>
analysis_counts: an empty map
jobs: a map containing
_all: a map containing
count: <0>
detectors: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
created_by: an empty map
model_size: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
forecasts: a map containing
total: <0>
forecasted_jobs: <0>
available: <true>
datafeeds: a map containing
_all: a map containing
count: <0>
node_count: <1>
enabled: <true>
watcher: a map containing
execution: a map containing
actions: a map containing
_all: a map containing
total: <0>
total_time_in_ms: <0>
watch: a map containing
input: a map containing
_all: a map containing
total: <0>
active: <0>
trigger: a map containing
_all: a map containing
total: <0>
active: <0>
available: <true>
count: a map containing
total: <0>
active: <0>
enabled: <true>
enterprise_search: a map containing
search_applications: a map containing
count: <0>
analytics_collections: a map containing
count: <0>
available: <true>
enabled: <true>
archive: a map containing
indices_count: <0>
available: <true>
enabled: <true>
ilm: a map containing
policy_count: <17>
policy_stats: a list containing
0: a map containing
phases: a map containing
warm: a map containing
min_age: <172800000>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
cold: a map containing
min_age: <2592000000L>
actions: a list containing
0: "migrate"
configurations: an empty map
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <7776000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
1: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "3d"
max_age_millis: <259200000>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <345600000>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
2: a map containing
phases: a map containing
warm: a map containing
min_age: <172800000>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <2592000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
3: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
indices_managed: <0>
4: a map containing
phases: a map containing
warm: a map containing
min_age: <0>
actions: a list containing
0: "forcemerge"
1: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "3d"
max_age_millis: <259200000>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <259200000>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
5: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <7776000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
6: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_size: "300gb"
max_size_bytes: <322122547200L>
delete: a map containing
min_age: <7776000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
7: a map containing
phases: a map containing
warm: a map containing
min_age: <172800000>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
cold: a map containing
min_age: <2592000000L>
actions: a list containing
0: "migrate"
configurations: an empty map
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <31536000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
8: a map containing
phases: a map containing
warm: a map containing
min_age: <172800000>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "7d"
max_age_millis: <604800000>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <604800000>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
9: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "10gb"
max_primary_shard_size_bytes: <10737418240L>
delete: a map containing
min_age: <2592000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
10: a map containing
phases: a map containing
warm: a map containing
min_age: <172800000>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
cold: a map containing
min_age: <2592000000L>
actions: a list containing
0: "migrate"
configurations: an empty map
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <15552000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
11: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
indices_managed: <0>
12: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
indices_managed: <0>
13: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "7d"
max_age_millis: <604800000>
max_size: "10gb"
max_size_bytes: <10737418240L>
delete: a map containing
min_age: <604800000>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
14: a map containing
phases: a map containing
warm: a map containing
min_age: <172800000>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
cold: a map containing
min_age: <2592000000L>
actions: a list containing
0: "migrate"
configurations: an empty map
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <15552000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
15: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
indices_managed: <0>
16: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_size: "10gb"
max_size_bytes: <10737418240L>
delete: a map containing
min_age: <7776000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
monitoring: a map containing
collection_enabled: <false>
available: <true>
enabled_exporters: a map containing
local: <1>
enabled: <true>
graph: a map containing
available: <true>
enabled: <true>
aggregate_metric: a map containing
available: <true>
enabled: <true>
data_tiers: a map containing
data_warm: a map containing
primary_shard_size_median_bytes: <0>
primary_shard_count: <0>
doc_count: <0>
primary_shard_size_avg_bytes: <0>
primary_size_bytes: <0>
total_size_bytes: <0>
total_shard_count: <0>
primary_shard_size_mad_bytes: <0>
node_count: <1>
index_count: <0>
data_frozen: a map containing
primary_shard_size_median_bytes: <0>
primary_shard_count: <0>
doc_count: <0>
primary_shard_size_avg_bytes: <0>
primary_size_bytes: <0>
total_size_bytes: <0>
total_shard_count: <0>
primary_shard_size_mad_bytes: <0>
node_count: <1>
index_count: <0>
data_cold: a map containing
primary_shard_size_median_bytes: <0>
primary_shard_count: <0>
doc_count: <0>
primary_shard_size_avg_bytes: <0>
primary_size_bytes: <0>
total_size_bytes: <0>
total_shard_count: <0>
primary_shard_size_mad_bytes: <0>
node_count: <1>
index_count: <0>
available: <true>
data_content: a map containing
primary_shard_size_median_bytes: <0>
primary_shard_count: <0>
doc_count: <0>
primary_shard_size_avg_bytes: <0>
primary_size_bytes: <0>
total_size_bytes: <0>
total_shard_count: <0>
primary_shard_size_mad_bytes: <0>
node_count: <1>
index_count: <0>
enabled: <true>
data_hot: a map containing
primary_shard_size_median_bytes: <0>
primary_shard_count: <0>
doc_count: <0>
primary_shard_size_avg_bytes: <0>
primary_size_bytes: <0>
total_size_bytes: <0>
total_shard_count: <0>
primary_shard_size_mad_bytes: <0>
node_count: <1>
index_count: <0>
slm: a map containing
available: <true>
enabled: <true>
policy_count: <0>
policy_stats: a map containing
retention_runs: <0>
retention_failed: <0>
retention_timed_out: <0>
retention_deletion_time: "0s"
retention_deletion_time_millis: <0>
total_snapshots_taken: <0>
total_snapshots_failed: <0>
total_snapshots_deleted: <0>
total_snapshot_deletion_failures: <0>
policy_stats: an empty list
voting_only: a map containing
available: <true>
enabled: <true>
data_streams: a map containing
indices_count: <0>
available: <true>
data_streams: <0>
enabled: <true>
data_lifecycle: a map containing
lifecycle: expected a map but was <missing>
available: <true>
enabled: <true>
count: <unexpected> but was <0>
default_rollover_used: <unexpected> but was <true>
retention: <unexpected> but was <{minimum_millis=0, maximum_millis=0, average_millis=0.0}>
at __randomizedtesting.SeedInfo.seed([A2E9F58B9E81A215:2ABDCA51307DCFED]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:572)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:524)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.AssertionError: Expected a map containing
eql: a map containing
available: <true>
enabled: <true>
features: a map containing
joins: a map containing
join_queries_three: <0>
join_queries_two: <0>
join_until: <0>
join_queries_five_or_more: <0>
join_queries_four: <0>
sequence: <4>
keys: a map containing
join_keys_two: <0>
join_keys_one: <3>
join_keys_three: <0>
join_keys_five_or_more: <0>
join_keys_four: <0>
join: <0>
sequences: a map containing
sequence_queries_three: <1>
sequence_queries_four: <0>
sequence_queries_two: <3>
sequence_until: <0>
sequence_maxspan: <2>
sequence_queries_five_or_more: <0>
event: <8>
pipes: a map containing
pipe_tail: <9>
pipe_head: <0>
queries: a map containing
all: a map containing
total: <12>
failed: <0>
_all: a map containing
total: <12>
failed: <0>
frozen_indices: a map containing
indices_count: <0>
available: <true>
enabled: <true>
sql: a map containing
features: a map containing
having: <1>
subselect: <0>
limit: <1>
orderby: <7>
where: <3>
join: <0>
groupby: <1>
command: <0>
local: <0>
available: <true>
queries: a map containing
rest: a map containing
total: <10>
paging: <1>
failed: <0>
cli: a map containing
total: <0>
paging: <0>
failed: <0>
canvas: a map containing
total: <0>
paging: <0>
failed: <0>
odbc: a map containing
total: <0>
paging: <0>
failed: <0>
jdbc: a map containing
total: <0>
paging: <0>
failed: <0>
odbc32: a map containing
total: <0>
paging: <0>
failed: <0>
odbc64: a map containing
total: <0>
paging: <0>
failed: <0>
_all: a map containing
total: <10>
paging: <1>
failed: <0>
translate: a map containing
count: <1>
enabled: <true>
rollup: a map containing
available: <true>
enabled: <true>
searchable_snapshots: a map containing
shared_cache_indices_count: <0>
indices_count: <0>
available: <true>
full_copy_indices_count: <0>
enabled: <true>
analytics: a map containing
stats: a map containing
rate_usage: <2>
normalize_usage: <0>
boxplot_usage: <3>
top_metrics_usage: <4>
multi_terms_usage: <1>
cumulative_cardinality_usage: <0>
string_stats_usage: <1>
moving_percentiles_usage: <0>
t_test_usage: <1>
available: <true>
enabled: <true>
logstash: a map containing
available: <true>
enabled: <true>
security: a map containing
available: <true>
enabled: <false>
transform: a map containing
available: <true>
enabled: <true>
ccr: a map containing
auto_follow_patterns_count: <0>
available: <true>
follower_indices_count: <0>
enabled: <true>
health_api: a map containing
available: <true>
enabled: <true>
statuses: a map containing
green: <5>
values: a list containing
0: "green"
invocations: a map containing
total: <5>
verbose_true: <5>
spatial: a map containing
available: <true>
enabled: <true>
ml: a map containing
inference: a map containing
deployments: a map containing
time_ms: a map containing
avg: <0.0>
count: <0>
model_sizes_bytes: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
inference_counts: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
trained_models: a map containing
model_size_bytes: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
estimated_operations: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
count: a map containing
total: <1>
prepackaged: <1>
other: <0>
_all: a map containing
count: <1>
ingest_processors: a map containing
_all: a map containing
pipelines: a map containing
count: <0>
time_ms: a map containing
min: <0>
max: <0>
sum: <0>
num_docs_processed: a map containing
min: <0>
max: <0>
sum: <0>
num_failures: a map containing
min: <0>
max: <0>
sum: <0>
data_frame_analytics_jobs: a map containing
memory_usage: a map containing
peak_usage_bytes: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
_all: a map containing
count: <0>
analysis_counts: an empty map
jobs: a map containing
_all: a map containing
count: <0>
detectors: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
created_by: an empty map
model_size: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
forecasts: a map containing
total: <0>
forecasted_jobs: <0>
available: <true>
datafeeds: a map containing
_all: a map containing
count: <0>
node_count: <1>
enabled: <true>
watcher: a map containing
execution: a map containing
actions: a map containing
_all: a map containing
total: <0>
total_time_in_ms: <0>
watch: a map containing
input: a map containing
_all: a map containing
total: <0>
active: <0>
trigger: a map containing
_all: a map containing
...
``` | https://github.com/elastic/elasticsearch/issues/96471 | https://github.com/elastic/elasticsearch/pull/96484 | ef7a6e87524fb87ab8be75b5c533077d80cdb415 | 8bcdaa9d62339ad0f575bdc3c55f53fb14814f00 | 2023-06-01T06:59:49Z | java | 2023-06-01T12:33:26Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,465 | ["docs/changelog/96479.yaml", "x-pack/plugin/security/src/internalClusterTest/java/org/elasticsearch/xpack/security/authz/store/NativePrivilegeStoreSingleNodeTests.java", "x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/Security.java", "x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authz/store/NativePrivilegeStore.java", "x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authz/store/NativePrivilegeStoreTests.java"] | search.allow_expensive_queries + wildcard application privs can fail authorization | ### Elasticsearch Version
Tested against 8.6.0
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
Ubuntu
### Problem Description
When `search.allow_expensive_queries` is set to `false` some queries may fail since they are considered expensive. Typically there is an obvious connection between the action you are performing and any errors raised due to expensive queries. For example, if you explicitly issue a [prefix query](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-prefix-query.html) and `search.allow_expensive_queries` is set to `false` there is a natural correlation between your request and the error.
It has been found that when the following conditions are met
* The API key or role has application level privileges
* One of the application level privileges has a trailing wildcard in the application name (i.e. `myapp*`)
* The API key or role is not cached
then authentication will fail due to an error [1] related to the expensive query. This because internally the code issues a prefix query to for the application name. The end result is the API key can longer be used for authentication for any action.
Workaround include :
* set `search.allow_expensive_queries` is set to `true`
* remove the `*` from the application privilege name
It is also possible to set `search.allow_expensive_queries` to `true` make a call with the API key or user with the role so that it gets cached, then set `search.allow_expensive_queries` back to `false` . That will cause the API key or role to be cached, and it will work after that, but it can also start to fail again at what would seem a random time if ever evicted from the cache or the node gets restarted. For this reason, that work around is not suggested.
[1] Example exception. Note - other similar exceptions can occur but they all reference `search.allow_expensive_queries` and the `.security-*` index
```
Caused by: [.security-7/9mbNjDCNRzSzrDtj2YEeKQ] org.elasticsearch.index.query.QueryShardException: failed to create query: [prefix] queries cannot be executed when 'search.allow_expensive_queries' is set to false. For optimised prefix queries on text fields please enable [index_prefixes].
at org.elasticsearch.index.query.SearchExecutionContext.toQuery(SearchExecutionContext.java:548)
at org.elasticsearch.index.query.SearchExecutionContext.toQuery(SearchExecutionContext.java:531)
at org.elasticsearch.search.SearchService.parseSource(SearchService.java:1174)
at org.elasticsearch.search.SearchService.createContext(SearchService.java:986)
at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:630)
at org.elasticsearch.search.SearchService.lambda$executeQueryPhase$2(SearchService.java:495)
at org.elasticsearch.action.ActionRunnable$2.accept(ActionRunnable.java:50)
at org.elasticsearch.action.ActionRunnable$2.accept(ActionRunnable.java:47)
at org.elasticsearch.action.ActionRunnable$3.doRun(ActionRunnable.java:72)
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:917)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.lang.Thread.run(Thread.java:1589)
```
### Steps to Reproduce
```
PUT _cluster/settings
{
"persistent": {
"search.allow_expensive_queries": "false"
}
}
POST _security/api_key
{
"name": "my_api_key",
"role_descriptors": {
"role1": {
"cluster": ["all"],
"indices": [
{
"names": ["test"],
"privileges": ["write"]
}
],
"applications": [
{
"application": "app*",
"privileges": ["read", "write"],
"resources": ["*"]
}
]
}
},
"expiration": "1d"
}
using API key just created...
POST _bulk
{ "index" : { "_index" : "test", "_id" : "4" } }
{ "field1" : "value1" }
```
EDIT: Updated text to suggest this can happen with an API key or a custom role | https://github.com/elastic/elasticsearch/issues/96465 | https://github.com/elastic/elasticsearch/pull/96479 | cc0777535b91674954bd4ecbb73e761b9fcc4e3c | deba7723448415e943b441fa33647d2a5df96fea | 2023-05-31T17:45:10Z | java | 2023-06-05T23:07:35Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,449 | ["test/framework/src/main/java/org/elasticsearch/common/util/concurrent/DeterministicTaskQueue.java"] | [CI] SnapshotResiliencyTests testConcurrentSnapshotDeleteAndDeleteIndex failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/6u2mspnlx5m56/tests/:server:test/org.elasticsearch.snapshots.SnapshotResiliencyTests/testConcurrentSnapshotDeleteAndDeleteIndex
**Reproduction line:**
```
./gradlew ':server:test' --tests "org.elasticsearch.snapshots.SnapshotResiliencyTests.testConcurrentSnapshotDeleteAndDeleteIndex" -Dtests.seed=A5148D4F4A8D82B8 -Dtests.locale=ko -Dtests.timezone=Asia/Yakutsk -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.snapshots.SnapshotResiliencyTests&tests.test=testConcurrentSnapshotDeleteAndDeleteIndex
**Failure excerpt:**
```
java.lang.Exception: Test abandoned because suite timeout was reached.
at __randomizedtesting.SeedInfo.seed([A5148D4F4A8D82B8]:0)
``` | https://github.com/elastic/elasticsearch/issues/96449 | https://github.com/elastic/elasticsearch/pull/96658 | 67007413b15c5555e292cb2290f4a2bdddc671fe | 2345873611760731d0819052e169d7153723ce58 | 2023-05-31T08:58:18Z | java | 2023-06-07T13:10:11Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,445 | ["docs/changelog/96956.yaml", "modules/aggregations/src/yamlRestTest/resources/rest-api-spec/test/aggregations/time_series.yml", "server/src/main/java/org/elasticsearch/index/mapper/SourceFieldMapper.java"] | Enabling TSDB and disabling source gives a funny error message | ### Elasticsearch Version
8.7.0
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
whatever
### Problem Description
Enable TSDB and disable source.
### Steps to Reproduce
```
curl -uelastic:password -HContent-Type:application/json -XPUT localhost:9200/test?pretty -d'{
"settings": {
"mode": "time_series",
"routing_path": "foo"
},
"mappings": {
"_source": {
"enabled": false
}
}
}'
```
The error message you get is `Cannot set both [mode] and [enabled] parameters` but we never tried to set `mode`. I think maybe we want `time series indices only support synthetic source` like we give if you try to disable _source in tsdb.
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/96445 | https://github.com/elastic/elasticsearch/pull/96956 | 524ecc75bd6f90f22979a1735d4b783108d0f7a1 | 0bd18030970790f0123158b46fc12bd32ed21f22 | 2023-05-30T19:41:57Z | java | 2023-06-20T15:48:58Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,438 | ["docs/changelog/96777.yaml", "modules/ingest-geoip/src/main/java/org/elasticsearch/ingest/geoip/stats/GeoIpDownloaderStatsAction.java", "modules/ingest-geoip/src/test/java/org/elasticsearch/ingest/geoip/stats/GeoIpDownloaderStatsActionNodeResponseTests.java"] | [CI] GeoIpDownloaderIT testUseGeoIpProcessorWithDownloadedDBs failing with Message not fully read | I could not see any changes in the geoIP serialisaiton. It does not reproduce locally too
```
1> [2023-05-30T11:46:28,117][WARN ][o.e.t.TcpTransport ] [node_s0] exception caught on transport layer [Netty4TcpChannel{localAddress=/127.0.0.1:35964, remoteAddress=127.0.0.1/127.0.0.1:19541, profile=default}], closing connection
1> java.lang.Exception: java.lang.AssertionError: java.lang.IllegalStateException: Message not fully read (response) for requestId [192], handler [org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler/org.elasticsearch.action.ActionListenerResponseHandler@94f41f2/org.elasticsearch.action.ActionListenerImplementations$RunAfterActionListener/notifyOnce[[cluster:monitor/ingest/geoip/stats][{node_s1}{MYbBzhJ9SD6YeT3etp8llQ}{uPItn9j_Qv-nonD-byDXBw}{node_s1}{127.0.0.1}{127.0.0.1:19541}{cdfhilrstw}{8.9.0}]]/release[refCounted[org.elasticsearch.action.support.CancellableFanOut$$Lambda$3163/0x00000008019064e8@b3aa1b5]]], error [false]; resetting
1> at org.elasticsearch.transport.netty4.Netty4MessageInboundHandler.exceptionCaught(Netty4MessageInboundHandler.java:75) ~[transport-netty4-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at io.netty.channel.AbstractChannelHandlerContext.invokeExceptionCaught(AbstractChannelHandlerContext.java:346) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:447) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) ~[netty-codec-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:689) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:652) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[netty-common-4.1.92.Final.jar:4.1.92.Final]
1> at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.92.Final.jar:4.1.92.Final]
1> at java.lang.Thread.run(Thread.java:1623) ~[?:?]
1> Caused by: java.lang.AssertionError: java.lang.IllegalStateException: Message not fully read (response) for requestId [192], handler [org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler/org.elasticsearch.action.ActionListenerResponseHandler@94f41f2/org.elasticsearch.action.ActionListenerImplementations$RunAfterActionListener/notifyOnce[[cluster:monitor/ingest/geoip/stats][{node_s1}{MYbBzhJ9SD6YeT3etp8llQ}{uPItn9j_Qv-nonD-byDXBw}{node_s1}{127.0.0.1}{127.0.0.1:19541}{cdfhilrstw}{8.9.0}]]/release[refCounted[org.elasticsearch.action.support.CancellableFanOut$$Lambda$3163/0x00000008019064e8@b3aa1b5]]], error [false]; resetting
1> at __randomizedtesting.SeedInfo.seed([BC7DEB88A745D747]:0) ~[?:?]
1> at org.elasticsearch.transport.InboundHandler.verifyResponseReadFully(InboundHandler.java:190) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.InboundHandler.doHandleResponse(InboundHandler.java:418) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.InboundHandler.handleResponse(InboundHandler.java:368) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.InboundHandler.messageReceived(InboundHandler.java:142) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.InboundHandler.inboundMessage(InboundHandler.java:95) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.TcpTransport.inboundMessage(TcpTransport.java:821) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.InboundPipeline.forwardFragments(InboundPipeline.java:150) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.InboundPipeline.doHandleBytes(InboundPipeline.java:121) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.InboundPipeline.handleBytes(InboundPipeline.java:86) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.netty4.Netty4MessageInboundHandler.channelRead(Netty4MessageInboundHandler.java:63) ~[transport-netty4-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> ... 18 more
1> Caused by: java.lang.IllegalStateException: Message not fully read (response) for requestId [192], handler [org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler/org.elasticsearch.action.ActionListenerResponseHandler@94f41f2/org.elasticsearch.action.ActionListenerImplementations$RunAfterActionListener/notifyOnce[[cluster:monitor/ingest/geoip/stats][{node_s1}{MYbBzhJ9SD6YeT3etp8llQ}{uPItn9j_Qv-nonD-byDXBw}{node_s1}{127.0.0.1}{127.0.0.1:19541}{cdfhilrstw}{8.9.0}]]/release[refCounted[org.elasticsearch.action.support.CancellableFanOut$$Lambda$3163/0x00000008019064e8@b3aa1b5]]], error [false]; resetting
1> at org.elasticsearch.transport.InboundHandler.verifyResponseReadFully(InboundHandler.java:187) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.InboundHandler.doHandleResponse(InboundHandler.java:418) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.InboundHandler.handleResponse(InboundHandler.java:368) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.InboundHandler.messageReceived(InboundHandler.java:142) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.InboundHandler.inboundMessage(InboundHandler.java:95) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.TcpTransport.inboundMessage(TcpTransport.java:821) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.InboundPipeline.forwardFragments(InboundPipeline.java:150) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.InboundPipeline.doHandleBytes(InboundPipeline.java:121) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.InboundPipeline.handleBytes(InboundPipeline.java:86) ~[elasticsearch-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at org.elasticsearch.transport.netty4.Netty4MessageInboundHandler.channelRead(Netty4MessageInboun 1> dHandler.java:63) ~[transport-netty4-8.9.0-SNAPSHOT.jar:8.9.0-SNAPSHOT]
1> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[netty-transport-4.1.92.Final.jar:4.1.92.Final]
1> ... 18 more
```
**Build scan:**
https://gradle-enterprise.elastic.co/s/2vgcyit5yqwwa/tests/:modules:ingest-geoip:internalClusterTest/org.elasticsearch.ingest.geoip.GeoIpDownloaderIT/testUseGeoIpProcessorWithDownloadedDBs
**Reproduction line:**
```
./gradlew ':modules:ingest-geoip:internalClusterTest' --tests "org.elasticsearch.ingest.geoip.GeoIpDownloaderIT.testUseGeoIpProcessorWithDownloadedDBs" -Dtests.seed=BC7DEB88A745D747 -Dtests.locale=da -Dtests.timezone=America/Araguaina -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.ingest.geoip.GeoIpDownloaderIT&tests.test=testUseGeoIpProcessorWithDownloadedDBs
**Failure excerpt:**
```
java.lang.Exception: Test abandoned because suite timeout was reached.
at __randomizedtesting.SeedInfo.seed([BC7DEB88A745D747]:0)
``` | https://github.com/elastic/elasticsearch/issues/96438 | https://github.com/elastic/elasticsearch/pull/96777 | 2be97132fc9c3fd0fb5de45b5533b11fbcdc79d5 | 65fc5e5696e5b0c6f15f9ae364f78762a87c448f | 2023-05-30T15:46:53Z | java | 2023-06-12T19:58:48Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,427 | ["x-pack/plugin/snapshot-based-recoveries/src/internalClusterTest/java/org/elasticsearch/xpack/snapshotbasedrecoveries/recovery/SnapshotBasedIndexRecoveryIT.java"] | [CI] SnapshotBasedIndexRecoveryIT testCancelledRecoveryAbortsDownloadPromptly failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/vvbkwrzc672ea/tests/:x-pack:plugin:snapshot-based-recoveries:internalClusterTest/org.elasticsearch.xpack.snapshotbasedrecoveries.recovery.SnapshotBasedIndexRecoveryIT/testCancelledRecoveryAbortsDownloadPromptly
**Reproduction line:**
```
./gradlew ':x-pack:plugin:snapshot-based-recoveries:internalClusterTest' --tests "org.elasticsearch.xpack.snapshotbasedrecoveries.recovery.SnapshotBasedIndexRecoveryIT.testCancelledRecoveryAbortsDownloadPromptly" -Dtests.seed=DB2B89F27A651CDB -Dtests.locale=is -Dtests.timezone=Asia/Barnaul -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.snapshotbasedrecoveries.recovery.SnapshotBasedIndexRecoveryIT&tests.test=testCancelledRecoveryAbortsDownloadPromptly
**Failure excerpt:**
```
com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=416, name=elasticsearch[node_t0][generic][T#4], state=RUNNABLE, group=TGRP-SnapshotBasedIndexRecoveryIT]
at __randomizedtesting.SeedInfo.seed([DB2B89F27A651CDB:44A6B186778E6B1E]:0)
Caused by: java.lang.AssertionError: (No message provided)
at __randomizedtesting.SeedInfo.seed([DB2B89F27A651CDB]:0)
at org.junit.Assert.fail(Assert.java:86)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.junit.Assert.assertFalse(Assert.java:64)
at org.junit.Assert.assertFalse(Assert.java:74)
at org.elasticsearch.xpack.snapshotbasedrecoveries.recovery.SnapshotBasedIndexRecoveryIT$1.beforeRead(SnapshotBasedIndexRecoveryIT.java:705)
at org.elasticsearch.xpack.snapshotbasedrecoveries.recovery.SnapshotBasedIndexRecoveryIT$1.read(SnapshotBasedIndexRecoveryIT.java:700)
at org.elasticsearch.index.snapshots.blobstore.SlicedInputStream.read(SlicedInputStream.java:81)
at java.io.FilterInputStream.read(FilterInputStream.java:119)
at org.elasticsearch.index.snapshots.blobstore.RateLimitingInputStream.read(RateLimitingInputStream.java:62)
at java.io.FilterInputStream.read(FilterInputStream.java:119)
at org.elasticsearch.index.snapshots.blobstore.RateLimitingInputStream.read(RateLimitingInputStream.java:62)
at java.io.FilterInputStream.read(FilterInputStream.java:119)
at org.elasticsearch.indices.recovery.RecoveryTarget$1.read(RecoveryTarget.java:600)
at java.io.FilterInputStream.read(FilterInputStream.java:95)
at org.elasticsearch.indices.recovery.MultiFileWriter.writeFile(MultiFileWriter.java:103)
at org.elasticsearch.indices.recovery.RecoveryTarget.restoreFileFromSnapshot(RecoveryTarget.java:590)
at org.elasticsearch.indices.recovery.PeerRecoveryTargetService$2.handleRequest(PeerRecoveryTargetService.java:141)
at org.elasticsearch.indices.recovery.PeerRecoveryTargetService$2.handleRequest(PeerRecoveryTargetService.java:138)
at org.elasticsearch.indices.recovery.PeerRecoveryTargetService$RecoveryRequestHandler.messageReceived(PeerRecoveryTargetService.java:571)
at org.elasticsearch.indices.recovery.PeerRecoveryTargetService$RecoveryRequestHandler.messageReceived(PeerRecoveryTargetService.java:558)
at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:74)
at org.elasticsearch.transport.InboundHandler$1.doRun(InboundHandler.java:315)
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/96427 | https://github.com/elastic/elasticsearch/pull/96431 | 6cb97a5bb03711bbce54d8403350780ec3d5691f | ad463c90a4132325698b381d2d87c4c963c55a7b | 2023-05-30T11:15:05Z | java | 2023-05-30T16:46:53Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,425 | ["docs/changelog/96662.yaml", "server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/restore/RestoreClusterStateListener.java"] | [CI] SharedClusterSnapshotRestoreIT classMethod failing | This failure seems related: https://gradle-enterprise.elastic.co/s/hbx32w3mmvsiu/tests/:server:internalClusterTest/org.elasticsearch.snapshots.SharedClusterSnapshotRestoreIT/testUnrestorableIndexDuringRestore?top-execution=1
**Build scan:**
https://gradle-enterprise.elastic.co/s/hbx32w3mmvsiu/tests/:server:internalClusterTest/org.elasticsearch.snapshots.SharedClusterSnapshotRestoreIT
**Reproduction line:**
```
./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.snapshots.SharedClusterSnapshotRestoreIT" -Dtests.seed=52861D7778F38700 -Dtests.locale=en-US -Dtests.timezone=UTC -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.snapshots.SharedClusterSnapshotRestoreIT&tests.test=classMethod
**Failure excerpt:**
```
java.lang.Exception: Suite timeout exceeded (>= 1200000 msec).
at __randomizedtesting.SeedInfo.seed([52861D7778F38700]:0)
``` | https://github.com/elastic/elasticsearch/issues/96425 | https://github.com/elastic/elasticsearch/pull/96662 | eaadf351c2d65a01472265f0c0275323819a366a | 6d5b6a0d0469e692370d746485ec680e0d30c345 | 2023-05-30T08:57:36Z | java | 2023-06-12T15:13:04Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,419 | ["x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authz/store/CompositeRolesStoreTests.java", "x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/transport/SecurityServerTransportInterceptorTests.java"] | [CI] SecurityServerTransportInterceptorTests testSendWithCrossClusterAccessHeadersForRegularUserRegularAction failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/kb4uc3sq4uxuk/tests/:x-pack:plugin:security:test/org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptorTests/testSendWithCrossClusterAccessHeadersForRegularUserRegularAction
**Reproduction line:**
```
./gradlew ':x-pack:plugin:security:test' --tests "org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptorTests.testSendWithCrossClusterAccessHeadersForRegularUserRegularAction" -Dtests.seed=B3C24D0887AADE6A -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=es-HN -Dtests.timezone=Etc/GMT0 -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptorTests&tests.test=testSendWithCrossClusterAccessHeadersForRegularUserRegularAction
**Failure excerpt:**
```
java.lang.AssertionError:
Expected: null
but: was <Authentication[effectiveSubject=Subject{version=8500005, user=User[username=nRxTBM/DwMhsO,roles=[],fullName=null,email=null,metadata={}], realm={Realm[_service_account._service_account] on Node[yByZ]}, type=SERVICE_ACCOUNT, metadata={_token_name=HUMCpXjL, _token_source=index}},type=TOKEN]>
at __randomizedtesting.SeedInfo.seed([B3C24D0887AADE6A:9E120112225B3185]:0)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptorTests$12.sendRequest(SecurityServerTransportInterceptorTests.java:773)
at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor.sendWithUser(SecurityServerTransportInterceptor.java:454)
at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor.sendRequestInner(SecurityServerTransportInterceptor.java:249)
at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor$1.sendRequest(SecurityServerTransportInterceptor.java:179)
at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptorTests.doTestSendWithCrossClusterAccessHeaders(SecurityServerTransportInterceptorTests.java:790)
at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptorTests.testSendWithCrossClusterAccessHeadersForRegularUserRegularAction(SecurityServerTransportInterceptorTests.java:707)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/96419 | https://github.com/elastic/elasticsearch/pull/96424 | 16aba067a0b4de266136741fbf0215792a2e2d93 | 94ed4ca3cae2b398e99a7347d8a97ae3f0508793 | 2023-05-30T07:42:05Z | java | 2023-05-30T09:05:29Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,418 | ["x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authz/store/CompositeRolesStoreTests.java", "x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/transport/SecurityServerTransportInterceptorTests.java"] | [CI] CompositeRolesStoreTests testGetRoleForCrossClusterAccessAuthentication failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/kb4uc3sq4uxuk/tests/:x-pack:plugin:security:test/org.elasticsearch.xpack.security.authz.store.CompositeRolesStoreTests/testGetRoleForCrossClusterAccessAuthentication
**Reproduction line:**
```
./gradlew ':x-pack:plugin:security:test' --tests "org.elasticsearch.xpack.security.authz.store.CompositeRolesStoreTests.testGetRoleForCrossClusterAccessAuthentication" -Dtests.seed=B3C24D0887AADE6A -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=th-TH-u-nu-thai-x-lvariant-TH -Dtests.timezone=Pacific/Kosrae -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.security.authz.store.CompositeRolesStoreTests&tests.test=testGetRoleForCrossClusterAccessAuthentication
**Failure excerpt:**
```
java.lang.IllegalArgumentException: unknown cluster privilege [cross_cluster_search]. a privilege must be either one of the predefined cluster privilege names [manage_own_api_key,none,cancel_task,delegate_pki,grant_api_key,manage_autoscaling,manage_enrich,manage_index_templates,manage_logstash_pipelines,manage_oidc,manage_saml,manage_search_application,manage_service_account,manage_token,manage_user_profile,monitor_ml,monitor_rollup,monitor_snapshot,monitor_text_structure,monitor_watcher,post_behavioral_analytics_event,read_ccr,read_ilm,read_pipeline,read_security,read_slm,transport_client,create_snapshot,manage_behavioral_analytics,manage_ccr,manage_ilm,manage_ml,manage_rollup,manage_slm,manage_watcher,monitor_data_frame_transforms,monitor_transform,manage_api_key,manage_ingest_pipelines,manage_pipeline,manage_data_frame_transforms,manage_transform,monitor,manage_security,manage,all] or a pattern over one of the available cluster actions
at __randomizedtesting.SeedInfo.seed([B3C24D0887AADE6A:A9DDD6D6E2CE91F1]:0)
at org.elasticsearch.xpack.core.security.authz.privilege.ClusterPrivilegeResolver.resolve(ClusterPrivilegeResolver.java:377)
at org.elasticsearch.xpack.core.security.authz.permission.Role$Builder.cluster(Role.java:213)
at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.buildRoleFromDescriptors(CompositeRolesStore.java:436)
at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.buildThenMaybeCacheRole(CompositeRolesStore.java:316)
at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.lambda$buildRoleFromRoleReference$7(CompositeRolesStore.java:274)
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:158)
at org.elasticsearch.xpack.security.authz.store.RoleDescriptorStore.resolveApiKeyRoleReference(RoleDescriptorStore.java:105)
at org.elasticsearch.xpack.core.security.authz.store.RoleReference$ApiKeyRoleReference.resolve(RoleReference.java:105)
at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.buildRoleFromRoleReference(CompositeRolesStore.java:268)
at org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.lambda$buildRole$1(RoleReferenceIntersection.java:53)
at java.lang.Iterable.forEach(Iterable.java:75)
at org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.buildRole(RoleReferenceIntersection.java:53)
at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.getRole(CompositeRolesStore.java:206)
at org.elasticsearch.xpack.security.authz.store.CompositeRolesStoreTests.testGetRoleForCrossClusterAccessAuthentication(CompositeRolesStoreTests.java:2118)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/96418 | https://github.com/elastic/elasticsearch/pull/96424 | 16aba067a0b4de266136741fbf0215792a2e2d93 | 94ed4ca3cae2b398e99a7347d8a97ae3f0508793 | 2023-05-30T07:38:25Z | java | 2023-05-30T09:05:29Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,383 | ["qa/mixed-cluster/build.gradle", "x-pack/qa/mixed-tier-cluster/build.gradle"] | [CI] Execution failed for task ':qa:mixed-cluster:v8.8.0#mixedClusterTest' | ### CI Link
https://gradle-enterprise.elastic.co/s/x6ic2txirq4m4
### Repro line
n/a
### Does it reproduce?
Didn't try
### Applicable branches
8.8
### Failure history
_No response_
### Failure excerpt
Many networking error, but the first failure seemed to be related to remote transport validation, and an array length being unexpectedly long, perhaps a format change?
```
Caused by: java.lang.IllegalStateException: failure when sending a join validation request from [{v8.8.0-3}{TtjGlnzSTFeqNN2Z50UIQg}{u0sbUikVSpGkNs8vKOhqfg}{v8.8.0-3}{127.0.0.1}{127.0.0.1:43665}{cdfhilmrstw}{8.8.0}] to [{v8.8.0-0}{LlAaCjHISU-9qkHXvuJmbQ}{INlUgbJWS7q13B9UI7hK7A}{v8.8.0-0}{127.0.0.1}{127.0.0.1:46169}{cdfhilmrstw}{8.8.1}] |
-- | --
| » at org.elasticsearch.cluster.coordination.Coordinator.lambda$sendJoinValidate$13(Coordinator.java:730) |
...
| » Caused by: org.elasticsearch.transport.RemoteTransportException: [v8.8.0-0][127.0.0.1:46169][internal:cluster/coordination/join/validate] |
| » Caused by: java.lang.IllegalStateException: array length must be <= to 2147483631 but was: 2147483647
``` | https://github.com/elastic/elasticsearch/issues/96383 | https://github.com/elastic/elasticsearch/pull/96391 | 815190aa6bd4fd486f56416fcc0c33dd96952191 | 4ca12c18494e2a39f8b4247bcc91823572c91e5e | 2023-05-26T13:54:44Z | java | 2023-05-30T07:53:04Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,382 | ["qa/mixed-cluster/build.gradle", "x-pack/qa/mixed-tier-cluster/build.gradle"] | [CI] Execution failed for task ':x-pack:qa:mixed-tier-cluster:v8.8.0#mixedClusterTest' | ### CI Link
https://gradle-enterprise.elastic.co/s/4gqhiblled2fu
### Repro line
n/a
### Does it reproduce?
Didn't try
### Applicable branches
main
### Failure history
_No response_
### Failure excerpt
There were many connection refused and none shutdown errors, but the first error seemed to be related to versioning in the PublicationTransportHandler:
```
[2023-05-26T13:14:51,373][WARN ][o.e.d.FileBasedSeedHostsProvider] [v8.8.0-0] expected, but did not find, a dynamic hosts list at [/dev/shm/elastic+elasticsearch+main+periodic+bwc/x-pack/qa/mixed-tier-cluster/build/testclusters/v8.8.0-0/config/unicast_hosts.txt] |
-- | --
| » ↑ repeated 7 times ↑ |
| » [2023-05-26T13:14:46,659][WARN ][stderr ] [v8.8.0-0] May 26, 2023 1:14:46 PM org.apache.lucene.store.MemorySegmentIndexInputProvider <init> |
| » [2023-05-26T13:14:51,368][WARN ][o.e.c.c.ClusterBootstrapService] [v8.8.0-0] this node is locked into cluster UUID [gyX4fCUfQZmqBiQWJ2HozQ] but [cluster.initial_master_nodes] is set to [v8.8.0-0, v8.8.0-1, v8.8.0-2]; remove this setting to avoid possible data loss caused by subsequent cluster bootstrap attempts; for further information see https://www.elastic.co/guide/en/elasticsearch/reference/master/important-settings.html#initial_master_nodes |
| » [2023-05-26T13:14:52,380][WARN ][o.e.c.c.PublicationTransportHandler] [v8.8.0-0] unexpected error while deserializing an incoming cluster state java.lang.IllegalStateException: unexpected byte [0x02]
```
| https://github.com/elastic/elasticsearch/issues/96382 | https://github.com/elastic/elasticsearch/pull/96391 | 815190aa6bd4fd486f56416fcc0c33dd96952191 | 4ca12c18494e2a39f8b4247bcc91823572c91e5e | 2023-05-26T13:51:19Z | java | 2023-05-30T07:53:04Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,344 | ["docs/reference/rest-api/usage.asciidoc"] | [CI] DocsClientYamlTestSuiteIT test {yaml=reference/rest-api/usage/line_38} failing | ### CI Link
https://gradle-enterprise.elastic.co/s/k5ttr7y6ybz6w
### Repro line
`gradlew ':docs:yamlRestTest' --tests "org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT.test {yaml=reference/rest-api/usage/line_38}" -Dtests.seed=B33396E7A6E1CE74 -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=da-DK -Dtests.timezone=Asia/Omsk`
### Does it reproduce?
Yes
### Applicable branches
main
### Failure history
https://gradle-enterprise.elastic.co/scans/tests?search.timeZoneId=Europe/Bucharest&tests.container=org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dreference/rest-api/usage/line_38%7D
### Failure excerpt
Similar to https://github.com/elastic/elasticsearch/issues/95603, but not the same output in the `usage`. Now complaining about `analytics_collections: <unexpected> but was <{count=0}>`.
```
REPRODUCE WITH: ./gradlew ':docs:yamlRestTest' --tests "org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT.test {yaml=reference/rest-api/usage/line_38}" -Dtests.seed=CB9D9AB30CC180F4 -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=lv-LV -Dtests.timezone=America/Argentina/Salta -Druntime.java=20
org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT > test {yaml=reference/rest-api/usage/line_38} FAILED
java.lang.AssertionError: Failure at [reference/rest-api/usage:16]: Expected a map containing
watcher: a map containing
execution: a map containing
actions: a map containing
_all: a map containing
total: <6>
total_time_in_ms: <164>
watch: a map containing
input: a map containing
_all: a map containing
total: <0>
active: <0>
trigger: a map containing
_all: a map containing
total: <0>
active: <0>
available: <true>
count: a map containing
total: <0>
active: <0>
enabled: <true>
eql: a map containing
available: <true>
enabled: <true>
features: a map containing
joins: a map containing
join_queries_three: <0>
join_queries_two: <0>
join_until: <0>
join_queries_five_or_more: <0>
join_queries_four: <0>
sequence: <6>
keys: a map containing
join_keys_two: <0>
join_keys_one: <4>
join_keys_three: <0>
join_keys_five_or_more: <0>
join_keys_four: <0>
join: <0>
sequences: a map containing
sequence_queries_three: <1>
sequence_queries_four: <0>
sequence_queries_two: <5>
sequence_until: <1>
sequence_maxspan: <3>
sequence_queries_five_or_more: <0>
event: <18>
pipes: a map containing
pipe_tail: <21>
pipe_head: <0>
queries: a map containing
all: a map containing
total: <24>
failed: <0>
_all: a map containing
total: <24>
failed: <0>
enterprise_search: a map containing
search_applications: a map containing
count: <0>
available: <true>
enabled: <true>
analytics_collections: <unexpected> but was <{count=0}>
frozen_indices: a map containing
indices_count: <0>
available: <true>
enabled: <true>
archive: a map containing
indices_count: <0>
available: <true>
enabled: <true>
ilm: a map containing
....
``` | https://github.com/elastic/elasticsearch/issues/96344 | https://github.com/elastic/elasticsearch/pull/96385 | 322805858f9fa1642d32b7f8ef7843d7a8c1b3c6 | 9649ee0536045e4ce68495eb295fe942582a712d | 2023-05-25T09:59:05Z | java | 2023-05-26T16:10:54Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,330 | ["docs/reference/data-streams/tsds-index-settings.asciidoc"] | Unable to create time series index without setting routing_path | ### Elasticsearch Version
main
### Installed Plugins
none
### Java Version
_bundled_
### OS Version
macos
### Problem Description
Running the PUT command below results in a 400 with the error "[index.mode=time_series] requires a non-empty [index.routing_path]". This error conflicts with the documenation that states [Defaults to the list of dimension fields with a time_series_dimension value of true defined in your component template](https://www.elastic.co/guide/en/elasticsearch/reference/master/tsds-index-settings.html#tsds-index-settings).
<img width="500" alt="Screen Shot 2023-05-24 at 8 58 16 AM" src="https://github.com/elastic/elasticsearch/assets/373691/8a81693f-76b2-464c-8f0d-49694ddaf7db">
```
PUT /tracks
{
"settings": {
"mode": "time_series"
},
"mappings": {
"properties": {
"location": {
"type": "geo_point",
"time_series_metric": "position"
},
"entity_id": {
"type": "keyword",
"time_series_dimension": true
},
"azimuth": {
"type": "double"
},
"speed": {
"type": "double"
},
"@timestamp": {
"type": "date"
}
}
}
}
```
### Steps to Reproduce
Run the PUT command below. Notice the 400 response. This conflicts with documentation from https://www.elastic.co/guide/en/elasticsearch/reference/master/tsds-index-settings.html#tsds-index-settings. This command should return a 200 with routing_path defaulting to the list of dimension fields with a time_series_dimension value of true defined in the mappings.
```
PUT /tracks
{
"settings": {
"mode": "time_series"
},
"mappings": {
"properties": {
"location": {
"type": "geo_point",
"time_series_metric": "position"
},
"entity_id": {
"type": "keyword",
"time_series_dimension": true
},
"azimuth": {
"type": "double"
},
"speed": {
"type": "double"
},
"@timestamp": {
"type": "date"
}
}
}
}
```
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/96330 | https://github.com/elastic/elasticsearch/pull/96366 | 2b0d6e6df45f80c1b459d6f7cd8f0d69b33a11b5 | d5f9e113a527a9cdb9d11e4739fb3ca7a0005b63 | 2023-05-24T15:00:13Z | java | 2023-05-26T17:23:53Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,311 | ["docs/changelog/96293.yaml", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/transform/TransformMessages.java", "x-pack/plugin/transform/qa/single-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/transform/integration/TransformUpdateIT.java", "x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/persistence/IndexBasedTransformConfigManager.java"] | [Transform] Transform config update conflict gets reported as `ResourceAlreadyExistsException` | ### Elasticsearch Version
main
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
MacOS
### Problem Description
When there are 2 or more concurrent `_update` requests issued, one of them may fail with `ResourceAlreadyExistsException` exception which is misleading.
### Steps to Reproduce
1. Spawn a number of `_update` requests at the same time
2. Look at the results of these requests
3. Observe `ResourceAlreadyExistsException` being thrown in the case of conflict
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/96311 | https://github.com/elastic/elasticsearch/pull/96293 | 2ab147b3edd83523e206bf1543299adf6cec0cba | 7e34514465eef67bbae017b8c5f6e277a6114501 | 2023-05-24T07:15:18Z | java | 2023-05-24T13:24:55Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,295 | ["server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregationBuilder.java"] | [CI] VariableWidthHistogramAggregatorTests testMultipleSegments failing | This happened in a PR but I don't think its related to the change there. Also I couldn't reproduce locally with the given seed, but I found a few similar looking errors in recent CI history that I will add here, hoping the build scans of those are still there.
**Build scan:**
https://gradle-enterprise.elastic.co/s/3fehoe67iezom/tests/:server:test/org.elasticsearch.search.aggregations.bucket.histogram.VariableWidthHistogramAggregatorTests/testMultipleSegments
**Reproduction line:**
```
./gradlew ':server:test' --tests "org.elasticsearch.search.aggregations.bucket.histogram.VariableWidthHistogramAggregatorTests.testMultipleSegments" -Dtests.seed=38D40B77C192C67A -Dtests.locale=ms-MY -Dtests.timezone=Pacific/Bougainville -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.search.aggregations.bucket.histogram.VariableWidthHistogramAggregatorTests&tests.test=testMultipleSegments
**Failure excerpt:**
```
java.lang.AssertionError:
Expected: (a value equal to or greater than <4L> and a value less than or equal to <7L>)
but: a value equal to or greater than <4L> <3L> was less than <4L>
at __randomizedtesting.SeedInfo.seed([38D40B77C192C67A:84A3BE2E06356A3F]:0)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.search.aggregations.bucket.histogram.VariableWidthHistogramAggregatorTests.lambda$testMultipleSegments$31(VariableWidthHistogramAggregatorTests.java:454)
at org.elasticsearch.search.aggregations.bucket.histogram.VariableWidthHistogramAggregatorTests.testSearchCase(VariableWidthHistogramAggregatorTests.java:634)
at org.elasticsearch.search.aggregations.bucket.histogram.VariableWidthHistogramAggregatorTests.testMultipleSegments(VariableWidthHistogramAggregatorTests.java:438)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/96295 | https://github.com/elastic/elasticsearch/pull/96525 | 846d640ddf2747ee1750ba99595c6ec09eba8977 | 5383682d82d285dc55da2d7035fbdbca47794439 | 2023-05-23T14:26:35Z | java | 2023-06-02T14:12:09Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,284 | ["docs/changelog/97460.yaml", "modules/aggregations/src/yamlRestTest/resources/rest-api-spec/test/aggregations/top_hits.yml", "server/src/main/java/org/elasticsearch/search/fetch/FetchPhase.java"] | params['_source'] is wrong when using it in runtime_mappings with aggregation | ### Elasticsearch Version
8.7.1
### Installed Plugins
_No response_
### Java Version
openjdk 20.0.1 2023-04-18
### OS Version
Linux 80ea76b172b2 5.15.49-linuxkit #1 SMP PREEMPT Tue Sep 13 07:51:32 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
### Problem Description
After upgrading from ES `8.6.2` to `8.7.1` I noticed that `params['_source']` value is wrong sometimes when it's accessed in `runtime_mappings` field's script as in:
```
"runtime_mappings": {
"runtime_field": {
"type": "keyword",
"script": {
"lang": "painless",
"source": "emit(params['_source'].toString())"
}
}
}
```
### Steps to Reproduce
```
PUT foo_bar
{
"mappings": {
"properties": {
"id": {
"type": "text"
},
"name": {
"type": "text",
"fields": {
"raw": {
"type": "keyword"
}
}
}
}
},
"settings": {
"index": {
"number_of_shards": 3,
"number_of_replicas": 2
}
}
}
POST foo_bar/_bulk?refresh=true
{"index":{}}
{"id":"1","name":"name 1"}
{"index":{}}
{"id":"2","name":"name 2"}
{"index":{}}
{"id":"3","name":"name 3"}
{"index":{}}
GET foo_bar/_search
{
"size": 0,
"runtime_mappings": {
"runtime_field": {
"type": "keyword",
"script": {
"lang": "painless",
"source": "emit(params['_source'].toString())"
}
}
},
"fields": [
"runtime_field"
],
"aggs": {
"aggregation": {
"terms": {
"field": "name.raw"
},
"aggs": {
"hits": {
"top_hits": {
"_source": true
}
}
}
}
},
"from": 0
}
```
and result of this is:
```
{
"took": 1,
"timed_out": false,
"_shards": {
"total": 3,
"successful": 3,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 3,
"relation": "eq"
},
"max_score": null,
"hits": []
},
"aggregations": {
"aggregation": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "name 1",
"doc_count": 1,
"hits": {
"hits": {
"total": {
"value": 1,
"relation": "eq"
},
"max_score": 1,
"hits": [
{
"_index": "foo_bar",
"_id": "TydRSIgB3P4C-UmlKFF0",
"_score": 1,
"_source": {
"id": "1",
"name": "name 1"
},
"fields": {
"runtime_field": [
"{id=1, name=name 1}"
]
}
}
]
}
}
},
{
"key": "name 2",
"doc_count": 1,
"hits": {
"hits": {
"total": {
"value": 1,
"relation": "eq"
},
"max_score": 1,
"hits": [
{
"_index": "foo_bar",
"_id": "UCdRSIgB3P4C-UmlKFF0",
"_score": 1,
"_source": {
"id": "2",
"name": "name 2"
},
"fields": {
"runtime_field": [
"{id=2, name=name 2}"
]
}
}
]
}
}
},
{
"key": "name 3",
"doc_count": 1,
"hits": {
"hits": {
"total": {
"value": 1,
"relation": "eq"
},
"max_score": 1,
"hits": [
{
"_index": "foo_bar",
"_id": "USdRSIgB3P4C-UmlKFF0",
"_score": 1,
"_source": {
"id": "3",
"name": "name 3"
},
"fields": {
"runtime_field": [
"{id=1, name=name 1}" # <----- It should be "{id=3, name=name 3}"
]
}
}
]
}
}
}
]
}
}
}
```
Please let me know if you need more info to investigate this
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/96284 | https://github.com/elastic/elasticsearch/pull/97460 | ac0c3167646a5b242e32e335b29f4145b1af4167 | a426d36a6fe25826e2d41f07fee60d3d111a6f16 | 2023-05-23T11:16:43Z | java | 2023-07-10T10:53:48Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,282 | ["server/src/test/java/org/elasticsearch/transport/RemoteClusterConnectionTests.java"] | [CI] RemoteClusterConnectionTests testCloseWhileConcurrentlyConnecting failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/w5uoitwbjlubk/tests/:server:test/org.elasticsearch.transport.RemoteClusterConnectionTests/testCloseWhileConcurrentlyConnecting
**Reproduction line:**
```
./gradlew ':server:test' --tests "org.elasticsearch.transport.RemoteClusterConnectionTests.testCloseWhileConcurrentlyConnecting" -Dtests.seed=1D1BC140B0F8A67C -Dtests.locale=sk -Dtests.timezone=Africa/Blantyre -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.transport.RemoteClusterConnectionTests&tests.test=testCloseWhileConcurrentlyConnecting
**Failure excerpt:**
```
com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=1746, name=Thread-113, state=RUNNABLE, group=TGRP-RemoteClusterConnectionTests]
Caused by: java.lang.AssertionError: cluster:internal/remote_cluster/handshake
at __randomizedtesting.SeedInfo.seed([1D1BC140B0F8A67C]:0)
at org.elasticsearch.transport.InboundAggregator.lambda$new$0(InboundAggregator.java:46)
at org.elasticsearch.transport.InboundAggregator.initializeRequestState(InboundAggregator.java:197)
at org.elasticsearch.transport.InboundAggregator.headerReceived(InboundAggregator.java:66)
at org.elasticsearch.transport.InboundPipeline.forwardFragments(InboundPipeline.java:138)
at org.elasticsearch.transport.InboundPipeline.doHandleBytes(InboundPipeline.java:121)
at org.elasticsearch.transport.InboundPipeline.handleBytes(InboundPipeline.java:86)
at org.elasticsearch.transport.netty4.Netty4MessageInboundHandler.channelRead(Netty4MessageInboundHandler.java:63)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.handler.logging.LoggingHandler.channelRead(LoggingHandler.java:280)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:689)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:652)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/96282 | https://github.com/elastic/elasticsearch/pull/96309 | f581e0ef15bebd193e664d5686e978188e4181c4 | 5737601f981de6e2b0625881e9fc35245db2bd86 | 2023-05-23T11:00:40Z | java | 2023-05-24T10:07:31Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,273 | ["docs/changelog/96490.yaml", "server/src/main/java/org/elasticsearch/cluster/coordination/Coordinator.java"] | [CI] AtomicRegisterCoordinatorTests testFollowerDisconnectionWithoutDisconnectEventDetectedQuickly failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/xksdnrqjf2zyu/tests/:server:test/org.elasticsearch.cluster.coordination.AtomicRegisterCoordinatorTests/testFollowerDisconnectionWithoutDisconnectEventDetectedQuickly
**Reproduction line:**
```
./gradlew ':server:test' --tests "org.elasticsearch.cluster.coordination.AtomicRegisterCoordinatorTests.testFollowerDisconnectionWithoutDisconnectEventDetectedQuickly" -Dtests.seed=D98DE3FF01622475 -Dtests.locale=fr-CH -Dtests.timezone=Europe/Skopje -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.cluster.coordination.AtomicRegisterCoordinatorTests&tests.test=testFollowerDisconnectionWithoutDisconnectEventDetectedQuickly
**Failure excerpt:**
```
java.lang.AssertionError: node4 has no NO_MASTER_BLOCK
Expected: <false>
but: was <true>
at __randomizedtesting.SeedInfo.seed([D98DE3FF01622475:636E5D3BCD9A5B7]:0)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.elasticsearch.cluster.coordination.AbstractCoordinatorTestCase$Cluster.stabilise(AbstractCoordinatorTestCase.java:593)
at org.elasticsearch.cluster.coordination.AbstractCoordinatorTestCase$Cluster.stabilise(AbstractCoordinatorTestCase.java:554)
at org.elasticsearch.cluster.coordination.CoordinatorTests.testFollowerDisconnectionWithoutDisconnectEventDetectedQuickly(CoordinatorTests.java:437)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/96273 | https://github.com/elastic/elasticsearch/pull/96490 | 8b1cd47455314ade5c09751620868860f42c423e | c777925450354d0b3f8972ac5320ba91892236c5 | 2023-05-23T09:29:15Z | java | 2023-06-01T14:42:32Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,236 | ["docs/changelog/96265.yaml", "x-pack/plugin/eql/src/test/resources/querytranslator_tests.txt", "x-pack/plugin/ql/src/main/java/org/elasticsearch/xpack/ql/planner/ExpressionTranslators.java", "x-pack/plugin/ql/src/main/java/org/elasticsearch/xpack/ql/querydsl/query/BoolQuery.java", "x-pack/plugin/ql/src/test/java/org/elasticsearch/xpack/ql/querydsl/query/BoolQueryTests.java", "x-pack/plugin/sql/src/test/java/org/elasticsearch/xpack/sql/planner/QueryTranslatorTests.java", "x-pack/plugin/sql/src/test/resources/org/elasticsearch/xpack/sql/planner/querytranslator_tests.txt"] | QL: Reduce number of nested bool queries | ### Description
Certain OR expressions are translated into a number of nested bool queries which, unless balanced, end up being too deep and rejected by ES/Lucene.
Reproduced on 8.7.1 thanks to @e-parth-pathak:
1. Create an Index and ingest data:
```
PUT /library/_bulk?refresh
{"index":{"_id":"Leviathan Wakes"}}
{"name":"Leviathan Wakes","author":"James S.A. Corey","release_date":"2011-06-02","page_count":561}
{"index":{"_id":"Hyperion"}}
{"name":"Hyperion","author":"Dan Simmons","release_date":"1989-05-26","page_count":482}
{"index":{"_id":"Dune"}}
{"name":"Dune","author":"Frank Herbert","release_date":"1965-06-01","page_count":604}
{"index":{"_id":"Persuation"}}
{"name":"Persuation","author":"Robert Cialdini","release_date":"2023-06-01","page_count":304}
{"index":{"_id":"Sapiens"}}
{"name":"Sapiens","author":"Yuval Noah Harari","release_date":"1969-06-01","page_count":204}
{"index":{"_id":"Hooked"}}
{"name":"Hooked","author":"Nir Eyal","release_date":"2022-06-01","page_count":408}
```
2. Run a query:
```
POST /_sql/translate
{
"query": "SELECT * FROM library WHERE name like '%nir%' OR name like '%yuval%' OR name like '%dan%' OR name like '%frank%' OR name like '%robert%' OR name like '%leviathan%'"
}
```
3. The response that I got:
```json
{
"size": 1000,
"query": {
"bool": {
"should": [
{
"bool": {
"should": [
{
"bool": {
"should": [
{
"bool": {
"should": [
{
"bool": {
"should": [
{
"wildcard": {
"name.keyword": {
"wildcard": "*nir*",
"boost": 1
}
}
},
{
"wildcard": {
"name.keyword": {
"wildcard": "*yuval*",
"boost": 1
}
}
}
],
"boost": 1
}
},
{
"wildcard": {
"name.keyword": {
"wildcard": "*dan*",
"boost": 1
}
}
}
],
"boost": 1
}
},
{
"wildcard": {
"name.keyword": {
"wildcard": "*frank*",
"boost": 1
}
}
}
],
"boost": 1
}
},
{
"wildcard": {
"name.keyword": {
"wildcard": "*robert*",
"boost": 1
}
}
}
],
"boost": 1
}
},
{
"wildcard": {
"name.keyword": {
"wildcard": "*leviathan*",
"boost": 1
}
}
}
],
"boost": 1
}
},
"_source": false,
"fields": [
{
"field": "author"
},
{
"field": "name"
},
{
"field": "page_count"
},
{
"field": "release_date",
"format": "strict_date_optional_time_nanos"
}
],
"sort": [
{
"_doc": {
"order": "asc"
}
}
],
"track_total_hits": -1
}
```
Note that while the lowest nested bool query uses two entries, the rest do not and instead rely on another bool wrapper.
Either all entries should be put into a should clause OR, all the OR entries need to be balanced and be wrapped on the same level.
P.S. This has been addressed in the past by #30267 however it still seems to occur when dealing with like comparisons. | https://github.com/elastic/elasticsearch/issues/96236 | https://github.com/elastic/elasticsearch/pull/96265 | 02b1f01091c68c65f0f39edd892b8a1901507e1e | 98bc34a689cd83a43ad8c01085ef4a91295695bd | 2023-05-21T20:22:22Z | java | 2023-05-24T07:40:56Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,219 | ["server/src/internalClusterTest/java/org/elasticsearch/health/HealthMetadataServiceIT.java", "server/src/internalClusterTest/java/org/elasticsearch/health/node/DiskHealthIndicatorServiceIT.java", "server/src/main/java/org/elasticsearch/health/metadata/HealthMetadata.java", "server/src/main/java/org/elasticsearch/health/metadata/HealthMetadataService.java", "server/src/main/java/org/elasticsearch/node/Node.java"] | max_shards_in_cluster is not properly calculated from max_shards_per_node | ### Elasticsearch Version
8.6.0, 8.7.0, 8.8.0, 8.9.0
### Installed Plugins
ESS default
### Java Version
ESS default
### OS Version
ESS default
### Problem Description
Our clusters hit continuously the following error on ESS
It is related to the number of shards per cluster `max_shards_in_cluster` that is calculated based on `max_shards_per_node` but is not correctly calculated, our value for `max_shards_per_node` is 10000. We have 10 data nodes, so we have configured more than 7000 shards per cluster for sure. No matter the value you put on `max_shards_per_node`, we cannot have more than 7000 shards in our clusters.

```
"shards_capacity" : {
"status" : "Red",
"symptom" : "Cluster is close to reaching the configured maximum number of shards for data nodes.",
"details" : {
"data" : {
"max_shards_in_cluster" : 7000,
"current_used_shards" : 9023
```
```
{
"status": "green",
"number_of_nodes": 10,
"unassigned_shards": 0,
"number_of_pending_tasks": 2,
"number_of_in_flight_fetch": 0,
"timed_out": false,
"active_primary_shards": 5185,
"task_max_waiting_in_queue_millis": 600,
"cluster_name": "0000000000000000000000000",
"relocating_shards": 0,
"active_shards_percent_as_number": 100,
"active_shards": 9753,
"initializing_shards": 0,
"number_of_data_nodes": 7,
"delayed_unassigned_shards": 0
}
```
Probably related to https://github.com/elastic/elasticsearch/issues/91119
### Steps to Reproduce
* Deploy a cluster with Elastic Stack 8.7.0
* Create more than 7000 shards
* Change the value of `max_shards_per_node` to 5000
* Wait until the error appears again
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/96219 | https://github.com/elastic/elasticsearch/pull/97135 | 5d9146082f57e6d7588aa356343aeeae48358ce9 | dd8ac7856e24bdddf73ba54765e4328b678ec594 | 2023-05-18T12:17:02Z | java | 2023-07-03T14:33:19Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,162 | ["modules/repository-s3/src/main/java/org/elasticsearch/repositories/s3/S3BlobContainer.java", "x-pack/plugin/snapshot-repo-test-kit/qa/s3/src/javaRestTest/java/org/elasticsearch/repositories/blobstore/testkit/S3SnapshotRepoTestKitIT.java"] | [CI] S3SnapshotRepoTestKitIT testRepositoryAnalysis failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/6jwgad7fwmyny/tests/:x-pack:plugin:snapshot-repo-test-kit:qa:s3:javaRestTest/org.elasticsearch.repositories.blobstore.testkit.S3SnapshotRepoTestKitIT/testRepositoryAnalysis
**Reproduction line:**
```
./gradlew ':x-pack:plugin:snapshot-repo-test-kit:qa:s3:javaRestTest' --tests "org.elasticsearch.repositories.blobstore.testkit.S3SnapshotRepoTestKitIT.testRepositoryAnalysis" -Dtests.seed=F3A6CE2727048FA1 -Dtests.locale=nl-BE -Dtests.timezone=Asia/Yakutsk -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.repositories.blobstore.testkit.S3SnapshotRepoTestKitIT&tests.test=testRepositoryAnalysis
**Failure excerpt:**
```
java.io.IOException: Connection reset
at org.elasticsearch.client.RestClient.extractAndWrapCause(RestClient.java:935)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:300)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:303)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:288)
at org.elasticsearch.repositories.blobstore.testkit.AbstractSnapshotRepoTestKitRestTestCase.testRepositoryAnalysis(AbstractSnapshotRepoTestKitRestTestCase.java:35)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.net.SocketException: Connection reset
at sun.nio.ch.SocketChannelImpl.throwConnectionReset(SocketChannelImpl.java:401)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:434)
at org.apache.http.impl.nio.reactor.SessionInputBufferImpl.fill(SessionInputBufferImpl.java:231)
at org.apache.http.impl.nio.codecs.AbstractMessageParser.fillBuffer(AbstractMessageParser.java:136)
at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:241)
at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:87)
at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:40)
at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:114)
at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:162)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:337)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:315)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:276)
at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104)
at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:591)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/96162 | https://github.com/elastic/elasticsearch/pull/96168 | fe1c82d4a12c383f732b04d45abe9c251b5c3130 | 9761089698d6a408d8d90bbd5eaf6f7003980cd7 | 2023-05-16T13:34:28Z | java | 2023-05-16T15:36:12Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,149 | ["x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/analytics/top_metrics.yml"] | [CI] XPackRestIT test {p0=analytics/top_metrics/having} failing | This test was introduced by #95828
**Build scan:**
https://gradle-enterprise.elastic.co/s/6pilk27aaf3he/tests/:x-pack:plugin:yamlRestTest/org.elasticsearch.xpack.test.rest.XPackRestIT/test%20%7Bp0=analytics%2Ftop_metrics%2Fhaving%7D
**Reproduction line:**
```
./gradlew ':x-pack:plugin:yamlRestTest' --tests "org.elasticsearch.xpack.test.rest.XPackRestIT.test {p0=analytics/top_metrics/having}" -Dtests.seed=C5FF6CC4CA1D8A09 -Dtests.locale=en-PH -Dtests.timezone=VST -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.test.rest.XPackRestIT&tests.test=test%20%7Bp0%3Danalytics/top_metrics/having%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [analytics/top_metrics:820]:
Expected: <7000>
but: was <9000>
at __randomizedtesting.SeedInfo.seed([C5FF6CC4CA1D8A09:4DAB531E64E1E7F1]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:572)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:524)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.AssertionError:
Expected: <7000>
but: was <9000>
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:552)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:524)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/96149 | https://github.com/elastic/elasticsearch/pull/96186 | d423f4003793d846fc9ddeebb0f708ef1e3b1b8f | 90728b2b109285c9f83b006d08bedefc4b35317b | 2023-05-16T11:19:34Z | java | 2023-05-17T21:38:29Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,147 | ["docs/changelog/96363.yaml", "server/src/main/java/org/elasticsearch/common/settings/ClusterSettings.java", "server/src/main/java/org/elasticsearch/http/AbstractHttpServerTransport.java", "server/src/main/java/org/elasticsearch/http/HttpTransportSettings.java", "server/src/main/java/org/elasticsearch/node/Node.java", "server/src/test/java/org/elasticsearch/http/AbstractHttpServerTransportTests.java"] | Feature request: graceful stop/restart | I'd like to have a feature in elasticsearch server that allows to perform a graceful stop or restart.
Basically after executing a systemctl stop/restart command I would like that the current pending requests are completed first (with a customizable timeout), while not accepting any new request.
This would simplify the draining of inflight requests, without forcing the application to retry connections abruptly closed
You already have something similar with https://www.elastic.co/guide/en/cloud/current/ec-maintenance-mode-deployments.html - but it should work with base elasticsearch server too.
| https://github.com/elastic/elasticsearch/issues/96147 | https://github.com/elastic/elasticsearch/pull/96363 | 2e81bcc2ee82694f750c77bf37cd418de8a9a69d | 18e0fea4acc6d705e4f56961ad2f76e22d657d2b | 2023-05-16T10:53:35Z | java | 2023-06-06T19:51:53Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,141 | ["x-pack/plugin/deprecation/qa/rest/src/javaRestTest/java/org/elasticsearch/xpack/deprecation/DeprecationHttpIT.java"] | [CI] DeprecationHttpIT testDeprecationIndexingCacheReset failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/retkybz7vhqj6/tests/:x-pack:plugin:deprecation:qa:rest:javaRestTest/org.elasticsearch.xpack.deprecation.DeprecationHttpIT/testDeprecationIndexingCacheReset
**Reproduction line:**
```
./gradlew ':x-pack:plugin:deprecation:qa:rest:javaRestTest' --tests "org.elasticsearch.xpack.deprecation.DeprecationHttpIT.testDeprecationIndexingCacheReset" -Dtests.seed=A1E43522D481C17D -Dtests.locale=sr-Latn-RS -Dtests.timezone=Portugal -Druntime.java=17
```
**Applicable branches:**
main
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.deprecation.DeprecationHttpIT&tests.test=testDeprecationIndexingCacheReset
**Failure excerpt:**
```
java.lang.AssertionError:
Expected: a collection with size <4>
but: collection size was <6>
at __randomizedtesting.SeedInfo.seed([A1E43522D481C17D:34D01F3A8191A7F]: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.deprecation.DeprecationHttpIT.lambda$testDeprecationIndexingCacheReset$14(DeprecationHttpIT.java:677)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1158)
at org.elasticsearch.xpack.deprecation.DeprecationHttpIT.testDeprecationIndexingCacheReset(DeprecationHttpIT.java:673)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/96141 | https://github.com/elastic/elasticsearch/pull/101273 | 8a9f4fed55642fa936beffd61a2fa2105e46d70a | 9f0a9bc94907e0c3f1d30b4b1f18cf4996e252f8 | 2023-05-16T10:04:20Z | java | 2023-10-24T16:01:54Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,127 | ["docs/changelog/99946.yaml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cluster.desired_nodes/10_basic.yml", "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cluster.desired_nodes/20_dry_run.yml", "server/src/internalClusterTest/java/org/elasticsearch/action/admin/cluster/desirednodes/TransportDesiredNodesActionsIT.java", "server/src/main/java/org/elasticsearch/cluster/desirednodes/DesiredNodesSettingsValidator.java", "server/src/main/java/org/elasticsearch/node/Node.java", "server/src/test/java/org/elasticsearch/action/admin/cluster/desirednodes/TransportUpdateDesiredNodesActionTests.java", "server/src/test/java/org/elasticsearch/cluster/desirednodes/DesiredNodesSettingsValidatorTests.java"] | Desired nodes node settings validation fails if a setting depends on a secure setting | During desired nodes updates the system validates that the provided node settings are valid in order to avoid boot looping issues. If one of the node settings depends on a secure setting, the validation fails even when the secure setting is present and correct. | https://github.com/elastic/elasticsearch/issues/96127 | https://github.com/elastic/elasticsearch/pull/99946 | cb786acf294b4b444ffcc3ffb6ffb9d4361daa2e | ae743e673d631bf78a2b176891fde2bc560c7c4e | 2023-05-16T08:51:07Z | java | 2023-09-27T14:51:04Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,124 | ["server/src/test/java/org/elasticsearch/cluster/coordination/LeaderCheckerTests.java"] | [CI] LeaderCheckerTests testFollowerBehaviour failing | ```
java.lang.AssertionError:
Expected: a string starting with "[6] consecutive checks of the master node [{leader-1}{LUl9nt39RtSPdM2L9PNAqQ}{0.0.0.0}{0.0.0.0:9}{cdfhimrsw}] were unsuccessful ([1] rejected, [5] timed out), restarting discovery; more details may be available in the master node logs [last unsuccessful check: "
but: was "[6] consecutive checks of the master node [{leader-1}{LUl9nt39RtSPdM2L9PNAqQ}{0.0.0.0}{0.0.0.0:9}{cdfhimrsw}] were unsuccessful ([2] rejected, [4] timed out), restarting discovery; more details may be available in the master node logs [last unsuccessful check: simulated error]"
at __randomizedtesting.SeedInfo.seed([8C3B1DDF41962CA3:C00696D508BE1D48]:0)
at org.elasticsearch.cluster.coordination.LeaderCheckerTests.lambda$testFollowerBehaviour$1(LeaderCheckerTests.java:170)
at org.elasticsearch.cluster.coordination.LeaderChecker$CheckScheduler$2.run(LeaderChecker.java:375)
•••
at org.elasticsearch.cluster.coordination.LeaderCheckerTests.testFollowerBehaviour(LeaderCheckerTests.java:224)
```
Seems like an assertion message needs to be simply adjusted?
**Build scan:**
https://gradle-enterprise.elastic.co/s/dgjmkegtmtzhy/tests/:server:test/org.elasticsearch.cluster.coordination.LeaderCheckerTests/testFollowerBehaviour
**Reproduction line:**
```
./gradlew ':server:test' --tests "org.elasticsearch.cluster.coordination.LeaderCheckerTests.testFollowerBehaviour" -Dtests.seed=8C3B1DDF41962CA3 -Dtests.locale=ar-EG -Dtests.timezone=Asia/Ust-Nera -Druntime.java=20
```
**Applicable branches:**
7.17
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.cluster.coordination.LeaderCheckerTests&tests.test=testFollowerBehaviour
**Failure excerpt:**
```
java.lang.AssertionError:
Expected: a string starting with "[6] consecutive checks of the master node [{leader-1}{LUl9nt39RtSPdM2L9PNAqQ}{0.0.0.0}{0.0.0.0:9}{cdfhimrsw}] were unsuccessful ([1] rejected, [5] timed out), restarting discovery; more details may be available in the master node logs [last unsuccessful check: "
but: was "[6] consecutive checks of the master node [{leader-1}{LUl9nt39RtSPdM2L9PNAqQ}{0.0.0.0}{0.0.0.0:9}{cdfhimrsw}] were unsuccessful ([2] rejected, [4] timed out), restarting discovery; more details may be available in the master node logs [last unsuccessful check: simulated error]"
at __randomizedtesting.SeedInfo.seed([8C3B1DDF41962CA3:C00696D508BE1D48]:0)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.cluster.coordination.LeaderCheckerTests.lambda$testFollowerBehaviour$1(LeaderCheckerTests.java:170)
at org.elasticsearch.cluster.coordination.LeaderChecker$CheckScheduler$2.run(LeaderChecker.java:375)
at org.elasticsearch.common.util.concurrent.DeterministicTaskQueue.runTask(DeterministicTaskQueue.java:144)
at org.elasticsearch.common.util.concurrent.DeterministicTaskQueue.runRandomTask(DeterministicTaskQueue.java:138)
at org.elasticsearch.common.util.concurrent.DeterministicTaskQueue.runAllRunnableTasks(DeterministicTaskQueue.java:88)
at org.elasticsearch.cluster.coordination.LeaderCheckerTests.testFollowerBehaviour(LeaderCheckerTests.java:224)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:49)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:48)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:41)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:54)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/96124 | https://github.com/elastic/elasticsearch/pull/96257 | 7b212cd072fba75e55d40ec4d84da99b5228d26b | 253c5dd93fcf6e55e02e6cb8c5b99b4837dec07d | 2023-05-16T08:32:44Z | java | 2023-05-23T06:34:44Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,105 | ["x-pack/plugin/security/qa/operator-privileges-tests/src/javaRestTest/java/org/elasticsearch/xpack/security/operator/Constants.java", "x-pack/plugin/security/qa/operator-privileges-tests/src/javaRestTest/java/org/elasticsearch/xpack/security/operator/OperatorPrivilegesIT.java"] | [CI] OperatorPrivilegesIT testEveryActionIsEitherOperatorOnlyOrNonOperator failing | Failed 6 times in the past week
https://ci-stats.elastic.co/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:'2023-05-12T04:45:48.131Z',to:'2023-05-15T12:41:52.549Z'))&_a=(columns:!(test.failed-testcases.message,build.branch,test.failed-testcases.summary),filters:!(),index:c97a6ef0-93e9-11ec-8f33-631ec47bde48,interval:auto,query:(language:kuery,query:'test.failed-testcases.test:%20%22testEveryActionIsEitherOperatorOnlyOrNonOperator%22'),sort:!(!(process.time-start,desc)))
**Build scan:**
https://gradle-enterprise.elastic.co/s/2stu5cieelrr4/tests/:x-pack:plugin:security:qa:operator-privileges-tests:javaRestTest/org.elasticsearch.xpack.security.operator.OperatorPrivilegesIT/testEveryActionIsEitherOperatorOnlyOrNonOperator
**Reproduction line:**
```
./gradlew ':x-pack:plugin:security:qa:operator-privileges-tests:javaRestTest' --tests "org.elasticsearch.xpack.security.operator.OperatorPrivilegesIT.testEveryActionIsEitherOperatorOnlyOrNonOperator" -Dtests.seed=D8D87D55F6555F82 -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=no-NO -Dtests.timezone=Pacific/Noumea -Druntime.java=20
```
**Applicable branches:**
8.8
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.security.operator.OperatorPrivilegesIT&tests.test=testEveryActionIsEitherOperatorOnlyOrNonOperator
**Failure excerpt:**
```
java.lang.AssertionError: Actions may no longer be valid: [[indices:admin/dlm/put, indices:admin/dlm/delete, indices:admin/dlm/get, indices:admin/dlm/explain]]. They should be removed from either the operator-only action registry in [org.elasticsearch.xpack.security.operator.OperatorOnlyRegistry] or the non-operator action list in [org.elasticsearch.xpack.security.operator.Constants]
at __randomizedtesting.SeedInfo.seed([D8D87D55F6555F82:37E4EBFE10365E25]:0)
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.elasticsearch.xpack.security.operator.OperatorPrivilegesIT.testEveryActionIsEitherOperatorOnlyOrNonOperator(OperatorPrivilegesIT.java:118)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/96105 | https://github.com/elastic/elasticsearch/pull/96118 | 860ccfda72375839ab0b53db6913c60bf3d021ef | a71e98863c970e54020b27a14a1d6444e0c17291 | 2023-05-15T12:44:39Z | java | 2023-05-26T23:37:30Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,103 | ["server/src/internalClusterTest/java/org/elasticsearch/action/admin/cluster/node/tasks/TasksIT.java"] | [CI] TasksIT testMasterNodeOperationTasks failing | Failed 4 times in the past 2 weeks
https://ci-stats.elastic.co/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-4w,to:now))&_a=(columns:!(test.failed-testcases.message,build.branch,test.failed-testcases.summary),filters:!(),index:c97a6ef0-93e9-11ec-8f33-631ec47bde48,interval:auto,query:(language:kuery,query:'test.failed-testcases.test:%20%22testMasterNodeOperationTasks%22'),sort:!(!(process.time-start,desc)))
**Build scan:**
https://gradle-enterprise.elastic.co/s/77qbjtqg645bk/tests/:server:internalClusterTest/org.elasticsearch.action.admin.cluster.node.tasks.TasksIT/testMasterNodeOperationTasks
**Reproduction line:**
```
./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.action.admin.cluster.node.tasks.TasksIT.testMasterNodeOperationTasks" -Dtests.seed=350CD7AEA7F9BEF2 -Dtests.locale=uk-UA -Dtests.timezone=Antarctica/Vostok -Druntime.java=19
```
**Applicable branches:**
8.8
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.action.admin.cluster.node.tasks.TasksIT&tests.test=testMasterNodeOperationTasks
**Failure excerpt:**
```
java.lang.AssertionError: expected:<2> but was:<1>
at __randomizedtesting.SeedInfo.seed([350CD7AEA7F9BEF2:6B8DDF9FDD99BF37]:0)
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:834)
at org.junit.Assert.assertEquals(Assert.java:645)
at org.junit.Assert.assertEquals(Assert.java:631)
at org.elasticsearch.action.admin.cluster.node.tasks.TasksIT.testMasterNodeOperationTasks(TasksIT.java:152)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1589)
``` | https://github.com/elastic/elasticsearch/issues/96103 | https://github.com/elastic/elasticsearch/pull/96347 | 3c3c14f9ad08b8a0ce21d30740203b205f7f6b84 | ecef641c3dbee6c6b9b103e69b3e422b9f51eae3 | 2023-05-15T12:40:09Z | java | 2023-05-25T15:50:56Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,089 | ["docs/changelog/96924.yaml", "server/src/main/java/org/elasticsearch/monitor/os/OsProbe.java", "server/src/test/java/org/elasticsearch/monitor/os/OsProbeTests.java"] | `os.cgroup.cpuacct.usage_nanos` is actually microseconds when Elasticsearch is ran inside cgroup v2 | ### Elasticsearch Version
master
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
5.15.0-1036-azure
### Problem Description
When Elasticsearch is ran inside a cgroup v2, the node stats output for `"https://elasticsearch:9200/_nodes/stats?filter_path=nodes.*.os.cgroup.cpuacct.usage_nanos"` is actually in microseconds, cgroup v1 correctly reports these in the nanosecond unit:
https://github.com/elastic/elasticsearch/blob/f01f07f8c65169bf5afb6146af515e2c9c676d60/server/src/main/java/org/elasticsearch/monitor/os/OsProbe.java#L695
We collect these stats in [Rally's node-stats telemetry device](https://esrally.readthedocs.io/en/stable/telemetry.html#node-stats) and it became clear that formula we use to derive CPU usage out of the available time is off by a factor of 1000 (i.e. the difference between nanoseconds and microseconds) for any container running inside a cgroup v2.
The below screenshots show the difference between cgroup v1 running on Google Kuberentes Engine (GKE), and cgroup v2 running on Azure Kubernetes Service (AKS):


GKE output (cgroup v1)
```shell
$ uname -a
Linux es-es-search-7b66d98c5b-fs28n 5.15.89+ #1 SMP Sat Mar 18 09:27:02 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
$ mount -l | grep cgroup
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (ro,nosuid,nodev,noexec,relatime,xattr,name=systemd)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (ro,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/pids type cgroup (ro,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/blkio type cgroup (ro,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/freezer type cgroup (ro,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/cpuset type cgroup (ro,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (ro,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/perf_event type cgroup (ro,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/rdma type cgroup (ro,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (ro,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/devices type cgroup (ro,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/memory type cgroup (ro,nosuid,nodev,noexec,relatime,memory)
# nanoseconds
$ cat /sys/fs/cgroup/cpu,cpuacct/cpuacct.usage
63277158346752
```
AKS output (cgroup v2):
```shell
$ uname -a
Linux es-es-index-6f49648d8-jhm9s 5.15.0-1036-azure #43-Ubuntu SMP Wed Mar 29 16:11:05 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
$ mount -l | grep cgroup
cgroup on /sys/fs/cgroup type cgroup2 (ro,nosuid,nodev,noexec,relatime)
# microseconds
$ cat /sys/fs/cgroup/cpu.stat
usage_usec 104036485036
user_usec 98419994704
system_usec 5616490332
nr_periods 164357
nr_throttled 143842
throttled_usec 9516539086
```
### Steps to Reproduce
I encountered the bug when running a cluster inside an Azure Kubernetes Service (AKS) cluster, but that's not exactly practical for reproductions.
We can repro this [using ECK](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-quickstart.html) and [Minikube with the Docker driver](https://minikube.sigs.k8s.io/docs/) on macOs.
Note that for [Linux users Minikube automatically detects whether or not cgroup v1 or v2 is in use by your workstation](https://github.com/kubernetes/minikube/blob/0477c8160dbbbb53d9f4e02d197b0f2e2a6fcac1/pkg/minikube/detect/detect.go#L190-L205) (i.e. where you invoke `minikube start` from), whereas for Docker Desktop users on macOS (which actually creates a Linux VM in the background) we need to adjust the cgroup version via modifying the engine's settings (more on this below).
Testing with cgroup v2:
```shell
# minikube > 1.23 defaults to cgroup v2
$ minikube version
minikube version: v1.26.1
commit: 62e108c3dfdec8029a890ad6d8ef96b6461426dc
# start minikube
$ minikube start
# create eck operator
$ minikube kubectl -- create -f https://download.elastic.co/downloads/eck/2.7.0/crds.yaml
$ minikube kubectl -- apply -f https://download.elastic.co/downloads/eck/2.7.0/operator.yaml
$ minikube kubectl -- -n elastic-system logs -f statefulset.apps/elastic-operator
# deploy elasticsearch
$ cat <<EOF | minikube kubectl -- apply -f -
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: quickstart
spec:
version: 8.7.1
nodeSets:
- name: default
count: 1
config:
node.store.allow_mmap: false
EOF
# check that es is using cgroup v2
$ minukube kubectl -- -n elastic-system exec -it local-es-default-0 -- /bin/sh
# inside es pod/container
sh-5.0$ mount -l | grep cgroup
cgroup on /sys/fs/cgroup type cgroup2 (ro,nosuid,nodev,noexec,relatime)
# get pass
$ PASSWORD=$(minikube kubectl -- get secret quickstart-es-elastic-user -o go-template='{{.data.elastic | base64decode}}')
# make service avail
$ minikube kubectl -- port-forward service/quickstart-es-http 9200
# check output
$ curl -s -u "elastic:$PASSWORD" -k "https://localhost:9200/_nodes/stats?filter_path=nodes.*.os.cgroup.cpuacct.usage_nanos" | jq .
{
"nodes": {
"WA7ANuASRiGF7xgO3dYp_w": {
"os": {
"cgroup": {
"cpuacct": {
"usage_nanos": 107115513
}
}
}
}
}
}
```
I'm on macOS Monterey 12.6 using [the `docker` driver for `minikube` ](https://minikube.sigs.k8s.io/docs/drivers/docker/), which is actually a Linux VM running behind the scenes. In order to force it to use cgroup v2 I had to configure ` "deprecatedCgroupv1": true,` in `$HOME/Library/Group\ Containers/group.com.docker/settings.json` and then restart `Docker Desktop` before following these steps:
```shell
$ minukube kubectl -- -n elastic-system exec -it local-es-default-0 -- /bin/sh
# inside es pod/container
sh-5.0$ mount -l | grep cgroup
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
cgroup on /sys/fs/cgroup/cpuset type cgroup (ro,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu type cgroup (ro,nosuid,nodev,noexec,relatime,cpu)
cgroup on /sys/fs/cgroup/cpuacct type cgroup (ro,nosuid,nodev,noexec,relatime,cpuacct)
cgroup on /sys/fs/cgroup/blkio type cgroup (ro,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/memory type cgroup (ro,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (ro,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (ro,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (ro,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/perf_event type cgroup (ro,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/net_prio type cgroup (ro,nosuid,nodev,noexec,relatime,net_prio)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (ro,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/pids type cgroup (ro,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/rdma type cgroup (ro,nosuid,nodev,noexec,relatime,rdma)
systemd on /sys/fs/cgroup/systemd type cgroup (ro,nosuid,nodev,noexec,relatime,name=systemd)
# get pass
$ PASSWORD=$(minikube kubectl -- get secret quickstart-es-elastic-user -o go-template='{{.data.elastic | base64decode}}')
# make service avail
$ minikube kubectl -- port-forward service/quickstart-es-http 9200
# check output
$ curl -s -u "elastic:$PASSWORD" -k "https://localhost:9200/_nodes/stats?filter_path=nodes.*.os.cgroup.cpuacct.usage_nanos" | jq .
{
"nodes": {
"WA7ANuASRiGF7xgO3dYp_w": {
"os": {
"cgroup": {
"cpuacct": {
"usage_nanos": 35975828297
}
}
}
}
}
}
```
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/96089 | https://github.com/elastic/elasticsearch/pull/96924 | 52914e475004644f93c4ade18caeb5a7833d66fa | 857cd5078b33ad13eb3c993d81a3bff53b31efb1 | 2023-05-15T07:13:31Z | java | 2023-06-21T08:14:12Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,084 | ["modules/dlm/src/internalClusterTest/java/org/elasticsearch/dlm/DataLifecycleServiceIT.java"] | [CI] DataLifecycleServiceIT testAutomaticForceMerge failing | It failed on my PR. But I see it has failed on main as well. It does not reproduce. But since it is a new test, maybe there is something that experts can take a closer look.
**Build scan:**
https://gradle-enterprise.elastic.co/s/hwqc6m4l3z5s2/tests/:modules:dlm:internalClusterTest/org.elasticsearch.dlm.DataLifecycleServiceIT/testAutomaticForceMerge
**Reproduction line:**
```
./gradlew ':modules:dlm:internalClusterTest' --tests "org.elasticsearch.dlm.DataLifecycleServiceIT.testAutomaticForceMerge" -Dtests.seed=73A7958A5BFF3FAF -Dtests.locale=es -Dtests.timezone=Africa/Bissau -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.dlm.DataLifecycleServiceIT&tests.test=testAutomaticForceMerge
**Failure excerpt:**
```
java.lang.AssertionError: The segments for .ds-metrics-foo-2023.05.15-000001 were not merged
Expected: a value less than <1>
but: <1> was equal to <1>
at __randomizedtesting.SeedInfo.seed([73A7958A5BFF3FAF:87D280C491CE4F45]:0)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.elasticsearch.dlm.DataLifecycleServiceIT.lambda$testAutomaticForceMerge$6(DataLifecycleServiceIT.java:343)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1158)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1131)
at org.elasticsearch.dlm.DataLifecycleServiceIT.testAutomaticForceMerge(DataLifecycleServiceIT.java:325)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/96084 | https://github.com/elastic/elasticsearch/pull/96584 | e738e9085c0979f5441f2504a4e88113fab4b277 | cc0777535b91674954bd4ecbb73e761b9fcc4e3c | 2023-05-15T01:28:37Z | java | 2023-06-05T22:21:42Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,079 | ["build-tools/src/testFixtures/java/org/elasticsearch/gradle/internal/test/TestUtils.java"] | [CI] ThirdPartyAuditTaskFuncTest reports violations and ignores compile only failing | This is probably fallout from the Forbidden APIs upgrade. This is only failing on Windows. Looks like the reason is perhaps some funkiness in the file path normalization. The tool is outputing a file path with a `/` prefix and the assertion is expecting a relative path.
**Build scan:**
https://gradle-enterprise.elastic.co/s/iwrlmyjysvdpy/tests/:integTest/org.elasticsearch.gradle.internal.precommit.ThirdPartyAuditTaskFuncTest/reports%20violations%20and%20ignores%20compile%20only
**Reproduction line:**
```
null
```
**Applicable branches:**
main
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.gradle.internal.precommit.ThirdPartyAuditTaskFuncTest&tests.test=reports%20violations%20and%20ignores%20compile%20only
**Failure excerpt:**
```
org.spockframework.runtime.ConditionNotSatisfiedError: Condition not satisfied:
normalized(givenOutput).contains(normalized(expected))
| | | | |
| | false | Forbidden APIs output:
| | | DEBUG: Classpath: [file:./build/precommit/thirdPartyAudit/thirdPartyAudit/]
| | | DEBUG: Detected Java 9 or later with module system.
| | | ERROR: Forbidden class/interface use: java.io.File [non-public internal runtime class]
| | | ERROR: in org.acme.TestingIO (method declaration of 'getFile()')
| | | ERROR: Scanned 1 class file(s) for forbidden API invocations (in 0.00s), 1 error(s).
| | | ERROR: Check for forbidden API calls failed, see log.
| | | ==end of forbidden APIs==
| | | Classes with violations:
| | | * org.acme.TestingIO
| | Forbidden APIs output:
| | DEBUG: Classpath: [file:./build/precommit/thirdPartyAudit/thirdPartyAudit/]
| | DEBUG: Detected Java 9 or later with module system.
| | ERROR: Forbidden class/interface use: java.io.File [non-public internal runtime class]
| | ERROR: in org.acme.TestingIO (method declaration of 'getFile()')
| | ERROR: Scanned 1 class file(s) for forbidden API invocations (in 0.00s), 1 error(s).
| | ERROR: Check for forbidden API calls failed, see log.
| | ==end of forbidden APIs==
| | Classes with violations:
| | * org.acme.TestingIO
| Encryption of the configuration cache is enabled.
| Calculating task graph as no configuration cache is available for tasks: :thirdPartyAudit
| =======================================
| Elasticsearch Build Hamster says Hello!
| Gradle Version : 8.1.1
| OS Info : Windows Server 2012 R2 6.3 (amd64)
| JDK Version : 17.0.2+8-86 (Oracle)
| JAVA_HOME : C:/Users/jenkins/.java/openjdk17
| Random Testing Seed : 101AD76F54E76DD6
| In FIPS 140 mode : false
| =======================================
| > Task :thirdPartyAuditResources
|
| > Task :thirdPartyAudit FAILED
| Forbidden APIs output:
| DEBUG: Classpath: [file:/./build/precommit/thirdPartyAudit/thirdPartyAudit/]
| DEBUG: Detected Java 9 or later with module system.
| ERROR: Forbidden class/interface use: java.io.File [non-public internal runtime class]
| ERROR: in org.acme.TestingIO (method declaration of 'getFile()')
| ERROR: Scanned 1 class file(s) for forbidden API invocations (in 0.00s), 1 error(s).
| ERROR: Check for forbidden API calls failed, see log.
| ==end of forbidden APIs==
| Classes with violations:
| * org.acme.TestingIO
|
| 0 problems were found storing the configuration cache.
|
| See the complete report at file:///./build/reports/configuration-cache/2vznkekf0cy6s22bzerw46rc7/cn473lmturooeqioptkv4m91q/configuration-cache-report.html
|
| FAILURE: Build failed with an exception.
|
| * What went wrong:
| Execution failed for task ':thirdPartyAudit'.
| > Audit of third party dependencies failed
|
| * Try:
| > Run with --stacktrace option to get the stack trace.
| > Run with --info or --debug option to get more log output.
| > Run with --scan to get full insights.
|
| * Get more help at https://help.gradle.org
|
| BUILD FAILED in 3s
| 2 actionable tasks: 2 executed
| Configuration cache entry stored.
Encryption of the configuration cache is enabled.
Calculating task graph as no configuration cache is available for tasks: :thirdPartyAudit
=======================================
Elasticsearch Build Hamster says Hello!
Gradle Version : 8.1.1
OS Info : Windows Server 2012 R2 6.3 (amd64)
JDK Version : 17.0.2+8-86 (Oracle)
JAVA_HOME : C:/Users/jenkins/.java/openjdk17
Random Testing Seed : 101AD76F54E76DD6
In FIPS 140 mode : false
=======================================
> Task :thirdPartyAuditResources
> Task :thirdPartyAudit FAILED
Forbidden APIs output:
DEBUG: Classpath: [file:/./build/precommit/thirdPartyAudit/thirdPartyAudit/]
DEBUG: Detected Java 9 or later with module system.
ERROR: Forbidden class/interface use: java.io.File [non-public internal runtime class]
ERROR: in org.acme.TestingIO (method declaration of 'getFile()')
ERROR: Scanned 1 class file(s) for forbidden API invocations (in 0.00s), 1 error(s).
ERROR: Check for forbidden API calls failed, see log.
==end of forbidden APIs==
Classes with violations:
* org.acme.TestingIO
0 problems were found storing the configuration cache.
See the complete report at file:///./build/reports/configuration-cache/2vznkekf0cy6s22bzerw46rc7/cn473lmturooeqioptkv4m91q/configuration-cache-report.html
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':thirdPartyAudit'.
> Audit of third party dependencies failed
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 3s
2 actionable tasks: 2 executed
Configuration cache entry stored.
at org.elasticsearch.gradle.fixtures.AbstractGradleFuncTest.assertOutputContains(AbstractGradleFuncTest.groovy:96)
at org.elasticsearch.gradle.internal.precommit.ThirdPartyAuditTaskFuncTest.reports violations and ignores compile only(ThirdPartyAuditTaskFuncTest.groovy:109)
``` | https://github.com/elastic/elasticsearch/issues/96079 | https://github.com/elastic/elasticsearch/pull/96090 | 34d91f06163ddf1f59bd2da9c316746251f91897 | 3e248342a920fdc1e15490834920f5251127c6c3 | 2023-05-13T01:49:24Z | java | 2023-05-16T09:08:53Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,070 | ["modules/dlm/src/internalClusterTest/java/org/elasticsearch/dlm/DataLifecycleServiceIT.java"] | [CI] DataLifecycleServiceIT testErrorRecordingOnRollover failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/njctqv4g2k7ly/tests/:modules:dlm:internalClusterTest/org.elasticsearch.dlm.DataLifecycleServiceIT/testErrorRecordingOnRollover
**Reproduction line:**
```
gradlew ':modules:dlm:internalClusterTest' --tests "org.elasticsearch.dlm.DataLifecycleServiceIT.testErrorRecordingOnRollover" -Dtests.seed=7A0C4AB39ECCF42F -Dtests.locale=fr-FR -Dtests.timezone=Universal -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.dlm.DataLifecycleServiceIT&tests.test=testErrorRecordingOnRollover
**Failure excerpt:**
```
java.lang.AssertionError:
Expected: null
but: was "{\"type\":\"exception\",\"reason\":\"Force merge request only had 1 successful shards out of a total of 2\"}"
at __randomizedtesting.SeedInfo.seed([7A0C4AB39ECCF42F:EF340B4E82C2DA79]: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.dlm.DataLifecycleServiceIT.lambda$testErrorRecordingOnRollover$11(DataLifecycleServiceIT.java:453)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1158)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1131)
at org.elasticsearch.dlm.DataLifecycleServiceIT.testErrorRecordingOnRollover(DataLifecycleServiceIT.java:435)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/96070 | https://github.com/elastic/elasticsearch/pull/96228 | ff5c86eb7c98036040e4d8853fb3c92037b47291 | ae5a2c6cb5b6e068765b00424d279ee8e5662cad | 2023-05-12T15:14:34Z | java | 2023-05-23T14:23:01Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,057 | ["docs/changelog/96088.yaml", "x-pack/plugin/spatial/src/main/java/org/elasticsearch/xpack/spatial/search/aggregations/bucket/geogrid/GeoHexGridTiler.java", "x-pack/plugin/spatial/src/test/java/org/elasticsearch/xpack/spatial/search/aggregations/bucket/geogrid/GeoHexTilerTests.java"] | [CI] GeoHexTilerTests testGeoGridSetValuesBoundingBoxes_BoundedGeoShapeCellValues failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/5waawlqxebn3y/tests/:x-pack:plugin:spatial:test/org.elasticsearch.xpack.spatial.search.aggregations.bucket.geogrid.GeoHexTilerTests/testGeoGridSetValuesBoundingBoxes_BoundedGeoShapeCellValues
**Reproduction line:**
```
./gradlew ':x-pack:plugin:spatial:test' --tests "org.elasticsearch.xpack.spatial.search.aggregations.bucket.geogrid.GeoHexTilerTests.testGeoGridSetValuesBoundingBoxes_BoundedGeoShapeCellValues" -Dtests.seed=B35C794D1B0FE1E2 -Dtests.locale=zh-Hans-SG -Dtests.timezone=CAT -Druntime.java=20
```
**Applicable branches:**
8.8
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.spatial.search.aggregations.bucket.geogrid.GeoHexTilerTests&tests.test=testGeoGridSetValuesBoundingBoxes_BoundedGeoShapeCellValues
**Failure excerpt:**
```
java.lang.AssertionError: [7:3] bucket count
Expected: <13>
but: was <12>
at __randomizedtesting.SeedInfo.seed([B35C794D1B0FE1E2:BF28C88008EBD073]:0)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.elasticsearch.xpack.spatial.search.aggregations.bucket.geogrid.GeoGridTilerTestCase.testGeoGridSetValuesBoundingBoxes_BoundedGeoShapeCellValues(GeoGridTilerTestCase.java:145)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/96057 | https://github.com/elastic/elasticsearch/pull/96088 | e9cfd815070a416f91ad0570f0a71e8d8197b7f0 | 9904fcfaf120776df93560aa0e1e59a37996d60c | 2023-05-12T07:47:48Z | java | 2023-05-15T08:37:59Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,036 | ["libs/x-content/impl/src/main/java/org/elasticsearch/xcontent/provider/json/JsonXContentImpl.java"] | Pre-release 8.8.0 cannot work with string fields longer than 5000000 characters | #95641 upgraded Jackson to version 2.15.0. One of the fixes in this is https://github.com/FasterXML/jackson-core/issues/863. This new limit of 5000000 characters for a string field then applies to strings in Elasticsearch documents.
To reproduce:
1. `./gradlew run`
2. Download [`big_a.zip`](https://github.com/elastic/elasticsearch/files/11453951/big_a.zip)
3. `unzip big_a.zip`
4. `curl -u elastic:password http://localhost:9200/my-index/_doc/1 -X PUT -d @big_a.json -H 'Content-Type: application/json'`
The response is:
```
{"error":{"root_cause":[{"type":"document_parsing_exception","reason":"[1:20] failed to parse: String length (5043368) exceeds the maximum length (5000000)"}],"type":"document_parsing_exception","reason":"[1:20] failed to parse: String length (5043368) exceeds the maximum length (5000000)","caused_by":{"type":"stream_constraints_exception","reason":"String length (5043368) exceeds the maximum length (5000000)"}},"status":400}
```
I think this is a blocker for release of 8.8.0 because people will have indexed docs in older versions that have strings longer than 5000000 characters, and they won't be able to work with them in 8.8.0 unless we do something about this problem. | https://github.com/elastic/elasticsearch/issues/96036 | https://github.com/elastic/elasticsearch/pull/96031 | 40a22d1d0fbe6d9d0dbe79adb5a6f6d56fdbe9a6 | 1208c02cee86c8ab067ea792121521fdfd9f4cc8 | 2023-05-11T15:35:06Z | java | 2023-05-11T15:54:27Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,022 | ["docs/changelog/96286.yaml", "server/src/main/java/org/elasticsearch/cluster/metadata/MetadataIndexTemplateService.java", "server/src/test/java/org/elasticsearch/cluster/metadata/MetadataIndexTemplateServiceTests.java"] | Highest priority data stream index template can't be deleted | ### Elasticsearch Version
8.9.0-SNAPSHOT built from b5af53d
### Java Version
_bundled_
### OS Version
cloud container
### Problem Description
When an index template is considered to be the highest priority template for an existing data stream it can't be delete, even if a matching index template with a lower priority exists. That means it's not possible to revert a data stream to a lower-priority template without applying a work-around. But as long as there is a matching index template to fall back to, this should be allowed. This is a common sequence of steps when installing and later uninstalling an integration package.
### Steps to Reproduce
Create a logs data stream based on the built-in `logs` index template by indexing a document:
```
POST logs-felixstuermer.test-default/_doc
{
"@timestamp": "2023-05-05T12:00:00"
}
```
Observe that the data stream considers the default template as its matching template:
```
GET _data_stream/logs-felixstuermer.test-default
```
```json
{
"data_streams": [
{
"name": "logs-felixstuermer.test-default",
"timestamp_field": {
"name": "@timestamp"
},
"indices": [
{
"index_name": ".ds-logs-felixstuermer.test-default-2023.05.11-000001",
"index_uuid": "moqOcaWvSzG6tMBhCpitjg"
}
],
"generation": 1,
"_meta": {
"description": "default logs template installed by x-pack",
"managed": true
},
"status": "GREEN",
"template": "logs", // <--
"ilm_policy": "logs",
"hidden": false,
"system": false,
"allow_custom_routing": false,
"replicated": false
}
]
}
```
Create a higher-priority index template:
```
PUT _index_template/logs-felixstuermer.test-0
{
"index_patterns": ["logs-felixstuermer.test-default"],
"data_stream": { },
"composed_of": [],
"priority": 500
}
```
Observe that the data stream now considers the new template as its matching template, even if no rollover has happened:
```
GET _data_stream/logs-felixstuermer.test-default
```
```json
{
"data_streams": [
{
"name": "logs-felixstuermer.test-default",
"timestamp_field": {
"name": "@timestamp"
},
"indices": [
{
"index_name": ".ds-logs-felixstuermer.test-default-2023.05.11-000001",
"index_uuid": "moqOcaWvSzG6tMBhCpitjg"
}
],
"generation": 1,
"_meta": {
"managed": true,
"description": "default logs template installed by x-pack"
},
"status": "GREEN",
"template": "logs-felixstuermer.test-0", // <--
"hidden": false,
"system": false,
"allow_custom_routing": false,
"replicated": false
}
]
}
```
Try to delete the high-priority index template and observe that this fails:
```
DELETE _index_template/logs-felixstuermer.test-0
```
```json
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "unable to remove composable templates [logs-felixstuermer.test-0] as they are in use by a data streams [logs-felixstuermer.test-default]"
}
],
"type": "illegal_argument_exception",
"reason": "unable to remove composable templates [logs-felixstuermer.test-0] as they are in use by a data streams [logs-felixstuermer.test-default]"
},
"status": 400
}
``` | https://github.com/elastic/elasticsearch/issues/96022 | https://github.com/elastic/elasticsearch/pull/96286 | 354992ebd72debec1ed95512d28fea99fa560004 | 6208df04e4990d414b480bbb22b39535ad1051e7 | 2023-05-11T10:28:16Z | java | 2023-05-25T09:24:36Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 96,000 | ["docs/changelog/96015.yaml", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/DataTiersUsageTransportAction.java"] | [CI] TransformUsageIT testUsage failing | The test failed with
```
org.elasticsearch.client.ResponseException: method [GET], host [http://[::1]:42877], URI [_xpack/usage], status line [HTTP/1.1 500 Internal Server Error]
{"error":{"root_cause":[{"type":"null_pointer_exception","reason":"Cannot invoke \"org.elasticsearch.cluster.routing.ShardRouting.state()\" because the return value of \"org.elasticsearch.cluster.routing.RoutingNode.getByShardId(org.elasticsearch.index.shard.ShardId)\" is null"}],"type":"null_pointer_exception","reason":"Cannot invoke \"org.elasticsearch.cluster.routing.ShardRouting.state()\" because the return value of \"org.elasticsearch.cluster.routing.RoutingNode.getByShardId(org.elasticsearch.index.shard.ShardId)\" is null"},"status":500}
at __randomizedtesting.SeedInfo.seed([28FB9E766A1CE048:945C02A2D66038C1]:0)
at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:347)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:313)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:288)
at org.elasticsearch.xpack.transform.integration.TransformUsageIT.testUsage(TransformUsageIT.java:37)
[...]
```
**Build scan:**
https://gradle-enterprise.elastic.co/s/tcqj3z4gyxjgc/tests/:x-pack:plugin:transform:qa:single-node-tests:javaRestTest/org.elasticsearch.xpack.transform.integration.TransformUsageIT/testUsage
**Reproduction line:**
```
./gradlew ':x-pack:plugin:transform:qa:single-node-tests:javaRestTest' --tests "org.elasticsearch.xpack.transform.integration.TransformUsageIT.testUsage" -Dtests.seed=28FB9E766A1CE048 -Dtests.locale=ja -Dtests.timezone=Europe/Rome -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.transform.integration.TransformUsageIT&tests.test=testUsage
**Failure excerpt:**
```
org.elasticsearch.client.ResponseException: method [GET], host [http://[::1]:42877], URI [_xpack/usage], status line [HTTP/1.1 500 Internal Server Error]
{"error":{"root_cause":[{"type":"null_pointer_exception","reason":"Cannot invoke \"org.elasticsearch.cluster.routing.ShardRouting.state()\" because the return value of \"org.elasticsearch.cluster.routing.RoutingNode.getByShardId(org.elasticsearch.index.shard.ShardId)\" is null"}],"type":"null_pointer_exception","reason":"Cannot invoke \"org.elasticsearch.cluster.routing.ShardRouting.state()\" because the return value of \"org.elasticsearch.cluster.routing.RoutingNode.getByShardId(org.elasticsearch.index.shard.ShardId)\" is null"},"status":500}
at __randomizedtesting.SeedInfo.seed([28FB9E766A1CE048:945C02A2D66038C1]:0)
at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:347)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:313)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:288)
at org.elasticsearch.xpack.transform.integration.TransformUsageIT.testUsage(TransformUsageIT.java:37)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/96000 | https://github.com/elastic/elasticsearch/pull/96015 | e01053637e464514667a1aa73da212c96a630f72 | 4393c03efdd12cfc6f4c985e83473954651e2101 | 2023-05-10T14:51:34Z | java | 2023-05-11T08:47:38Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,994 | ["docs/changelog/97278.yaml", "x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/store/SearchableSnapshotDirectory.java"] | [CI] SearchableSnapshotRecoveryStateIntegrationTests testRecoveryStateRecoveredBytesMatchPhysicalCacheState failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/w3y6276h3es4g/tests/:x-pack:plugin:searchable-snapshots:internalClusterTest/org.elasticsearch.xpack.searchablesnapshots.recovery.SearchableSnapshotRecoveryStateIntegrationTests/testRecoveryStateRecoveredBytesMatchPhysicalCacheState
**Reproduction line:**
```
./gradlew ':x-pack:plugin:searchable-snapshots:internalClusterTest' --tests "org.elasticsearch.xpack.searchablesnapshots.recovery.SearchableSnapshotRecoveryStateIntegrationTests.testRecoveryStateRecoveredBytesMatchPhysicalCacheState" -Dtests.seed=37CF1F75CEB7D168 -Dtests.locale=el-CY -Dtests.timezone=America/Indiana/Petersburg -Druntime.java=20
```
**Applicable branches:**
8.8
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.searchablesnapshots.recovery.SearchableSnapshotRecoveryStateIntegrationTests&tests.test=testRecoveryStateRecoveredBytesMatchPhysicalCacheState
**Failure excerpt:**
```
java.lang.AssertionError: Physical cache size doesn't match with recovery state data
Expected: <9744L>
but: was <10768L>
at __randomizedtesting.SeedInfo.seed([37CF1F75CEB7D168:792DC5E477402C60]:0)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.elasticsearch.xpack.searchablesnapshots.recovery.SearchableSnapshotRecoveryStateIntegrationTests.testRecoveryStateRecoveredBytesMatchPhysicalCacheState(SearchableSnapshotRecoveryStateIntegrationTests.java:106)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95994 | https://github.com/elastic/elasticsearch/pull/97278 | b09279f568175efdddae246d9f31cdd9ee06be9e | edc79ff208cae90187cd39dc3f45b6cf35eb22ef | 2023-05-10T13:17:18Z | java | 2023-07-04T08:23:21Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,983 | ["test/framework/src/main/java/org/elasticsearch/test/ESTestCase.java", "x-pack/plugin/identity-provider/src/test/java/org/elasticsearch/xpack/idp/saml/test/IdpSamlTestCase.java", "x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/saml/SamlTestCase.java", "x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/transport/netty4/SecurityNetty4HttpServerTransportTests.java"] | [CI] SecurityNetty4HttpServerTransportTests testMalformedRequestDispatchedNoAuthn failing | Introduced by #95886. We've got a turkish I here causing string equality mismatch
**Build scan:**
https://gradle-enterprise.elastic.co/s/iik5gi62i5sdq/tests/:x-pack:plugin:security:test/org.elasticsearch.xpack.security.transport.netty4.SecurityNetty4HttpServerTransportTests/testMalformedRequestDispatchedNoAuthn
**Reproduction line:**
```
./gradlew ':x-pack:plugin:security:test' --tests "org.elasticsearch.xpack.security.transport.netty4.SecurityNetty4HttpServerTransportTests.testMalformedRequestDispatchedNoAuthn" -Dtests.seed=A4B64B6F13AB9626 -Dtests.locale=tr -Dtests.timezone=US/Indiana-Starke -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.security.transport.netty4.SecurityNetty4HttpServerTransportTests&tests.test=testMalformedRequestDispatchedNoAuthn
**Failure excerpt:**
```
java.lang.AssertionError:
Expected: a string containing "NOT A VALID HTTP LINE"
but: was "java.lang.IllegalArgumentException: invalid version format: NOT A VALİD HTTP LİNE"
at __randomizedtesting.SeedInfo.seed([A4B64B6F13AB9626:D95AF3108B934C8B]:0)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.xpack.security.transport.netty4.SecurityNetty4HttpServerTransportTests.testMalformedRequestDispatchedNoAuthn(SecurityNetty4HttpServerTransportTests.java:584)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95983 | https://github.com/elastic/elasticsearch/pull/96178 | 43e526f4e85a63482b57752e7e035e73e8bb9f41 | 92b289a975dc072e3b7e7ce7f783cafdab9486f1 | 2023-05-10T09:47:29Z | java | 2023-05-17T06:31:01Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,975 | ["docs/reference/eql/eql.asciidoc"] | [CI] DocsClientYamlTestSuiteIT test {yaml=reference/eql/eql/line_338} failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/7juphmg57mk2y/tests/:docs:yamlRestTest/org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT/test%20%7Byaml=reference%2Feql%2Feql%2Fline_338%7D
**Reproduction line:**
```
./gradlew ':docs:yamlRestTest' --tests "org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT.test {yaml=reference/eql/eql/line_338}" -Dtests.seed=206E917A70AC9100 -Dtests.locale=ga-IE -Dtests.timezone=Asia/Damascus -Druntime.java=20
```
**Applicable branches:**
8.8
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dreference/eql/eql/line_338%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [reference/eql/eql:747]: Expected a map containing
hits: a map containing
total: a map containing
value: <2>
relation: "eq"
sequences: a list containing
0: a map containing
join_keys: a list containing
0: "doom"
events: a list containing
0: a map containing
_index: "my-index-000001"
_source: a map containing
@timestamp: "1234567897"
@timestamp_pretty: "17-12-2022"
event_type: "failure"
bool: <true>
os: "redhat"
port: <1234>
missing_keyword: "yyy"
host: "doom"
id: <17>
version: "20.2.0"
uptime: <15>
_id: "7"
1: a map containing
_index: "my-index-000001"
_source: a map containing
@timestamp: expected "1234567891" but was "1234568896"
@timestamp_pretty: expected "12-12-2022" but was "17-12-2022"
type_test: expected "abc" but was <missing>
event_type: "alert"
os: expected "win10" but was "redhat"
port: expected <1234> but was <65123>
missing_keyword: expected "test" but was <missing>
ip: expected "10.0.0.1" but was <missing>
host: "doom"
id: expected <11> but was <16>
version: expected "1.0.0" but was "20.10.0"
uptime: expected <0> but was <missing>
bool: <unexpected> but was <true>
_id: expected "1" but was "6"
2: a map containing
_index: expected "my-index-000001" but was "my-index-000002"
_source: a map containing
@timestamp: expected "1234568896" but was "1234568996"
@timestamp_pretty: expected "17-12-2022" but was "2022-12-17"
event_type: "alert"
bool: <true>
os: expected "redhat" but was <missing>
port: <65123>
host: "doom"
id: expected <16> but was <26>
version: expected "20.10.0" but was <missing>
ip: <unexpected> but was "10.0.0.5"
op_sys: <unexpected> but was "redhat"
_id: "6"
1: a map containing
join_keys: a list containing
0: "farcry"
events: a list containing
0: a map containing
_index: "my-index-000001"
_source: a map containing
@timestamp: "1234567893"
@timestamp_pretty: "12-12-2022"
event_type: "alert"
type_test: "abc"
bool: <false>
os: "win10"
port: <1234>
host: "farcry"
id: <13>
version: "2.0.0"
uptime: <1>
_id: "3"
1: a map containing
_index: "my-index-000001"
_source: a map containing
@timestamp: "1234567893"
event_type: "alert"
bool: <true>
os: "win10"
port: <1234>
missing_keyword: null
ip: "10.0.0.5"
host: "farcry"
id: <110>
version: "1.2.3"
uptime: <1>
_id: "10"
2: a map containing
_index: "my-index-000003"
_source: a map containing
@timestamp: "1334567893"
event_type: "alert"
bool: <true>
os: "win10"
host: "farcry"
id: <33>
_id: "3"
is_running: <false>
took: <61>
is_partial: <false>
timed_out: <false>
at __randomizedtesting.SeedInfo.seed([206E917A70AC9100:A83AAEA0DE50FCF8]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:572)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:524)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.AssertionError: Expected a map containing
hits: a map containing
total: a map containing
value: <2>
relation: "eq"
sequences: a list containing
0: a map containing
join_keys: a list containing
0: "doom"
events: a list containing
0: a map containing
_index: "my-index-000001"
_source: a map containing
@timestamp: "1234567897"
@timestamp_pretty: "17-12-2022"
event_type: "failure"
bool: <true>
os: "redhat"
port: <1234>
missing_keyword: "yyy"
host: "doom"
id: <17>
version: "20.2.0"
uptime: <15>
_id: "7"
1: a map containing
_index: "my-index-000001"
_source: a map containing
@timestamp: expected "1234567891" but was "1234568896"
@timestamp_pretty: expected "12-12-2022" but was "17-12-2022"
type_test: expected "abc" but was <missing>
event_type: "alert"
os: expected "win10" but was "redhat"
port: expected <1234> but was <65123>
missing_keyword: expected "test" but was <missing>
ip: expected "10.0.0.1" but was <missing>
host: "doom"
id: expected <11> but was <16>
version: expected "1.0.0" but was "20.10.0"
uptime: expected <0> but was <missing>
bool: <unexpected> but was <true>
_id: expected "1" but was "6"
2: a map containing
_index: expected "my-index-000001" but was "my-index-000002"
_source: a map containing
@timestamp: expected "1234568896" but was "1234568996"
@timestamp_pretty: expected "17-12-2022" but was "2022-12-17"
event_type: "alert"
bool: <true>
os: expected "redhat" but was <missing>
port: <65123>
host: "doom"
id: expected <16> but was <26>
version: expected "20.10.0" but was <missing>
ip: <unexpected> but was "10.0.0.5"
op_sys: <unexpected> but was "redhat"
_id: "6"
1: a map containing
join_keys: a list containing
0: "farcry"
events: a list containing
0: a map containing
_index: "my-index-000001"
_source: a map containing
@timestamp: "1234567893"
@timestamp_pretty: "12-12-2022"
event_type: "alert"
type_test: "abc"
bool: <false>
os: "win10"
port: <1234>
host: "farcry"
id: <13>
version: "2.0.0"
uptime: <1>
_id: "3"
1: a map containing
_index: "my-index-000001"
_source: a map containing
@timestamp: "1234567893"
event_type: "alert"
bool: <true>
os: "win10"
port: <1234>
missing_keyword: null
ip: "10.0.0.5"
host: "farcry"
id: <110>
version: "1.2.3"
uptime: <1>
_id: "10"
2: a map containing
_index: "my-index-000003"
_source: a map containing
@timestamp: "1334567893"
event_type: "alert"
bool: <true>
os: "win10"
host: "farcry"
id: <33>
_id: "3"
is_running: <false>
took: <61>
is_partial: <false>
timed_out: <false>
at org.elasticsearch.test.MapMatcher.assertMap(MapMatcher.java:82)
at org.elasticsearch.test.MapMatcher.assertMap(MapMatcher.java:65)
at org.elasticsearch.test.rest.yaml.section.MatchAssertion.doAssert(MatchAssertion.java:94)
at org.elasticsearch.test.rest.yaml.section.Assertion.execute(Assertion.java:65)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:552)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:524)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95975 | https://github.com/elastic/elasticsearch/pull/98112 | 644536ff9909decf891539e383d8f7a5687484eb | 5ba98c569e0b6b636496ab4602c305d497d9ebc5 | 2023-05-10T08:11:05Z | java | 2023-08-02T13:58:52Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,972 | ["server/src/main/java/org/elasticsearch/common/logging/HeaderWarning.java", "server/src/test/java/org/elasticsearch/common/logging/HeaderWarningTests.java", "test/yaml-rest-runner/src/main/java/org/elasticsearch/test/rest/yaml/section/DoSection.java"] | Legitimate warning header leads to StackOverflowError | ### Elasticsearch Version
`main`
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
`Linux kore 6.1.25-1-MANJARO #1 SMP PREEMPT_DYNAMIC Thu Apr 20 13:48:36 UTC 2023 x86_64 GNU/Linux`
### Problem Description
While working on #95666, I encountered a test failure because the following warning message was emitted by `MetadataIndexTemplateService`:
```
legacy template [global] has index patterns [*] matching patterns from existing composable templates [.deprecation-indexing-template,.fleet-file-data,.fleet-files,.ml-anomalies-,.ml-notifications-000002,.ml-state,.ml-stats,.monitoring-beats-mb,.monitoring-ent-search-mb,.monitoring-es-mb,.monitoring-kibana-mb,.monitoring-logstash-mb,.profiling-ilm-lock,.slm-history,.watch-history-16,behavioral_analytics-events-default,ilm-history,logs,metrics,profiling-events,profiling-executables,profiling-metrics,profiling-returnpads-private,profiling-sq-executables,profiling-sq-leafframes,profiling-stackframes,profiling-stacktraces,profiling-symbols,synthetics] with patterns (.deprecation-indexing-template => [.logs-deprecation.*],.fleet-file-data => [.fleet-file-data-*-*],.fleet-files => [.fleet-files-*-*],.ml-anomalies- => [.ml-anomalies-*],.ml-notifications-000002 => [.ml-notifications-000002],.ml-state => [.ml-state*],.ml-stats => [.ml-stats-*],.monitoring-beats-mb => [.monitoring-beats-8-*],.monitoring-ent-search-mb => [.monitoring-ent-search-8-*],.monitoring-es-mb => [.monitoring-es-8-*],.monitoring-kibana-mb => [.monitoring-kibana-8-*],.monitoring-logstash-mb => [.monitoring-logstash-8-*],.profiling-ilm-lock => [.profiling-ilm-lock*],.slm-history => [.slm-history-5*],.watch-history-16 => [.watcher-history-16*],behavioral_analytics-events-default => [behavioral_analytics-events-*],ilm-history => [ilm-history-5*],logs => [logs-*-*],metrics => [metrics-*-*],profiling-events => [profiling-events*],profiling-executables => [profiling-executables*],profiling-metrics => [profiling-metrics*],profiling-returnpads-private => [.profiling-returnpads-private*],profiling-sq-executables => [.profiling-sq-executables*],profiling-sq-leafframes => [.profiling-sq-leafframes*],profiling-stackframes => [profiling-stackframes*],profiling-stacktraces => [profiling-stacktraces*],profiling-symbols => [.profiling-symbols*],synthetics => [synthetics-*-*]); this template [global] may be ignored in favor of a composable template at index creation time
```
This happened here:
https://github.com/elastic/elasticsearch/blob/86f37160ae3c24c4dcaaf0b41637136275a9fdca/server/src/main/java/org/elasticsearch/cluster/metadata/MetadataIndexTemplateService.java#L1059-L1060
and attempting to emit a warning header lead to:
```
» [2023-05-10T07:36:15,606][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [v8.9.0-remote-0] fatal error in thread [elasticsearch[v8.9.0-remote-0][masterService#updateTask][T#1]], exiting java.lang.StackOverflowError
» at java.base/java.util.regex.Pattern$GroupHead.match(Pattern.java:4828)
» at java.base/java.util.regex.Pattern$Loop.match(Pattern.java:4937)
» at java.base/java.util.regex.Pattern$GroupTail.match(Pattern.java:4859)
» at java.base/java.util.regex.Pattern$BranchConn.match(Pattern.java:4737)
» at java.base/java.util.regex.Pattern$BmpCharProperty.match(Pattern.java:3993)
» at java.base/java.util.regex.Pattern$Branch.match(Pattern.java:4773)
» at java.base/java.util.regex.Pattern$GroupHead.match(Pattern.java:4828)
» at java.base/java.util.regex.Pattern$Loop.match(Pattern.java:4937)
» at java.base/java.util.regex.Pattern$GroupTail.match(Pattern.java:4859)
[...]
```
The `StackOverflowError` is caused by the following assertion:
https://github.com/elastic/elasticsearch/blob/86f37160ae3c24c4dcaaf0b41637136275a9fdca/server/src/main/java/org/elasticsearch/common/logging/HeaderWarning.java#L333
(the following line is probably also problematic)
### Steps to Reproduce
This is a test case that reproduces the issue:
```java
public class HeaderWarningTests extends ESTestCase {
public void testAddComplexWarning() {
final int maxWarningHeaderCount = 2;
Settings settings = Settings.builder().put("http.max_warning_header_count", maxWarningHeaderCount).build();
ThreadContext threadContext = new ThreadContext(settings);
final Set<ThreadContext> threadContexts = Collections.singleton(threadContext);
HeaderWarning.addWarning(
threadContexts,
"legacy template [global] has index patterns [*] matching patterns from existing composable templates " +
"[.deprecation-indexing-template,.fleet-file-data,.fleet-files,.ml-anomalies-,.ml-notifications-000002,.ml-state," +
".ml-stats,.monitoring-beats-mb,.monitoring-ent-search-mb,.monitoring-es-mb,.monitoring-kibana-mb," +
".monitoring-logstash-mb,.profiling-ilm-lock,.slm-history,.watch-history-16,behavioral_analytics-events-default," +
"ilm-history,logs,metrics,profiling-events,profiling-executables,profiling-metrics,profiling-returnpads-private," +
"profiling-sq-executables,profiling-sq-leafframes,profiling-stackframes,profiling-stacktraces," +
"profiling-symbols,synthetics] with patterns (.deprecation-indexing-template => [.logs-deprecation.*]," +
".fleet-file-data => [.fleet-file-data-*-*],.fleet-files => [.fleet-files-*-*],.ml-anomalies- => [.ml-anomalies-*]," +
".ml-notifications-000002 => [.ml-notifications-000002],.ml-state => [.ml-state*],.ml-stats => [.ml-stats-*]," +
".monitoring-beats-mb => [.monitoring-beats-8-*],.monitoring-ent-search-mb => [.monitoring-ent-search-8-*]," +
".monitoring-es-mb => [.monitoring-es-8-*],.monitoring-kibana-mb => [.monitoring-kibana-8-*]," +
".monitoring-logstash-mb => [.monitoring-logstash-8-*],.profiling-ilm-lock => [.profiling-ilm-lock*]," +
".slm-history => [.slm-history-5*],.watch-history-16 => [.watcher-history-16*]," +
"behavioral_analytics-events-default => [behavioral_analytics-events-*],ilm-history => [ilm-history-5*]," +
"logs => [logs-*-*],metrics => [metrics-*-*],profiling-events => [profiling-events*],profiling-executables => " +
"[profiling-executables*],profiling-metrics => [profiling-metrics*],profiling-returnpads-private => " +
"[.profiling-returnpads-private*],profiling-sq-executables => [.profiling-sq-executables*]," +
"profiling-sq-leafframes => [.profiling-sq-leafframes*],profiling-stackframes => [profiling-stackframes*]," +
"profiling-stacktraces => [profiling-stacktraces*],profiling-symbols => [.profiling-symbols*],synthetics => " +
"[synthetics-*-*]); this template [global] may be ignored in favor of a composable template at index creation time"
);
final Map<String, List<String>> responseHeaders = threadContext.getResponseHeaders();
assertThat(responseHeaders.size(), equalTo(1));
final List<String> responses = responseHeaders.get("Warning");
assertThat(responses, hasSize(1));
assertThat(responses.get(0), warningValueMatcher);
assertThat(responses.get(0), containsString("\"legacy template [global] has index patterns"));
assertThat(responses.get(0), containsString(Integer.toString(299)));
}
}
```
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/95972 | https://github.com/elastic/elasticsearch/pull/96409 | 78667b897b56127227e45ca6ae40b6bceee799f5 | ef7a6e87524fb87ab8be75b5c533077d80cdb415 | 2023-05-10T06:26:37Z | java | 2023-06-01T12:05:39Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,970 | ["docs/changelog/95987.yaml", "x-pack/plugin/searchable-snapshots/src/internalClusterTest/java/org/elasticsearch/xpack/searchablesnapshots/SearchableSnapshotsIntegTests.java", "x-pack/plugin/searchable-snapshots/src/internalClusterTest/java/org/elasticsearch/xpack/searchablesnapshots/recovery/SearchableSnapshotRecoveryStateIntegrationTests.java", "x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/store/SearchableSnapshotDirectory.java", "x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/store/input/CachedBlobContainerIndexInput.java"] | [CI] SearchableSnapshotsIntegTests testCreateAndRestoreSearchableSnapshot failing | This failed on my PR but it also failed on main
https://gradle-enterprise.elastic.co/s/f7u3hmmpeq4ea/tests/:x-pack:plugin:searchable-snapshots:internalClusterTest/org.elasticsearch.xpack.searchablesnapshots.SearchableSnapshotsIntegTests/testCreateAndRestoreSearchableSnapshot?top-execution=1
**Build scan:**
https://gradle-enterprise.elastic.co/s/tmgmqv3w6wqbi/tests/:x-pack:plugin:searchable-snapshots:internalClusterTest/org.elasticsearch.xpack.searchablesnapshots.SearchableSnapshotsIntegTests/testCreateAndRestoreSearchableSnapshot
**Reproduction line:**
```
./gradlew ':x-pack:plugin:searchable-snapshots:internalClusterTest' --tests "org.elasticsearch.xpack.searchablesnapshots.SearchableSnapshotsIntegTests.testCreateAndRestoreSearchableSnapshot" -Dtests.seed=F254F4CE380F344 -Dtests.locale=ko -Dtests.timezone=Pacific/Tahiti -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.searchablesnapshots.SearchableSnapshotsIntegTests&tests.test=testCreateAndRestoreSearchableSnapshot
**Failure excerpt:**
```
java.lang.AssertionError: {
"id" : 0,
"type" : "SNAPSHOT",
"stage" : "DONE",
"primary" : true,
"start_time" : "2023-05-10T02:44:59.350Z",
"start_time_in_millis" : 1683686699350,
"stop_time" : "2023-05-10T02:44:59.494Z",
"stop_time_in_millis" : 1683686699494,
"total_time" : "144ms",
"total_time_in_millis" : 144,
"source" : {
"repository" : "WXIUlVPqla",
"snapshot" : "ztjlngbijj",
"version" : "8.9.0",
"index" : "bzgoilgdco",
"restoreUUID" : "_no_api_"
},
"target" : {
"id" : "j9x9FzydQdGKjmyyhRU_AA",
"host" : "127.0.0.1",
"transport_address" : "127.0.0.1:26622",
"ip" : "127.0.0.1",
"name" : "node_s1"
},
"index" : {
"size" : {
"total" : "56.9kb",
"total_in_bytes" : 58266,
"reused" : "1kb",
"reused_in_bytes" : 1080,
"recovered" : "55.4kb",
"recovered_in_bytes" : 56798,
"recovered_from_snapshot" : "55.4kb",
"recovered_from_snapshot_in_bytes" : 56798,
"percent" : "99.3%"
},
"files" : {
"total" : 7,
"reused" : 3,
"recovered" : 3,
"percent" : "75.0%"
},
"total_time" : "122ms",
"total_time_in_millis" : 122,
"source_throttle_time" : "-1",
"source_throttle_time_in_millis" : 0,
"target_throttle_time" : "-1",
"target_throttle_time_in_millis" : 0
},
"translog" : {
"recovered" : 0,
"total" : 0,
"percent" : "100.0%",
"total_on_start" : 0,
"total_time" : "33ms",
"total_time_in_millis" : 33
},
"verify_index" : {
"check_index_time" : "0s",
"check_index_time_in_millis" : 0,
"total_time" : "0s",
"total_time_in_millis" : 0
}
}
Expected: <4>
but: was <3>
at __randomizedtesting.SeedInfo.seed([F254F4CE380F344:854638377017A2F7]:0)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.elasticsearch.xpack.searchablesnapshots.BaseSearchableSnapshotsIntegTestCase.lambda$assertRecoveryStats$2(BaseSearchableSnapshotsIntegTestCase.java:330)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1158)
at org.elasticsearch.xpack.searchablesnapshots.BaseSearchableSnapshotsIntegTestCase.assertRecoveryStats(BaseSearchableSnapshotsIntegTestCase.java:323)
at org.elasticsearch.xpack.searchablesnapshots.SearchableSnapshotsIntegTests.testCreateAndRestoreSearchableSnapshot(SearchableSnapshotsIntegTests.java:293)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95970 | https://github.com/elastic/elasticsearch/pull/95987 | 657efd5aa113d7abab8c10b7ebf388a4acfeb3d8 | cab219252465172a2109a31bd5ac0a92c7f9d794 | 2023-05-10T02:57:52Z | java | 2023-06-26T11:28:52Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,936 | ["x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/ApiKeyBackwardsCompatibilityIT.java"] | [CI] ApiKeyBackwardsCompatibilityIT testCreatingAndUpdatingApiKeys failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/asdl4ohmg4kbo/tests/:x-pack:qa:rolling-upgrade:v7.17.11%23oneThirdUpgradedTest/org.elasticsearch.upgrades.ApiKeyBackwardsCompatibilityIT/testCreatingAndUpdatingApiKeys
**Reproduction line:**
```
./gradlew ':x-pack:qa:rolling-upgrade:v7.17.11#oneThirdUpgradedTest' -Dtests.class="org.elasticsearch.upgrades.ApiKeyBackwardsCompatibilityIT" -Dtests.method="testCreatingAndUpdatingApiKeys" -Dtests.seed=70FA5E0E792F0654 -Dtests.bwc=true -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=sr-Latn-ME -Dtests.timezone=Europe/Vatican -Druntime.java=20
```
**Applicable branches:**
8.8
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.upgrades.ApiKeyBackwardsCompatibilityIT&tests.test=testCreatingAndUpdatingApiKeys
**Failure excerpt:**
```
java.lang.AssertionError:
Expected: a string containing "all nodes must have version [8.8.0] or higher to support remote indices privileges for API keys"
but: was "method [POST], host [http://127.0.0.1:32837], URI [/_security/api_key/grant], status line [HTTP/1.1 400 Bad Request]
{"error":{"root_cause":[{"type":"parse_exception","reason":"failed to parse role [my_role]. unexpected field [remote_indices]"}],"type":"x_content_parse_exception","reason":"[7:541] [grant_api_key_request] failed to parse field [api_key]","caused_by":{"type":"x_content_parse_exception","reason":"[7:541] [api_key_request] failed to parse field [role_descriptors]","caused_by":{"type":"x_content_parse_exception","reason":"[7:541] [role_descriptors] failed to parse field [my_role]","caused_by":{"type":"parse_exception","reason":"failed to parse role [my_role]. unexpected field [remote_indices]"}}}},"status":400}"
at __randomizedtesting.SeedInfo.seed([70FA5E0E792F0654:71D90DD488FB6843]: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.ApiKeyBackwardsCompatibilityIT.testCreatingAndUpdatingApiKeys(ApiKeyBackwardsCompatibilityIT.java:128)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95936 | https://github.com/elastic/elasticsearch/pull/96048 | c244de05db6ddac028ea92d7614d962ffcf0d72f | 385807f9203ebfc18d7d9f5bd1ddb6c6d1c35d32 | 2023-05-09T08:50:24Z | java | 2023-05-12T05:57:48Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,917 | ["x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/entsearch/analytics/behavioral_analytics-events-template.json", "x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/analytics/ingest/AnalyticsEventEmitter.java"] | `EnterpriseSearchRestIT` failure | ### Context
With https://github.com/elastic/elasticsearch/pull/95775, enterprise search adds the `behavioral_analytics-events-final_pipeline` lazily only when the data stream is created. This contradicts a validation that is about to be added within https://github.com/elastic/elasticsearch/pull/95782, which does not allow to install an index template if it refers to a non-existing `default_pipeline` or `final_pipeline`.
As agreed with @jimczi, we will disable `EnterpriseSearchRestIT` for now, so that it doesn't block https://github.com/elastic/elasticsearch/pull/95782 and figure out how to handle that later on.
One optional solution we discussed is changing [`behavioral_analytics-events-final_pipeline`](https://github.com/elastic/elasticsearch/blob/f02e9f9c0ad03ff874368cc24f0e287fe43953b2/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/entsearch/analytics/behavioral_analytics-events-final_pipeline.json) to contain:
```
{
"processors": [
{
"pipeline" : {
"name": "lazily-added",
"ignore_missing_pipeline": true,
"description": "The actual pipeline, which is installed lazily"
}
}
]
}
```
and install the `lazily-added` upon the proper trigger (data stream creation or other).
Note that while this will prevent dependency-related errors, it may still imply there is an undesirable race condition between the installation of the ingest pipeline and the referring index template.
### CI Link
https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+pull-request+part-2/33583/console
### Repro line
./gradlew ':x-pack:plugin:ent-search:qa:rest:yamlRestTest' --tests "org.elasticsearch.xpack.entsearch.EnterpriseSearchRestIT.test {p0=entsearch/80_behavioral_analytics_delete/Delete Analytics Collection - Analytics Collection does not exist}" -Dtests.seed=714C8C6B612820A4
### Does it reproduce?
Yes
### Applicable branches
eyalkoren:ingest-pipeline-registry
### Failure history
_No response_
### Failure excerpt
```
"type" : "status_exception",
"reason" : "error while creating analytics collection [my-test-analytics-collection]",
"caused_by" : {
"type" : "illegal_argument_exception",
"reason" : "no matching index template found for data stream [behavioral_analytics-events-my-test-analytics-collection]",
"stack_trace" : "java.lang.IllegalArgumentException: no matching index template found for data stream [behavioral_analytics-events-my-test-analytics-collection] |
| at [email protected]/org.elasticsearch.cluster.metadata.MetadataCreateDataStreamService.lookupTemplateForDataStream(MetadataCreateDataStreamService.java:307) |
| at [email protected]/org.elasticsearch.cluster.metadata.MetadataCreateDataStreamService.createDataStream(MetadataCreateDataStreamService.java:221) |
| at [email protected]/org.elasticsearch.cluster.metadata.MetadataCreateDataStreamService.createDataStream(MetadataCreateDataStreamService.java:168) |
...
```
| https://github.com/elastic/elasticsearch/issues/95917 | https://github.com/elastic/elasticsearch/pull/96001 | 6e632130d58e940d8eb8a2fa02efcafee5249484 | 94279ff2e71c666851ac95c4704706c94e76bd73 | 2023-05-08T13:01:26Z | java | 2023-05-10T17:03:01Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,916 | ["test/framework/src/main/java/org/elasticsearch/search/aggregations/metrics/AbstractGeoTestCase.java", "x-pack/plugin/spatial/src/internalClusterTest/java/org/elasticsearch/xpack/spatial/search/aggregations/metrics/CartesianCentroidIT.java"] | `CartesianCentroidIT.testMultiValuedField` fails on `8.7` | ### CI Link
https://gradle-enterprise.elastic.co/s/axidmlforgvci
### Repro line
./gradlew ':x-pack:plugin:spatial:internalClusterTest' --tests "org.elasticsearch.xpack.spatial.search.aggregations.metrics.CartesianCentroidIT.testMultiValuedField" \ -Dtests.seed=8668813C5163E0C8 \ -Dtests.locale=mt-MT \ -Dtests.timezone=Europe/Chisinau \ -Druntime.java=20
### Does it reproduce?
Yes
### Applicable branches
8.7
### Failure history
_No response_
### Failure excerpt
```
11:46:03 org.elasticsearch.xpack.spatial.search.aggregations.metrics.CartesianCentroidIT > testMultiValuedField FAILED
11:46:03 java.lang.AssertionError: Mismatching value for 'y' field of centroid
11:46:03 Expected: a numeric value within <2.0313534124233142E27> of <2.031197896205879E32>
11:46:03 but: <2.031353412423314E32> differed by <1.3520268331099276E28> more than delta <2.0313534124233142E27>
11:46:03 at __randomizedtesting.SeedInfo.seed([8668813C5163E0C8:C2B7DE705B53E615]:0)
11:46:03 at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
11:46:03 at org.junit.Assert.assertThat(Assert.java:956)
11:46:03 at org.elasticsearch.search.aggregations.metrics.CentroidAggregationTestBase.assertSameCentroid(CentroidAggregationTestBase.java:160)
11:46:03 at org.elasticsearch.search.aggregations.metrics.CentroidAggregationTestBase.testMultiValuedField(CentroidAggregationTestBase.java:128)
11:46:03 at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
11:46:03 at java.base/java.lang.reflect.Method.invoke(Method.java:578)
11:46:03 at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
11:46:03 at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
11:46:03 at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
11:46:03 at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
11:46:03 at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
11:46:03 at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
11:46:03 at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
11:46:03 at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
11:46:03 at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
11:46:03 at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
11:46:03 at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
11:46:03 at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
11:46:03 at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
11:46:03 at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
11:46:03 at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
11:46:03 at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
11:46:03 at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
11:46:03 at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
11:46:03 at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
11:46:03 at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
11:46:03 at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
11:46:03 at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
11:46:03 at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
11:46:03 at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
11:46:03 at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
11:46:03 at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
11:46:03 at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
11:46:03 at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
11:46:03 at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
11:46:03 at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
11:46:03 at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
11:46:03 at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
11:46:03 at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
11:46:03 at java.base/java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95916 | https://github.com/elastic/elasticsearch/pull/95980 | 65f13217e2304a034387511a8b18fdbcc839385f | 6e632130d58e940d8eb8a2fa02efcafee5249484 | 2023-05-08T12:11:57Z | java | 2023-05-10T16:10:08Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,875 | ["x-pack/plugin/watcher/src/internalClusterTest/java/org/elasticsearch/xpack/watcher/actions/TimeThrottleIntegrationTests.java"] | TimeThrottleIntegrationTests testTimeThrottleDefaults failure | ### CI Link
https://gradle-enterprise.elastic.co/s/5myw2twx435xi
### Repro line
`./gradlew ':x-pack:plugin:watcher:internalClusterTest' --tests "org.elasticsearch.xpack.watcher.actions.TimeThrottleIntegrationTests.testTimeThrottleDefaults" -Dtests.seed=EC68403920230004 -Dtests.locale=es -Dtests.timezone=Asia/Oral -Druntime.java=20`
### Does it reproduce?
No
### Applicable branches
main
### Failure history
In the past 7 days this is the first time it's failing `https://gradle-enterprise.elastic.co/scans/tests?search.timeZoneId=Europe/Bucharest&tests.container=org.elasticsearch.xpack.watcher.actions.TimeThrottleIntegrationTests&tests.test=testTimeThrottleDefaults`
### Failure excerpt
```
org.elasticsearch.xpack.watcher.actions.TimeThrottleIntegrationTests > testTimeThrottleDefaults FAILED
java.lang.AssertionError:
Expected: is one of {<3L>, <4L>}
but: was <2L>
at __randomizedtesting.SeedInfo.seed([EC68403920230004:504646CBD1BA7D6E]: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.watcher.actions.TimeThrottleIntegrationTests.assertTotalHistoryEntries(TimeThrottleIntegrationTests.java:120)
at org.elasticsearch.xpack.watcher.actions.TimeThrottleIntegrationTests.testTimeThrottleDefaults(TimeThrottleIntegrationTests.java:84)
``` | https://github.com/elastic/elasticsearch/issues/95875 | https://github.com/elastic/elasticsearch/pull/95926 | f8b367d2bc8313502292aeb3adbe35ca2916c2ff | 996f0ed2c7c71dcc4ef4ae52d2ed75f91fe2cf66 | 2023-05-05T11:30:24Z | java | 2023-05-09T18:02:31Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,873 | ["docs/changelog/95874.yaml", "server/src/main/java/org/elasticsearch/common/settings/Setting.java", "server/src/test/java/org/elasticsearch/cluster/coordination/NodeJoinExecutorTests.java"] | Index version compatibility setting does not use its validator | [`Setting.versionSetting`](https://github.com/elastic/elasticsearch/blob/0652a5915586abbcdfdfffa91a391740f0147752/server/src/main/java/org/elasticsearch/common/settings/Setting.java#L1275) (only used by index compatibility setting) does not use the `Validator` passed in - its just discarded. Looks like it's been like this since it was introduced by https://github.com/elastic/elasticsearch/pull/83264 in 8.2.0.
Enabling this causes some tests to fail. Enabling this may cause problems for indexes that have a wonky setting already applied. | https://github.com/elastic/elasticsearch/issues/95873 | https://github.com/elastic/elasticsearch/pull/95874 | e8133edd6c24bb3df16f83fcfe486370bfca791e | 9f0f0fc129bbc42d30f6274d5d0d47ce17719d79 | 2023-05-05T11:19:48Z | java | 2023-05-05T15:14:30Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,846 | ["x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/transport/netty4/SecurityNetty4HttpServerTransportTests.java"] | [CI] SecurityNetty4HttpServerTransportTests testHttpHeaderAuthnFaultyHeaderValidator failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/mnasyj4xcofdg/tests/:x-pack:plugin:security:test/org.elasticsearch.xpack.security.transport.netty4.SecurityNetty4HttpServerTransportTests/testHttpHeaderAuthnFaultyHeaderValidator
**Reproduction line:**
```
./gradlew ':x-pack:plugin:security:test' --tests "org.elasticsearch.xpack.security.transport.netty4.SecurityNetty4HttpServerTransportTests.testHttpHeaderAuthnFaultyHeaderValidator" -Dtests.seed=BE2C3C42D0B1A2EF -Dtests.locale=th-TH-u-nu-thai-x-lvariant-TH -Dtests.timezone=PLT -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.security.transport.netty4.SecurityNetty4HttpServerTransportTests&tests.test=testHttpHeaderAuthnFaultyHeaderValidator
**Failure excerpt:**
```
java.lang.AssertionError:
Expected: an empty collection
but: <[LEAK: ByteBuf.release() was not called before it's garbage-collected. See https://netty.io/wiki/reference-counted-objects.html for more information.
Recent access records:
#1:
Hint: 'pipelining' will handle the message from this point.
io.netty.buffer.AdvancedLeakAwareCompositeByteBuf.touch(AdvancedLeakAwareCompositeByteBuf.java:36)
io.netty.handler.codec.http.HttpObjectAggregator$AggregatedFullHttpMessage.touch(HttpObjectAggregator.java:366)
io.netty.handler.codec.http.HttpObjectAggregator$AggregatedFullHttpRequest.touch(HttpObjectAggregator.java:445)
io.netty.handler.codec.http.HttpObjectAggregator$AggregatedFullHttpRequest.touch(HttpObjectAggregator.java:396)
io.netty.channel.DefaultChannelPipeline.touch(DefaultChannelPipeline.java:116)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:417)
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
org.elasticsearch.http.netty4.Netty4HttpHeaderValidator.channelRead(Netty4HttpHeaderValidator.java:72)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:344)
org.elasticsearch.xpack.security.transport.netty4.SecurityNetty4HttpServerTransportTests.lambda$testAuthnContextWrapping$8(SecurityNetty4HttpServerTransportTests.java:330)
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577)
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:916)
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
java.base/java.lang.Thread.run(Thread.java:1623)
Created at:
io.netty.buffer.AbstractByteBufAllocator.compositeHeapBuffer(AbstractByteBufAllocator.java:214)
io.netty.buffer.AbstractByteBufAllocator.compositeBuffer(AbstractByteBufAllocator.java:204)
io.netty.handler.codec.MessageAggregator.decode(MessageAggregator.java:269)
io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:88)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
org.elasticsearch.http.netty4.Netty4HttpHeaderValidator.forwardData(Netty4HttpHeaderValidator.java:194)
org.elasticsearch.http.netty4.Netty4HttpHeaderValidator.forwardFullRequest(Netty4HttpHeaderValidator.java:137)
org.elasticsearch.http.netty4.Netty4HttpHeaderValidator.lambda$requestStart$1(Netty4HttpHeaderValidator.java:120)
io.netty.util.concurrent.PromiseTask.runTask(PromiseTask.java:98)
io.netty.util.concurrent.PromiseTask.run(PromiseTask.java:106)
io.netty.channel.embedded.EmbeddedEventLoop.runTasks(EmbeddedEventLoop.java:74)
io.netty.channel.embedded.EmbeddedChannel.runPendingTasks(EmbeddedChannel.java:597)
io.netty.channel.embedded.EmbeddedChannel$EmbeddedUnsafe$1.beginRead(EmbeddedChannel.java:883)
io.netty.channel.DefaultChannelPipeline$HeadContext.read(DefaultChannelPipeline.java:1362)
io.netty.channel.AbstractChannelHandlerContext.invokeRead(AbstractChannelHandlerContext.java:835)
io.netty.channel.AbstractChannelHandlerContext.read(AbstractChannelHandlerContext.java:814)
io.netty.handler.codec.http.HttpContentDecoder.channelReadComplete(HttpContentDecoder.java:197)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelReadComplete(AbstractChannelHandlerContext.java:486)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelReadComplete(AbstractChannelHandlerContext.java:463)
io.netty.channel.AbstractChannelHandlerContext.fireChannelReadComplete(AbstractChannelHandlerContext.java:456)
io.netty.channel.DefaultChannelPipeline$HeadContext.channelReadComplete(DefaultChannelPipeline.java:1415)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelReadComplete(AbstractChannelHandlerContext.java:482)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelReadComplete(AbstractChannelHandlerContext.java:463)
io.netty.channel.DefaultChannelPipeline.fireChannelReadComplete(DefaultChannelPipeline.java:925)
io.netty.channel.embedded.EmbeddedChannel.flushInbound(EmbeddedChannel.java:386)
io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:347)
org.elasticsearch.xpack.security.transport.netty4.SecurityNetty4HttpServerTransportTests.lambda$testAuthnContextWrapping$8(SecurityNetty4HttpServerTransportTests.java:325)
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577)
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:916)
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
java.base/java.lang.Thread.run(Thread.java:1623)]>
at __randomizedtesting.SeedInfo.seed([BE2C3C42D0B1A2EF:3B61AC548FF79F2E]:0)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.test.ESTestCase.checkStaticState(ESTestCase.java:685)
at org.elasticsearch.test.ESTestCase.after(ESTestCase.java:476)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:1004)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95846 | https://github.com/elastic/elasticsearch/pull/95913 | a876ee61f391bf3e94c6d21ce3d6947481a150e2 | badcc8f39618a51f8be5f9e1123c86931c4cdf59 | 2023-05-04T19:58:14Z | java | 2023-05-08T12:48:18Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,844 | ["x-pack/plugin/ml/qa/native-multi-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/ml/integration/ScheduledEventsIT.java"] | [CI] ScheduledEventsIT testScheduledEvents failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/5j3jpwqvko5gk/tests/:x-pack:plugin:ml:qa:native-multi-node-tests:javaRestTest/org.elasticsearch.xpack.ml.integration.ScheduledEventsIT/testScheduledEvents
**Reproduction line:**
```
./gradlew ':x-pack:plugin:ml:qa:native-multi-node-tests:javaRestTest' --tests "org.elasticsearch.xpack.ml.integration.ScheduledEventsIT.testScheduledEvents" -Dtests.seed=998D58FCF337DF3E -Dtests.locale=es-UY -Dtests.timezone=Pacific/Pago_Pago -Druntime.java=17
```
**Applicable branches:**
8.7
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.ml.integration.ScheduledEventsIT&tests.test=testScheduledEvents
**Failure excerpt:**
```
org.elasticsearch.action.FailedNodeException: Failed node [gVGASryzSyqAVfaLDbeGXw]
at __randomizedtesting.SeedInfo.seed([998D58FCF337DF3E:C7206A3205827B0D]:0)
at org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction.onFailure(TransportTasksAction.java:312)
at org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction$1.handleException(TransportTasksAction.java:290)
at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1377)
at org.elasticsearch.transport.TransportService$5.doRun(TransportService.java:944)
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:958)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.lang.Thread.run(Thread.java:833)
Caused by: org.elasticsearch.transport.SendRequestTransportException: [javaRestTest-2][127.0.0.1:37169][cluster:admin/xpack/ml/job/data/post[n]]
at org.elasticsearch.transport.TransportService.handleInternalSendException(TransportService.java:928)
at org.elasticsearch.transport.TransportService.sendRequestInternal(TransportService.java:905)
at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor$2.sendRequest(SecurityServerTransportInterceptor.java:281)
at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor.sendWithUser(SecurityServerTransportInterceptor.java:421)
at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor.sendRequestInner(SecurityServerTransportInterceptor.java:256)
at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor$1.sendRequest(SecurityServerTransportInterceptor.java:187)
at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:786)
at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:732)
at org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction.start(TransportTasksAction.java:272)
at org.elasticsearch.action.support.tasks.TransportTasksAction.doExecute(TransportTasksAction.java:89)
at org.elasticsearch.xpack.ml.action.TransportJobTaskAction.doExecute(TransportJobTaskAction.java:64)
at org.elasticsearch.xpack.ml.action.TransportJobTaskAction.doExecute(TransportJobTaskAction.java:33)
at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:86)
at org.elasticsearch.action.support.ActionFilter$Simple.apply(ActionFilter.java:53)
at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:84)
at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$applyInternal$3(SecurityActionFilter.java:163)
at org.elasticsearch.action.ActionListener$DelegatingFailureActionListener.onResponse(ActionListener.java:250)
at org.elasticsearch.xpack.security.authz.AuthorizationService.lambda$authorizeAction$6(AuthorizationService.java:436)
at org.elasticsearch.xpack.security.authz.AuthorizationService$AuthorizationResultListener.onResponse(AuthorizationService.java:989)
at org.elasticsearch.xpack.security.authz.AuthorizationService$AuthorizationResultListener.onResponse(AuthorizationService.java:955)
at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31)
at org.elasticsearch.xpack.security.authz.AuthorizationService.lambda$authorizeAction$7(AuthorizationService.java:450)
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:167)
at org.elasticsearch.xpack.security.authz.RBACEngine.authorizeClusterAction(RBACEngine.java:184)
at org.elasticsearch.xpack.security.authz.AuthorizationService.authorizeAction(AuthorizationService.java:440)
at org.elasticsearch.xpack.security.authz.AuthorizationService.maybeAuthorizeRunAs(AuthorizationService.java:416)
at org.elasticsearch.xpack.security.authz.AuthorizationService.lambda$authorize$3(AuthorizationService.java:317)
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:167)
at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31)
at org.elasticsearch.xpack.security.authz.RBACEngine.lambda$resolveAuthorizationInfo$0(RBACEngine.java:150)
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:167)
at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.lambda$getRoles$1(CompositeRolesStore.java:201)
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:167)
at org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.lambda$buildRole$0(RoleReferenceIntersection.java:49)
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:167)
at org.elasticsearch.action.support.GroupedActionListener.onResponse(GroupedActionListener.java:55)
at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.buildRoleFromRoleReference(CompositeRolesStore.java:299)
at org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.lambda$buildRole$1(RoleReferenceIntersection.java:53)
at java.lang.Iterable.forEach(Iterable.java:75)
at org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.buildRole(RoleReferenceIntersection.java:53)
at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.getRole(CompositeRolesStore.java:216)
at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.getRoles(CompositeRolesStore.java:191)
at org.elasticsearch.xpack.security.authz.RBACEngine.resolveAuthorizationInfo(RBACEngine.java:147)
at org.elasticsearch.xpack.security.authz.AuthorizationService.authorize(AuthorizationService.java:319)
at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$applyInternal$4(SecurityActionFilter.java:159)
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:167)
at org.elasticsearch.action.ActionListener$MappedActionListener.onResponse(ActionListener.java:132)
at org.elasticsearch.action.ActionListener$RunBeforeActionListener.onResponse(ActionListener.java:440)
at org.elasticsearch.action.ActionListener$7.onResponse(ActionListener.java:546)
at org.elasticsearch.xpack.security.authc.AuthenticatorChain.writeAuthToContext(AuthenticatorChain.java:346)
at org.elasticsearch.xpack.security.authc.AuthenticatorChain.finishAuthentication(AuthenticatorChain.java:325)
at org.elasticsearch.xpack.security.authc.AuthenticatorChain.maybeLookupRunAsUser(AuthenticatorChain.java:202)
at org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$doAuthenticate$1(AuthenticatorChain.java:121)
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:167)
at org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:141)
at org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$4(AuthenticatorChain.java:188)
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:167)
at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.lambda$consumeToken$5(RealmsAuthenticator.java:218)
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:167)
at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31)
at org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:141)
at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.lambda$consumeToken$1(RealmsAuthenticator.java:163)
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:167)
at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.lambda$authenticateWithCache$1(CachingUsernamePasswordRealm.java:155)
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:167)
at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.handleCachedAuthentication(CachingUsernamePasswordRealm.java:242)
at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.lambda$authenticateWithCache$2(CachingUsernamePasswordRealm.java:139)
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:167)
at org.elasticsearch.action.ActionListener.completeWith(ActionListener.java:510)
at org.elasticsearch.common.util.concurrent.ListenableFuture.notifyListenerDirectly(ListenableFuture.java:111)
at org.elasticsearch.common.util.concurrent.ListenableFuture.addListener(ListenableFuture.java:55)
at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.authenticateWithCache(CachingUsernamePasswordRealm.java:134)
at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.authenticate(CachingUsernamePasswordRealm.java:105)
at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.lambda$consumeToken$4(RealmsAuthenticator.java:147)
at org.elasticsearch.xpack.core.common.IteratingActionListener.run(IteratingActionListener.java:117)
at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.consumeToken(RealmsAuthenticator.java:234)
at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.authenticate(RealmsAuthenticator.java:83)
at org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$5(AuthenticatorChain.java:180)
at org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:135)
at org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$5(AuthenticatorChain.java:158)
at org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:135)
at org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$5(AuthenticatorChain.java:158)
at org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:135)
at org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$5(AuthenticatorChain.java:158)
at org.elasticsearch.xpack.core.common.IteratingActionListener.run(IteratingActionListener.java:117)
at org.elasticsearch.xpack.security.authc.AuthenticatorChain.doAuthenticate(AuthenticatorChain.java:136)
at org.elasticsearch.xpack.security.authc.AuthenticatorChain.authenticateAsync(AuthenticatorChain.java:95)
at org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:171)
at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.applyInternal(SecurityActionFilter.java:155)
at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.apply(SecurityActionFilter.java:114)
at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:84)
at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:61)
at org.elasticsearch.tasks.TaskManager.registerAndExecute(TaskManager.java:203)
at org.elasticsearch.client.internal.node.NodeClient.executeLocally(NodeClient.java:112)
at org.elasticsearch.client.internal.node.NodeClient.doExecute(NodeClient.java:90)
at org.elasticsearch.client.internal.support.AbstractClient.execute(AbstractClient.java:380)
at org.elasticsearch.client.internal.FilterClient.doExecute(FilterClient.java:57)
at org.elasticsearch.client.internal.support.AbstractClient$1.doExecute(AbstractClient.java:1727)
at org.elasticsearch.client.internal.support.AbstractClient.execute(AbstractClient.java:380)
at org.elasticsearch.client.internal.FilterClient.doExecute(FilterClient.java:57)
at org.elasticsearch.client.internal.support.AbstractClient.execute(AbstractClient.java:380)
at org.elasticsearch.client.internal.support.AbstractClient.execute(AbstractClient.java:366)
at org.elasticsearch.xpack.ml.integration.MlNativeAutodetectIntegTestCase.postData(MlNativeAutodetectIntegTestCase.java:224)
at org.elasticsearch.xpack.ml.integration.ScheduledEventsIT.runJob(ScheduledEventsIT.java:476)
at org.elasticsearch.xpack.ml.integration.ScheduledEventsIT.testScheduledEvents(ScheduledEventsIT.java:90)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 16384 out of bounds for length 16384
at org.elasticsearch.common.io.stream.RecyclerBytesStreamOutput.writeByte(RecyclerBytesStreamOutput.java:60)
at org.elasticsearch.common.io.stream.StreamOutput.writeBoolean(StreamOutput.java:473)
at org.elasticsearch.xpack.core.ml.action.PostDataAction$Request.writeTo(PostDataAction.java:128)
at org.elasticsearch.action.support.tasks.TransportTasksAction$NodeTaskRequest.writeTo(TransportTasksAction.java:361)
at org.elasticsearch.transport.OutboundMessage.serialize(OutboundMessage.java:70)
at org.elasticsearch.transport.OutboundHandler.sendMessage(OutboundHandler.java:178)
at org.elasticsearch.transport.OutboundHandler.sendRequest(OutboundHandler.java:105)
at org.elasticsearch.transport.TcpTransport$NodeChannels.sendRequest(TcpTransport.java:343)
at org.elasticsearch.transport.TransportService.sendRequestInternal(TransportService.java:903)
at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor$2.sendRequest(SecurityServerTransportInterceptor.java:281)
at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor.sendWithUser(SecurityServerTransportInterceptor.java:421)
at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor.sendRequestInner(SecurityServerTransportInterceptor.java:256)
at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor$1.sendRequest(SecurityServerTransportInterceptor.java:187)
at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:786)
at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:732)
at org.elasticsearch.action.support.tasks.TransportTasksAction$AsyncAction.start(TransportTasksAction.java:272)
at org.elasticsearch.action.support.tasks.TransportTasksAction.doExecute(TransportTasksAction.java:89)
at org.elasticsearch.xpack.ml.action.TransportJobTaskAction.doExecute(TransportJobTaskAction.java:64)
at org.elasticsearch.xpack.ml.action.TransportJobTaskAction.doExecute(TransportJobTaskAction.java:33)
at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:86)
at org.elasticsearch.action.support.ActionFilter$Simple.apply(ActionFilter.java:53)
at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:84)
at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$applyInternal$3(SecurityActionFilter.java:163)
at org.elasticsearch.action.ActionListener$DelegatingFailureActionListener.onResponse(ActionListener.java:250)
at org.elasticsearch.xpack.security.authz.AuthorizationService.lambda$authorizeAction$6(AuthorizationService.java:436)
at org.elasticsearch.xpack.security.authz.AuthorizationService$AuthorizationResultListener.onResponse(AuthorizationService.java:989)
at org.elasticsearch.xpack.security.authz.AuthorizationService$AuthorizationResultListener.onResponse(AuthorizationService.java:955)
at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31)
at org.elasticsearch.xpack.security.authz.AuthorizationService.lambda$authorizeAction$7(AuthorizationService.java:450)
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:167)
at org.elasticsearch.xpack.security.authz.RBACEngine.authorizeClusterAction(RBACEngine.java:184)
at org.elasticsearch.xpack.security.authz.AuthorizationService.authorizeAction(AuthorizationService.java:440)
at org.elasticsearch.xpack.security.authz.AuthorizationService.maybeAuthorizeRunAs(AuthorizationService.java:416)
at org.elasticsearch.xpack.security.authz.AuthorizationService.lambda$authorize$3(AuthorizationService.java:317)
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:167)
at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31)
at org.elasticsearch.xpack.security.authz.RBACEngine.lambda$resolveAuthorizationInfo$0(RBACEngine.java:150)
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:167)
at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.lambda$getRoles$1(CompositeRolesStore.java:201)
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:167)
at org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.lambda$buildRole$0(RoleReferenceIntersection.java:49)
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:167)
at org.elasticsearch.action.support.GroupedActionListener.onResponse(GroupedActionListener.java:55)
at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.buildRoleFromRoleReference(CompositeRolesStore.java:299)
at org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.lambda$buildRole$1(RoleReferenceIntersection.java:53)
at java.lang.Iterable.forEach(Iterable.java:75)
at org.elasticsearch.xpack.core.security.authz.store.RoleReferenceIntersection.buildRole(RoleReferenceIntersection.java:53)
at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.getRole(CompositeRolesStore.java:216)
at org.elasticsearch.xpack.security.authz.store.CompositeRolesStore.getRoles(CompositeRolesStore.java:191)
at org.elasticsearch.xpack.security.authz.RBACEngine.resolveAuthorizationInfo(RBACEngine.java:147)
at org.elasticsearch.xpack.security.authz.AuthorizationService.authorize(AuthorizationService.java:319)
at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$applyInternal$4(SecurityActionFilter.java:159)
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:167)
at org.elasticsearch.action.ActionListener$MappedActionListener.onResponse(ActionListener.java:132)
at org.elasticsearch.action.ActionListener$RunBeforeActionListener.onResponse(ActionListener.java:440)
at org.elasticsearch.action.ActionListener$7.onResponse(ActionListener.java:546)
at org.elasticsearch.xpack.security.authc.AuthenticatorChain.writeAuthToContext(AuthenticatorChain.java:346)
at org.elasticsearch.xpack.security.authc.AuthenticatorChain.finishAuthentication(AuthenticatorChain.java:325)
at org.elasticsearch.xpack.security.authc.AuthenticatorChain.maybeLookupRunAsUser(AuthenticatorChain.java:202)
at org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$doAuthenticate$1(AuthenticatorChain.java:121)
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:167)
at org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:141)
at org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$4(AuthenticatorChain.java:188)
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:167)
at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.lambda$consumeToken$5(RealmsAuthenticator.java:218)
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:167)
at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31)
at org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:141)
at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.lambda$consumeToken$1(RealmsAuthenticator.java:163)
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:167)
at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.lambda$authenticateWithCache$1(CachingUsernamePasswordRealm.java:155)
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:167)
at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.handleCachedAuthentication(CachingUsernamePasswordRealm.java:242)
at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.lambda$authenticateWithCache$2(CachingUsernamePasswordRealm.java:139)
at org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:167)
at org.elasticsearch.action.ActionListener.completeWith(ActionListener.java:510)
at org.elasticsearch.common.util.concurrent.ListenableFuture.notifyListenerDirectly(ListenableFuture.java:111)
at org.elasticsearch.common.util.concurrent.ListenableFuture.addListener(ListenableFuture.java:55)
at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.authenticateWithCache(CachingUsernamePasswordRealm.java:134)
at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.authenticate(CachingUsernamePasswordRealm.java:105)
at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.lambda$consumeToken$4(RealmsAuthenticator.java:147)
at org.elasticsearch.xpack.core.common.IteratingActionListener.run(IteratingActionListener.java:117)
at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.consumeToken(RealmsAuthenticator.java:234)
at org.elasticsearch.xpack.security.authc.RealmsAuthenticator.authenticate(RealmsAuthenticator.java:83)
at org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$5(AuthenticatorChain.java:180)
at org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:135)
at org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$5(AuthenticatorChain.java:158)
at org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:135)
at org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$5(AuthenticatorChain.java:158)
at org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:135)
at org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$5(AuthenticatorChain.java:158)
at org.elasticsearch.xpack.core.common.IteratingActionListener.run(IteratingActionListener.java:117)
at org.elasticsearch.xpack.security.authc.AuthenticatorChain.doAuthenticate(AuthenticatorChain.java:136)
at org.elasticsearch.xpack.security.authc.AuthenticatorChain.authenticateAsync(AuthenticatorChain.java:95)
at org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:171)
at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.applyInternal(SecurityActionFilter.java:155)
at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.apply(SecurityActionFilter.java:114)
at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:84)
at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:61)
at org.elasticsearch.tasks.TaskManager.registerAndExecute(TaskManager.java:203)
at org.elasticsearch.client.internal.node.NodeClient.executeLocally(NodeClient.java:112)
at org.elasticsearch.client.internal.node.NodeClient.doExecute(NodeClient.java:90)
at org.elasticsearch.client.internal.support.AbstractClient.execute(AbstractClient.java:380)
at org.elasticsearch.client.internal.FilterClient.doExecute(FilterClient.java:57)
at org.elasticsearch.client.internal.support.AbstractClient$1.doExecute(AbstractClient.java:1727)
at org.elasticsearch.client.internal.support.AbstractClient.execute(AbstractClient.java:380)
at org.elasticsearch.client.internal.FilterClient.doExecute(FilterClient.java:57)
at org.elasticsearch.client.internal.support.AbstractClient.execute(AbstractClient.java:380)
at org.elasticsearch.client.internal.support.AbstractClient.execute(AbstractClient.java:366)
at org.elasticsearch.xpack.ml.integration.MlNativeAutodetectIntegTestCase.postData(MlNativeAutodetectIntegTestCase.java:224)
at org.elasticsearch.xpack.ml.integration.ScheduledEventsIT.runJob(ScheduledEventsIT.java:476)
at org.elasticsearch.xpack.ml.integration.ScheduledEventsIT.testScheduledEvents(ScheduledEventsIT.java:90)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/95844 | https://github.com/elastic/elasticsearch/pull/101784 | 76ab37b35d9b423dfe85b3b21b2fada2826f4994 | 311c248e0e2f8a99b9aac59889c57a2cc5543a0b | 2023-05-04T18:58:30Z | java | 2023-11-06T08:50:06Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,842 | ["modules/aggregations/src/yamlRestTest/resources/rest-api-spec/test/aggregations/matrix_stats_multi_value_field.yml"] | [CI] MixedClusterClientYamlTestSuiteIT test {p0=aggregations/matrix_stats_multi_value_field/Unmapped} failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/zt53t7yrrhguu/tests/:qa:mixed-cluster:v8.7.2%23mixedClusterTest/org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT/test%20%7Bp0=aggregations%2Fmatrix_stats_multi_value_field%2FUnmapped%7D
**Reproduction line:**
```
./gradlew ':qa:mixed-cluster:v8.7.2#mixedClusterTest' -Dtests.class="org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT" -Dtests.method="test {p0=aggregations/matrix_stats_multi_value_field/Unmapped}" -Dtests.seed=96C5874C54523485 -Dtests.bwc=true -Dtests.locale=en-ZA -Dtests.timezone=Asia/Thimphu -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
No. I ran it 3 times locally from the `e3bd7d2f6ff6c924d68517fdeefae3129d0c6a1b` commit on main and it passed every time.
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT&tests.test=test%20%7Bp0%3Daggregations/matrix_stats_multi_value_field/Unmapped%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [aggregations/matrix_stats_multi_value_field:35]: expected [2xx] status code but api [index] returned [400 Bad Request] [{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"mapper [vals] cannot be changed from type [long] to [float]","stack_trace":"org.elasticsearch.ElasticsearchException$1: mapper [vals] cannot be changed from type [long] to [float]\n\tat [email protected]/org.elasticsearch.ElasticsearchException.guessRootCauses(ElasticsearchException.java:668)\n\tat [email protected]/org.elasticsearch.ElasticsearchException.generateFailureXContent(ElasticsearchException.java:596)\n\tat [email protected]/org.elasticsearch.rest.RestResponse.build(RestResponse.java:175)\n\tat [email protected]/org.elasticsearch.rest.RestResponse.<init>(RestResponse.java:123)\n\tat [email protected]/org.elasticsearch.rest.RestResponse.<init>(RestResponse.java:102)\n\tat [email protected]/org.elasticsearch.rest.action.RestActionListener.onFailure(RestActionListener.java:55)\n\tat [email protected]/org.elasticsearch.client.internal.node.NodeClient$SafelyWrappedActionListener.onFailure(NodeClient.java:170)\n\tat [email protected]/org.elasticsearch.tasks.TaskManager$1.onFailure(TaskManager.java:218)\n\tat [email protected]/org.elasticsearch.action.bulk.TransportBulkAction.lambda$unwrappingSingleItemBulkResponse$0(TransportBulkAction.java:190)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:167)\n\tat [email protected]/org.elasticsearch.action.ActionListener$RunBeforeActionListener.onResponse(ActionListener.java:440)\n\tat [email protected]/org.elasticsearch.action.ActionListener$7.onResponse(ActionListener.java:546)\n\tat [email protected]/org.elasticsearch.action.bulk.TransportBulkAction$BulkOperation$1.finishHim(TransportBulkAction.java:658)\n\tat [email protected]/org.elasticsearch.action.bulk.TransportBulkAction$BulkOperation$1.onResponse(TransportBulkAction.java:639)\n\tat [email protected]/org.elasticsearch.action.bulk.TransportBulkAction$BulkOperation$1.onResponse(TransportBulkAction.java:628)\n\tat [email protected]/org.elasticsearch.client.internal.node.NodeClient$SafelyWrappedActionListener.onResponse(NodeClient.java:160)\n\tat [email protected]/org.elasticsearch.tasks.TaskManager$1.onResponse(TaskManager.java:209)\n\tat [email protected]/org.elasticsearch.tasks.TaskManager$1.onResponse(TaskManager.java:203)\n\tat [email protected]/org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase.finishOnSuccess(TransportReplicationAction.java:1049)\n\tat [email protected]/org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase$1.handleResponse(TransportReplicationAction.java:961)\n\tat [email protected]/org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase$1.handleResponse(TransportReplicationAction.java:952)\n\tat [email protected]/org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleResponse(TransportService.java:1367)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.processResponse(TransportService.java:1466)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1437)\n\tat [email protected]/org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:41)\n\tat [email protected]/org.elasticsearch.action.support.ChannelActionListener.lambda$onResponse$0(ChannelActionListener.java:38)\n\tat [email protected]/org.elasticsearch.action.ActionListener.run(ActionListener.java:567)\n\tat [email protected]/org.elasticsearch.action.support.ChannelActionListener.onResponse(ChannelActionListener.java:38)\n\tat [email protected]/org.elasticsearch.action.support.ChannelActionListener.onResponse(ChannelActionListener.java:20)\n\tat [email protected]/org.elasticsearch.action.ActionListener$RunBeforeActionListener.onResponse(ActionListener.java:440)\n\tat [email protected]/org.elasticsearch.action.ActionListener$7.onResponse(ActionListener.java:546)\n\tat [email protected]/org.elasticsearch.action.support.replication.TransportReplicationAction$AsyncPrimaryAction.lambda$runWithPrimaryShardReference$3(TransportReplicationAction.java:494)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:167)\n\tat [email protected]/org.elasticsearch.action.ActionListener$MappedActionListener.onResponse(ActionListener.java:132)\n\tat [email protected]/org.elasticsearch.action.support.replication.ReplicationOperation.finish(ReplicationOperation.java:454)\n\tat [email protected]/org.elasticsearch.action.support.replication.ReplicationOperation.decPendingAndFinishIfNeeded(ReplicationOperation.java:440)\n\tat [email protected]/org.elasticsearch.action.support.replication.ReplicationOperation$2.lambda$onResponse$0(ReplicationOperation.java:226)\n\tat [email protected]/org.elasticsearch.action.support.replication.ReplicationOperation.updateCheckPoints(ReplicationOperation.java:341)\n\tat [email protected]/org.elasticsearch.action.support.replication.ReplicationOperation$2.onResponse(ReplicationOperation.java:226)\n\tat [email protected]/org.elasticsearch.action.support.replication.ReplicationOperation$2.onResponse(ReplicationOperation.java:222)\n\tat [email protected]/org.elasticsearch.action.support.RetryableAction$RetryingListener.onResponse(RetryableAction.java:144)\n\tat [email protected]/org.elasticsearch.action.ActionListenerResponseHandler.handleResponse(ActionListenerResponseHandler.java:43)\n\tat [email protected]/org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleResponse(TransportService.java:1367)\n\tat [email protected]/org.elasticsearch.transport.InboundHandler.doHandleResponse(InboundHandler.java:400)\n\tat [email protected]/org.elasticsearch.transport.InboundHandler.handleResponse(InboundHandler.java:349)\n\tat [email protected]/org.elasticsearch.transport.InboundHandler.messageReceived(InboundHandler.java:144)\n\tat [email protected]/org.elasticsearch.transport.InboundHandler.inboundMessage(InboundHandler.java:97)\n\tat [email protected]/org.elasticsearch.transport.TcpTransport.inboundMessage(TcpTransport.java:829)\n\tat [email protected]/org.elasticsearch.transport.InboundPipeline.forwardFragments(InboundPipeline.java:150)\n\tat [email protected]/org.elasticsearch.transport.InboundPipeline.doHandleBytes(InboundPipeline.java:121)\n\tat [email protected]/org.elasticsearch.transport.InboundPipeline.handleBytes(InboundPipeline.java:86)\n\tat [email protected]/org.elasticsearch.transport.netty4.Netty4MessageInboundHandler.channelRead(Netty4MessageInboundHandler.java:63)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat [email protected]/io.netty.handler.logging.LoggingHandler.channelRead(LoggingHandler.java:280)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat [email protected]/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat [email protected]/io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat [email protected]/io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)\n\tat [email protected]/io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)\n\tat [email protected]/io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788)\n\tat [email protected]/io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:689)\n\tat [email protected]/io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:652)\n\tat [email protected]/io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)\n\tat [email protected]/io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)\n\tat [email protected]/io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\nCaused by: java.lang.IllegalArgumentException: mapper [vals] cannot be changed from type [long] to [float]\n\tat [email protected]/org.elasticsearch.index.mapper.FieldMapper.checkIncomingMergeType(FieldMapper.java:372)\n\tat [email protected]/org.elasticsearch.index.mapper.FieldMapper.merge(FieldMapper.java:352)\n\tat [email protected]/org.elasticsearch.index.mapper.FieldMapper.merge(FieldMapper.java:55)\n\tat [email protected]/org.elasticsearch.index.mapper.ObjectMapper$Builder.buildMappers(ObjectMapper.java:154)\n\tat [email protected]/org.elasticsearch.index.mapper.RootObjectMapper$Builder.build(RootObjectMapper.java:113)\n\tat [email protected]/org.elasticsearch.index.mapper.DocumentParser.createDynamicUpdate(DocumentParser.java:233)\n\tat [email protected]/org.elasticsearch.index.mapper.DocumentParser.parseDocument(DocumentParser.java:85)\n\tat [email protected]/org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:78)\n\tat [email protected]/org.elasticsearch.index.shard.IndexShard.prepareIndex(IndexShard.java:1021)\n\tat [email protected]/org.elasticsearch.index.shard.IndexShard.applyIndexOperation(IndexShard.java:969)\n\tat [email protected]/org.elasticsearch.index.shard.IndexShard.applyIndexOperationOnPrimary(IndexShard.java:913)\n\tat [email protected]/org.elasticsearch.action.bulk.TransportShardBulkAction.executeBulkItemRequest(TransportShardBulkAction.java:350)\n\tat [email protected]/org.elasticsearch.action.bulk.TransportShardBulkAction$2.doRun(TransportShardBulkAction.java:216)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat [email protected]/org.elasticsearch.action.bulk.TransportShardBulkAction.performOnPrimary(TransportShardBulkAction.java:282)\n\tat [email protected]/org.elasticsearch.action.bulk.TransportShardBulkAction.dispatchedShardOperationOnPrimary(TransportShardBulkAction.java:136)\n\tat [email protected]/org.elasticsearch.action.bulk.TransportShardBulkAction.dispatchedShardOperationOnPrimary(TransportShardBulkAction.java:73)\n\tat [email protected]/org.elasticsearch.action.support.replication.TransportWriteAction$1.doRun(TransportWriteAction.java:212)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:958)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\t... 1 more\n"}],"type":"illegal_argument_exception","reason":"mapper [vals] cannot be changed from type [long] to [float]","stack_trace":"java.lang.IllegalArgumentException: mapper [vals] cannot be changed from type [long] to [float]\n\tat [email protected]/org.elasticsearch.index.mapper.FieldMapper.checkIncomingMergeType(FieldMapper.java:372)\n\tat [email protected]/org.elasticsearch.index.mapper.FieldMapper.merge(FieldMapper.java:352)\n\tat [email protected]/org.elasticsearch.index.mapper.FieldMapper.merge(FieldMapper.java:55)\n\tat [email protected]/org.elasticsearch.index.mapper.ObjectMapper$Builder.buildMappers(ObjectMapper.java:154)\n\tat [email protected]/org.elasticsearch.index.mapper.RootObjectMapper$Builder.build(RootObjectMapper.java:113)\n\tat [email protected]/org.elasticsearch.index.mapper.DocumentParser.createDynamicUpdate(DocumentParser.java:233)\n\tat [email protected]/org.elasticsearch.index.mapper.DocumentParser.parseDocument(DocumentParser.java:85)\n\tat [email protected]/org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:78)\n\tat [email protected]/org.elasticsearch.index.shard.IndexShard.prepareIndex(IndexShard.java:1021)\n\tat [email protected]/org.elasticsearch.index.shard.IndexShard.applyIndexOperation(IndexShard.java:969)\n\tat [email protected]/org.elasticsearch.index.shard.IndexShard.applyIndexOperationOnPrimary(IndexShard.java:913)\n\tat [email protected]/org.elasticsearch.action.bulk.TransportShardBulkAction.executeBulkItemRequest(TransportShardBulkAction.java:350)\n\tat [email protected]/org.elasticsearch.action.bulk.TransportShardBulkAction$2.doRun(TransportShardBulkAction.java:216)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat [email protected]/org.elasticsearch.action.bulk.TransportShardBulkAction.performOnPrimary(TransportShardBulkAction.java:282)\n\tat [email protected]/org.elasticsearch.action.bulk.TransportShardBulkAction.dispatchedShardOperationOnPrimary(TransportShardBulkAction.java:136)\n\tat [email protected]/org.elasticsearch.action.bulk.TransportShardBulkAction.dispatchedShardOperationOnPrimary(TransportShardBulkAction.java:73)\n\tat [email protected]/org.elasticsearch.action.support.replication.TransportWriteAction$1.doRun(TransportWriteAction.java:212)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:958)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\n"},"status":400}]
at __randomizedtesting.SeedInfo.seed([96C5874C54523485:1E91B896FAAE597D]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:572)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:515)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.AssertionError: expected [2xx] status code but api [index] returned [400 Bad Request] [{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"mapper [vals] cannot be changed from type [long] to [float]","stack_trace":"org.elasticsearch.ElasticsearchException$1: mapper [vals] cannot be changed from type [long] to [float]\n\tat [email protected]/org.elasticsearch.ElasticsearchException.guessRootCauses(ElasticsearchException.java:668)\n\tat [email protected]/org.elasticsearch.ElasticsearchException.generateFailureXContent(ElasticsearchException.java:596)\n\tat [email protected]/org.elasticsearch.rest.RestResponse.build(RestResponse.java:175)\n\tat [email protected]/org.elasticsearch.rest.RestResponse.<init>(RestResponse.java:123)\n\tat [email protected]/org.elasticsearch.rest.RestResponse.<init>(RestResponse.java:102)\n\tat [email protected]/org.elasticsearch.rest.action.RestActionListener.onFailure(RestActionListener.java:55)\n\tat [email protected]/org.elasticsearch.client.internal.node.NodeClient$SafelyWrappedActionListener.onFailure(NodeClient.java:170)\n\tat [email protected]/org.elasticsearch.tasks.TaskManager$1.onFailure(TaskManager.java:218)\n\tat [email protected]/org.elasticsearch.action.bulk.TransportBulkAction.lambda$unwrappingSingleItemBulkResponse$0(TransportBulkAction.java:190)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:167)\n\tat [email protected]/org.elasticsearch.action.ActionListener$RunBeforeActionListener.onResponse(ActionListener.java:440)\n\tat [email protected]/org.elasticsearch.action.ActionListener$7.onResponse(ActionListener.java:546)\n\tat [email protected]/org.elasticsearch.action.bulk.TransportBulkAction$BulkOperation$1.finishHim(TransportBulkAction.java:658)\n\tat [email protected]/org.elasticsearch.action.bulk.TransportBulkAction$BulkOperation$1.onResponse(TransportBulkAction.java:639)\n\tat [email protected]/org.elasticsearch.action.bulk.TransportBulkAction$BulkOperation$1.onResponse(TransportBulkAction.java:628)\n\tat [email protected]/org.elasticsearch.client.internal.node.NodeClient$SafelyWrappedActionListener.onResponse(NodeClient.java:160)\n\tat [email protected]/org.elasticsearch.tasks.TaskManager$1.onResponse(TaskManager.java:209)\n\tat [email protected]/org.elasticsearch.tasks.TaskManager$1.onResponse(TaskManager.java:203)\n\tat [email protected]/org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase.finishOnSuccess(TransportReplicationAction.java:1049)\n\tat [email protected]/org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase$1.handleResponse(TransportReplicationAction.java:961)\n\tat [email protected]/org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase$1.handleResponse(TransportReplicationAction.java:952)\n\tat [email protected]/org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleResponse(TransportService.java:1367)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.processResponse(TransportService.java:1466)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1437)\n\tat [email protected]/org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:41)\n\tat [email protected]/org.elasticsearch.action.support.ChannelActionListener.lambda$onResponse$0(ChannelActionListener.java:38)\n\tat [email protected]/org.elasticsearch.action.ActionListener.run(ActionListener.java:567)\n\tat [email protected]/org.elasticsearch.action.support.ChannelActionListener.onResponse(ChannelActionListener.java:38)\n\tat [email protected]/org.elasticsearch.action.support.ChannelActionListener.onResponse(ChannelActionListener.java:20)\n\tat [email protected]/org.elasticsearch.action.ActionListener$RunBeforeActionListener.onResponse(ActionListener.java:440)\n\tat [email protected]/org.elasticsearch.action.ActionListener$7.onResponse(ActionListener.java:546)\n\tat [email protected]/org.elasticsearch.action.support.replication.TransportReplicationAction$AsyncPrimaryAction.lambda$runWithPrimaryShardReference$3(TransportReplicationAction.java:494)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:167)\n\tat [email protected]/org.elasticsearch.action.ActionListener$MappedActionListener.onResponse(ActionListener.java:132)\n\tat [email protected]/org.elasticsearch.action.support.replication.ReplicationOperation.finish(ReplicationOperation.java:454)\n\tat [email protected]/org.elasticsearch.action.support.replication.ReplicationOperation.decPendingAndFinishIfNeeded(ReplicationOperation.java:440)\n\tat [email protected]/org.elasticsearch.action.support.replication.ReplicationOperation$2.lambda$onResponse$0(ReplicationOperation.java:226)\n\tat [email protected]/org.elasticsearch.action.support.replication.ReplicationOperation.updateCheckPoints(ReplicationOperation.java:341)\n\tat [email protected]/org.elasticsearch.action.support.replication.ReplicationOperation$2.onResponse(ReplicationOperation.java:226)\n\tat [email protected]/org.elasticsearch.action.support.replication.ReplicationOperation$2.onResponse(ReplicationOperation.java:222)\n\tat [email protected]/org.elasticsearch.action.support.RetryableAction$RetryingListener.onResponse(RetryableAction.java:144)\n\tat [email protected]/org.elasticsearch.action.ActionListenerResponseHandler.handleResponse(ActionListenerResponseHandler.java:43)\n\tat [email protected]/org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleResponse(TransportService.java:1367)\n\tat [email protected]/org.elasticsearch.transport.InboundHandler.doHandleResponse(InboundHandler.java:400)\n\tat [email protected]/org.elasticsearch.transport.InboundHandler.handleResponse(InboundHandler.java:349)\n\tat [email protected]/org.elasticsearch.transport.InboundHandler.messageReceived(InboundHandler.java:144)\n\tat [email protected]/org.elasticsearch.transport.InboundHandler.inboundMessage(InboundHandler.java:97)\n\tat [email protected]/org.elasticsearch.transport.TcpTransport.inboundMessage(TcpTransport.java:829)\n\tat [email protected]/org.elasticsearch.transport.InboundPipeline.forwardFragments(InboundPipeline.java:150)\n\tat [email protected]/org.elasticsearch.transport.InboundPipeline.doHandleBytes(InboundPipeline.java:121)\n\tat [email protected]/org.elasticsearch.transport.InboundPipeline.handleBytes(InboundPipeline.java:86)\n\tat [email protected]/org.elasticsearch.transport.netty4.Netty4MessageInboundHandler.channelRead(Netty4MessageInboundHandler.java:63)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat [email protected]/io.netty.handler.logging.LoggingHandler.channelRead(LoggingHandler.java:280)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat [email protected]/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat [email protected]/io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat [email protected]/io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)\n\tat [email protected]/io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)\n\tat [email protected]/io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788)\n\tat [email protected]/io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:689)\n\tat [email protected]/io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:652)\n\tat [email protected]/io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)\n\tat [email protected]/io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)\n\tat [email protected]/io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\nCaused by: java.lang.IllegalArgumentException: mapper [vals] cannot be changed from type [long] to [float]\n\tat [email protected]/org.elasticsearch.index.mapper.FieldMapper.checkIncomingMergeType(FieldMapper.java:372)\n\tat [email protected]/org.elasticsearch.index.mapper.FieldMapper.merge(FieldMapper.java:352)\n\tat [email protected]/org.elasticsearch.index.mapper.FieldMapper.merge(FieldMapper.java:55)\n\tat [email protected]/org.elasticsearch.index.mapper.ObjectMapper$Builder.buildMappers(ObjectMapper.java:154)\n\tat [email protected]/org.elasticsearch.index.mapper.RootObjectMapper$Builder.build(RootObjectMapper.java:113)\n\tat [email protected]/org.elasticsearch.index.mapper.DocumentParser.createDynamicUpdate(DocumentParser.java:233)\n\tat [email protected]/org.elasticsearch.index.mapper.DocumentParser.parseDocument(DocumentParser.java:85)\n\tat [email protected]/org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:78)\n\tat [email protected]/org.elasticsearch.index.shard.IndexShard.prepareIndex(IndexShard.java:1021)\n\tat [email protected]/org.elasticsearch.index.shard.IndexShard.applyIndexOperation(IndexShard.java:969)\n\tat [email protected]/org.elasticsearch.index.shard.IndexShard.applyIndexOperationOnPrimary(IndexShard.java:913)\n\tat [email protected]/org.elasticsearch.action.bulk.TransportShardBulkAction.executeBulkItemRequest(TransportShardBulkAction.java:350)\n\tat [email protected]/org.elasticsearch.action.bulk.TransportShardBulkAction$2.doRun(TransportShardBulkAction.java:216)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat [email protected]/org.elasticsearch.action.bulk.TransportShardBulkAction.performOnPrimary(TransportShardBulkAction.java:282)\n\tat [email protected]/org.elasticsearch.action.bulk.TransportShardBulkAction.dispatchedShardOperationOnPrimary(TransportShardBulkAction.java:136)\n\tat [email protected]/org.elasticsearch.action.bulk.TransportShardBulkAction.dispatchedShardOperationOnPrimary(TransportShardBulkAction.java:73)\n\tat [email protected]/org.elasticsearch.action.support.replication.TransportWriteAction$1.doRun(TransportWriteAction.java:212)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:958)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\t... 1 more\n"}],"type":"illegal_argument_exception","reason":"mapper [vals] cannot be changed from type [long] to [float]","stack_trace":"java.lang.IllegalArgumentException: mapper [vals] cannot be changed from type [long] to [float]\n\tat [email protected]/org.elasticsearch.index.mapper.FieldMapper.checkIncomingMergeType(FieldMapper.java:372)\n\tat [email protected]/org.elasticsearch.index.mapper.FieldMapper.merge(FieldMapper.java:352)\n\tat [email protected]/org.elasticsearch.index.mapper.FieldMapper.merge(FieldMapper.java:55)\n\tat [email protected]/org.elasticsearch.index.mapper.ObjectMapper$Builder.buildMappers(ObjectMapper.java:154)\n\tat [email protected]/org.elasticsearch.index.mapper.RootObjectMapper$Builder.build(RootObjectMapper.java:113)\n\tat [email protected]/org.elasticsearch.index.mapper.DocumentParser.createDynamicUpdate(DocumentParser.java:233)\n\tat [email protected]/org.elasticsearch.index.mapper.DocumentParser.parseDocument(DocumentParser.java:85)\n\tat [email protected]/org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:78)\n\tat [email protected]/org.elasticsearch.index.shard.IndexShard.prepareIndex(IndexShard.java:1021)\n\tat [email protected]/org.elasticsearch.index.shard.IndexShard.applyIndexOperation(IndexShard.java:969)\n\tat [email protected]/org.elasticsearch.index.shard.IndexShard.applyIndexOperationOnPrimary(IndexShard.java:913)\n\tat [email protected]/org.elasticsearch.action.bulk.TransportShardBulkAction.executeBulkItemRequest(TransportShardBulkAction.java:350)\n\tat [email protected]/org.elasticsearch.action.bulk.TransportShardBulkAction$2.doRun(TransportShardBulkAction.java:216)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat [email protected]/org.elasticsearch.action.bulk.TransportShardBulkAction.performOnPrimary(TransportShardBulkAction.java:282)\n\tat [email protected]/org.elasticsearch.action.bulk.TransportShardBulkAction.dispatchedShardOperationOnPrimary(TransportShardBulkAction.java:136)\n\tat [email protected]/org.elasticsearch.action.bulk.TransportShardBulkAction.dispatchedShardOperationOnPrimary(TransportShardBulkAction.java:73)\n\tat [email protected]/org.elasticsearch.action.support.replication.TransportWriteAction$1.doRun(TransportWriteAction.java:212)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:958)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\n"},"status":400}]
at org.junit.Assert.fail(Assert.java:88)
at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:373)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:552)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:515)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95842 | https://github.com/elastic/elasticsearch/pull/96531 | 1191daed484b49a2fe423e45836bc722fe6daf05 | eb0246147aba4e8972ab63bb58ba4d8dea73fdd2 | 2023-05-04T18:09:41Z | java | 2023-06-02T17:37:39Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,840 | ["modules/analysis-common/src/test/java/org/elasticsearch/analysis/common/CommonAnalysisPluginTests.java"] | [CI] CommonAnalysisPluginTests testSystemSynonymsIndexName failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/m7cvk5icn35dm/tests/:modules:analysis-common:test/org.elasticsearch.analysis.common.CommonAnalysisPluginTests/testSystemSynonymsIndexName
**Reproduction line:**
```
./gradlew ':modules:analysis-common:test' --tests "org.elasticsearch.analysis.common.CommonAnalysisPluginTests.testSystemSynonymsIndexName" -Dtests.seed=2350B1BAFF48BDD6 -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=ar-SA -Dtests.timezone=America/Hermosillo -Druntime.java=20
```
**Applicable branches:**
8.8
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.analysis.common.CommonAnalysisPluginTests&tests.test=testSystemSynonymsIndexName
**Failure excerpt:**
```
java.lang.AssertionError: expected:<[.synonyms]> but was:<[]>
at __randomizedtesting.SeedInfo.seed([2350B1BAFF48BDD6:211D00FAD34788CC]: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.analysis.common.CommonAnalysisPluginTests.testSystemSynonymsIndexName(CommonAnalysisPluginTests.java:228)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95840 | https://github.com/elastic/elasticsearch/pull/96098 | 5e2c7d535359237c1123f491f35bff60f90aa163 | 222fc79e8b21eb19445d3d614a6f40b9741a205e | 2023-05-04T15:09:00Z | java | 2023-05-16T08:38:42Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,837 | ["x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/ApiKeyBackwardsCompatibilityIT.java"] | [CI] ApiKeyBackwardsCompatibilityIT testCreatingAndUpdatingApiKeys failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/fkyxmeuqvkige/tests/:x-pack:qa:rolling-upgrade:v8.7.1%23oldClusterTest/org.elasticsearch.upgrades.ApiKeyBackwardsCompatibilityIT/testCreatingAndUpdatingApiKeys
**Reproduction line:**
```
./gradlew ':x-pack:qa:rolling-upgrade:v8.7.1#oldClusterTest' -Dtests.class="org.elasticsearch.upgrades.ApiKeyBackwardsCompatibilityIT" -Dtests.method="testCreatingAndUpdatingApiKeys" -Dtests.seed=D5E9DF3710A290FF -Dtests.bwc=true -Dtests.locale=sr-RS -Dtests.timezone=America/St_Barthelemy -Druntime.java=20
```
**Applicable branches:**
8.8
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.upgrades.ApiKeyBackwardsCompatibilityIT&tests.test=testCreatingAndUpdatingApiKeys
**Failure excerpt:**
```
java.lang.AssertionError:
Expected: <1>
but: was <0>
at __randomizedtesting.SeedInfo.seed([D5E9DF3710A290FF:D4CA8CEDE176FEE8]: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.ApiKeyBackwardsCompatibilityIT.updateOrBulkUpdateApiKey(ApiKeyBackwardsCompatibilityIT.java:247)
at org.elasticsearch.upgrades.ApiKeyBackwardsCompatibilityIT.updateOrBulkUpdateApiKey(ApiKeyBackwardsCompatibilityIT.java:200)
at org.elasticsearch.upgrades.ApiKeyBackwardsCompatibilityIT.testCreatingAndUpdatingApiKeys(ApiKeyBackwardsCompatibilityIT.java:61)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95837 | https://github.com/elastic/elasticsearch/pull/95847 | 479ba06fa2c76d7792201aa49a46da7b33ee6353 | 9cb80ce6ef38b4c57ffb557faf8a14077dd56398 | 2023-05-04T14:23:52Z | java | 2023-05-05T08:59:12Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,825 | ["x-pack/plugin/ilm/qa/with-security/src/javaRestTest/java/org/elasticsearch/xpack/security/PermissionsIT.java"] | [CI] PermissionsIT testCanManageIndexWithNoPermissions failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/aflvesr7g5cbk/tests/:x-pack:plugin:ilm:qa:with-security:javaRestTest/org.elasticsearch.xpack.security.PermissionsIT/testCanManageIndexWithNoPermissions
**Reproduction line:**
```
./gradlew ':x-pack:plugin:ilm:qa:with-security:javaRestTest' --tests "org.elasticsearch.xpack.security.PermissionsIT.testCanManageIndexWithNoPermissions" -Dtests.seed=2A24625F035868EE -Dtests.locale=es-SV -Dtests.timezone=Etc/GMT-8 -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.security.PermissionsIT&tests.test=testCanManageIndexWithNoPermissions
**Failure excerpt:**
```
java.lang.AssertionError:
Expected: "action [indices:monitor/stats] is unauthorized for user [test_ilm] with effective roles [ilm] on indices [not-ilm], this action is granted by the index privileges [monitor,manage,all]"
but: was "action [indices:monitor/stats] is unauthorized for user [test_ilm] with effective roles [ilm] on indices [not-ilm], this action is granted by the index privileges [monitor,cross_cluster_replication,manage,all]"
at __randomizedtesting.SeedInfo.seed([2A24625F035868EE:A1058A54C5CDC5CA]:0)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.xpack.security.PermissionsIT.lambda$testCanManageIndexWithNoPermissions$2(PermissionsIT.java:140)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1158)
at org.elasticsearch.xpack.security.PermissionsIT.testCanManageIndexWithNoPermissions(PermissionsIT.java:123)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95825 | https://github.com/elastic/elasticsearch/pull/95853 | 257d633f2d8c222740f7d67ad2510a34391e4d7e | 43323a44160c89a451cd23dc185583b65c954203 | 2023-05-04T10:14:04Z | java | 2023-05-05T07:41:45Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,821 | ["modules/repository-gcs/src/test/java/org/elasticsearch/repositories/gcs/GoogleCloudStorageClientSettingsTests.java"] | [CI] GoogleCloudStorageClientSettingsTests testLoadsProxySettings failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/piyf2ga5fnjjg/tests/:modules:repository-gcs:test/org.elasticsearch.repositories.gcs.GoogleCloudStorageClientSettingsTests/testLoadsProxySettings
**Reproduction line:**
```
./gradlew ':modules:repository-gcs:test' --tests "org.elasticsearch.repositories.gcs.GoogleCloudStorageClientSettingsTests.testLoadsProxySettings" -Dtests.seed=147C59CC808694D0 -Dtests.locale=mk -Dtests.timezone=America/Cordoba -Druntime.java=17
```
**Applicable branches:**
main
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.repositories.gcs.GoogleCloudStorageClientSettingsTests&tests.test=testLoadsProxySettings
**Failure excerpt:**
```
java.lang.IllegalArgumentException: port out of range:65536
at __randomizedtesting.SeedInfo.seed([147C59CC808694D0:D0F78F252FEAAD7A]:0)
at java.net.InetSocketAddress.checkPort(InetSocketAddress.java:152)
at java.net.InetSocketAddress.<init>(InetSocketAddress.java:197)
at org.elasticsearch.repositories.gcs.GoogleCloudStorageClientSettingsTests.testLoadsProxySettings(GoogleCloudStorageClientSettingsTests.java:135)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:568)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/95821 | https://github.com/elastic/elasticsearch/pull/96378 | 77a80b026874f7c748d6c68eac69129d74db4278 | 193e9201d79eb21397ab6d41b13ba08d9d2bb25b | 2023-05-04T09:12:38Z | java | 2023-05-26T13:27:06Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,817 | ["server/src/main/java/org/elasticsearch/gateway/LocalAllocateDangledIndices.java"] | Import dangling index API - incorrect log message | ### Elasticsearch Version
8.7.1
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
any
### Problem Description
When trying to use the [Import dangling index API](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/dangling-index-import.html), we've got the following message:
```
[2023-05-04T00:13:58,991][WARN ][o.e.g.LocalAllocateDangledIndices] [nemo002-master]ignoring dangled index [[test_index_20230503_1/EvcvFgJtRqiWxbDXqxQ4Rg]] on node [{nemo000-master}{CAePyz7iSdeT8NgWO9e3Ng}{h0Bc5NvPSXqZ0yztBTH83w}{nemo000-master}{1.2.3.4}{1.2.3.4:9303}{m}{8.7.1}{xpack.installed=true, cluster_id=john, rack_id=doe}] since its current compatibility version [8.4.3] is later than the oldest versioned node in the cluster [8.7.1]
```
Obviously, `8.4.3` is not later than `8.7.1`. Checking the source code, it can be seen that instead of the minimum node version, the master node's version is being logged:
https://github.com/elastic/elasticsearch/blob/ac9822be7247d33ad29ced39ae2eb5e4d3fcd189/server/src/main/java/org/elasticsearch/gateway/LocalAllocateDangledIndices.java#L143-L150
### Steps to Reproduce
have an ES cluster with mixed node versions
have an index created by a node of a newer version dangling in a node with an older version
try to import the dangling index: `POST /_dangling/<uuid>?accept_data_loss=true`
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/95817 | https://github.com/elastic/elasticsearch/pull/95897 | 047a85f30ace40186d5954bd8fc9fa03a95a6715 | a3b2c035297296dcb97d29ccffe3294ba68af681 | 2023-05-04T05:41:53Z | java | 2023-05-09T05:41:44Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,792 | ["docs/reference/aggregations/metrics/top-metrics-aggregation.asciidoc"] | [DOCS] add documentation for missing in top_metrics aggregation docs | ### Description
`top_metrics` supports the `missing` parameter:
```
"top_metrics": {
"metrics": [
{
"field": "state",
"missing": "N/A"
}
],
"sort": {
"@timestamp": "desc"
}
}
```
We lack documentation for it.
Top metrics: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-top-metrics.html
Multi terms doc for `missing`: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-multi-terms-aggregation.html#_missing_value_3 | https://github.com/elastic/elasticsearch/issues/95792 | https://github.com/elastic/elasticsearch/pull/96297 | 0469fe5f3e8fd9791b7562db22a30086d12aab0f | 4c6f7a46baa7f49c77cac20017c4bdec22e3f145 | 2023-05-03T14:42:01Z | java | 2023-06-15T09:41:43Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,791 | ["docs/reference/setup/install/docker.asciidoc"] | [DOCS] Improve Install Elasticsearch with Docker documentation | There have been a few complaints about the [Install Elasticsearch with Docker](https://github.com/elastic/elasticsearch/blob/main/docs/reference/setup/install/docker.asciidoc) documentation. We should review those docs to ensure the guidance is still correct and follows best practices.
Specific feedback provided via the feedback form:
- breaks enrollment ERROR: [xpack.security.enrollment.enabled] must be set to `true` to create an enrollment token (Apparently regarding [Always bind data volumes](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#_always_bind_data_volumes))
- step 5 doesnt work for me it is not possible to enter any key for a password
- The example does not work, as it did not create a user at the setup service, it tries to change a password for non existing user.
- Version 7 crashes on start on windows and linux, same for version 8.
- setup fails with security_exception: unable to authenticate user [kibana_system] for REST request
Additional issues:
- [JVM heap error](https://github.com/elastic/elasticsearch/pull/96054) | https://github.com/elastic/elasticsearch/issues/95791 | https://github.com/elastic/elasticsearch/pull/98886 | 31408bddc1448b20ff7f257c1b0bc3edf323164f | 29e2e6f14118c4fe0bfc5968235a66f2efcb5880 | 2023-05-03T14:20:59Z | java | 2023-08-28T12:54:30Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,786 | ["docs/changelog/95865.yaml", "modules/data-streams/src/internalClusterTest/java/org/elasticsearch/datastreams/DataStreamIT.java", "server/src/main/java/org/elasticsearch/cluster/metadata/IndexNameExpressionResolver.java", "server/src/test/java/org/elasticsearch/cluster/metadata/IndexNameExpressionResolverTests.java", "server/src/test/java/org/elasticsearch/indices/IndicesServiceTests.java"] | Searching a filtered and a non-filtered data stream alias filters the result | ### Elasticsearch Version
8.x
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
Darwin
### Problem Description
Searching a filtered and a non-filtered data stream alias that both point to the same datastream currently filter the result set
(relevant [code](https://github.com/elastic/elasticsearch/blob/main/server/src/main/java/org/elasticsearch/cluster/metadata/IndexNameExpressionResolver.java#L714) )
The desired behaviour is to **not** consider the filter in this case and return the (wider) un-filtered result.
(the desired behaviour for data stream aliases currently exists for indices aliases - relevant code that abandons applying the filter for _index aliases_ is [here](https://github.com/elastic/elasticsearch/blob/main/server/src/main/java/org/elasticsearch/cluster/metadata/IndexNameExpressionResolver.java#L743) )
### Steps to Reproduce
```
PUT _index_template/datastream-template
{
"index_patterns": [
"my-datastream"
],
"data_stream": {
},
"template": {
"aliases": {
"first_alias": {
"filter": {
"term": {
"message": "first"
}
}
},
"second_alias": {}
}
},
"composed_of": []
}
POST my-datastream/_doc
{
"message":"first",
"@timestamp":"2023-05-02T08:02:40.420Z"
}
POST my-datastream/_doc
{
"message":"second",
"@timestamp":"2023-05-02T08:02:40.420Z"
}
GET first_alias,second_alias/_search
```
The `GET first_alias,second_alias/_search` call only returns one hit, while it should return 2.
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/95786 | https://github.com/elastic/elasticsearch/pull/95865 | 94279ff2e71c666851ac95c4704706c94e76bd73 | 592cfaf4304b26f0bbbc7f38b7f4cda94ae875a4 | 2023-05-03T13:54:31Z | java | 2023-05-10T23:58:09Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,768 | ["server/src/test/java/org/elasticsearch/common/blobstore/fs/FsBlobContainerTests.java"] | [CI] FsBlobContainerTests testDeleteIgnoringIfNotExistsDoesNotThrowFileNotFound failing | Looks like this test doesn't work on windows
**Build scan:**
https://gradle-enterprise.elastic.co/s/jb3lajwdnxvy4/tests/:server:test/org.elasticsearch.common.blobstore.fs.FsBlobContainerTests/testDeleteIgnoringIfNotExistsDoesNotThrowFileNotFound
**Reproduction line:**
```
gradlew ':server:test' --tests "org.elasticsearch.common.blobstore.fs.FsBlobContainerTests.testDeleteIgnoringIfNotExistsDoesNotThrowFileNotFound" -Dtests.seed=7647414AADDE1466 -Dtests.locale=is -Dtests.timezone=America/Louisville -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.common.blobstore.fs.FsBlobContainerTests&tests.test=testDeleteIgnoringIfNotExistsDoesNotThrowFileNotFound
**Failure excerpt:**
```
org.elasticsearch.common.util.concurrent.UncategorizedExecutionException: Failed execution
at __randomizedtesting.SeedInfo.seed([7647414AADDE1466:9F2654CFC51725F6]:0)
at org.elasticsearch.common.util.concurrent.FutureUtils.rethrowExecutionException(FutureUtils.java:80)
at org.elasticsearch.common.util.concurrent.FutureUtils.get(FutureUtils.java:50)
at org.elasticsearch.action.support.PlainActionFuture.actionGet(PlainActionFuture.java:195)
at org.elasticsearch.common.blobstore.fs.FsBlobContainerTests.testDeleteIgnoringIfNotExistsDoesNotThrowFileNotFound(FsBlobContainerTests.java:136)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.util.concurrent.ExecutionException: java.io.IOException: could not remove the following files (in the order of attempts):
C:\Users\jenkins\workspace\platform-support\825\server\build\testrun\test\temp\org.elasticsearch.common.blobstore.fs.FsBlobContainerTests_7647414AADDE1466-001\tempDir-006\mabusnfuc: java.nio.file.AccessDeniedException: C:\Users\jenkins\workspace\platform-support\825\server\build\testrun\test\temp\org.elasticsearch.common.blobstore.fs.FsBlobContainerTests_7647414AADDE1466-001\tempDir-006\mabusnfuc
at org.elasticsearch.action.support.PlainActionFuture$Sync.getValue(PlainActionFuture.java:340)
at org.elasticsearch.action.support.PlainActionFuture$Sync.get(PlainActionFuture.java:327)
at org.elasticsearch.action.support.PlainActionFuture.get(PlainActionFuture.java:95)
at org.elasticsearch.common.util.concurrent.FutureUtils.get(FutureUtils.java:45)
at org.elasticsearch.action.support.PlainActionFuture.actionGet(PlainActionFuture.java:195)
at org.elasticsearch.common.blobstore.fs.FsBlobContainerTests.testDeleteIgnoringIfNotExistsDoesNotThrowFileNotFound(FsBlobContainerTests.java:136)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.io.IOException: could not remove the following files (in the order of attempts):
C:\Users\jenkins\workspace\platform-support\825\server\build\testrun\test\temp\org.elasticsearch.common.blobstore.fs.FsBlobContainerTests_7647414AADDE1466-001\tempDir-006\mabusnfuc: java.nio.file.AccessDeniedException: C:\Users\jenkins\workspace\platform-support\825\server\build\testrun\test\temp\org.elasticsearch.common.blobstore.fs.FsBlobContainerTests_7647414AADDE1466-001\tempDir-006\mabusnfuc
at org.elasticsearch.core.IOUtils.rm(IOUtils.java:203)
at org.elasticsearch.common.blobstore.fs.FsBlobContainer.deleteBlobsIgnoringIfNotExists(FsBlobContainer.java:186)
at org.elasticsearch.common.blobstore.fs.FsBlobContainerTests.lambda$testDeleteIgnoringIfNotExistsDoesNotThrowFileNotFound$0(FsBlobContainerTests.java:126)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95768 | https://github.com/elastic/elasticsearch/pull/96164 | bb23161ac23ad9dbf6969498350e7744d3cec8b7 | 8f19da88f32ad9e6f3723f97a887a709192d6840 | 2023-05-03T08:59:19Z | java | 2023-05-17T17:42:32Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,766 | ["x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/template/IndexTemplateRegistry.java", "x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/analytics/AnalyticsTemplateRegistry.java", "x-pack/plugin/ent-search/src/test/java/org/elasticsearch/xpack/application/analytics/AnalyticsTemplateRegistryTests.java", "x-pack/plugin/stack/src/main/java/org/elasticsearch/xpack/stack/StackTemplateRegistry.java", "x-pack/plugin/stack/src/test/java/org/elasticsearch/xpack/stack/StackTemplateRegistryTests.java", "x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/MLModelDeploymentsUpgradeIT.java", "x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/MlTrainedModelsUpgradeIT.java"] | behavioral_analytics-events-final_pipeline parsing fails in a mixed cluster | ### Elasticsearch Version
main
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
macOS
### Problem Description
The pipeline defined in `behavioral_analytics-events-final_pipeline.json` uses the new `ignore_missing` setting for the `uri_parts` ingest processor added in #95068.
The pipeline is referenced in the index template `behavioral_analytics-events-settings.json`.
```
"final_pipeline": "behavioral_analytics-events-final_pipeline",
...
```
That template may be PUT as a node is upgraded during a rolling upgrade, in that mixed cluster scenario only the upgraded nodes recognise the new `ignore_missing` setting.
### Steps to Reproduce
The problem appears in the rolling upgrade test failure tracked in #95360
```
./gradlew ':x-pack:qa:rolling-upgrade:v8.2.0#twoThirdsUpgradedTest' -Dtests.class="org.elasticsearch.upgrades.MlTrainedModelsUpgradeIT" -Dtests.method="testTrainedModelInference" -Dtests.seed=D0F64DC8162BB439 -Dtests.bwc=true -Dtests.locale=be-BY -Dtests.timezone=Africa/Lubumbashi -Druntime.java=20
```
### Logs (if relevant)
```
[2023-05-02T19:25:31,393][WARN ][o.e.i.IngestService ] [v8.0.1-2] failed to update ingest pipelines
org.elasticsearch.ElasticsearchParseException: processor [uri_parts] doesn't support one or more provided configuration parameters [ignore_missing]
at org.elasticsearch.ingest.ConfigurationUtils.readProcessor(ConfigurationUtils.java:588) ~[elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.ingest.ConfigurationUtils.readProcessor(ConfigurationUtils.java:547) ~[elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.ingest.ConfigurationUtils.readProcessorConfigs(ConfigurationUtils.java:467) ~[elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.ingest.Pipeline.create(Pipeline.java:82) ~[elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.ingest.IngestService.innerUpdatePipelines(IngestService.java:922) ~[elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.ingest.IngestService.applyClusterState(IngestService.java:898) [elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.cluster.service.ClusterApplierService.callClusterStateAppliers(ClusterApplierService.java:544) [elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.cluster.service.ClusterApplierService.callClusterStateAppliers(ClusterApplierService.java:531) [elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.cluster.service.ClusterApplierService.applyChanges(ClusterApplierService.java:503) [elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.cluster.service.ClusterApplierService.runTask(ClusterApplierService.java:428) [elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.cluster.service.ClusterApplierService$UpdateTask.run(ClusterApplierService.java:154) [elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:717) [elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:260) [elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:223) [elasticsearch-8.0.1.jar:8.0.1]
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) [?:?]
Suppressed: org.elasticsearch.ElasticsearchParseException: processor [uri_parts] doesn't support one or more provided configuration parameters [ignore_missing]
at org.elasticsearch.ingest.ConfigurationUtils.readProcessor(ConfigurationUtils.java:588) ~[elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.ingest.ConfigurationUtils.readProcessor(ConfigurationUtils.java:547) ~[elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.ingest.ConfigurationUtils.readProcessorConfigs(ConfigurationUtils.java:467) ~[elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.ingest.Pipeline.create(Pipeline.java:82) ~[elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.ingest.IngestService.innerUpdatePipelines(IngestService.java:922) ~[elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.ingest.IngestService.applyClusterState(IngestService.java:898) [elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.cluster.service.ClusterApplierService.callClusterStateAppliers(ClusterApplierService.java:544) [elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.cluster.service.ClusterApplierService.callClusterStateAppliers(ClusterApplierService.java:531) [elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.cluster.service.ClusterApplierService.applyChanges(ClusterApplierService.java:503) [elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.cluster.service.ClusterApplierService.runTask(ClusterApplierService.java:428) [elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.cluster.service.ClusterApplierService$UpdateTask.run(ClusterApplierService.java:154) [elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:717) [elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:260) [elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:223) [elasticsearch-8.0.1.jar:8.0.1]
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) [?:?]
Suppressed: org.elasticsearch.ElasticsearchParseException: processor [uri_parts] doesn't support one or more provided configuration parameters [ignore_missing]
at org.elasticsearch.ingest.ConfigurationUtils.readProcessor(ConfigurationUtils.java:588) ~[elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.ingest.common.ForEachProcessor$Factory.create(ForEachProcessor.java:187) ~[?:?]
at org.elasticsearch.ingest.common.ForEachProcessor$Factory.create(ForEachProcessor.java:168) ~[?:?]
at org.elasticsearch.ingest.ConfigurationUtils.readProcessor(ConfigurationUtils.java:583) ~[elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.ingest.ConfigurationUtils.readProcessor(ConfigurationUtils.java:547) ~[elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.ingest.ConfigurationUtils.readProcessorConfigs(ConfigurationUtils.java:467) ~[elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.ingest.Pipeline.create(Pipeline.java:82) ~[elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.ingest.IngestService.innerUpdatePipelines(IngestService.java:922) ~[elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.ingest.IngestService.applyClusterState(IngestService.java:898) [elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.cluster.service.ClusterApplierService.callClusterStateAppliers(ClusterApplierService.java:544) [elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.cluster.service.ClusterApplierService.callClusterStateAppliers(ClusterApplierService.java:531) [elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.cluster.service.ClusterApplierService.applyChanges(ClusterApplierService.java:503) [elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.cluster.service.ClusterApplierService.runTask(ClusterApplierService.java:428) [elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.cluster.service.ClusterApplierService$UpdateTask.run(ClusterApplierService.java:154) [elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:717) [elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:260) [elasticsearch-8.0.1.jar:8.0.1]
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:223) [elasticsearch-8.0.1.jar:8.0.1]
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/95766 | https://github.com/elastic/elasticsearch/pull/96497 | dc43f87c0909bda88135db6df7c4c9d56aaeb8aa | 94ea505cc21f60a2ae2013669fe46879d60c4420 | 2023-05-03T08:40:45Z | java | 2023-06-05T14:44:51Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,759 | ["modules/transport-netty4/src/main/java/org/elasticsearch/transport/netty4/Netty4TcpChannel.java", "server/src/internalClusterTest/java/org/elasticsearch/search/scroll/SearchScrollIT.java"] | [CI] SearchScrollIT testRestartDataNodesDuringScrollSearch failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/34efhhw3goeag/tests/:server:internalClusterTest/org.elasticsearch.search.scroll.SearchScrollIT/testRestartDataNodesDuringScrollSearch
**Reproduction line:**
```
./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.search.scroll.SearchScrollIT.testRestartDataNodesDuringScrollSearch" -Dtests.seed=E6A0214B9EEB529 -Dtests.locale=nl -Dtests.timezone=Asia/Gaza -Druntime.java=20
```
**Applicable branches:**
main, 8.8
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.search.scroll.SearchScrollIT&tests.test=testRestartDataNodesDuringScrollSearch
**Failure excerpt:**
```
com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=4779, name=elasticsearch[node_s4][search][T#1], state=RUNNABLE, group=TGRP-SearchScrollIT]
at __randomizedtesting.SeedInfo.seed([E6A0214B9EEB529:F926017924B84B2B]:0)
Caused by: java.lang.AssertionError: invalid decRef call: already closed
at __randomizedtesting.SeedInfo.seed([E6A0214B9EEB529]:0)
at org.elasticsearch.core.AbstractRefCounted.decRef(AbstractRefCounted.java:51)
at org.elasticsearch.search.fetch.QueryFetchSearchResult.decRef(QueryFetchSearchResult.java:103)
at org.elasticsearch.transport.OutboundHandler.lambda$sendResponse$1(OutboundHandler.java:143)
at org.elasticsearch.core.IOUtils.close(IOUtils.java:71)
at org.elasticsearch.core.IOUtils.close(IOUtils.java:87)
at org.elasticsearch.core.IOUtils.close(IOUtils.java:63)
at org.elasticsearch.core.Releasables.close(Releasables.java:73)
at org.elasticsearch.core.Releasables.close(Releasables.java:41)
at org.elasticsearch.core.Releasables$2.close(Releasables.java:111)
at org.elasticsearch.action.ActionListener$1.lambda$onFailure$0(ActionListener.java:120)
at org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)
at org.elasticsearch.action.ActionListener$1.onFailure(ActionListener.java:120)
at org.elasticsearch.transport.OutboundHandler$1.onFailure(OutboundHandler.java:229)
at org.elasticsearch.transport.netty4.Netty4TcpChannel.sendMessage(Netty4TcpChannel.java:168)
at org.elasticsearch.transport.OutboundHandler.internalSend(OutboundHandler.java:211)
at org.elasticsearch.transport.OutboundHandler.sendMessage(OutboundHandler.java:196)
at org.elasticsearch.transport.OutboundHandler.sendResponse(OutboundHandler.java:139)
at org.elasticsearch.transport.TcpTransportChannel.sendResponse(TcpTransportChannel.java:61)
at org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:42)
at org.elasticsearch.action.support.ChannelActionListener.lambda$onResponse$0(ChannelActionListener.java:31)
at org.elasticsearch.action.ActionListener.run(ActionListener.java:357)
at org.elasticsearch.action.support.ChannelActionListener.onResponse(ChannelActionListener.java:31)
at org.elasticsearch.action.support.ChannelActionListener.onResponse(ChannelActionListener.java:19)
at org.elasticsearch.action.ActionRunnable$2.accept(ActionRunnable.java:50)
at org.elasticsearch.action.ActionRunnable$2.accept(ActionRunnable.java:47)
at org.elasticsearch.action.ActionRunnable$3.doRun(ActionRunnable.java:72)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
at org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:33)
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95759 | https://github.com/elastic/elasticsearch/pull/96856 | 52be52bcadf2c213545b0a6821bb6a11488221f5 | 74a594d9a6d04431f1fc3ef226ba39fdcca9b6be | 2023-05-03T06:58:20Z | java | 2023-06-16T08:23:29Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,738 | ["server/src/test/java/org/elasticsearch/index/query/MultiMatchQueryBuilderTests.java", "server/src/test/java/org/elasticsearch/index/search/MultiMatchQueryParserTests.java"] | multi_match lucene query broken since 8.7.0 | ### Elasticsearch Version
Version: 8.7.1, Build: docker/f229ed3f893a515d590d0f39b05f68913e2d9b53/2023-04-27T04:33:42.127815583Z, JVM: 20.0.1
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
Linux f7ea544ab24a 5.15.49-linuxkit #1 SMP Tue Sep 13 07:51:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
### Problem Description
Starting in 8.7.0, the lucene query constructed for `multi_match` queries of type `phrase_prefix` and multiple explicitly specified fields is wrong, only searching one filed multiple times instead of all specified fields once, resulting in incomplete search results. See next section for detailed steps and description of where it goes wrong.
### Steps to Reproduce
1. Create index
```
curl -X PUT "localhost:9200/people?pretty" -H 'Content-Type: application/json' -d'
{
"settings": {
"analysis": {
"analyzer": {
"default": {
"type": "custom",
"filter": [
"lowercase",
"asciifolding"
],
"tokenizer": "whitespace"
}
}
}
},
"mappings": {
"dynamic_templates": [
{
"strings": {
"match_mapping_type": "string",
"mapping": {
"type": "text",
"fields": {
"raw": {
"type": "keyword"
}
},
"index_prefixes": {
"min_chars": 1,
"max_chars": 19
}
}
}
}
]
}
}
'
```
2. Add person to index
```
curl -X PUT "localhost:9200/people/_doc/1?pretty" -H 'Content-Type: application/json' -d'
{
"first-name": "Harry",
"last-name": "Potter",
"email": "[email protected]",
"identification": "01"
}
'
```
3. Search in all fields using `multi_match` and `phrase_prefix`, not find anything 🤔
```
curl -X GET "localhost:9200/people/_search?pretty" -H 'Content-Type: application/json' -d'
{
"query": {
"multi_match": {
"query": "Har",
"type": "phrase_prefix",
"fields": [
"first-name",
"last-name",
"email",
"identification"
]
}
}
}
'
```
4. Show lucene query
```
curl -X GET "localhost:9200/people/_validate/query?rewrite=true" -H 'Content-Type: application/json' -d'
{
"query": {
"multi_match": {
"query": "Har",
"type": "phrase_prefix",
"fields": [
"first-name",
"last-name",
"email",
"identification"
]
}
}
}
'
```
The resulting query searches the `identification` field four times. This is not right.
```
{
"_shards": {
"total": 1,
"successful": 1,
"failed": 0
},
"valid": true,
"explanations": [
{
"index": "people",
"valid": true,
"explanation": "(identification._index_prefix:har | identification._index_prefix:har | identification._index_prefix:har | identification._index_prefix:har)"
}
]
}
```
In ES 8.6.2 and older, the query searches all fields once.
```
{
"_shards": {
"total": 1,
"successful": 1,
"failed": 0
},
"valid": true,
"explanations": [
{
"index": "people",
"valid": true,
"explanation": "(identification._index_prefix:har | first-name._index_prefix:har | last-name._index_prefix:har | email._index_prefix:har)"
}
]
}
```
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/95738 | https://github.com/elastic/elasticsearch/pull/95772 | 1c053b29945ddf9c2bd096709c06cd6097351248 | 53347ab4c33edb32e7787c0e971c3745a2eda865 | 2023-05-02T13:44:43Z | java | 2023-05-10T13:14:04Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,725 | ["x-pack/plugin/transform/qa/multi-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/transform/integration/TransformIT.java", "x-pack/plugin/transform/qa/multi-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/transform/integration/TransformRestTestCase.java", "x-pack/plugin/transform/qa/multi-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/transform/integration/continuous/TransformContinuousIT.java"] | [CI] TransformIT testStartTransform_GivenTimeout_Returns408 failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/ygfet23ixzlxo/tests/:x-pack:plugin:transform:qa:multi-node-tests:javaRestTest/org.elasticsearch.xpack.transform.integration.TransformIT/testStartTransform_GivenTimeout_Returns408
**Reproduction line:**
```
gradlew ':x-pack:plugin:transform:qa:multi-node-tests:javaRestTest' --tests "org.elasticsearch.xpack.transform.integration.TransformIT.testStartTransform_GivenTimeout_Returns408" -Dtests.seed=B880EB15E839E84B -Dtests.locale=no-NO -Dtests.timezone=Asia/Macau -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.transform.integration.TransformIT&tests.test=testStartTransform_GivenTimeout_Returns408
**Failure excerpt:**
```
org.elasticsearch.client.ResponseException: method [POST], host [http://127.0.0.1:51493], URI [/_transform/start-transform-timeout/_stop?wait_for_completion=true&wait_for_checkpoint=false], status line [HTTP/1.1 408 Request Timeout]
{"error":{"root_cause":[{"type":"status_exception","reason":"Could not stop the transforms [start-transform-timeout] as they timed out [30s]."}],"type":"status_exception","reason":"Could not stop the transforms [start-transform-timeout] as they timed out [30s]."},"status":408}
at __randomizedtesting.SeedInfo.seed([B880EB15E839E84B:526440920B2FBDA8]:0)
at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:347)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:313)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:288)
at org.elasticsearch.xpack.transform.integration.TransformRestTestCase.stopTransform(TransformRestTestCase.java:167)
at org.elasticsearch.xpack.transform.integration.TransformRestTestCase.stopTransform(TransformRestTestCase.java:155)
at org.elasticsearch.xpack.transform.integration.TransformRestTestCase.cleanUpTransforms(TransformRestTestCase.java:129)
at org.elasticsearch.xpack.transform.integration.TransformRestTestCase.cleanUp(TransformRestTestCase.java:79)
at org.elasticsearch.xpack.transform.integration.TransformIT.cleanTransforms(TransformIT.java:81)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:1004)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95725 | https://github.com/elastic/elasticsearch/pull/96212 | 84cc4ccba769132e5312f13d16c381b2cf7e5909 | c2406ed6deb74ac13324aa5d01859f9d02c9215c | 2023-05-02T09:49:43Z | java | 2023-05-18T11:42:53Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,722 | ["server/src/internalClusterTest/java/org/elasticsearch/health/node/ShardsCapacityHealthIndicatorServiceIT.java"] | [CI] ShardsCapacityHealthIndicatorServiceIT testGreen failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/hbwvejpcpjcfw/tests/:server:internalClusterTest/org.elasticsearch.health.node.ShardsCapacityHealthIndicatorServiceIT/testGreen
**Reproduction line:**
```
./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.health.node.ShardsCapacityHealthIndicatorServiceIT.testGreen" -Dtests.seed=6E24160DEED7B20F -Dtests.locale=de-AT -Dtests.timezone=Pacific/Noumea -Druntime.java=18
```
**Applicable branches:**
main
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.health.node.ShardsCapacityHealthIndicatorServiceIT&tests.test=testGreen
**Failure excerpt:**
```
java.lang.AssertionError: expected:<UNKNOWN> but was:<GREEN>
at __randomizedtesting.SeedInfo.seed([6E24160DEED7B20F:8DEC396855CA327D]: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.health.node.ShardsCapacityHealthIndicatorServiceIT.testGreen(ShardsCapacityHealthIndicatorServiceIT.java:58)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:577)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:833)
``` | https://github.com/elastic/elasticsearch/issues/95722 | https://github.com/elastic/elasticsearch/pull/95726 | 8e9469abf2ec3371d8712a66f4287227f4593a82 | 09308416bed33c915660928bfe63d3d48e6d8b81 | 2023-05-02T09:09:26Z | java | 2023-05-02T12:49:36Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,719 | ["distribution/docker/build.gradle"] | [CI] :distribution:docker:buildIronBankDockerImage failed with error: unable to remount dir as readonly | ### CI Link
https://gradle-enterprise.elastic.co/s/pq3bvybzdgc5u
### Repro line
RUN tar -zxf /tmp/elasticsearch.tar.gz --strip-components=1
### Does it reproduce?
Didn't try
### Applicable branches
8.7
### Failure history
_No response_
### Failure excerpt
```
| Step 10/31 : RUN tar -zxf /tmp/elasticsearch.tar.gz --strip-components=1
| ---> Running in 126536c42b8e
| unable to remount dir as readonly: mount tmpfs:/var/lib/docker/containers/126536c42b8ee67f6437224e5f209ebb03423e2cd5806a20dfe391cf642e1d12/mounts/secrets, flags: 0x21, data: uid=0,gid=0: device or resource busy
``` | https://github.com/elastic/elasticsearch/issues/95719 | https://github.com/elastic/elasticsearch/pull/95958 | a7f2b3deaa4100e4e21e801ee1eeceb43be4b701 | cc2a711b2de2800a34bc34bcc89a4b101485ab37 | 2023-05-02T07:40:49Z | java | 2023-05-09T15:39:35Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,692 | ["docs/reference/search/suggesters/phrase-suggest.asciidoc", "docs/reference/search/suggesters/term-suggest.asciidoc"] | Phrase Suggester, Term suggester documentation: typo (shards_size -> shard_size) | ### Elasticsearch Version
7.17.5
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
n/a
### Problem Description
In the [Phrase Suggester docs](https://www.elastic.co/guide/en/elasticsearch/reference/master/search-suggesters.html#phrase-suggester),
> A factor that is used to multiply with the `shards_size` in order to...
...should be:
> A factor that is used to multiply with the `shard_size` in order to...
There is no `shards_size` (plural) option.
The same issue also occurs in the [Term Suggester section](https://www.elastic.co/guide/en/elasticsearch/reference/master/search-suggesters.html#term-suggester).
### Steps to Reproduce
https://www.elastic.co/guide/en/elasticsearch/reference/master/search-suggesters.html#_other_term_suggest_options
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/95692 | https://github.com/elastic/elasticsearch/pull/95696 | 64c644eae5ab3cd1c2efab293f72819989674274 | f2d9a3fbca594b1d92a4a0966407e9f42d6d5c12 | 2023-04-29T15:04:08Z | java | 2023-05-01T13:24:43Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,682 | ["x-pack/plugin/security/qa/multi-cluster/src/javaRestTest/java/org/elasticsearch/xpack/remotecluster/RemoteClusterSecurityCcrIT.java"] | [CI] RemoteClusterSecurityCcrIT testAutoFollow failing | Core issue seems to be `org.elasticsearch.index.IndexNotFoundException: no such index [metrics-002]`. Maybe a race condition?
**Build scan:**
https://gradle-enterprise.elastic.co/s/husvqw2tfmfu4/tests/:x-pack:plugin:security:qa:multi-cluster:javaRestTest/org.elasticsearch.xpack.remotecluster.RemoteClusterSecurityCcrIT/testAutoFollow
**Reproduction line:**
```
./gradlew ':x-pack:plugin:security:qa:multi-cluster:javaRestTest' --tests "org.elasticsearch.xpack.remotecluster.RemoteClusterSecurityCcrIT.testAutoFollow" -Dtests.seed=502810D0A0E56DC9 -Dtests.locale=zh-CN -Dtests.timezone=Europe/Prague -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.remotecluster.RemoteClusterSecurityCcrIT&tests.test=testAutoFollow
**Failure excerpt:**
```
org.elasticsearch.client.ResponseException: method [GET], host [http://[::1]:38803], URI [/metrics-000,metrics-002/_search], status line [HTTP/1.1 404 Not Found]
{"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index [metrics-000]","resource.type":"index_or_alias","resource.id":"metrics-000","index_uuid":"_na_","index":"metrics-000"}],"type":"index_not_found_exception","reason":"no such index [metrics-000]","resource.type":"index_or_alias","resource.id":"metrics-000","index_uuid":"_na_","index":"metrics-000"},"status":404}
at __randomizedtesting.SeedInfo.seed([502810D0A0E56DC9:DF07BA2A39371C49]:0)
at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:347)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:313)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:288)
at org.elasticsearch.xpack.remotecluster.RemoteClusterSecurityCcrIT.performRequestWithCcrUser(RemoteClusterSecurityCcrIT.java:292)
at org.elasticsearch.xpack.remotecluster.RemoteClusterSecurityCcrIT.lambda$verifyReplicatedDocuments$9(RemoteClusterSecurityCcrIT.java:298)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1146)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1131)
at org.elasticsearch.xpack.remotecluster.RemoteClusterSecurityCcrIT.verifyReplicatedDocuments(RemoteClusterSecurityCcrIT.java:297)
at org.elasticsearch.xpack.remotecluster.RemoteClusterSecurityCcrIT.testAutoFollow(RemoteClusterSecurityCcrIT.java:257)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.elasticsearch.test.cluster.local.LocalElasticsearchCluster$1.evaluate(LocalElasticsearchCluster.java:39)
at org.elasticsearch.test.cluster.local.LocalElasticsearchCluster$1.evaluate(LocalElasticsearchCluster.java:39)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95682 | https://github.com/elastic/elasticsearch/pull/95689 | e12f037553aa0df783fd1d235e6e26b86ce5dc2d | c57a18b1c0f720a6a60314944cc489a0a4ab5093 | 2023-04-28T15:33:51Z | java | 2023-05-02T08:19:00Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,681 | ["x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/aggs/frequentitemsets/mr/DelegatingCircuitBreakerService.java", "x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/aggs/frequentitemsets/mr/DelegatingCircuitBreakerServiceTests.java"] | [CI] MlWithSecurityIT test {yaml=ml/frequent_item_sets_agg/Test frequent item sets filter} failing | Seems to be one off failure because of closer resource.
**Build scan:**
https://gradle-enterprise.elastic.co/s/tbfsjsm4iujyk/tests/:x-pack:plugin:ml:qa:ml-with-security:yamlRestTest/org.elasticsearch.smoketest.MlWithSecurityIT/test%20%7Byaml=ml%2Ffrequent_item_sets_agg%2FTest%20frequent%20item%20sets%20filter%7D
**Reproduction line:**
```
./gradlew ':x-pack:plugin:ml:qa:ml-with-security:yamlRestTest' --tests "org.elasticsearch.smoketest.MlWithSecurityIT.test {yaml=ml/frequent_item_sets_agg/Test frequent item sets filter}" -Dtests.seed=AB9BDFBDA7D09640 -Dtests.locale=ga -Dtests.timezone=EST5EDT -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
doesn't reproduce
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.smoketest.MlWithSecurityIT&tests.test=test%20%7Byaml%3Dml/frequent_item_sets_agg/Test%20frequent%20item%20sets%20filter%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [ml/frequent_item_sets_agg:340]: expected [2xx] status code but api [search] returned [500 Internal Server Error] [{"error":{"root_cause":[],"type":"search_phase_execution_exception","reason":"","phase":"fetch","grouped":true,"failed_shards":[],"caused_by":{"type":"illegal_state_exception","reason":"already closed","stack_trace":"java.lang.IllegalStateException: already closed\n\tat [email protected]/org.elasticsearch.common.breaker.PreallocatedCircuitBreakerService$PreallocatedCircuitBreaker.addWithoutBreaking(PreallocatedCircuitBreakerService.java:131)\n\tat [email protected]/org.elasticsearch.search.aggregations.AggregatorBase.addRequestCircuitBreakerBytes(AggregatorBase.java:148)\n\tat [email protected]/org.elasticsearch.xpack.ml.aggs.frequentitemsets.mr.ItemSetMapReduceAggregator.lambda$new$0(ItemSetMapReduceAggregator.java:108)\n\tat [email protected]/org.elasticsearch.xpack.ml.aggs.frequentitemsets.mr.DelegatingCircuitBreakerService$DelegatingCircuitBreaker.addWithoutBreaking(DelegatingCircuitBreakerService.java:92)\n\tat [email protected]/org.elasticsearch.common.util.BigArrays.adjustBreaker(BigArrays.java:477)\n\tat [email protected]/org.elasticsearch.common.util.AbstractArray.close(AbstractArray.java:28)\n\tat [email protected]/org.elasticsearch.core.IOUtils.close(IOUtils.java:71)\n\tat [email protected]/org.elasticsearch.core.IOUtils.close(IOUtils.java:87)\n\tat [email protected]/org.elasticsearch.core.IOUtils.close(IOUtils.java:63)\n\tat [email protected]/org.elasticsearch.core.Releasables.close(Releasables.java:73)\n\tat [email protected]/org.elasticsearch.core.Releasables.close(Releasables.java:41)\n\tat [email protected]/org.elasticsearch.common.util.BytesRefArray.close(BytesRefArray.java:117)\n\tat [email protected]/org.elasticsearch.core.IOUtils.close(IOUtils.java:71)\n\tat [email protected]/org.elasticsearch.core.IOUtils.close(IOUtils.java:87)\n\tat [email protected]/org.elasticsearch.core.IOUtils.close(IOUtils.java:63)\n\tat [email protected]/org.elasticsearch.core.Releasables.close(Releasables.java:73)\n\tat [email protected]/org.elasticsearch.core.Releasables.close(Releasables.java:41)\n\tat [email protected]/org.elasticsearch.xpack.ml.aggs.frequentitemsets.ImmutableTransactionStore.close(ImmutableTransactionStore.java:142)\n\tat [email protected]/org.elasticsearch.core.IOUtils.close(IOUtils.java:71)\n\tat [email protected]/org.elasticsearch.core.Releasables.close(Releasables.java:33)\n\tat [email protected]/org.elasticsearch.xpack.ml.aggs.frequentitemsets.EclatMapReducer.lambda$reduce$0(EclatMapReducer.java:344)\n\tat java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)\n\tat java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)\n\tat java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)\n\tat java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)\n\tat java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)\n\tat java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)\n\tat java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)\n\tat java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)\n\tat java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)\n\tat java.base/java.util.stream.ReferencePipeline.forEachOrdered(ReferencePipeline.java:601)\n\tat [email protected]/org.elasticsearch.xpack.ml.aggs.frequentitemsets.EclatMapReducer.reduce(EclatMapReducer.java:332)\n\tat [email protected]/org.elasticsearch.xpack.ml.aggs.frequentitemsets.EclatMapReducer.reduce(EclatMapReducer.java:69)\n\tat [email protected]/org.elasticsearch.xpack.ml.aggs.frequentitemsets.mr.InternalItemSetMapReduceAggregation.reduce(InternalItemSetMapReduceAggregation.java:122)\n\tat [email protected]/org.elasticsearch.search.aggregations.InternalAggregations.reduce(InternalAggregations.java:159)\n\tat [email protected]/org.elasticsearch.search.aggregations.InternalAggregations.topLevelReduce(InternalAggregations.java:106)\n\tat [email protected]/org.elasticsearch.action.search.SearchPhaseController.reduceAggs(SearchPhaseController.java:631)\n\tat [email protected]/org.elasticsearch.action.search.SearchPhaseController.reducedQueryPhase(SearchPhaseController.java:594)\n\tat [email protected]/org.elasticsearch.action.search.QueryPhaseResultConsumer.reduce(QueryPhaseResultConsumer.java:138)\n\tat [email protected]/org.elasticsearch.action.search.FetchSearchPhase.innerRun(FetchSearchPhase.java:104)\n\tat [email protected]/org.elasticsearch.action.search.FetchSearchPhase$1.doRun(FetchSearchPhase.java:90)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:33)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\n"},"stack_trace":"Failed to execute phase [fetch], \n\tat [email protected]/org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseFailure(AbstractSearchAsyncAction.java:729)\n\tat [email protected]/org.elasticsearch.action.search.FetchSearchPhase$1.onFailure(FetchSearchPhase.java:95)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:28)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:33)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\nCaused by: java.lang.IllegalStateException: already closed\n\tat [email protected]/org.elasticsearch.common.breaker.PreallocatedCircuitBreakerService$PreallocatedCircuitBreaker.addWithoutBreaking(PreallocatedCircuitBreakerService.java:131)\n\tat [email protected]/org.elasticsearch.search.aggregations.AggregatorBase.addRequestCircuitBreakerBytes(AggregatorBase.java:148)\n\tat [email protected]/org.elasticsearch.xpack.ml.aggs.frequentitemsets.mr.ItemSetMapReduceAggregator.lambda$new$0(ItemSetMapReduceAggregator.java:108)\n\tat [email protected]/org.elasticsearch.xpack.ml.aggs.frequentitemsets.mr.DelegatingCircuitBreakerService$DelegatingCircuitBreaker.addWithoutBreaking(DelegatingCircuitBreakerService.java:92)\n\tat [email protected]/org.elasticsearch.common.util.BigArrays.adjustBreaker(BigArrays.java:477)\n\tat [email protected]/org.elasticsearch.common.util.AbstractArray.close(AbstractArray.java:28)\n\tat [email protected]/org.elasticsearch.core.IOUtils.close(IOUtils.java:71)\n\tat [email protected]/org.elasticsearch.core.IOUtils.close(IOUtils.java:87)\n\tat [email protected]/org.elasticsearch.core.IOUtils.close(IOUtils.java:63)\n\tat [email protected]/org.elasticsearch.core.Releasables.close(Releasables.java:73)\n\tat [email protected]/org.elasticsearch.core.Releasables.close(Releasables.java:41)\n\tat [email protected]/org.elasticsearch.common.util.BytesRefArray.close(BytesRefArray.java:117)\n\tat [email protected]/org.elasticsearch.core.IOUtils.close(IOUtils.java:71)\n\tat [email protected]/org.elasticsearch.core.IOUtils.close(IOUtils.java:87)\n\tat [email protected]/org.elasticsearch.core.IOUtils.close(IOUtils.java:63)\n\tat [email protected]/org.elasticsearch.core.Releasables.close(Releasables.java:73)\n\tat [email protected]/org.elasticsearch.core.Releasables.close(Releasables.java:41)\n\tat [email protected]/org.elasticsearch.xpack.ml.aggs.frequentitemsets.ImmutableTransactionStore.close(ImmutableTransactionStore.java:142)\n\tat [email protected]/org.elasticsearch.core.IOUtils.close(IOUtils.java:71)\n\tat [email protected]/org.elasticsearch.core.Releasables.close(Releasables.java:33)\n\tat [email protected]/org.elasticsearch.xpack.ml.aggs.frequentitemsets.EclatMapReducer.lambda$reduce$0(EclatMapReducer.java:344)\n\tat java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)\n\tat java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)\n\tat java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)\n\tat java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)\n\tat java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)\n\tat java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)\n\tat java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)\n\tat java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)\n\tat java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)\n\tat java.base/java.util.stream.ReferencePipeline.forEachOrdered(ReferencePipeline.java:601)\n\tat [email protected]/org.elasticsearch.xpack.ml.aggs.frequentitemsets.EclatMapReducer.reduce(EclatMapReducer.java:332)\n\tat [email protected]/org.elasticsearch.xpack.ml.aggs.frequentitemsets.EclatMapReducer.reduce(EclatMapReducer.java:69)\n\tat [email protected]/org.elasticsearch.xpack.ml.aggs.frequentitemsets.mr.InternalItemSetMapReduceAggregation.reduce(InternalItemSetMapReduceAggregation.java:122)\n\tat [email protected]/org.elasticsearch.search.aggregations.InternalAggregations.reduce(InternalAggregations.java:159)\n\tat [email protected]/org.elasticsearch.search.aggregations.InternalAggregations.topLevelReduce(InternalAggregations.java:106)\n\tat [email protected]/org.elasticsearch.action.search.SearchPhaseController.reduceAggs(SearchPhaseController.java:631)\n\tat [email protected]/org.elasticsearch.action.search.SearchPhaseController.reducedQueryPhase(SearchPhaseController.java:594)\n\tat [email protected]/org.elasticsearch.action.search.QueryPhaseResultConsumer.reduce(QueryPhaseResultConsumer.java:138)\n\tat [email protected]/org.elasticsearch.action.search.FetchSearchPhase.innerRun(FetchSearchPhase.java:104)\n\tat [email protected]/org.elasticsearch.action.search.FetchSearchPhase$1.doRun(FetchSearchPhase.java:90)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\t... 6 more\n"},"status":500}]
at __randomizedtesting.SeedInfo.seed([AB9BDFBDA7D09640:23CFE067092CFBB8]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:572)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:524)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.AssertionError: expected [2xx] status code but api [search] returned [500 Internal Server Error] [{"error":{"root_cause":[],"type":"search_phase_execution_exception","reason":"","phase":"fetch","grouped":true,"failed_shards":[],"caused_by":{"type":"illegal_state_exception","reason":"already closed","stack_trace":"java.lang.IllegalStateException: already closed\n\tat [email protected]/org.elasticsearch.common.breaker.PreallocatedCircuitBreakerService$PreallocatedCircuitBreaker.addWithoutBreaking(PreallocatedCircuitBreakerService.java:131)\n\tat [email protected]/org.elasticsearch.search.aggregations.AggregatorBase.addRequestCircuitBreakerBytes(AggregatorBase.java:148)\n\tat [email protected]/org.elasticsearch.xpack.ml.aggs.frequentitemsets.mr.ItemSetMapReduceAggregator.lambda$new$0(ItemSetMapReduceAggregator.java:108)\n\tat [email protected]/org.elasticsearch.xpack.ml.aggs.frequentitemsets.mr.DelegatingCircuitBreakerService$DelegatingCircuitBreaker.addWithoutBreaking(DelegatingCircuitBreakerService.java:92)\n\tat [email protected]/org.elasticsearch.common.util.BigArrays.adjustBreaker(BigArrays.java:477)\n\tat [email protected]/org.elasticsearch.common.util.AbstractArray.close(AbstractArray.java:28)\n\tat [email protected]/org.elasticsearch.core.IOUtils.close(IOUtils.java:71)\n\tat [email protected]/org.elasticsearch.core.IOUtils.close(IOUtils.java:87)\n\tat [email protected]/org.elasticsearch.core.IOUtils.close(IOUtils.java:63)\n\tat [email protected]/org.elasticsearch.core.Releasables.close(Releasables.java:73)\n\tat [email protected]/org.elasticsearch.core.Releasables.close(Releasables.java:41)\n\tat [email protected]/org.elasticsearch.common.util.BytesRefArray.close(BytesRefArray.java:117)\n\tat [email protected]/org.elasticsearch.core.IOUtils.close(IOUtils.java:71)\n\tat [email protected]/org.elasticsearch.core.IOUtils.close(IOUtils.java:87)\n\tat [email protected]/org.elasticsearch.core.IOUtils.close(IOUtils.java:63)\n\tat [email protected]/org.elasticsearch.core.Releasables.close(Releasables.java:73)\n\tat [email protected]/org.elasticsearch.core.Releasables.close(Releasables.java:41)\n\tat [email protected]/org.elasticsearch.xpack.ml.aggs.frequentitemsets.ImmutableTransactionStore.close(ImmutableTransactionStore.java:142)\n\tat [email protected]/org.elasticsearch.core.IOUtils.close(IOUtils.java:71)\n\tat [email protected]/org.elasticsearch.core.Releasables.close(Releasables.java:33)\n\tat [email protected]/org.elasticsearch.xpack.ml.aggs.frequentitemsets.EclatMapReducer.lambda$reduce$0(EclatMapReducer.java:344)\n\tat java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)\n\tat java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)\n\tat java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)\n\tat java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)\n\tat java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)\n\tat java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)\n\tat java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)\n\tat java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)\n\tat java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)\n\tat java.base/java.util.stream.ReferencePipeline.forEachOrdered(ReferencePipeline.java:601)\n\tat [email protected]/org.elasticsearch.xpack.ml.aggs.frequentitemsets.EclatMapReducer.reduce(EclatMapReducer.java:332)\n\tat [email protected]/org.elasticsearch.xpack.ml.aggs.frequentitemsets.EclatMapReducer.reduce(EclatMapReducer.java:69)\n\tat [email protected]/org.elasticsearch.xpack.ml.aggs.frequentitemsets.mr.InternalItemSetMapReduceAggregation.reduce(InternalItemSetMapReduceAggregation.java:122)\n\tat [email protected]/org.elasticsearch.search.aggregations.InternalAggregations.reduce(InternalAggregations.java:159)\n\tat [email protected]/org.elasticsearch.search.aggregations.InternalAggregations.topLevelReduce(InternalAggregations.java:106)\n\tat [email protected]/org.elasticsearch.action.search.SearchPhaseController.reduceAggs(SearchPhaseController.java:631)\n\tat [email protected]/org.elasticsearch.action.search.SearchPhaseController.reducedQueryPhase(SearchPhaseController.java:594)\n\tat [email protected]/org.elasticsearch.action.search.QueryPhaseResultConsumer.reduce(QueryPhaseResultConsumer.java:138)\n\tat [email protected]/org.elasticsearch.action.search.FetchSearchPhase.innerRun(FetchSearchPhase.java:104)\n\tat [email protected]/org.elasticsearch.action.search.FetchSearchPhase$1.doRun(FetchSearchPhase.java:90)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:33)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\n"},"stack_trace":"Failed to execute phase [fetch], \n\tat [email protected]/org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseFailure(AbstractSearchAsyncAction.java:729)\n\tat [email protected]/org.elasticsearch.action.search.FetchSearchPhase$1.onFailure(FetchSearchPhase.java:95)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:28)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:33)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\nCaused by: java.lang.IllegalStateException: already closed\n\tat [email protected]/org.elasticsearch.common.breaker.PreallocatedCircuitBreakerService$PreallocatedCircuitBreaker.addWithoutBreaking(PreallocatedCircuitBreakerService.java:131)\n\tat [email protected]/org.elasticsearch.search.aggregations.AggregatorBase.addRequestCircuitBreakerBytes(AggregatorBase.java:148)\n\tat [email protected]/org.elasticsearch.xpack.ml.aggs.frequentitemsets.mr.ItemSetMapReduceAggregator.lambda$new$0(ItemSetMapReduceAggregator.java:108)\n\tat [email protected]/org.elasticsearch.xpack.ml.aggs.frequentitemsets.mr.DelegatingCircuitBreakerService$DelegatingCircuitBreaker.addWithoutBreaking(DelegatingCircuitBreakerService.java:92)\n\tat [email protected]/org.elasticsearch.common.util.BigArrays.adjustBreaker(BigArrays.java:477)\n\tat [email protected]/org.elasticsearch.common.util.AbstractArray.close(AbstractArray.java:28)\n\tat [email protected]/org.elasticsearch.core.IOUtils.close(IOUtils.java:71)\n\tat [email protected]/org.elasticsearch.core.IOUtils.close(IOUtils.java:87)\n\tat [email protected]/org.elasticsearch.core.IOUtils.close(IOUtils.java:63)\n\tat [email protected]/org.elasticsearch.core.Releasables.close(Releasables.java:73)\n\tat [email protected]/org.elasticsearch.core.Releasables.close(Releasables.java:41)\n\tat [email protected]/org.elasticsearch.common.util.BytesRefArray.close(BytesRefArray.java:117)\n\tat [email protected]/org.elasticsearch.core.IOUtils.close(IOUtils.java:71)\n\tat [email protected]/org.elasticsearch.core.IOUtils.close(IOUtils.java:87)\n\tat [email protected]/org.elasticsearch.core.IOUtils.close(IOUtils.java:63)\n\tat [email protected]/org.elasticsearch.core.Releasables.close(Releasables.java:73)\n\tat [email protected]/org.elasticsearch.core.Releasables.close(Releasables.java:41)\n\tat [email protected]/org.elasticsearch.xpack.ml.aggs.frequentitemsets.ImmutableTransactionStore.close(ImmutableTransactionStore.java:142)\n\tat [email protected]/org.elasticsearch.core.IOUtils.close(IOUtils.java:71)\n\tat [email protected]/org.elasticsearch.core.Releasables.close(Releasables.java:33)\n\tat [email protected]/org.elasticsearch.xpack.ml.aggs.frequentitemsets.EclatMapReducer.lambda$reduce$0(EclatMapReducer.java:344)\n\tat java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)\n\tat java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)\n\tat java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)\n\tat java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)\n\tat java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)\n\tat java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)\n\tat java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)\n\tat java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)\n\tat java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)\n\tat java.base/java.util.stream.ReferencePipeline.forEachOrdered(ReferencePipeline.java:601)\n\tat [email protected]/org.elasticsearch.xpack.ml.aggs.frequentitemsets.EclatMapReducer.reduce(EclatMapReducer.java:332)\n\tat [email protected]/org.elasticsearch.xpack.ml.aggs.frequentitemsets.EclatMapReducer.reduce(EclatMapReducer.java:69)\n\tat [email protected]/org.elasticsearch.xpack.ml.aggs.frequentitemsets.mr.InternalItemSetMapReduceAggregation.reduce(InternalItemSetMapReduceAggregation.java:122)\n\tat [email protected]/org.elasticsearch.search.aggregations.InternalAggregations.reduce(InternalAggregations.java:159)\n\tat [email protected]/org.elasticsearch.search.aggregations.InternalAggregations.topLevelReduce(InternalAggregations.java:106)\n\tat [email protected]/org.elasticsearch.action.search.SearchPhaseController.reduceAggs(SearchPhaseController.java:631)\n\tat [email protected]/org.elasticsearch.action.search.SearchPhaseController.reducedQueryPhase(SearchPhaseController.java:594)\n\tat [email protected]/org.elasticsearch.action.search.QueryPhaseResultConsumer.reduce(QueryPhaseResultConsumer.java:138)\n\tat [email protected]/org.elasticsearch.action.search.FetchSearchPhase.innerRun(FetchSearchPhase.java:104)\n\tat [email protected]/org.elasticsearch.action.search.FetchSearchPhase$1.doRun(FetchSearchPhase.java:90)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\t... 6 more\n"},"status":500}]
at org.junit.Assert.fail(Assert.java:88)
at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:373)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:552)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:524)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95681 | https://github.com/elastic/elasticsearch/pull/95860 | 57e0cb30819f1b54d76fc2f249da60e78c5e0e00 | 5150b8231590e0adac46f4710e24d1b59649d12c | 2023-04-28T15:05:48Z | java | 2023-05-05T12:38:07Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,670 | ["server/src/main/java/org/elasticsearch/search/SearchService.java"] | Change visibility of SearchService$ResultsType to protected | ### Description
In [siren federate](https://siren.io/federate/) we extend the `SearchService` to create `SearchContext` instances. In 8.8 this is not possible anymore because the `createContext` method takes the `ResultsType` enum which is package private.
https://github.com/elastic/elasticsearch/blob/b640c217cccab67dce7d954bc92b6b519c102b16/server/src/main/java/org/elasticsearch/search/SearchService.java#L992-L998
In order to be able to keep on calling that method from another package, the visibility of the enum `ResultsType` should be increased to `protected`. | https://github.com/elastic/elasticsearch/issues/95670 | https://github.com/elastic/elasticsearch/pull/95671 | fc2fa4d082ff9d431b0f97e69b5995e34a12fece | 73e5c25442706497d2b452c4ef2edadbd648a03d | 2023-04-28T12:29:15Z | java | 2023-05-08T09:22:02Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,663 | ["docs/changelog/96180.yaml", "x-pack/plugin/analytics/src/main/java/org/elasticsearch/xpack/analytics/topmetrics/TopMetricsAggregationBuilder.java", "x-pack/plugin/analytics/src/test/java/org/elasticsearch/xpack/analytics/topmetrics/TopMetricsAggregationBuilderTests.java"] | top_metrics aggregation should fail if it contains sub aggregations | top_metrics is a metric aggregation that does not support sub aggregations. Currently if you add sub aggregation they will be silently ignored. Instead it should throw an error reporting it to the user. It is very easy to reproduce by using the example in the docs:
```
POST /test/_bulk?refresh
{"index": {}}
{"s": 1, "m": 3.1415}
{"index": {}}
{"s": 2, "m": 1.0}
{"index": {}}
{"s": 3, "m": 2.71828}
POST /test/_search?filter_path=aggregations
{
"aggs": {
"tm": {
"top_metrics": {
"metrics": {"field": "m"},
"sort": {"s": "desc"}
},
"aggs": {
"min": {
"min": {
"field": "m"
}
}
}
}
}
}
``` | https://github.com/elastic/elasticsearch/issues/95663 | https://github.com/elastic/elasticsearch/pull/96180 | 0cf1b706a9d008ce3a7ec2bad3b3c4e1a6a32e92 | d1ec14fead1e49eb8d12077d412d583d0b1742c8 | 2023-04-28T10:53:17Z | java | 2023-05-23T09:57:34Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,657 | ["x-pack/plugin/ent-search/qa/rest/src/yamlRestTest/resources/rest-api-spec/test/entsearch/60_behavioral_analytics_list.yml", "x-pack/plugin/ent-search/qa/rest/src/yamlRestTest/resources/rest-api-spec/test/entsearch/70_behavioral_analytics_put.yml", "x-pack/plugin/ent-search/qa/rest/src/yamlRestTest/resources/rest-api-spec/test/entsearch/90_behavioral_analytics_event_post.yml", "x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/analytics/ingest/AnalyticsEventEmitter.java"] | [CI] EnterpriseSearchRestIT test {p0=entsearch/90_behavioral_analytics_event_post/Post search analytics event - With sort name and direction} failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/wmtxtin3etxp4/tests/:x-pack:plugin:ent-search:qa:rest:yamlRestTest/org.elasticsearch.xpack.entsearch.EnterpriseSearchRestIT/test%20%7Bp0=entsearch%2F90_behavioral_analytics_event_post%2FPost%20search%20analytics%20event%20-%20With%20sort%20name%20and%20direction%7D
**Reproduction line:**
```
./gradlew ':x-pack:plugin:ent-search:qa:rest:yamlRestTest' --tests "org.elasticsearch.xpack.entsearch.EnterpriseSearchRestIT.test {p0=entsearch/90_behavioral_analytics_event_post/Post search analytics event - With sort name and direction}" -Dtests.seed=3DF5D7A3E74E9109 -Dtests.locale=da-DK -Dtests.timezone=America/Argentina/San_Juan -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.entsearch.EnterpriseSearchRestIT&tests.test=test%20%7Bp0%3Dentsearch/90_behavioral_analytics_event_post/Post%20search%20analytics%20event%20-%20With%20sort%20name%20and%20direction%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [entsearch/90_behavioral_analytics_event_post:2]: expected [2xx] status code but api [search_application.put_behavioral_analytics] returned [400 Bad Request] [{"error":{"root_cause":[{"type":"resource_already_exists_exception","reason":"analytics collection [my-test-analytics-collection] already exists","stack_trace":"org.elasticsearch.ResourceAlreadyExistsException: analytics collection [my-test-analytics-collection] already exists\n\tat [email protected]/org.elasticsearch.xpack.application.analytics.AnalyticsCollectionService.lambda$putAnalyticsCollection$1(AnalyticsCollectionService.java:91)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:166)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:71)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat [email protected]/org.elasticsearch.action.support.ContextPreservingActionListener.onFailure(ContextPreservingActionListener.java:39)\n\tat [email protected]/org.elasticsearch.client.internal.node.NodeClient$SafelyWrappedActionListener.onFailure(NodeClient.java:170)\n\tat [email protected]/org.elasticsearch.tasks.TaskManager$1.onFailure(TaskManager.java:217)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:71)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat [email protected]/org.elasticsearch.action.support.ContextPreservingActionListener.onFailure(ContextPreservingActionListener.java:39)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:71)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat [email protected]/org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.lambda$doStart$2(TransportMasterNodeAction.java:231)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations$DelegatingResponseActionListener.acceptException(ActionListenerImplementations.java:126)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations$DelegatingResponseActionListener.onFailure(ActionListenerImplementations.java:131)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:166)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.lambda$notifyListenerFailed$1(AllocationActionListener.java:52)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.executeInContext(AllocationActionListener.java:58)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.notifyListenerFailed(AllocationActionListener.java:52)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener$1.onFailure(AllocationActionListener.java:84)\n\tat [email protected]/org.elasticsearch.cluster.AckedClusterStateUpdateTask.onFailure(AckedClusterStateUpdateTask.java:75)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$ExecutionResult.notifyFailure(MasterService.java:975)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$ExecutionResult.onClusterStateUnchanged(MasterService.java:938)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService.executeAndPublishBatch(MasterService.java:245)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.lambda$run$2(MasterService.java:1622)\n\tat [email protected]/org.elasticsearch.action.ActionListener.run(ActionListener.java:357)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.run(MasterService.java:1619)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$5.lambda$doRun$0(MasterService.java:1237)\n\tat [email protected]/org.elasticsearch.action.ActionListener.run(ActionListener.java:357)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$5.doRun(MasterService.java:1216)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\n"}],"type":"resource_already_exists_exception","reason":"analytics collection [my-test-analytics-collection] already exists","stack_trace":"org.elasticsearch.ResourceAlreadyExistsException: analytics collection [my-test-analytics-collection] already exists\n\tat [email protected]/org.elasticsearch.xpack.application.analytics.AnalyticsCollectionService.lambda$putAnalyticsCollection$1(AnalyticsCollectionService.java:91)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:166)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:71)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat [email protected]/org.elasticsearch.action.support.ContextPreservingActionListener.onFailure(ContextPreservingActionListener.java:39)\n\tat [email protected]/org.elasticsearch.client.internal.node.NodeClient$SafelyWrappedActionListener.onFailure(NodeClient.java:170)\n\tat [email protected]/org.elasticsearch.tasks.TaskManager$1.onFailure(TaskManager.java:217)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:71)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat [email protected]/org.elasticsearch.action.support.ContextPreservingActionListener.onFailure(ContextPreservingActionListener.java:39)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:71)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat [email protected]/org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.lambda$doStart$2(TransportMasterNodeAction.java:231)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations$DelegatingResponseActionListener.acceptException(ActionListenerImplementations.java:126)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations$DelegatingResponseActionListener.onFailure(ActionListenerImplementations.java:131)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:166)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.lambda$notifyListenerFailed$1(AllocationActionListener.java:52)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.executeInContext(AllocationActionListener.java:58)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.notifyListenerFailed(AllocationActionListener.java:52)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener$1.onFailure(AllocationActionListener.java:84)\n\tat [email protected]/org.elasticsearch.cluster.AckedClusterStateUpdateTask.onFailure(AckedClusterStateUpdateTask.java:75)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$ExecutionResult.notifyFailure(MasterService.java:975)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$ExecutionResult.onClusterStateUnchanged(MasterService.java:938)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService.executeAndPublishBatch(MasterService.java:245)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.lambda$run$2(MasterService.java:1622)\n\tat [email protected]/org.elasticsearch.action.ActionListener.run(ActionListener.java:357)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.run(MasterService.java:1619)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$5.lambda$doRun$0(MasterService.java:1237)\n\tat [email protected]/org.elasticsearch.action.ActionListener.run(ActionListener.java:357)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$5.doRun(MasterService.java:1216)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\n"},"status":400}]
at __randomizedtesting.SeedInfo.seed([3DF5D7A3E74E9109:B5A1E87949B2FCF1]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:572)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:515)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.AssertionError: expected [2xx] status code but api [search_application.put_behavioral_analytics] returned [400 Bad Request] [{"error":{"root_cause":[{"type":"resource_already_exists_exception","reason":"analytics collection [my-test-analytics-collection] already exists","stack_trace":"org.elasticsearch.ResourceAlreadyExistsException: analytics collection [my-test-analytics-collection] already exists\n\tat [email protected]/org.elasticsearch.xpack.application.analytics.AnalyticsCollectionService.lambda$putAnalyticsCollection$1(AnalyticsCollectionService.java:91)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:166)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:71)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat [email protected]/org.elasticsearch.action.support.ContextPreservingActionListener.onFailure(ContextPreservingActionListener.java:39)\n\tat [email protected]/org.elasticsearch.client.internal.node.NodeClient$SafelyWrappedActionListener.onFailure(NodeClient.java:170)\n\tat [email protected]/org.elasticsearch.tasks.TaskManager$1.onFailure(TaskManager.java:217)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:71)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat [email protected]/org.elasticsearch.action.support.ContextPreservingActionListener.onFailure(ContextPreservingActionListener.java:39)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:71)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat [email protected]/org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.lambda$doStart$2(TransportMasterNodeAction.java:231)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations$DelegatingResponseActionListener.acceptException(ActionListenerImplementations.java:126)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations$DelegatingResponseActionListener.onFailure(ActionListenerImplementations.java:131)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:166)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.lambda$notifyListenerFailed$1(AllocationActionListener.java:52)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.executeInContext(AllocationActionListener.java:58)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.notifyListenerFailed(AllocationActionListener.java:52)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener$1.onFailure(AllocationActionListener.java:84)\n\tat [email protected]/org.elasticsearch.cluster.AckedClusterStateUpdateTask.onFailure(AckedClusterStateUpdateTask.java:75)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$ExecutionResult.notifyFailure(MasterService.java:975)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$ExecutionResult.onClusterStateUnchanged(MasterService.java:938)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService.executeAndPublishBatch(MasterService.java:245)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.lambda$run$2(MasterService.java:1622)\n\tat [email protected]/org.elasticsearch.action.ActionListener.run(ActionListener.java:357)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.run(MasterService.java:1619)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$5.lambda$doRun$0(MasterService.java:1237)\n\tat [email protected]/org.elasticsearch.action.ActionListener.run(ActionListener.java:357)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$5.doRun(MasterService.java:1216)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\n"}],"type":"resource_already_exists_exception","reason":"analytics collection [my-test-analytics-collection] already exists","stack_trace":"org.elasticsearch.ResourceAlreadyExistsException: analytics collection [my-test-analytics-collection] already exists\n\tat [email protected]/org.elasticsearch.xpack.application.analytics.AnalyticsCollectionService.lambda$putAnalyticsCollection$1(AnalyticsCollectionService.java:91)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:166)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:71)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat [email protected]/org.elasticsearch.action.support.ContextPreservingActionListener.onFailure(ContextPreservingActionListener.java:39)\n\tat [email protected]/org.elasticsearch.client.internal.node.NodeClient$SafelyWrappedActionListener.onFailure(NodeClient.java:170)\n\tat [email protected]/org.elasticsearch.tasks.TaskManager$1.onFailure(TaskManager.java:217)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:71)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat [email protected]/org.elasticsearch.action.support.ContextPreservingActionListener.onFailure(ContextPreservingActionListener.java:39)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:71)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat [email protected]/org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.lambda$doStart$2(TransportMasterNodeAction.java:231)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations$DelegatingResponseActionListener.acceptException(ActionListenerImplementations.java:126)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations$DelegatingResponseActionListener.onFailure(ActionListenerImplementations.java:131)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:166)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.lambda$notifyListenerFailed$1(AllocationActionListener.java:52)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.executeInContext(AllocationActionListener.java:58)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.notifyListenerFailed(AllocationActionListener.java:52)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener$1.onFailure(AllocationActionListener.java:84)\n\tat [email protected]/org.elasticsearch.cluster.AckedClusterStateUpdateTask.onFailure(AckedClusterStateUpdateTask.java:75)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$ExecutionResult.notifyFailure(MasterService.java:975)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$ExecutionResult.onClusterStateUnchanged(MasterService.java:938)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService.executeAndPublishBatch(MasterService.java:245)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.lambda$run$2(MasterService.java:1622)\n\tat [email protected]/org.elasticsearch.action.ActionListener.run(ActionListener.java:357)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.run(MasterService.java:1619)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$5.lambda$doRun$0(MasterService.java:1237)\n\tat [email protected]/org.elasticsearch.action.ActionListener.run(ActionListener.java:357)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$5.doRun(MasterService.java:1216)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\n"},"status":400}]
at org.junit.Assert.fail(Assert.java:88)
at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:373)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:552)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:515)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95657 | https://github.com/elastic/elasticsearch/pull/95880 | 9f0f0fc129bbc42d30f6274d5d0d47ce17719d79 | 6f928dab097aa8e2828ba70af677f275a0c87c56 | 2023-04-28T08:47:14Z | java | 2023-05-05T15:38:07Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,634 | ["server/src/main/java/org/elasticsearch/index/mapper/DynamicTemplate.java", "server/src/test/java/org/elasticsearch/index/mapper/DynamicTemplatesTests.java"] | Warn user if regular expression is used when match_pattern defaults to simple in dynamic_template mappings | ### Description
This was flagged by @romseygeek in https://github.com/elastic/elasticsearch/pull/95558#discussion_r1177625654 to be targeted for a new issue.
In dynamic_template mappings, 'simple' match types (which is the default setting) will happily accept regexes (rather than simple wildcards) without error or warning, but then they will not work as the user likely intended. We should emit a warning if the user provides a pattern that 'looks like' a regex, but haven't explicitly set match_type.
----
Deeper context:
The validate method in DynamicTemplate.parse tries to catch these, but it only catches the invalid pattern when match_pattern=regex. For example, see the test: https://github.com/elastic/elasticsearch/blob/main/server/src/test/java/org/elasticsearch/index/mapper/DynamicTemplateParseTests.java#L132
Current behavior is:
```
"mappings": {
"dynamic_templates": [
{
"mytemplate": {
"match_pattern": "regex",
"match": "*name",
"unmatch": "*middle",
"mapping": {
"type": "keyword"
}
}
}
]
}
```
fails with:
```
"type": "mapper_parsing_exception",
"reason": "Failed to parse mapping: Pattern [*name] of type [regex] is invalid. Cannot create dynamic template [mytemplate].",\
```
but:
```
{
"mytemplate": {
"match": ".*name$",
"unmatch": "^.*middle.*",
"mapping": {
"type": "keyword"
}
}
}
```
(where `"match_pattern": "simple"` is implied) works with no problems (until you try to actually put documents in with the mapping, of course).
We could probably add a method to Regex.java. There is already this function
```
public static boolean isSimpleMatchPattern(String str) {
return str.indexOf('*') != -1;
}
```
but that's not enough for this scenario.
[This code](https://github.com/elastic/elasticsearch/blob/main/server/src/main/java/org/elasticsearch/common/regex/Regex.java#L133) indicates that the only allowed patterns for "simple" are "xxx*", "*xxx", "*xxx*" and "xxx*yyy", so we could check for things like .* and ^xxx and yyy$ and chars like [, ] and | and maybe parens and then run it through [REGEX.matches()](https://github.com/elastic/elasticsearch/blob/main/server/src/main/java/org/elasticsearch/index/mapper/DynamicTemplate.java#L40) and if that does NOT fail, then it appears to be a valid actual regex, not a simple pattern and then give a warning to users. | https://github.com/elastic/elasticsearch/issues/95634 | https://github.com/elastic/elasticsearch/pull/95750 | 753e74c739e4b96a84eaf2237d3918b1d8317448 | e3bd7d2f6ff6c924d68517fdeefae3129d0c6a1b | 2023-04-27T16:08:41Z | java | 2023-05-04T13:58:58Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,629 | ["x-pack/plugin/ent-search/qa/rest/src/yamlRestTest/resources/rest-api-spec/test/entsearch/60_behavioral_analytics_list.yml", "x-pack/plugin/ent-search/qa/rest/src/yamlRestTest/resources/rest-api-spec/test/entsearch/70_behavioral_analytics_put.yml", "x-pack/plugin/ent-search/qa/rest/src/yamlRestTest/resources/rest-api-spec/test/entsearch/90_behavioral_analytics_event_post.yml", "x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/analytics/ingest/AnalyticsEventEmitter.java"] | [CI] EnterpriseSearchRestIT test {p0=entsearch/90_behavioral_analytics_event_post/Post analytics event - Unknown event field} failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/i4c6rbbsw2zwo/tests/:x-pack:plugin:ent-search:qa:rest:yamlRestTest/org.elasticsearch.xpack.entsearch.EnterpriseSearchRestIT/test%20%7Bp0=entsearch%2F90_behavioral_analytics_event_post%2FPost%20analytics%20event%20-%20Unknown%20event%20field%7D
**Reproduction line:**
```
./gradlew ':x-pack:plugin:ent-search:qa:rest:yamlRestTest' --tests "org.elasticsearch.xpack.entsearch.EnterpriseSearchRestIT.test {p0=entsearch/90_behavioral_analytics_event_post/Post analytics event - Unknown event field}" -Dtests.seed=1C756D99D9475A47 -Dtests.locale=pt-BR -Dtests.timezone=America/Cayenne -Druntime.java=20 -Dtests.fips.enabled=true
```
**Applicable branches:**
main
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.entsearch.EnterpriseSearchRestIT&tests.test=test%20%7Bp0%3Dentsearch/90_behavioral_analytics_event_post/Post%20analytics%20event%20-%20Unknown%20event%20field%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [entsearch/90_behavioral_analytics_event_post:2]: expected [2xx] status code but api [search_application.put_behavioral_analytics] returned [400 Bad Request] [{"error":{"root_cause":[{"type":"resource_already_exists_exception","reason":"analytics collection [my-test-analytics-collection] already exists","stack_trace":"org.elasticsearch.ResourceAlreadyExistsException: analytics collection [my-test-analytics-collection] already exists\n\tat [email protected]/org.elasticsearch.xpack.application.analytics.AnalyticsCollectionService.lambda$putAnalyticsCollection$1(AnalyticsCollectionService.java:91)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:166)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:71)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat [email protected]/org.elasticsearch.action.support.ContextPreservingActionListener.onFailure(ContextPreservingActionListener.java:39)\n\tat [email protected]/org.elasticsearch.client.internal.node.NodeClient$SafelyWrappedActionListener.onFailure(NodeClient.java:170)\n\tat [email protected]/org.elasticsearch.tasks.TaskManager$1.onFailure(TaskManager.java:217)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:71)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat [email protected]/org.elasticsearch.action.support.ContextPreservingActionListener.onFailure(ContextPreservingActionListener.java:39)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:71)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat [email protected]/org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.lambda$doStart$2(TransportMasterNodeAction.java:231)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations$DelegatingResponseActionListener.acceptException(ActionListenerImplementations.java:126)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations$DelegatingResponseActionListener.onFailure(ActionListenerImplementations.java:131)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:166)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.lambda$notifyListenerFailed$1(AllocationActionListener.java:52)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.executeInContext(AllocationActionListener.java:58)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.notifyListenerFailed(AllocationActionListener.java:52)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener$1.onFailure(AllocationActionListener.java:84)\n\tat [email protected]/org.elasticsearch.cluster.AckedClusterStateUpdateTask.onFailure(AckedClusterStateUpdateTask.java:75)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$ExecutionResult.notifyFailure(MasterService.java:975)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$ExecutionResult.onClusterStateUnchanged(MasterService.java:938)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService.executeAndPublishBatch(MasterService.java:245)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.lambda$run$2(MasterService.java:1622)\n\tat [email protected]/org.elasticsearch.action.ActionListener.run(ActionListener.java:357)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.run(MasterService.java:1619)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$5.lambda$doRun$0(MasterService.java:1237)\n\tat [email protected]/org.elasticsearch.action.ActionListener.run(ActionListener.java:357)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$5.doRun(MasterService.java:1216)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\n"}],"type":"resource_already_exists_exception","reason":"analytics collection [my-test-analytics-collection] already exists","stack_trace":"org.elasticsearch.ResourceAlreadyExistsException: analytics collection [my-test-analytics-collection] already exists\n\tat [email protected]/org.elasticsearch.xpack.application.analytics.AnalyticsCollectionService.lambda$putAnalyticsCollection$1(AnalyticsCollectionService.java:91)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:166)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:71)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat [email protected]/org.elasticsearch.action.support.ContextPreservingActionListener.onFailure(ContextPreservingActionListener.java:39)\n\tat [email protected]/org.elasticsearch.client.internal.node.NodeClient$SafelyWrappedActionListener.onFailure(NodeClient.java:170)\n\tat [email protected]/org.elasticsearch.tasks.TaskManager$1.onFailure(TaskManager.java:217)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:71)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat [email protected]/org.elasticsearch.action.support.ContextPreservingActionListener.onFailure(ContextPreservingActionListener.java:39)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:71)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat [email protected]/org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.lambda$doStart$2(TransportMasterNodeAction.java:231)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations$DelegatingResponseActionListener.acceptException(ActionListenerImplementations.java:126)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations$DelegatingResponseActionListener.onFailure(ActionListenerImplementations.java:131)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:166)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.lambda$notifyListenerFailed$1(AllocationActionListener.java:52)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.executeInContext(AllocationActionListener.java:58)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.notifyListenerFailed(AllocationActionListener.java:52)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener$1.onFailure(AllocationActionListener.java:84)\n\tat [email protected]/org.elasticsearch.cluster.AckedClusterStateUpdateTask.onFailure(AckedClusterStateUpdateTask.java:75)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$ExecutionResult.notifyFailure(MasterService.java:975)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$ExecutionResult.onClusterStateUnchanged(MasterService.java:938)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService.executeAndPublishBatch(MasterService.java:245)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.lambda$run$2(MasterService.java:1622)\n\tat [email protected]/org.elasticsearch.action.ActionListener.run(ActionListener.java:357)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.run(MasterService.java:1619)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$5.lambda$doRun$0(MasterService.java:1237)\n\tat [email protected]/org.elasticsearch.action.ActionListener.run(ActionListener.java:357)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$5.doRun(MasterService.java:1216)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\n"},"status":400}]
at __randomizedtesting.SeedInfo.seed([1C756D99D9475A47:9421524377BB37BF]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:572)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:515)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.AssertionError: expected [2xx] status code but api [search_application.put_behavioral_analytics] returned [400 Bad Request] [{"error":{"root_cause":[{"type":"resource_already_exists_exception","reason":"analytics collection [my-test-analytics-collection] already exists","stack_trace":"org.elasticsearch.ResourceAlreadyExistsException: analytics collection [my-test-analytics-collection] already exists\n\tat [email protected]/org.elasticsearch.xpack.application.analytics.AnalyticsCollectionService.lambda$putAnalyticsCollection$1(AnalyticsCollectionService.java:91)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:166)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:71)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat [email protected]/org.elasticsearch.action.support.ContextPreservingActionListener.onFailure(ContextPreservingActionListener.java:39)\n\tat [email protected]/org.elasticsearch.client.internal.node.NodeClient$SafelyWrappedActionListener.onFailure(NodeClient.java:170)\n\tat [email protected]/org.elasticsearch.tasks.TaskManager$1.onFailure(TaskManager.java:217)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:71)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat [email protected]/org.elasticsearch.action.support.ContextPreservingActionListener.onFailure(ContextPreservingActionListener.java:39)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:71)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat [email protected]/org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.lambda$doStart$2(TransportMasterNodeAction.java:231)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations$DelegatingResponseActionListener.acceptException(ActionListenerImplementations.java:126)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations$DelegatingResponseActionListener.onFailure(ActionListenerImplementations.java:131)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:166)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.lambda$notifyListenerFailed$1(AllocationActionListener.java:52)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.executeInContext(AllocationActionListener.java:58)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.notifyListenerFailed(AllocationActionListener.java:52)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener$1.onFailure(AllocationActionListener.java:84)\n\tat [email protected]/org.elasticsearch.cluster.AckedClusterStateUpdateTask.onFailure(AckedClusterStateUpdateTask.java:75)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$ExecutionResult.notifyFailure(MasterService.java:975)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$ExecutionResult.onClusterStateUnchanged(MasterService.java:938)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService.executeAndPublishBatch(MasterService.java:245)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.lambda$run$2(MasterService.java:1622)\n\tat [email protected]/org.elasticsearch.action.ActionListener.run(ActionListener.java:357)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.run(MasterService.java:1619)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$5.lambda$doRun$0(MasterService.java:1237)\n\tat [email protected]/org.elasticsearch.action.ActionListener.run(ActionListener.java:357)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$5.doRun(MasterService.java:1216)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\n"}],"type":"resource_already_exists_exception","reason":"analytics collection [my-test-analytics-collection] already exists","stack_trace":"org.elasticsearch.ResourceAlreadyExistsException: analytics collection [my-test-analytics-collection] already exists\n\tat [email protected]/org.elasticsearch.xpack.application.analytics.AnalyticsCollectionService.lambda$putAnalyticsCollection$1(AnalyticsCollectionService.java:91)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:166)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:71)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat [email protected]/org.elasticsearch.action.support.ContextPreservingActionListener.onFailure(ContextPreservingActionListener.java:39)\n\tat [email protected]/org.elasticsearch.client.internal.node.NodeClient$SafelyWrappedActionListener.onFailure(NodeClient.java:170)\n\tat [email protected]/org.elasticsearch.tasks.TaskManager$1.onFailure(TaskManager.java:217)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:71)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat [email protected]/org.elasticsearch.action.support.ContextPreservingActionListener.onFailure(ContextPreservingActionListener.java:39)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:71)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:27)\n\tat [email protected]/org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.lambda$doStart$2(TransportMasterNodeAction.java:231)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations$DelegatingResponseActionListener.acceptException(ActionListenerImplementations.java:126)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations$DelegatingResponseActionListener.onFailure(ActionListenerImplementations.java:131)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:166)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.lambda$notifyListenerFailed$1(AllocationActionListener.java:52)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.executeInContext(AllocationActionListener.java:58)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener.notifyListenerFailed(AllocationActionListener.java:52)\n\tat [email protected]/org.elasticsearch.cluster.routing.allocation.allocator.AllocationActionListener$1.onFailure(AllocationActionListener.java:84)\n\tat [email protected]/org.elasticsearch.cluster.AckedClusterStateUpdateTask.onFailure(AckedClusterStateUpdateTask.java:75)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$ExecutionResult.notifyFailure(MasterService.java:975)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$ExecutionResult.onClusterStateUnchanged(MasterService.java:938)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService.executeAndPublishBatch(MasterService.java:245)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.lambda$run$2(MasterService.java:1622)\n\tat [email protected]/org.elasticsearch.action.ActionListener.run(ActionListener.java:357)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.run(MasterService.java:1619)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$5.lambda$doRun$0(MasterService.java:1237)\n\tat [email protected]/org.elasticsearch.action.ActionListener.run(ActionListener.java:357)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$5.doRun(MasterService.java:1216)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\n"},"status":400}]
at org.junit.Assert.fail(Assert.java:88)
at org.elasticsearch.test.rest.yaml.section.DoSection.execute(DoSection.java:373)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:552)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:515)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95629 | https://github.com/elastic/elasticsearch/pull/95880 | 9f0f0fc129bbc42d30f6274d5d0d47ce17719d79 | 6f928dab097aa8e2828ba70af677f275a0c87c56 | 2023-04-27T14:15:19Z | java | 2023-05-05T15:38:07Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,626 | ["server/src/main/java/org/elasticsearch/indices/cluster/IndicesClusterStateService.java"] | [CI] CorruptedTranslogIT testCorruptTranslogFiles failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/lv6phjx26lutw/tests/:server:internalClusterTest/org.elasticsearch.index.store.CorruptedTranslogIT/testCorruptTranslogFiles
**Reproduction line:**
```
./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.index.store.CorruptedTranslogIT.testCorruptTranslogFiles" -Dtests.seed=212515C1E2B002FA -Dtests.locale=tr -Dtests.timezone=Asia/Harbin -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.index.store.CorruptedTranslogIT&tests.test=testCorruptTranslogFiles
**Failure excerpt:**
```
java.lang.AssertionError: {"index":"test","shard":0,"primary":true,"current_state":"unassigned","unassigned_info":{"reason":"ALLOCATION_FAILED","at":"2023-04-27T12:44:16.620Z","failed_allocation_attempts":5,"details":"failed shard on node [TD4beuiGSFakg3XYvQ8xvg]: shard failure, reason [failed to recover from translog], failure [test/QpKaQjntQvO60IE0nV-IhQ][[test][0]] org.elasticsearch.index.engine.EngineException: failed to recover from translog\n\tat org.elasticsearch.index.engine.InternalEngine.recoverFromTranslogInternal(InternalEngine.java:544)\n\tat org.elasticsearch.index.engine.InternalEngine.recoverFromTranslog(InternalEngine.java:517)\n\tat org.elasticsearch.index.engine.InternalEngine.recoverFromTranslog(InternalEngine.java:124)\n\tat org.elasticsearch.index.shard.IndexShard.openEngineAndRecoverFromTranslog(IndexShard.java:1933)\n\tat org.elasticsearch.index.shard.StoreRecovery.lambda$internalRecoverFromStore$9(StoreRecovery.java:479)\n\tat org.elasticsearch.action.ActionRunnable$1.doRun(ActionRunnable.java:34)\n\tat org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat org.elasticsearch.index.shard.StoreRecovery.lambda$internalRecoverFromStore$10(StoreRecovery.java:488)\n\tat org.elasticsearch.action.ActionListenerImplementations$DelegatingFailureActionListener.onResponse(ActionListenerImplementations.java:151)\n\tat org.elasticsearch.action.ActionListenerImplementations$DelegatingResponseActionListener.onResponse(ActionListenerImplementations.java:122)\n\tat org.elasticsearch.index.CompositeIndexEventListener.iterateBeforeIndexShardRecovery(CompositeIndexEventListener.java:280)\n\tat org.elasticsearch.index.CompositeIndexEventListener.beforeIndexShardRecovery(CompositeIndexEventListener.java:289)\n\tat org.elasticsearch.index.shard.IndexShard.preRecovery(IndexShard.java:1658)\n\tat org.elasticsearch.index.shard.StoreRecovery.internalRecoverFromStore(StoreRecovery.java:411)\n\tat org.elasticsearch.index.shard.StoreRecovery.recoverFromStore(StoreRecovery.java:93)\n\tat org.elasticsearch.index.shard.IndexShard.recoverFromStore(IndexShard.java:2284)\n\tat org.elasticsearch.action.ActionRunnable$3.doRun(ActionRunnable.java:72)\n\tat org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983)\n\tat org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\nCaused by: [test/QpKaQjntQvO60IE0nV-IhQ][[test][0]] org.elasticsearch.index.shard.IllegalIndexShardStateException: CurrentState[CLOSED] operation only allowed when recovering, origin [LOCAL_TRANSLOG_RECOVERY]\n\tat org.elasticsearch.index.shard.IndexShard.ensureWriteAllowed(IndexShard.java:2132)\n\tat org.elasticsearch.index.shard.IndexShard.applyIndexOperation(IndexShard.java:962)\n\tat org.elasticsearch.index.shard.IndexShard.applyTranslogOperation(IndexShard.java:1824)\n\tat org.elasticsearch.index.shard.IndexShard.runTranslogRecovery(IndexShard.java:1872)\n\tat org.elasticsearch.index.shard.IndexShard.lambda$openEngineAndRecoverFromTranslog$12(IndexShard.java:1924)\n\tat org.elasticsearch.index.engine.InternalEngine.recoverFromTranslogInternal(InternalEngine.java:542)\n\t... 21 more\n","last_allocation_status":"no"},"can_allocate":"no","allocate_explanation":"Elasticsearch isn't allowed to allocate this shard to any of the nodes in the cluster that hold an in-sync copy of its data. Choose a node to which you expect this shard to be allocated, find this node in the node-by-node explanation, and address the reasons which prevent Elasticsearch from allocating this shard there.","node_allocation_decisions":[{"node_id":"TD4beuiGSFakg3XYvQ8xvg","node_name":"node_s0","transport_address":"127.0.0.1:26561","node_decision":"no","store":{"in_sync":true,"allocation_id":"1SRkOaRIRCW8laMa0YLlEw"},"deciders":[{"decider":"max_retry","decision":"NO","explanation":"shard has exceeded the maximum number of retries [5] on failed allocation attempts - manually call [POST /_cluster/reroute?retry_failed&metric=none] to retry, [unassigned_info[[reason=ALLOCATION_FAILED], at[2023-04-27T12:44:16.620Z], failed_attempts[5], failed_nodes[[TD4beuiGSFakg3XYvQ8xvg]], delayed=false, last_node[TD4beuiGSFakg3XYvQ8xvg], details[failed shard on node [TD4beuiGSFakg3XYvQ8xvg]: shard failure, reason [failed to recover from translog], failure [test/QpKaQjntQvO60IE0nV-IhQ][[test][0]] org.elasticsearch.index.engine.EngineException: failed to recover from translog\n\tat org.elasticsearch.index.engine.InternalEngine.recoverFromTranslogInternal(InternalEngine.java:544)\n\tat org.elasticsearch.index.engine.InternalEngine.recoverFromTranslog(InternalEngine.java:517)\n\tat org.elasticsearch.index.engine.InternalEngine.recoverFromTranslog(InternalEngine.java:124)\n\tat org.elasticsearch.index.shard.IndexShard.openEngineAndRecoverFromTranslog(IndexShard.java:1933)\n\tat org.elasticsearch.index.shard.StoreRecovery.lambda$internalRecoverFromStore$9(StoreRecovery.java:479)\n\tat org.elasticsearch.action.ActionRunnable$1.doRun(ActionRunnable.java:34)\n\tat org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat org.elasticsearch.index.shard.StoreRecovery.lambda$internalRecoverFromStore$10(StoreRecovery.java:488)\n\tat org.elasticsearch.action.ActionListenerImplementations$DelegatingFailureActionListener.onResponse(ActionListenerImplementations.java:151)\n\tat org.elasticsearch.action.ActionListenerImplementations$DelegatingResponseActionListener.onResponse(ActionListenerImplementations.java:122)\n\tat org.elasticsearch.index.CompositeIndexEventListener.iterateBeforeIndexShardRecovery(CompositeIndexEventListener.java:280)\n\tat org.elasticsearch.index.CompositeIndexEventListener.beforeIndexShardRecovery(CompositeIndexEventListener.java:289)\n\tat org.elasticsearch.index.shard.IndexShard.preRecovery(IndexShard.java:1658)\n\tat org.elasticsearch.index.shard.StoreRecovery.internalRecoverFromStore(StoreRecovery.java:411)\n\tat org.elasticsearch.index.shard.StoreRecovery.recoverFromStore(StoreRecovery.java:93)\n\tat org.elasticsearch.index.shard.IndexShard.recoverFromStore(IndexShard.java:2284)\n\tat org.elasticsearch.action.ActionRunnable$3.doRun(ActionRunnable.java:72)\n\tat org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983)\n\tat org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\nCaused by: [test/QpKaQjntQvO60IE0nV-IhQ][[test][0]] org.elasticsearch.index.shard.IllegalIndexShardStateException: CurrentState[CLOSED] operation only allowed when recovering, origin [LOCAL_TRANSLOG_RECOVERY]\n\tat org.elasticsearch.index.shard.IndexShard.ensureWriteAllowed(IndexShard.java:2132)\n\tat org.elasticsearch.index.shard.IndexShard.applyIndexOperation(IndexShard.java:962)\n\tat org.elasticsearch.index.shard.IndexShard.applyTranslogOperation(IndexShard.java:1824)\n\tat org.elasticsearch.index.shard.IndexShard.runTranslogRecovery(IndexShard.java:1872)\n\tat org.elasticsearch.index.shard.IndexShard.lambda$openEngineAndRecoverFromTranslog$12(IndexShard.java:1924)\n\tat org.elasticsearch.index.engine.InternalEngine.recoverFromTranslogInternal(InternalEngine.java:542)\n\t... 21 more\n], allocation_status[deciders_no]]]"}]}]}
Expected: not null
but: was null
at __randomizedtesting.SeedInfo.seed([212515C1E2B002FA:2D144873BB752E69]:0)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.elasticsearch.index.store.CorruptedTranslogIT.lambda$testCorruptTranslogFiles$0(CorruptedTranslogIT.java:97)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1158)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1131)
at org.elasticsearch.index.store.CorruptedTranslogIT.testCorruptTranslogFiles(CorruptedTranslogIT.java:83)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95626 | https://github.com/elastic/elasticsearch/pull/96864 | 508f3c4214bf4fb66953b917a5328748720b2faf | 8952385d9cb73f0a695f78e4e13fb4537a6b189d | 2023-04-27T14:01:44Z | java | 2023-06-22T16:09:48Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,615 | ["server/src/test/java/org/elasticsearch/cluster/routing/allocation/allocator/DesiredBalanceComputerTests.java"] | [CI] DesiredBalanceComputerTests testDesiredBalanceShouldConvergeInABigCluster failing | First time failure seen
**Build scan:**
https://gradle-enterprise.elastic.co/s/3oovwax2vclsc/tests/:server:test/org.elasticsearch.cluster.routing.allocation.allocator.DesiredBalanceComputerTests/testDesiredBalanceShouldConvergeInABigCluster
**Reproduction line:**
```
./gradlew ':server:test' --tests "org.elasticsearch.cluster.routing.allocation.allocator.DesiredBalanceComputerTests.testDesiredBalanceShouldConvergeInABigCluster" -Dtests.seed=16C1AC92444C888 -Dtests.locale=de-AT -Dtests.timezone=US/Mountain -Druntime.java=20
```
**Applicable branches:**
8.8
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.cluster.routing.allocation.allocator.DesiredBalanceComputerTests&tests.test=testDesiredBalanceShouldConvergeInABigCluster
**Failure excerpt:**
```
java.lang.AssertionError: Balance should converge, but exited by the iteration limit
Expected: <-1560893584L>
but: was <-1L>
at __randomizedtesting.SeedInfo.seed([16C1AC92444C888:D5C15DA7FFF4050C]:0)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.elasticsearch.cluster.routing.allocation.allocator.DesiredBalanceComputerTests.testDesiredBalanceShouldConvergeInABigCluster(DesiredBalanceComputerTests.java:705)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95615 | https://github.com/elastic/elasticsearch/pull/95728 | 9c61c0c742fa073b8b700be3d984092cac4e2a63 | 9adc280881dac23159e649fd461b9e0b5ebc0055 | 2023-04-27T11:42:05Z | java | 2023-05-03T06:23:29Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,607 | ["server/src/test/java/org/elasticsearch/search/suggest/SuggestTests.java"] | [CI] SuggestTests testSerialization failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/fjxuohetdjmqq/tests/:server:test/org.elasticsearch.search.suggest.SuggestTests/testSerialization
**Reproduction line:**
```
./gradlew ':server:test' --tests "org.elasticsearch.search.suggest.SuggestTests.testSerialization" -Dtests.seed=7C2E1080054FE574 -Dtests.locale=mk -Dtests.timezone=Chile/EasterIsland -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.search.suggest.SuggestTests&tests.test=testSerialization
**Failure excerpt:**
```
java.lang.IllegalArgumentException: cannot serialize [rank] to version [8060299]
at __randomizedtesting.SeedInfo.seed([7C2E1080054FE574:28F671C8221DD8E8]:0)
at org.elasticsearch.search.SearchHit.writeTo(SearchHit.java:248)
at org.elasticsearch.search.suggest.completion.CompletionSuggestion$Entry$Option.writeTo(CompletionSuggestion.java:408)
at org.elasticsearch.common.io.stream.StreamOutput.lambda$writeCollection$33(StreamOutput.java:1026)
at org.elasticsearch.common.io.stream.StreamOutput.writeCollection(StreamOutput.java:1045)
at org.elasticsearch.common.io.stream.StreamOutput.writeCollection(StreamOutput.java:1026)
at org.elasticsearch.search.suggest.Suggest$Suggestion$Entry.writeTo(Suggest.java:545)
at org.elasticsearch.common.io.stream.StreamOutput.lambda$writeCollection$33(StreamOutput.java:1026)
at org.elasticsearch.common.io.stream.StreamOutput.writeCollection(StreamOutput.java:1045)
at org.elasticsearch.common.io.stream.StreamOutput.writeCollection(StreamOutput.java:1026)
at org.elasticsearch.common.io.stream.StreamOutput.writeList(StreamOutput.java:1033)
at org.elasticsearch.search.suggest.Suggest$Suggestion.writeTo(Suggest.java:320)
at org.elasticsearch.search.suggest.completion.CompletionSuggestion.writeTo(CompletionSuggestion.java:84)
at org.elasticsearch.common.io.stream.StreamOutput.writeNamedWriteable(StreamOutput.java:976)
at org.elasticsearch.common.io.stream.StreamOutput.writeNamedWriteableList(StreamOutput.java:1098)
at org.elasticsearch.search.suggest.Suggest.writeTo(Suggest.java:115)
at org.elasticsearch.search.suggest.SuggestTests.testSerialization(SuggestTests.java:255)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95607 | https://github.com/elastic/elasticsearch/pull/101014 | e786cfa7061b427cf6185ad907069838dd679574 | 5ef9f76b8134036b607515914d949081f32fbaed | 2023-04-27T09:15:59Z | java | 2023-11-08T09:01:08Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,603 | ["docs/reference/rest-api/usage.asciidoc"] | [CI] DocsClientYamlTestSuiteIT test {yaml=reference/rest-api/usage/line_38} failing | Failed 7 times in the past 3 days:
https://gradle-enterprise.elastic.co/scans/tests?search.timeZoneId=Europe/Berlin&tests.container=org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dreference/rest-api/usage/line_38%7D
**Build scan:**
https://gradle-enterprise.elastic.co/s/bpdzoghroz5vq/tests/:docs:yamlRestTest/org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT/test%20%7Byaml=reference%2Frest-api%2Fusage%2Fline_38%7D
**Reproduction line:**
```
./gradlew ':docs:yamlRestTest' --tests "org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT.test {yaml=reference/rest-api/usage/line_38}" -Dtests.seed=551AF85965B3ED17 -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=it-CH -Dtests.timezone=America/Winnipeg -Druntime.java=20
```
**Applicable branches:**
main, 8.8
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dreference/rest-api/usage/line_38%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [reference/rest-api/usage:16]: Expected a map containing
watcher: a map containing
execution: a map containing
actions: a map containing
_all: a map containing
total: <6>
total_time_in_ms: <173>
watch: a map containing
input: a map containing
_all: a map containing
total: <0>
active: <0>
trigger: a map containing
_all: a map containing
total: <0>
active: <0>
available: <true>
count: a map containing
total: <0>
active: <0>
enabled: <true>
eql: a map containing
available: <true>
enabled: <true>
features: a map containing
joins: a map containing
join_queries_three: <0>
join_queries_two: <0>
join_until: <0>
join_queries_five_or_more: <0>
join_queries_four: <0>
sequence: <6>
keys: a map containing
join_keys_two: <0>
join_keys_one: <5>
join_keys_three: <0>
join_keys_five_or_more: <0>
join_keys_four: <0>
join: <0>
sequences: a map containing
sequence_queries_three: <1>
sequence_queries_four: <0>
sequence_queries_two: <5>
sequence_until: <1>
sequence_maxspan: <4>
sequence_queries_five_or_more: <0>
event: <18>
pipes: a map containing
pipe_tail: <21>
pipe_head: <0>
queries: a map containing
all: a map containing
total: <24>
failed: <0>
_all: a map containing
total: <24>
failed: <0>
frozen_indices: a map containing
indices_count: <0>
available: <true>
enabled: <true>
archive: a map containing
indices_count: <0>
available: <true>
enabled: <true>
ilm: a map containing
policy_count: <17>
policy_stats: a list containing
0: a map containing
phases: a map containing
warm: a map containing
min_age: <172800000>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
cold: a map containing
min_age: <2592000000L>
actions: a list containing
0: "migrate"
configurations: an empty map
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <7776000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
1: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "3d"
max_age_millis: <259200000>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <345600000>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
2: a map containing
phases: a map containing
warm: a map containing
min_age: <172800000>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <2592000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
3: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
indices_managed: <0>
4: a map containing
phases: a map containing
warm: a map containing
min_age: <0>
actions: a list containing
0: "forcemerge"
1: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "3d"
max_age_millis: <259200000>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <259200000>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
5: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <7776000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
6: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_size: "300gb"
max_size_bytes: <322122547200L>
delete: a map containing
min_age: <7776000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
7: a map containing
phases: a map containing
warm: a map containing
min_age: <172800000>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
cold: a map containing
min_age: <2592000000L>
actions: a list containing
0: "migrate"
configurations: an empty map
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <31536000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
8: a map containing
phases: a map containing
warm: a map containing
min_age: <172800000>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "7d"
max_age_millis: <604800000>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <604800000>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
9: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "10gb"
max_primary_shard_size_bytes: <10737418240L>
delete: a map containing
min_age: <2592000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
10: a map containing
phases: a map containing
warm: a map containing
min_age: <172800000>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
cold: a map containing
min_age: <2592000000L>
actions: a list containing
0: "migrate"
configurations: an empty map
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <15552000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
11: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
indices_managed: <0>
12: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
indices_managed: <0>
13: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "7d"
max_age_millis: <604800000>
max_size: "10gb"
max_size_bytes: <10737418240L>
delete: a map containing
min_age: <604800000>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
14: a map containing
phases: a map containing
warm: a map containing
min_age: <172800000>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
cold: a map containing
min_age: <2592000000L>
actions: a list containing
0: "migrate"
configurations: an empty map
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <15552000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
15: a map containing
phases: a map containing
warm: a map containing
min_age: <2592000000L>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
frozen: a map containing
min_age: <7776000000L>
actions: a list containing
0: "searchable_snapshot"
configurations: an empty map
cold: a map containing
min_age: <5184000000L>
actions: a list containing
0: "searchable_snapshot"
configurations: an empty map
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <63504000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
16: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_size: "10gb"
max_size_bytes: <10737418240L>
delete: a map containing
min_age: <7776000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
monitoring: a map containing
collection_enabled: <false>
available: <true>
enabled_exporters: a map containing
local: <1>
enabled: <true>
graph: a map containing
available: <true>
enabled: <true>
aggregate_metric: a map containing
available: <true>
enabled: <true>
sql: a map containing
features: a map containing
having: <2>
subselect: <0>
limit: <1>
orderby: <11>
where: <4>
join: <0>
groupby: <2>
command: <0>
local: <0>
available: <true>
queries: a map containing
rest: a map containing
total: <16>
paging: <2>
failed: <0>
cli: a map containing
total: <0>
paging: <0>
failed: <0>
canvas: a map containing
total: <0>
paging: <0>
failed: <0>
odbc: a map containing
total: <0>
paging: <0>
failed: <0>
jdbc: a map containing
total: <0>
paging: <0>
failed: <0>
odbc32: a map containing
total: <0>
paging: <0>
failed: <0>
odbc64: a map containing
total: <0>
paging: <0>
failed: <0>
_all: a map containing
total: <16>
paging: <2>
failed: <0>
translate: a map containing
count: <2>
enabled: <true>
rollup: a map containing
available: <true>
enabled: <true>
data_tiers: a map containing
data_warm: a map containing
primary_shard_size_median_bytes: <0>
primary_shard_count: <0>
doc_count: <0>
primary_shard_size_avg_bytes: <0>
primary_size_bytes: <0>
total_size_bytes: <0>
total_shard_count: <0>
primary_shard_size_mad_bytes: <0>
node_count: <1>
index_count: <0>
data_frozen: a map containing
primary_shard_size_median_bytes: <0>
primary_shard_count: <0>
doc_count: <0>
primary_shard_size_avg_bytes: <0>
primary_size_bytes: <0>
total_size_bytes: <0>
total_shard_count: <0>
primary_shard_size_mad_bytes: <0>
node_count: <1>
index_count: <0>
data_cold: a map containing
primary_shard_size_median_bytes: <0>
primary_shard_count: <0>
doc_count: <0>
primary_shard_size_avg_bytes: <0>
primary_size_bytes: <0>
total_size_bytes: <0>
total_shard_count: <0>
primary_shard_size_mad_bytes: <0>
node_count: <1>
index_count: <0>
available: <true>
data_content: a map containing
primary_shard_size_median_bytes: <0>
primary_shard_count: <0>
doc_count: <0>
primary_shard_size_avg_bytes: <0>
primary_size_bytes: <0>
total_size_bytes: <0>
total_shard_count: <0>
primary_shard_size_mad_bytes: <0>
node_count: <1>
index_count: <0>
enabled: <true>
data_hot: a map containing
primary_shard_size_median_bytes: <0>
primary_shard_count: <0>
doc_count: <0>
primary_shard_size_avg_bytes: <0>
primary_size_bytes: <0>
total_size_bytes: <0>
total_shard_count: <0>
primary_shard_size_mad_bytes: <0>
node_count: <1>
index_count: <0>
searchable_snapshots: a map containing
shared_cache_indices_count: <0>
indices_count: <0>
available: <true>
full_copy_indices_count: <0>
enabled: <true>
analytics: a map containing
stats: a map containing
rate_usage: <5>
normalize_usage: <1>
boxplot_usage: <4>
top_metrics_usage: <7>
multi_terms_usage: <3>
cumulative_cardinality_usage: <2>
string_stats_usage: <4>
moving_percentiles_usage: <1>
t_test_usage: <2>
available: <true>
enabled: <true>
logstash: a map containing
available: <true>
enabled: <true>
security: a map containing
available: <true>
enabled: <false>
transform: a map containing
available: <true>
enabled: <true>
ccr: a map containing
auto_follow_patterns_count: <0>
available: <true>
follower_indices_count: <0>
enabled: <true>
slm: a map containing
available: <true>
enabled: <true>
policy_count: <0>
policy_stats: a map containing
retention_runs: <1>
retention_failed: <0>
retention_timed_out: <0>
retention_deletion_time: "0s"
retention_deletion_time_millis: <0>
total_snapshots_taken: <0>
total_snapshots_failed: <0>
total_snapshots_deleted: <0>
total_snapshot_deletion_failures: <0>
policy_stats: an empty list
health_api: a map containing
available: <true>
enabled: <true>
statuses: a map containing
green: <11>
values: a list containing
0: "green"
invocations: a map containing
total: <11>
verbose_true: <10>
verbose_false: <1>
voting_only: a map containing
available: <true>
enabled: <true>
data_streams: a map containing
indices_count: <0>
available: <true>
data_streams: <0>
enabled: <true>
spatial: a map containing
available: <true>
enabled: <true>
ml: a map containing
inference: a map containing
deployments: a map containing
time_ms: a map containing
avg: <0.0>
count: <0>
model_sizes_bytes: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
inference_counts: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
trained_models: a map containing
model_size_bytes: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
estimated_operations: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
count: a map containing
total: <1>
prepackaged: <1>
other: <0>
_all: a map containing
count: <1>
ingest_processors: a map containing
_all: a map containing
pipelines: a map containing
count: <0>
time_ms: a map containing
min: <0>
max: <0>
sum: <0>
num_docs_processed: a map containing
min: <0>
max: <0>
sum: <0>
num_failures: a map containing
min: <0>
max: <0>
sum: <0>
data_frame_analytics_jobs: a map containing
memory_usage: a map containing
peak_usage_bytes: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
_all: a map containing
count: <0>
analysis_counts: an empty map
jobs: a map containing
_all: a map containing
count: <0>
detectors: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
created_by: an empty map
model_size: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
forecasts: a map containing
total: <0>
forecasted_jobs: <0>
available: <true>
datafeeds: a map containing
_all: a map containing
count: <0>
node_count: <1>
enabled: <true>
enterprise_search: <unexpected> but was <{available=true, enabled=true, search_applications={count=0}}>
at __randomizedtesting.SeedInfo.seed([551AF85965B3ED17:DD4EC783CB4F80EF]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:572)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:524)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.AssertionError: Expected a map containing
watcher: a map containing
execution: a map containing
actions: a map containing
_all: a map containing
total: <6>
total_time_in_ms: <173>
watch: a map containing
input: a map containing
_all: a map containing
total: <0>
active: <0>
trigger: a map containing
_all: a map containing
total: <0>
active: <0>
available: <true>
count: a map containing
total: <0>
active: <0>
enabled: <true>
eql: a map containing
available: <true>
enabled: <true>
features: a map containing
joins: a map containing
join_queries_three: <0>
join_queries_two: <0>
join_until: <0>
join_queries_five_or_more: <0>
join_queries_four: <0>
sequence: <6>
keys: a map containing
join_keys_two: <0>
join_keys_one: <5>
join_keys_three: <0>
join_keys_five_or_more: <0>
join_keys_four: <0>
join: <0>
sequences: a map containing
sequence_queries_three: <1>
sequence_queries_four: <0>
sequence_queries_two: <5>
sequence_until: <1>
sequence_maxspan: <4>
sequence_queries_five_or_more: <0>
event: <18>
pipes: a map containing
pipe_tail: <21>
pipe_head: <0>
queries: a map containing
all: a map containing
total: <24>
failed: <0>
_all: a map containing
total: <24>
failed: <0>
frozen_indices: a map containing
indices_count: <0>
available: <true>
enabled: <true>
archive: a map containing
indices_count: <0>
available: <true>
enabled: <true>
ilm: a map containing
policy_count: <17>
policy_stats: a list containing
0: a map containing
phases: a map containing
warm: a map containing
min_age: <172800000>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
cold: a map containing
min_age: <2592000000L>
actions: a list containing
0: "migrate"
configurations: an empty map
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <7776000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
1: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "3d"
max_age_millis: <259200000>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <345600000>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
2: a map containing
phases: a map containing
warm: a map containing
min_age: <172800000>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <2592000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
3: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
indices_managed: <0>
4: a map containing
phases: a map containing
warm: a map containing
min_age: <0>
actions: a list containing
0: "forcemerge"
1: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "3d"
max_age_millis: <259200000>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <259200000>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
5: a map containing
phases: a map containing
hot: a map containing
...
``` | https://github.com/elastic/elasticsearch/issues/95603 | https://github.com/elastic/elasticsearch/pull/95845 | 9cb80ce6ef38b4c57ffb557faf8a14077dd56398 | 154176b60730335cee5d35053ff3d7710add8d44 | 2023-04-27T08:55:20Z | java | 2023-05-05T09:11:13Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,593 | ["docs/changelog/95767.yaml", "server/src/main/java/org/elasticsearch/common/Strings.java", "server/src/test/java/org/elasticsearch/common/StringsTests.java", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/GenerateSnapshotNameStep.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/GenerateSnapshotNameStepTests.java"] | ILM allows a policy name that generates invalid snapshot name | We allow characters in the ID of an ILM policy that will result in an invalid snapshot name.
For example, an ILM policy with the name `mypolicy-*` can be created, however, the generation of the snapshot name in this line:
https://github.com/elastic/elasticsearch/blob/befb6faafc9fca327fd3cea2d0ab328a521c4e65/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/GenerateSnapshotNameStep.java#L81
Results in the `mypolicy-*` being part of the snapshot name, which the snapshot service then disallows. We should strip these invalid characters from the snapshot name. | https://github.com/elastic/elasticsearch/issues/95593 | https://github.com/elastic/elasticsearch/pull/95767 | c05181528a809793a4ad6e29b4f6920f5de249e7 | b5439167fcddbb6551e075b867de33e2fe3cbe91 | 2023-04-26T23:06:18Z | java | 2023-05-08T06:52:37Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,589 | ["x-pack/plugin/enrich/qa/common/src/main/java/org/elasticsearch/test/enrich/CommonEnrichRestTestCase.java"] | [CI] EnrichAdvancedSecurityIT testBasicFlowDouble failing | ```
:x-pack:plugin:enrich:qa:rest-with-advanced-security:javaRestTest FAILED
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 -Dsun.jnu.encoding=UTF8
REPRODUCE WITH: ./gradlew ':x-pack:plugin:enrich:qa:rest-with-advanced-security:javaRestTest' --tests "org.elasticsearch.xpack.enrich.EnrichAdvancedSecurityIT.testBasicFlowDouble" -Dtests.seed=C30B267957A17069 -Dtests.locale=nn-NO -Dtests.timezone=America/Montserrat -Druntime.java=20
org.elasticsearch.xpack.enrich.EnrichAdvancedSecurityIT > testBasicFlowDouble FAILED
java.lang.AssertionError:
Expected: a value equal to or greater than <1>
but: <0> was less than <1>
```
**Build scan:**
https://gradle-enterprise.elastic.co/s/vfozi5c6ackoa/tests/:x-pack:plugin:enrich:qa:rest-with-advanced-security:javaRestTest/org.elasticsearch.xpack.enrich.EnrichAdvancedSecurityIT/testBasicFlowDouble
**Reproduction line:**
```
./gradlew ':x-pack:plugin:enrich:qa:rest-with-advanced-security:javaRestTest' --tests "org.elasticsearch.xpack.enrich.EnrichAdvancedSecurityIT.testBasicFlowDouble" -Dtests.seed=C30B267957A17069 -Dtests.locale=nn-NO -Dtests.timezone=America/Montserrat -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.enrich.EnrichAdvancedSecurityIT&tests.test=testBasicFlowDouble
**Failure excerpt:**
```
java.lang.AssertionError:
Expected: a value equal to or greater than <1>
but: <0> was less than <1>
at __randomizedtesting.SeedInfo.seed([C30B267957A17069:CB2F64198A331184]: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.enrich.CommonEnrichRestTestCase.verifyEnrichMonitoring(CommonEnrichRestTestCase.java:350)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1158)
at org.elasticsearch.test.enrich.CommonEnrichRestTestCase.testBasicFlowDouble(CommonEnrichRestTestCase.java:189)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95589 | https://github.com/elastic/elasticsearch/pull/95806 | 6ace40823966a41f11ac89eb3ce566636ab699a9 | 2fb50e4866620864aee4b87d848b963ceae48f40 | 2023-04-26T18:33:03Z | java | 2023-05-03T22:03:36Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,574 | ["docs/changelog/100826.yaml", "server/src/main/java/org/elasticsearch/common/geo/GeoUtils.java", "server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileBoundedPredicate.java", "server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileUtils.java", "server/src/test/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileUtilsTests.java", "x-pack/plugin/spatial/src/internalClusterTest/java/org/elasticsearch/xpack/spatial/search/GeoGridAggAndQueryConsistencyIT.java", "x-pack/plugin/spatial/src/test/java/org/elasticsearch/xpack/spatial/index/query/GeoGridQueryBuilderTests.java"] | [CI] GeoGridAggAndQueryConsistencyIT testGeoShapeGeoTile failing | Started failing today: https://gradle-enterprise.elastic.co/scans/tests?search.startTimeMax=1682510196670&search.startTimeMin=1681851600000&search.timeZoneId=Europe/Bucharest&tests.container=org.elasticsearch.xpack.spatial.search.GeoGridAggAndQueryConsistencyIT&tests.test=testGeoShapeGeoTile
**Build scan:**
https://gradle-enterprise.elastic.co/s/qddijdieojw6q/tests/:x-pack:plugin:spatial:internalClusterTest/org.elasticsearch.xpack.spatial.search.GeoGridAggAndQueryConsistencyIT/testGeoShapeGeoTile
**Reproduction line:**
```
./gradlew ':x-pack:plugin:spatial:internalClusterTest' --tests "org.elasticsearch.xpack.spatial.search.GeoGridAggAndQueryConsistencyIT.testGeoShapeGeoTile" -Dtests.seed=24AC435F8381E2D0 -Dtests.locale=fr -Dtests.timezone=Europe/Ljubljana -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.spatial.search.GeoGridAggAndQueryConsistencyIT&tests.test=testGeoShapeGeoTile
**Failure excerpt:**
```
java.lang.AssertionError: Expected hits at precision 26 for H3 cell 26/0/33554410
Expected: <15L>
but: was <14L>
at __randomizedtesting.SeedInfo.seed([24AC435F8381E2D0:F24F5D998EB839F0]:0)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.elasticsearch.xpack.spatial.search.GeoGridAggAndQueryConsistencyIT.assertQuery(GeoGridAggAndQueryConsistencyIT.java:316)
at org.elasticsearch.xpack.spatial.search.GeoGridAggAndQueryConsistencyIT.doTestGrid(GeoGridAggAndQueryConsistencyIT.java:279)
at org.elasticsearch.xpack.spatial.search.GeoGridAggAndQueryConsistencyIT.doTestGeotileGrid(GeoGridAggAndQueryConsistencyIT.java:202)
at org.elasticsearch.xpack.spatial.search.GeoGridAggAndQueryConsistencyIT.testGeoShapeGeoTile(GeoGridAggAndQueryConsistencyIT.java:84)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95574 | https://github.com/elastic/elasticsearch/pull/100826 | 76488e25257a8983ae1fa148223b9e3fb79ebf67 | 86ed7800f702d222c22e887447316ff931827258 | 2023-04-26T11:57:05Z | java | 2023-10-18T07:47:55Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,564 | ["docs/reference/rest-api/usage.asciidoc"] | [CI] DocsClientYamlTestSuiteIT test {yaml=reference/rest-api/usage/line_38} failing | Looks like _xpack/usage reports `enterprise_search` in release builds (doesn't repro on snapshot builds, locally):
``` forecasted_jobs: <0>
available: <true>
datafeeds: a map containing
_all: a map containing
count: <0>
node_count: <1>
enabled: <true>
enterprise_search: <unexpected> but was <{available=true, enabled=true, search_applications={count=0}}>
at __randomizedtesting.SeedInfo.seed([66196323F28703F3:EE4D5CF95C7B6E0B]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:572)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:524)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
```
**Build scan:**
https://gradle-enterprise.elastic.co/s/pb2uicbszcmto/tests/:docs:yamlRestTest/org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT/test%20%7Byaml=reference%2Frest-api%2Fusage%2Fline_38%7D
**Reproduction line:**
```
./gradlew ':docs:yamlRestTest' --tests "org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT.test {yaml=reference/rest-api/usage/line_38}" -Dtests.seed=66196323F28703F3 -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=ja-JP-u-ca-japanese-x-lvariant-JP -Dtests.timezone=Europe/Ljubljana -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dreference/rest-api/usage/line_38%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [reference/rest-api/usage:16]: Expected a map containing
watcher: a map containing
execution: a map containing
actions: a map containing
_all: a map containing
total: <3>
total_time_in_ms: <116>
watch: a map containing
input: a map containing
_all: a map containing
total: <0>
active: <0>
trigger: a map containing
_all: a map containing
total: <0>
active: <0>
available: <true>
count: a map containing
total: <0>
active: <0>
enabled: <true>
eql: a map containing
available: <true>
enabled: <true>
features: a map containing
joins: a map containing
join_queries_three: <0>
join_queries_two: <0>
join_until: <0>
join_queries_five_or_more: <0>
join_queries_four: <0>
sequence: <5>
keys: a map containing
join_keys_two: <0>
join_keys_one: <3>
join_keys_three: <0>
join_keys_five_or_more: <0>
join_keys_four: <0>
join: <0>
sequences: a map containing
sequence_queries_three: <1>
sequence_queries_four: <0>
sequence_queries_two: <4>
sequence_until: <0>
sequence_maxspan: <2>
sequence_queries_five_or_more: <0>
event: <15>
pipes: a map containing
pipe_tail: <20>
pipe_head: <0>
queries: a map containing
all: a map containing
total: <20>
failed: <0>
_all: a map containing
total: <20>
failed: <0>
frozen_indices: a map containing
indices_count: <0>
available: <true>
enabled: <true>
archive: a map containing
indices_count: <0>
available: <true>
enabled: <true>
ilm: a map containing
policy_count: <17>
policy_stats: a list containing
0: a map containing
phases: a map containing
warm: a map containing
min_age: <172800000>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
cold: a map containing
min_age: <2592000000L>
actions: a list containing
0: "migrate"
configurations: an empty map
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <7776000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
1: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "3d"
max_age_millis: <259200000>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <345600000>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
2: a map containing
phases: a map containing
warm: a map containing
min_age: <172800000>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <2592000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
3: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
indices_managed: <0>
4: a map containing
phases: a map containing
warm: a map containing
min_age: <0>
actions: a list containing
0: "forcemerge"
1: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "3d"
max_age_millis: <259200000>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <259200000>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
5: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <7776000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
6: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_size: "300gb"
max_size_bytes: <322122547200L>
delete: a map containing
min_age: <7776000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
7: a map containing
phases: a map containing
warm: a map containing
min_age: <172800000>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
cold: a map containing
min_age: <2592000000L>
actions: a list containing
0: "migrate"
configurations: an empty map
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <31536000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
8: a map containing
phases: a map containing
warm: a map containing
min_age: <172800000>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "7d"
max_age_millis: <604800000>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <604800000>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
9: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "10gb"
max_primary_shard_size_bytes: <10737418240L>
delete: a map containing
min_age: <2592000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
10: a map containing
phases: a map containing
warm: a map containing
min_age: <172800000>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
cold: a map containing
min_age: <2592000000L>
actions: a list containing
0: "migrate"
configurations: an empty map
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <15552000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
11: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
indices_managed: <0>
12: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
indices_managed: <0>
13: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "7d"
max_age_millis: <604800000>
max_size: "10gb"
max_size_bytes: <10737418240L>
delete: a map containing
min_age: <604800000>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
14: a map containing
phases: a map containing
warm: a map containing
min_age: <172800000>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
cold: a map containing
min_age: <2592000000L>
actions: a list containing
0: "migrate"
configurations: an empty map
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <15552000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
15: a map containing
phases: a map containing
warm: a map containing
min_age: <2592000000L>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
frozen: a map containing
min_age: <7776000000L>
actions: a list containing
0: "searchable_snapshot"
configurations: an empty map
cold: a map containing
min_age: <5184000000L>
actions: a list containing
0: "searchable_snapshot"
configurations: an empty map
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <63504000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
16: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_size: "10gb"
max_size_bytes: <10737418240L>
delete: a map containing
min_age: <7776000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
monitoring: a map containing
collection_enabled: <false>
available: <true>
enabled_exporters: a map containing
local: <1>
enabled: <true>
graph: a map containing
available: <true>
enabled: <true>
aggregate_metric: a map containing
available: <true>
enabled: <true>
sql: a map containing
features: a map containing
having: <2>
subselect: <0>
limit: <2>
orderby: <11>
where: <2>
join: <0>
groupby: <2>
command: <0>
local: <0>
available: <true>
queries: a map containing
rest: a map containing
total: <13>
paging: <2>
failed: <0>
cli: a map containing
total: <0>
paging: <0>
failed: <0>
canvas: a map containing
total: <0>
paging: <0>
failed: <0>
odbc: a map containing
total: <0>
paging: <0>
failed: <0>
jdbc: a map containing
total: <0>
paging: <0>
failed: <0>
odbc32: a map containing
total: <0>
paging: <0>
failed: <0>
odbc64: a map containing
total: <0>
paging: <0>
failed: <0>
_all: a map containing
total: <13>
paging: <2>
failed: <0>
translate: a map containing
count: <2>
enabled: <true>
rollup: a map containing
available: <true>
enabled: <true>
data_tiers: a map containing
data_warm: a map containing
primary_shard_size_median_bytes: <0>
primary_shard_count: <0>
doc_count: <0>
primary_shard_size_avg_bytes: <0>
primary_size_bytes: <0>
total_size_bytes: <0>
total_shard_count: <0>
primary_shard_size_mad_bytes: <0>
node_count: <1>
index_count: <0>
data_frozen: a map containing
primary_shard_size_median_bytes: <0>
primary_shard_count: <0>
doc_count: <0>
primary_shard_size_avg_bytes: <0>
primary_size_bytes: <0>
total_size_bytes: <0>
total_shard_count: <0>
primary_shard_size_mad_bytes: <0>
node_count: <1>
index_count: <0>
data_cold: a map containing
primary_shard_size_median_bytes: <0>
primary_shard_count: <0>
doc_count: <0>
primary_shard_size_avg_bytes: <0>
primary_size_bytes: <0>
total_size_bytes: <0>
total_shard_count: <0>
primary_shard_size_mad_bytes: <0>
node_count: <1>
index_count: <0>
available: <true>
data_content: a map containing
primary_shard_size_median_bytes: <0>
primary_shard_count: <0>
doc_count: <0>
primary_shard_size_avg_bytes: <0>
primary_size_bytes: <0>
total_size_bytes: <0>
total_shard_count: <0>
primary_shard_size_mad_bytes: <0>
node_count: <1>
index_count: <0>
enabled: <true>
data_hot: a map containing
primary_shard_size_median_bytes: <0>
primary_shard_count: <0>
doc_count: <0>
primary_shard_size_avg_bytes: <0>
primary_size_bytes: <0>
total_size_bytes: <0>
total_shard_count: <0>
primary_shard_size_mad_bytes: <0>
node_count: <1>
index_count: <0>
searchable_snapshots: a map containing
shared_cache_indices_count: <0>
indices_count: <0>
available: <true>
full_copy_indices_count: <0>
enabled: <true>
analytics: a map containing
stats: a map containing
rate_usage: <5>
normalize_usage: <0>
boxplot_usage: <1>
top_metrics_usage: <4>
multi_terms_usage: <2>
cumulative_cardinality_usage: <2>
string_stats_usage: <4>
moving_percentiles_usage: <1>
t_test_usage: <1>
available: <true>
enabled: <true>
logstash: a map containing
available: <true>
enabled: <true>
security: a map containing
available: <true>
enabled: <false>
transform: a map containing
available: <true>
enabled: <true>
ccr: a map containing
auto_follow_patterns_count: <0>
available: <true>
follower_indices_count: <0>
enabled: <true>
slm: a map containing
available: <true>
enabled: <true>
policy_count: <0>
policy_stats: a map containing
retention_runs: <1>
retention_failed: <0>
retention_timed_out: <0>
retention_deletion_time: "0s"
retention_deletion_time_millis: <0>
total_snapshots_taken: <0>
total_snapshots_failed: <0>
total_snapshots_deleted: <0>
total_snapshot_deletion_failures: <0>
policy_stats: an empty list
health_api: a map containing
available: <true>
enabled: <true>
statuses: a map containing
green: <10>
values: a list containing
0: "green"
invocations: a map containing
total: <10>
verbose_true: <9>
verbose_false: <1>
voting_only: a map containing
available: <true>
enabled: <true>
data_streams: a map containing
indices_count: <0>
available: <true>
data_streams: <0>
enabled: <true>
spatial: a map containing
available: <true>
enabled: <true>
ml: a map containing
inference: a map containing
deployments: a map containing
time_ms: a map containing
avg: <0.0>
count: <0>
model_sizes_bytes: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
inference_counts: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
trained_models: a map containing
model_size_bytes: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
estimated_operations: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
count: a map containing
total: <1>
prepackaged: <1>
other: <0>
_all: a map containing
count: <1>
ingest_processors: a map containing
_all: a map containing
pipelines: a map containing
count: <0>
time_ms: a map containing
min: <0>
max: <0>
sum: <0>
num_docs_processed: a map containing
min: <0>
max: <0>
sum: <0>
num_failures: a map containing
min: <0>
max: <0>
sum: <0>
data_frame_analytics_jobs: a map containing
memory_usage: a map containing
peak_usage_bytes: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
_all: a map containing
count: <0>
analysis_counts: an empty map
jobs: a map containing
_all: a map containing
count: <0>
detectors: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
created_by: an empty map
model_size: a map containing
total: <0.0>
min: <0.0>
avg: <0.0>
max: <0.0>
forecasts: a map containing
total: <0>
forecasted_jobs: <0>
available: <true>
datafeeds: a map containing
_all: a map containing
count: <0>
node_count: <1>
enabled: <true>
enterprise_search: <unexpected> but was <{available=true, enabled=true, search_applications={count=0}}>
at __randomizedtesting.SeedInfo.seed([66196323F28703F3:EE4D5CF95C7B6E0B]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:572)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:524)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.AssertionError: Expected a map containing
watcher: a map containing
execution: a map containing
actions: a map containing
_all: a map containing
total: <3>
total_time_in_ms: <116>
watch: a map containing
input: a map containing
_all: a map containing
total: <0>
active: <0>
trigger: a map containing
_all: a map containing
total: <0>
active: <0>
available: <true>
count: a map containing
total: <0>
active: <0>
enabled: <true>
eql: a map containing
available: <true>
enabled: <true>
features: a map containing
joins: a map containing
join_queries_three: <0>
join_queries_two: <0>
join_until: <0>
join_queries_five_or_more: <0>
join_queries_four: <0>
sequence: <5>
keys: a map containing
join_keys_two: <0>
join_keys_one: <3>
join_keys_three: <0>
join_keys_five_or_more: <0>
join_keys_four: <0>
join: <0>
sequences: a map containing
sequence_queries_three: <1>
sequence_queries_four: <0>
sequence_queries_two: <4>
sequence_until: <0>
sequence_maxspan: <2>
sequence_queries_five_or_more: <0>
event: <15>
pipes: a map containing
pipe_tail: <20>
pipe_head: <0>
queries: a map containing
all: a map containing
total: <20>
failed: <0>
_all: a map containing
total: <20>
failed: <0>
frozen_indices: a map containing
indices_count: <0>
available: <true>
enabled: <true>
archive: a map containing
indices_count: <0>
available: <true>
enabled: <true>
ilm: a map containing
policy_count: <17>
policy_stats: a list containing
0: a map containing
phases: a map containing
warm: a map containing
min_age: <172800000>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
cold: a map containing
min_age: <2592000000L>
actions: a list containing
0: "migrate"
configurations: an empty map
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <7776000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
1: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "3d"
max_age_millis: <259200000>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <345600000>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
2: a map containing
phases: a map containing
warm: a map containing
min_age: <172800000>
actions: a list containing
0: "shrink"
1: "forcemerge"
2: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
shrink: a map containing
number_of_shards: <1>
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <2592000000L>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
3: a map containing
phases: a map containing
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "30d"
max_age_millis: <2592000000L>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
indices_managed: <0>
4: a map containing
phases: a map containing
warm: a map containing
min_age: <0>
actions: a list containing
0: "forcemerge"
1: "migrate"
configurations: a map containing
forcemerge: a map containing
max_num_segments: <1>
hot: a map containing
min_age: <0>
actions: a list containing
0: "rollover"
configurations: a map containing
rollover: a map containing
max_age: "3d"
max_age_millis: <259200000>
max_primary_shard_size: "50gb"
max_primary_shard_size_bytes: <53687091200L>
delete: a map containing
min_age: <259200000>
actions: a list containing
0: "delete"
configurations: an empty map
indices_managed: <0>
5: a map containing
phases: a map containing
hot: a map containing
...
``` | https://github.com/elastic/elasticsearch/issues/95564 | https://github.com/elastic/elasticsearch/pull/95565 | 41575d794916c26269a0324089608187a0cd2103 | b90060538a20356bd61bf07fedb3b7a6aa403791 | 2023-04-26T09:56:21Z | java | 2023-04-26T16:23:36Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,561 | ["docs/changelog/95854.yaml", "server/src/internalClusterTest/java/org/elasticsearch/repositories/blobstore/BlobStoreDynamicSettingsIT.java", "server/src/main/java/org/elasticsearch/indices/recovery/RecoverySettings.java", "server/src/main/java/org/elasticsearch/repositories/blobstore/BlobStoreRepository.java"] | Rate limit for snapshot speed is not tied to the recovery rate limit computed from `node.bandwidth.recovery*` settings | ### Elasticsearch Version
8.6.2
### Installed Plugins
_No response_
### Java Version
_bundled_
### OS Version
Elasticsearch Service (ESS)
### Problem Description
Rate limit for snapshot speed is not tied to the recovery rate limit computed from `node.bandwidth.recovery*` settings.
This happens irregardless of the data tiers where the data is located.
This is likely a bug introduced in https://github.com/elastic/elasticsearch/pull/91021 . **Issue has been observed by users and it is reproducible.**
Tagging @tlrx @kingherc as we have internally discussed about this.
### Steps to Reproduce
1) Create a deployment in Elasticsearch Service (ESS):
- Hardware profile: Storage optimized (dense)
- Hot tier: 60GB RAM x 1 availability zone (AZ)
- Warm tier: 60GB RAM x 1 availability zone (AZ)
Once the deployment is created, check the `node.bandwidth.recovery*` settings and check the Elasticsearch logs for the computed rate limit.
From the [nodes info API](https://www.elastic.co/guide/en/elasticsearch/reference/8.6/cluster-nodes-info.html) output, extract the `node.bandwidth.recovery` setting using `jq`:
```
jq '.nodes[]|{name:.name, instance_configuration:.attributes.instance_configuration, bandwidth:.settings.node.bandwidth}' nodes.json
```
```
{
"name": "instance-0000000000",
"instance_configuration": "aws.es.datahot.i3en",
"bandwidth": {
"recovery": {
"disk": {
"write": "636200Kb",
"read": "1249280Kb"
},
"network": "1018060Kb"
}
}
}
{
"name": "instance-0000000001",
"instance_configuration": "aws.es.datawarm.d3",
"bandwidth": {
"recovery": {
"disk": {
"write": "954255Kb",
"read": "293795Kb"
},
"network": "727541Kb"
}
}
}
```
In the Elasticsearch logs, we can find the computed rate limit for the two nodes:
```
[2023-04-26T00:14:00,061][INFO ][org.elasticsearch.indices.recovery.RecoverySettings] [instance-0000000000] using rate limit [248.5mb] with [default=40mb, read=397.6mb, write=248.5mb, max=60.6gb]
[2023-04-26T00:14:00,866][INFO ][org.elasticsearch.indices.recovery.RecoverySettings] [instance-0000000001] using rate limit [114.7mb] with [default=40mb, read=114.7mb, write=284.1mb, max=28gb]
```
2) Stop SLM (`POST _slm/stop`)
3) Using [rally](https://github.com/elastic/rally), run the `nyc_taxis` track with the `append-no-conflicts-index-only` challenge to create the `nyc_taxis` index, which should be about 20-25GB in size.
4) Execute the SLM policy to take a snapshot:
```
PUT _slm/policy/cloud-snapshot-policy/_execute
```
5) Wait for the snapshot to complete:
```
[2023-04-26T01:13:46,029][INFO ][org.elasticsearch.xpack.slm.SnapshotLifecycleTask] [instance-0000000000] snapshot lifecycle policy [cloud-snapshot-policy] issuing create snapshot [cloud-snapshot-2023.04.26-4olr-h_lq_63ljveqiwr2q]
[2023-04-26T01:13:46,055][INFO ][org.elasticsearch.snapshots.SnapshotsService] [instance-0000000000] snapshot [found-snapshots:cloud-snapshot-2023.04.26-4olr-h_lq_63ljveqiwr2q/VLurh60aT_qeeSlsEGcWZg] started
[2023-04-26T01:24:14,821][INFO ][org.elasticsearch.snapshots.SnapshotsService] [instance-0000000000] snapshot [found-snapshots:cloud-snapshot-2023.04.26-4olr-h_lq_63ljveqiwr2q/VLurh60aT_qeeSlsEGcWZg] completed with state [SUCCESS]
```
Observe the host network inbound/outbound utilisation. While the snapshot was taken, we can see that the snapshot speed was limited to ~ 40mb/s:
<img width="2526" alt="snapshot-in-hot-tier-default-settings" src="https://user-images.githubusercontent.com/51113389/234481515-32b1c9a3-23b5-4e34-8d2b-4d8d23b7c702.png">
**This is not the expected behaviour.**
6) Delete the snapshot
7) Update the snapshot repository `found-snapshots` with `max_snapshot_bytes_per_sec` to `248mb` (to roughly match the expected rate limit in the hot data tier)
8) Execute the SLM policy to take a snapshot
9) Wait for the snapshot to complete:
```
[2023-04-26T01:46:44,787][INFO ][org.elasticsearch.xpack.slm.SnapshotLifecycleTask] [instance-0000000000] snapshot lifecycle policy [cloud-snapshot-policy] issuing create snapshot [cloud-snapshot-2023.04.26-mwgisfissvq1uvorxigoyg]
[2023-04-26T01:46:44,797][INFO ][org.elasticsearch.snapshots.SnapshotsService] [instance-0000000000] snapshot [found-snapshots:cloud-snapshot-2023.04.26-mwgisfissvq1uvorxigoyg/3rjPoMI-Ti6pXJStt24GNg] started
[2023-04-26T01:48:28,709][INFO ][org.elasticsearch.snapshots.SnapshotsService] [instance-0000000000] snapshot [found-snapshots:cloud-snapshot-2023.04.26-mwgisfissvq1uvorxigoyg/3rjPoMI-Ti6pXJStt24GNg] completed with state [SUCCESS]
```
Observe the host network inbound/outbound utilisation. While the snapshot was taken, we can see that the snapshot speed was up to ~ 250mb/s:
<img width="2533" alt="snapshot-in-hot-tier-with-custom-snapshot-speed" src="https://user-images.githubusercontent.com/51113389/234487404-1054056a-7d3e-4816-8b38-6e2bec67ed3d.png">
10) Delete the snapshot and remove the `max_snapshot_bytes_per_sec` setting from the snapshot repository configuration
11) Update the `_tier_preference` for `nyc_taxis` index so that the index moves to the warm data tier:
```
PUT nyc_taxis/_settings
{
"index": {
"routing": {
"allocation": {
"include": {
"_tier_preference": "data_warm,data_hot"
}
}
}
}
}
```
12) Wait for the primary shard to be moved to the warm data tier
13) Execute the SLM policy to take a snapshot
14) Wait for the snapshot to complete:
```
[2023-04-26T02:19:25,635][INFO ][org.elasticsearch.xpack.slm.SnapshotLifecycleTask] [instance-0000000000] snapshot lifecycle policy [cloud-snapshot-policy] issuing create snapshot [cloud-snapshot-2023.04.26-8qo6hzwksmqi_6dnd7m_hq]
[2023-04-26T02:19:25,650][INFO ][org.elasticsearch.snapshots.SnapshotsService] [instance-0000000000] snapshot [found-snapshots:cloud-snapshot-2023.04.26-8qo6hzwksmqi_6dnd7m_hq/kioCVM4YSpii7lK3iRVC6g] started
[2023-04-26T02:29:53,481][INFO ][org.elasticsearch.snapshots.SnapshotsService] [instance-0000000000] snapshot [found-snapshots:cloud-snapshot-2023.04.26-8qo6hzwksmqi_6dnd7m_hq/kioCVM4YSpii7lK3iRVC6g] completed with state [SUCCESS]
```
Observe the host network inbound/outbound utilisation. While the snapshot was taken, we can see that the snapshot speed was limited to ~ 40mb/s:
<img width="2537" alt="snapshot-in-warm-tier-default-settings" src="https://user-images.githubusercontent.com/51113389/234488629-777a377a-fd99-4464-aae8-89e13cbf4e47.png">
**This is not the expected behaviour**
### Logs (if relevant)
_No response_ | https://github.com/elastic/elasticsearch/issues/95561 | https://github.com/elastic/elasticsearch/pull/95854 | 1f9fb7f0e0de2da26d9900af2e9ea773ae5ff7cb | e4a19a025336f3f9302c91647200f0081d7095ef | 2023-04-26T07:27:53Z | java | 2023-05-09T17:13:57Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,551 | ["docs/changelog/95971.yaml", "modules/data-streams/src/yamlRestTest/resources/rest-api-spec/test/data_stream/220_logs_default_pipeline.yml", "x-pack/plugin/core/src/main/resources/logs-default-pipeline.json", "x-pack/plugin/core/src/main/resources/logs-settings.json", "x-pack/plugin/stack/src/main/java/org/elasticsearch/xpack/stack/StackTemplateRegistry.java", "x-pack/plugin/stack/src/test/java/org/elasticsearch/xpack/stack/StackTemplateRegistryTests.java", "x-pack/qa/core-rest-tests-with-security/build.gradle", "x-pack/qa/core-rest-tests-with-security/src/yamlRestTest/java/org/elasticsearch/xpack/security/CoreWithSecurityClientYamlTestSuiteIT.java"] | [Logs+] Assign a default @timestamp if missing | Multiple ways to do that were investigated in the past. The most generic is probably to install an ingest pipeline for `logs-*-*` data streams during setup. This is currently not possible in Elasticsearch, so this task should begin with investigation of the feasibility of this option. If we can add this capability natively to Elasticsearch, we will be able to benefit from it for other things we plan to do through ingest pipelines later on, like automatic detection of JSON inputs and rerouting (to enable automatic dataset separation, for example based on automatically discovered services). | https://github.com/elastic/elasticsearch/issues/95551 | https://github.com/elastic/elasticsearch/pull/95971 | 3f5dc961574d7771668f9df44ccc962dae57ee5a | c244de05db6ddac028ea92d7614d962ffcf0d72f | 2023-04-25T15:22:17Z | java | 2023-05-12T05:42:15Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,544 | ["docs/changelog/96321.yaml", "docs/reference/index-modules.asciidoc", "server/src/main/java/org/elasticsearch/action/explain/TransportExplainAction.java", "server/src/main/java/org/elasticsearch/action/get/TransportGetAction.java", "server/src/main/java/org/elasticsearch/action/get/TransportShardMultiGetAction.java", "server/src/main/java/org/elasticsearch/action/termvectors/TransportTermVectorsAction.java", "server/src/main/java/org/elasticsearch/index/shard/IndexShard.java", "server/src/main/java/org/elasticsearch/search/SearchService.java", "server/src/test/java/org/elasticsearch/index/shard/IndexShardTests.java"] | Trigger a refresh when a shard becomes search active instead of waiting for it. | When a shard becomes search active then trigger a refresh instead of waiting for the next scheduled refresh.
The `IndexShard#awaitShardSearchActive(...)` method registers a refresh listener and then often waits for the refresh scheduler to trigger a refresh. By default this is one second. In order to avoid increasing the query time of the Search API, the mentioned method should trigger a refresh instead for waiting it to happen.
As part of this change we also need to disable the refresh scheduler completely. Otherwise we run at risk of running two refreshes next after each other. One triggered from making shard search active and one from the refresh scheduler.
| https://github.com/elastic/elasticsearch/issues/95544 | https://github.com/elastic/elasticsearch/pull/96321 | 353f357f0b82cd7911b50d98e1da89401f931c46 | 31a47867428f1f53bfa72b049fd5e082a4fef234 | 2023-04-25T13:44:04Z | java | 2023-06-15T05:25:37Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,541 | ["docs/changelog/96161.yaml", "server/src/internalClusterTest/java/org/elasticsearch/index/shard/SearchIdleIT.java", "server/src/main/java/org/elasticsearch/index/IndexService.java", "server/src/main/java/org/elasticsearch/index/query/SearchExecutionContext.java", "server/src/main/java/org/elasticsearch/search/SearchService.java", "server/src/test/java/org/elasticsearch/search/SearchServiceTests.java", "x-pack/plugin/mapper-constant-keyword/src/test/java/org/elasticsearch/xpack/constantkeyword/mapper/SearchIdleTests.java"] | Avoid refreshing search-idle shards that don't yield results after query rewrite | Many search requests have the following structure:
```
...
"query": {
"bool": {
"must": [],
"filter": [
{
"match_phrase": {
"data_stream.dataset": "kubernetes.container"
}
},
{
"range": {
"@timestamp": {
"format": "strict_date_optional_time",
"gte": "...",
"lte": "...."
}
}
}
],
"should": [],
"must_not": []
}
}
...
```
The index pattern matches (`metrics-*`) matches all metric data streams, but the `match_phrase` query on the `data_stream.dataset` field, which is a constant keyword field, only matches with one specific data stream.
Before query rewriting either in the `can_match` or `query` phases, shards that are search-idle get refreshed. This increases the query time significantly. Many o11y use cases rely on the default refresh behaviour. Which is the schedule a refresh every second when a shard is search active and don't schedule any refreshes when a shard is search-idle, this to favour indexing performance.
The refresh that occurs before the query rewrite should not occur on shards that don't match with the required filter clause on the `data_stream.dataset` constant keyword field. That is the goal of this issue.. | https://github.com/elastic/elasticsearch/issues/95541 | https://github.com/elastic/elasticsearch/pull/96161 | 110b1a686e50c0228878f49c778a1b8189e067e7 | a732ecd78ade0f85c586800f9e3ffdf8f6e10f2d | 2023-04-25T13:02:40Z | java | 2023-06-09T13:13:58Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,537 | ["docs/changelog/95971.yaml", "modules/data-streams/src/yamlRestTest/resources/rest-api-spec/test/data_stream/220_logs_default_pipeline.yml", "x-pack/plugin/core/src/main/resources/logs-default-pipeline.json", "x-pack/plugin/core/src/main/resources/logs-settings.json", "x-pack/plugin/stack/src/main/java/org/elasticsearch/xpack/stack/StackTemplateRegistry.java", "x-pack/plugin/stack/src/test/java/org/elasticsearch/xpack/stack/StackTemplateRegistryTests.java", "x-pack/qa/core-rest-tests-with-security/build.gradle", "x-pack/qa/core-rest-tests-with-security/src/yamlRestTest/java/org/elasticsearch/xpack/security/CoreWithSecurityClientYamlTestSuiteIT.java"] | [Logs+] Make default logs-*-* pipeline customizable | Call out to a missing `@custom` pipeline so that users can add custom processors to the default logs pipeline.
Open questions
* Can we make the custom pipeline specific for a dataset?
* Should this pipeline also be called by integrations?
* Align with https://github.com/elastic/kibana/issues/149484
Relates to https://github.com/elastic/elasticsearch/pull/95481
cc @joshdover @kpollich | https://github.com/elastic/elasticsearch/issues/95537 | https://github.com/elastic/elasticsearch/pull/95971 | 3f5dc961574d7771668f9df44ccc962dae57ee5a | c244de05db6ddac028ea92d7614d962ffcf0d72f | 2023-04-25T12:22:28Z | java | 2023-05-12T05:42:15Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,525 | ["docs/changelog/96421.yaml", "server/src/main/java/org/elasticsearch/indices/recovery/PeerRecoveryTargetService.java", "server/src/main/java/org/elasticsearch/indices/recovery/RecoveryTarget.java", "x-pack/plugin/snapshot-based-recoveries/src/internalClusterTest/java/org/elasticsearch/xpack/snapshotbasedrecoveries/recovery/SnapshotBasedIndexRecoveryIT.java"] | RecoveryTarget#restoreFileFromSnapshot should check for cancellation while downloading | org.elasticsearch.indices.recovery.RecoveryTarget#restoreFileFromSnapshot does not check for cancellation during the download of a file. This means that if a recovery is cancelled mid-way, we will still not release the store/shard-lock until the file is fully downloaded.
For large files or slow downloads this can lead to problems when the shard is (re-)allocated to a node that is still executing such an interrupted recovery.
-> we need to add some checks for cancellation here like we have for other recovery modes. | https://github.com/elastic/elasticsearch/issues/95525 | https://github.com/elastic/elasticsearch/pull/96421 | 94ed4ca3cae2b398e99a7347d8a97ae3f0508793 | 651ec81d04b7c5dc7d4d1a7b649d2a3c4d3beb4e | 2023-04-25T09:16:42Z | java | 2023-05-30T09:45:22Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,524 | ["x-pack/plugin/frozen-indices/src/internalClusterTest/java/org/elasticsearch/index/engine/frozen/FrozenIndexTests.java"] | [CI] FrozenIndexTests testSearchAndGetAPIsAreThrottled failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/vsdqw2nozrf56/tests/:x-pack:plugin:frozen-indices:internalClusterTest/org.elasticsearch.index.engine.frozen.FrozenIndexTests/testSearchAndGetAPIsAreThrottled
**Reproduction line:**
```
./gradlew ':x-pack:plugin:frozen-indices:internalClusterTest' --tests "org.elasticsearch.index.engine.frozen.FrozenIndexTests.testSearchAndGetAPIsAreThrottled" -Dtests.seed=E85751702E4664BA -Dtests.locale=sr-Latn-RS -Dtests.timezone=America/Marigot -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.index.engine.frozen.FrozenIndexTests&tests.test=testSearchAndGetAPIsAreThrottled
**Failure excerpt:**
```
java.lang.AssertionError: no warnings, expected: [WARN: Searching frozen indices [index] is deprecated. Consider cold or frozen tiers in place of frozen indices. The frozen feature will be removed in a feature release.]
at __randomizedtesting.SeedInfo.seed([E85751702E4664BA:37B829D30841FBC6]:0)
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.ESTestCase.assertWarnings(ESTestCase.java:586)
at org.elasticsearch.test.ESTestCase.assertWarnings(ESTestCase.java:555)
at org.elasticsearch.index.engine.frozen.FrozenIndexTests.testSearchAndGetAPIsAreThrottled(FrozenIndexTests.java:219)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95524 | https://github.com/elastic/elasticsearch/pull/95695 | 68528db14f138711fec6dbab83109636f11a5114 | b5413e5b50f82622f8a076fd14e9058cc0699818 | 2023-04-25T09:12:23Z | java | 2023-05-03T20:21:46Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,522 | ["docs/changelog/96083.yaml", "modules/data-streams/src/yamlRestTest/resources/rest-api-spec/test/data_stream/220_logs_default_pipeline.yml", "modules/data-streams/src/yamlRestTest/resources/rest-api-spec/test/data_stream/230_logs_message_pipeline.yml", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/template/IndexTemplateRegistry.java", "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/template/IngestPipelineConfig.java", "x-pack/plugin/core/src/main/resources/logs-json-message-pipeline.json", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/template/IndexTemplateRegistryTests.java", "x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/template/TestRegistryWithCustomPlugin.java", "x-pack/plugin/stack/src/main/java/org/elasticsearch/xpack/stack/StackTemplateRegistry.java", "x-pack/plugin/stack/src/test/java/org/elasticsearch/xpack/stack/StackTemplateRegistryTests.java"] | [Logs+] Add JSON parsing pipeline | Enhancing the `logs-*-*` index template with a default ingest pipeline that is first doing a pre-flight check if the `message` field might be JSON and then uses the JSON processor to decode the JSON and merge it top-level with the document.
See also this prototype: https://gist.github.com/felixbarny/a9a2f6243153d5508643fd95ac968a88#file-routing-yml-L114-L174
Open questions and things to consider
* How do users opt-out of default JSON parsing? They could override the index template. Maybe that's good enough.
* Similarly to the logs@custom component template, should we call out to a custom index pipeline? Align with naming in Fleet. | https://github.com/elastic/elasticsearch/issues/95522 | https://github.com/elastic/elasticsearch/pull/96083 | 471b3f510070e0a8ba396434bf2ec0d4e05afbef | 7d577312916ee1bd6e5428e2b263a885d75b4d52 | 2023-04-25T08:10:19Z | java | 2023-05-23T03:21:56Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,519 | ["x-pack/qa/core-rest-tests-with-security/src/yamlRestTest/java/org/elasticsearch/xpack/security/CoreWithSecurityClientYamlTestSuiteIT.java"] | [CI] CoreWithSecurityClientYamlTestSuiteIT test {yaml=cluster.component_template/10_basic/Add data lifecycle} failing | It fails on release tests along with a few other tests. The error is "unknown field [lifecycle]" which seems to be either feature flag related or bwc handling.
**Build scan:**
https://gradle-enterprise.elastic.co/s/5a432zhyd3au4/tests/:x-pack:qa:core-rest-tests-with-security:yamlRestTest/org.elasticsearch.xpack.security.CoreWithSecurityClientYamlTestSuiteIT/test%20%7Byaml=cluster.component_template%2F10_basic%2FAdd%20data%20lifecycle%7D
**Reproduction line:**
```
./gradlew ':x-pack:qa:core-rest-tests-with-security:yamlRestTest' --tests "org.elasticsearch.xpack.security.CoreWithSecurityClientYamlTestSuiteIT" -Dtests.method="test {yaml=cluster.component_template/10_basic/Add data lifecycle}" -Dtests.seed=58A72866AD695066 -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dtests.locale=mt-MT -Dtests.timezone=Atlantic/South_Georgia -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.security.CoreWithSecurityClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dcluster.component_template/10_basic/Add%20data%20lifecycle%7D
**Failure excerpt:**
```
java.lang.AssertionError: Failure at [cluster.component_template/10_basic:123]: expected [2xx] status code but api [cluster.put_component_template] returned [400 Bad Request] [{"error":{"root_cause":[{"type":"x_content_parse_exception","reason":"[-1:11] [template] unknown field [lifecycle]","stack_trace":"org.elasticsearch.ElasticsearchException$1: [-1:11] [template] unknown field [lifecycle]\n\tat [email protected]/org.elasticsearch.ElasticsearchException.guessRootCauses(ElasticsearchException.java:669)\n\tat [email protected]/org.elasticsearch.ElasticsearchException.guessRootCauses(ElasticsearchException.java:665)\n\tat [email protected]/org.elasticsearch.ElasticsearchException.generateFailureXContent(ElasticsearchException.java:597)\n\tat [email protected]/org.elasticsearch.rest.RestResponse.build(RestResponse.java:176)\n\tat [email protected]/org.elasticsearch.rest.RestResponse.<init>(RestResponse.java:124)\n\tat [email protected]/org.elasticsearch.rest.RestResponse.<init>(RestResponse.java:103)\n\tat [email protected]/org.elasticsearch.xpack.security.rest.SecurityRestFilter.handleException(SecurityRestFilter.java:109)\n\tat [email protected]/org.elasticsearch.xpack.security.rest.SecurityRestFilter.lambda$handleRequest$1(SecurityRestFilter.java:91)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:59)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:166)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:160)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.support.SecondaryAuthenticator.lambda$authenticateAndAttachToContext$3(SecondaryAuthenticator.java:103)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:158)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.support.SecondaryAuthenticator.authenticate(SecondaryAuthenticator.java:113)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.support.SecondaryAuthenticator.authenticateAndAttachToContext(SecondaryAuthenticator.java:90)\n\tat [email protected]/org.elasticsearch.xpack.security.rest.SecurityRestFilter.lambda$handleRequest$2(SecurityRestFilter.java:86)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:158)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations$MappedActionListener.onResponse(ActionListenerImplementations.java:93)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations$RunBeforeActionListener.onResponse(ActionListenerImplementations.java:210)\n\tat [email protected]/org.elasticsearch.action.ActionListener$5.onResponse(ActionListener.java:333)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.writeAuthToContext(AuthenticatorChain.java:346)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.finishAuthentication(AuthenticatorChain.java:325)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.maybeLookupRunAsUser(AuthenticatorChain.java:202)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$doAuthenticate$1(AuthenticatorChain.java:121)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:158)\n\tat [email protected]/org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:141)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$4(AuthenticatorChain.java:188)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:158)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.RealmsAuthenticator.lambda$consumeToken$5(RealmsAuthenticator.java:220)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:158)\n\tat [email protected]/org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:32)\n\tat [email protected]/org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:141)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.RealmsAuthenticator.lambda$consumeToken$1(RealmsAuthenticator.java:163)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:158)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.lambda$authenticateWithCache$1(CachingUsernamePasswordRealm.java:155)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:158)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.handleCachedAuthentication(CachingUsernamePasswordRealm.java:242)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.lambda$authenticateWithCache$2(CachingUsernamePasswordRealm.java:139)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:158)\n\tat [email protected]/org.elasticsearch.action.support.SubscribableListener$SuccessResult.complete(SubscribableListener.java:267)\n\tat [email protected]/org.elasticsearch.action.support.SubscribableListener.tryComplete(SubscribableListener.java:187)\n\tat [email protected]/org.elasticsearch.action.support.SubscribableListener.addListener(SubscribableListener.java:90)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.authenticateWithCache(CachingUsernamePasswordRealm.java:134)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.authenticate(CachingUsernamePasswordRealm.java:105)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.RealmsAuthenticator.lambda$consumeToken$4(RealmsAuthenticator.java:147)\n\tat [email protected]/org.elasticsearch.xpack.core.common.IteratingActionListener.run(IteratingActionListener.java:117)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.RealmsAuthenticator.consumeToken(RealmsAuthenticator.java:237)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.RealmsAuthenticator.authenticate(RealmsAuthenticator.java:83)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$5(AuthenticatorChain.java:180)\n\tat [email protected]/org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:135)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$5(AuthenticatorChain.java:158)\n\tat [email protected]/org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:135)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$5(AuthenticatorChain.java:158)\n\tat [email protected]/org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:135)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$5(AuthenticatorChain.java:158)\n\tat [email protected]/org.elasticsearch.xpack.core.common.IteratingActionListener.run(IteratingActionListener.java:117)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.doAuthenticate(AuthenticatorChain.java:136)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.authenticateAsync(AuthenticatorChain.java:95)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:257)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:146)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:124)\n\tat [email protected]/org.elasticsearch.xpack.security.rest.SecurityRestFilter.handleRequest(SecurityRestFilter.java:79)\n\tat [email protected]/org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:410)\n\tat [email protected]/org.elasticsearch.rest.RestController.tryAllHandlers(RestController.java:539)\n\tat [email protected]/org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:311)\n\tat [email protected]/org.elasticsearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:381)\n\tat [email protected]/org.elasticsearch.http.AbstractHttpServerTransport.handleIncomingRequest(AbstractHttpServerTransport.java:477)\n\tat [email protected]/org.elasticsearch.http.AbstractHttpServerTransport.incomingRequest(AbstractHttpServerTransport.java:354)\n\tat [email protected]/org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.handlePipelinedRequest(Netty4HttpPipeliningHandler.java:128)\n\tat [email protected]/org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.channelRead(Netty4HttpPipeliningHandler.java:118)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat [email protected]/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat [email protected]/io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat [email protected]/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat [email protected]/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat [email protected]/org.elasticsearch.http.netty4.Netty4HttpHeaderValidator.forwardData(Netty4HttpHeaderValidator.java:190)\n\tat [email protected]/org.elasticsearch.http.netty4.Netty4HttpHeaderValidator.forwardFullRequest(Netty4HttpHeaderValidator.java:134)\n\tat [email protected]/org.elasticsearch.http.netty4.Netty4HttpHeaderValidator$1.lambda$onResponse$0(Netty4HttpHeaderValidator.java:117)\n\tat [email protected]/io.netty.util.concurrent.PromiseTask.runTask(PromiseTask.java:98)\n\tat [email protected]/io.netty.util.concurrent.PromiseTask.run(PromiseTask.java:106)\n\tat [email protected]/io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174)\n\tat [email protected]/io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167)\n\tat [email protected]/io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470)\n\tat [email protected]/io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:566)\n\tat [email protected]/io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)\n\tat [email protected]/io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\nCaused by: org.elasticsearch.xcontent.XContentParseException: [-1:11] [template] unknown field [lifecycle]\n\tat [email protected]/org.elasticsearch.xcontent.ObjectParser.lambda$errorOnUnknown$2(ObjectParser.java:105)\n\tat [email protected]/org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:299)\n\tat [email protected]/org.elasticsearch.xcontent.ConstructingObjectParser.parse(ConstructingObjectParser.java:166)\n\tat [email protected]/org.elasticsearch.xcontent.ObjectParser.lambda$declareField$10(ObjectParser.java:431)\n\tat [email protected]/org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:609)\n\tat [email protected]/org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:629)\n\tat [email protected]/org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:315)\n\tat [email protected]/org.elasticsearch.xcontent.ConstructingObjectParser.parse(ConstructingObjectParser.java:166)\n\tat [email protected]/org.elasticsearch.xcontent.ConstructingObjectParser.apply(ConstructingObjectParser.java:158)\n\tat [email protected]/org.elasticsearch.cluster.metadata.ComponentTemplate.parse(ComponentTemplate.java:63)\n\tat [email protected]/org.elasticsearch.rest.action.admin.indices.RestPutComponentTemplateAction.prepareRequest(RestPutComponentTemplateAction.java:46)\n\tat [email protected]/org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:80)\n\tat [email protected]/org.elasticsearch.xpack.security.rest.SecurityRestFilter.doHandleRequest(SecurityRestFilter.java:98)\n\tat [email protected]/org.elasticsearch.xpack.security.rest.SecurityRestFilter.lambda$handleRequest$0(SecurityRestFilter.java:90)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:158)\n\t... 87 more\n"}],"type":"x_content_parse_exception","reason":"[-1:21] [component_template] failed to parse field [template]","caused_by":{"type":"x_content_parse_exception","reason":"[-1:11] [template] unknown field [lifecycle]","stack_trace":"org.elasticsearch.xcontent.XContentParseException: [-1:11] [template] unknown field [lifecycle]\n\tat [email protected]/org.elasticsearch.xcontent.ObjectParser.lambda$errorOnUnknown$2(ObjectParser.java:105)\n\tat [email protected]/org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:299)\n\tat [email protected]/org.elasticsearch.xcontent.ConstructingObjectParser.parse(ConstructingObjectParser.java:166)\n\tat [email protected]/org.elasticsearch.xcontent.ObjectParser.lambda$declareField$10(ObjectParser.java:431)\n\tat [email protected]/org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:609)\n\tat [email protected]/org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:629)\n\tat [email protected]/org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:315)\n\tat [email protected]/org.elasticsearch.xcontent.ConstructingObjectParser.parse(ConstructingObjectParser.java:166)\n\tat [email protected]/org.elasticsearch.xcontent.ConstructingObjectParser.apply(ConstructingObjectParser.java:158)\n\tat [email protected]/org.elasticsearch.cluster.metadata.ComponentTemplate.parse(ComponentTemplate.java:63)\n\tat [email protected]/org.elasticsearch.rest.action.admin.indices.RestPutComponentTemplateAction.prepareRequest(RestPutComponentTemplateAction.java:46)\n\tat [email protected]/org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:80)\n\tat [email protected]/org.elasticsearch.xpack.security.rest.SecurityRestFilter.doHandleRequest(SecurityRestFilter.java:98)\n\tat [email protected]/org.elasticsearch.xpack.security.rest.SecurityRestFilter.lambda$handleRequest$0(SecurityRestFilter.java:90)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:158)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.support.SecondaryAuthenticator.lambda$authenticateAndAttachToContext$3(SecondaryAuthenticator.java:103)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:158)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.support.SecondaryAuthenticator.authenticate(SecondaryAuthenticator.java:113)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.support.SecondaryAuthenticator.authenticateAndAttachToContext(SecondaryAuthenticator.java:90)\n\tat [email protected]/org.elasticsearch.xpack.security.rest.SecurityRestFilter.lambda$handleRequest$2(SecurityRestFilter.java:86)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:158)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations$MappedActionListener.onResponse(ActionListenerImplementations.java:93)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations$RunBeforeActionListener.onResponse(ActionListenerImplementations.java:210)\n\tat [email protected]/org.elasticsearch.action.ActionListener$5.onResponse(ActionListener.java:333)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.writeAuthToContext(AuthenticatorChain.java:346)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.finishAuthentication(AuthenticatorChain.java:325)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.maybeLookupRunAsUser(AuthenticatorChain.java:202)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$doAuthenticate$1(AuthenticatorChain.java:121)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:158)\n\tat [email protected]/org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:141)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$4(AuthenticatorChain.java:188)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:158)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.RealmsAuthenticator.lambda$consumeToken$5(RealmsAuthenticator.java:220)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:158)\n\tat [email protected]/org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:32)\n\tat [email protected]/org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:141)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.RealmsAuthenticator.lambda$consumeToken$1(RealmsAuthenticator.java:163)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:158)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.lambda$authenticateWithCache$1(CachingUsernamePasswordRealm.java:155)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:158)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.handleCachedAuthentication(CachingUsernamePasswordRealm.java:242)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.lambda$authenticateWithCache$2(CachingUsernamePasswordRealm.java:139)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:158)\n\tat [email protected]/org.elasticsearch.action.support.SubscribableListener$SuccessResult.complete(SubscribableListener.java:267)\n\tat [email protected]/org.elasticsearch.action.support.SubscribableListener.tryComplete(SubscribableListener.java:187)\n\tat [email protected]/org.elasticsearch.action.support.SubscribableListener.addListener(SubscribableListener.java:90)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.authenticateWithCache(CachingUsernamePasswordRealm.java:134)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.authenticate(CachingUsernamePasswordRealm.java:105)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.RealmsAuthenticator.lambda$consumeToken$4(RealmsAuthenticator.java:147)\n\tat [email protected]/org.elasticsearch.xpack.core.common.IteratingActionListener.run(IteratingActionListener.java:117)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.RealmsAuthenticator.consumeToken(RealmsAuthenticator.java:237)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.RealmsAuthenticator.authenticate(RealmsAuthenticator.java:83)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$5(AuthenticatorChain.java:180)\n\tat [email protected]/org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:135)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$5(AuthenticatorChain.java:158)\n\tat [email protected]/org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:135)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$5(AuthenticatorChain.java:158)\n\tat [email protected]/org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:135)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$5(AuthenticatorChain.java:158)\n\tat [email protected]/org.elasticsearch.xpack.core.common.IteratingActionListener.run(IteratingActionListener.java:117)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.doAuthenticate(AuthenticatorChain.java:136)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.authenticateAsync(AuthenticatorChain.java:95)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:257)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:146)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:124)\n\tat [email protected]/org.elasticsearch.xpack.security.rest.SecurityRestFilter.handleRequest(SecurityRestFilter.java:79)\n\tat [email protected]/org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:410)\n\tat [email protected]/org.elasticsearch.rest.RestController.tryAllHandlers(RestController.java:539)\n\tat [email protected]/org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:311)\n\tat [email protected]/org.elasticsearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:381)\n\tat [email protected]/org.elasticsearch.http.AbstractHttpServerTransport.handleIncomingRequest(AbstractHttpServerTransport.java:477)\n\tat [email protected]/org.elasticsearch.http.AbstractHttpServerTransport.incomingRequest(AbstractHttpServerTransport.java:354)\n\tat [email protected]/org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.handlePipelinedRequest(Netty4HttpPipeliningHandler.java:128)\n\tat [email protected]/org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.channelRead(Netty4HttpPipeliningHandler.java:118)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat [email protected]/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat [email protected]/io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat [email protected]/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat [email protected]/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat [email protected]/org.elasticsearch.http.netty4.Netty4HttpHeaderValidator.forwardData(Netty4HttpHeaderValidator.java:190)\n\tat [email protected]/org.elasticsearch.http.netty4.Netty4HttpHeaderValidator.forwardFullRequest(Netty4HttpHeaderValidator.java:134)\n\tat [email protected]/org.elasticsearch.http.netty4.Netty4HttpHeaderValidator$1.lambda$onResponse$0(Netty4HttpHeaderValidator.java:117)\n\tat [email protected]/io.netty.util.concurrent.PromiseTask.runTask(PromiseTask.java:98)\n\tat [email protected]/io.netty.util.concurrent.PromiseTask.run(PromiseTask.java:106)\n\tat [email protected]/io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174)\n\tat [email protected]/io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167)\n\tat [email protected]/io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470)\n\tat [email protected]/io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:566)\n\tat [email protected]/io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)\n\tat [email protected]/io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\n"},"stack_trace":"org.elasticsearch.xcontent.XContentParseException: [-1:21] [component_template] failed to parse field [template]\n\tat [email protected]/org.elasticsearch.xcontent.ObjectParser.throwFailedToParse(ObjectParser.java:616)\n\tat [email protected]/org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:611)\n\tat [email protected]/org.elasticsearch.xcontent.ObjectParser.parseSub(ObjectParser.java:629)\n\tat [email protected]/org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:315)\n\tat [email protected]/org.elasticsearch.xcontent.ConstructingObjectParser.parse(ConstructingObjectParser.java:166)\n\tat [email protected]/org.elasticsearch.xcontent.ConstructingObjectParser.apply(ConstructingObjectParser.java:158)\n\tat [email protected]/org.elasticsearch.cluster.metadata.ComponentTemplate.parse(ComponentTemplate.java:63)\n\tat [email protected]/org.elasticsearch.rest.action.admin.indices.RestPutComponentTemplateAction.prepareRequest(RestPutComponentTemplateAction.java:46)\n\tat [email protected]/org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:80)\n\tat [email protected]/org.elasticsearch.xpack.security.rest.SecurityRestFilter.doHandleRequest(SecurityRestFilter.java:98)\n\tat [email protected]/org.elasticsearch.xpack.security.rest.SecurityRestFilter.lambda$handleRequest$0(SecurityRestFilter.java:90)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:158)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.support.SecondaryAuthenticator.lambda$authenticateAndAttachToContext$3(SecondaryAuthenticator.java:103)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:158)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.support.SecondaryAuthenticator.authenticate(SecondaryAuthenticator.java:113)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.support.SecondaryAuthenticator.authenticateAndAttachToContext(SecondaryAuthenticator.java:90)\n\tat [email protected]/org.elasticsearch.xpack.security.rest.SecurityRestFilter.lambda$handleRequest$2(SecurityRestFilter.java:86)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:158)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations$MappedActionListener.onResponse(ActionListenerImplementations.java:93)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations$RunBeforeActionListener.onResponse(ActionListenerImplementations.java:210)\n\tat [email protected]/org.elasticsearch.action.ActionListener$5.onResponse(ActionListener.java:333)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.writeAuthToContext(AuthenticatorChain.java:346)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.finishAuthentication(AuthenticatorChain.java:325)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.maybeLookupRunAsUser(AuthenticatorChain.java:202)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$doAuthenticate$1(AuthenticatorChain.java:121)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:158)\n\tat [email protected]/org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:141)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$4(AuthenticatorChain.java:188)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:158)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.RealmsAuthenticator.lambda$consumeToken$5(RealmsAuthenticator.java:220)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:158)\n\tat [email protected]/org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:32)\n\tat [email protected]/org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:141)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.RealmsAuthenticator.lambda$consumeToken$1(RealmsAuthenticator.java:163)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:158)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.lambda$authenticateWithCache$1(CachingUsernamePasswordRealm.java:155)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:158)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.handleCachedAuthentication(CachingUsernamePasswordRealm.java:242)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.lambda$authenticateWithCache$2(CachingUsernamePasswordRealm.java:139)\n\tat [email protected]/org.elasticsearch.action.ActionListener$2.onResponse(ActionListener.java:158)\n\tat [email protected]/org.elasticsearch.action.support.SubscribableListener$SuccessResult.complete(SubscribableListener.java:267)\n\tat [email protected]/org.elasticsearch.action.support.SubscribableListener.tryComplete(SubscribableListener.java:187)\n\tat [email protected]/org.elasticsearch.action.support.SubscribableListener.addListener(SubscribableListener.java:90)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.authenticateWithCache(CachingUsernamePasswordRealm.java:134)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.authenticate(CachingUsernamePasswordRealm.java:105)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.RealmsAuthenticator.lambda$consumeToken$4(RealmsAuthenticator.java:147)\n\tat [email protected]/org.elasticsearch.xpack.core.common.IteratingActionListener.run(IteratingActionListener.java:117)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.RealmsAuthenticator.consumeToken(RealmsAuthenticator.java:237)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.RealmsAuthenticator.authenticate(RealmsAuthenticator.java:83)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$5(AuthenticatorChain.java:180)\n\tat [email protected]/org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:135)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$5(AuthenticatorChain.java:158)\n\tat [email protected]/org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:135)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$5(AuthenticatorChain.java:158)\n\tat [email protected]/org.elasticsearch.xpack.core.common.IteratingActionListener.onResponse(IteratingActionListener.java:135)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.lambda$getAuthenticatorConsumer$5(AuthenticatorChain.java:158)\n\tat [email protected]/org.elasticsearch.xpack.core.common.IteratingActionListener.run(IteratingActionListener.java:117)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.doAuthenticate(AuthenticatorChain.java:136)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticatorChain.authenticateAsync(AuthenticatorChain.java:95)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:257)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:146)\n\tat [email protected]/org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:124)\n\tat [email protected]/org.elasticsearch.xpack.security.rest.SecurityRestFilter.handleRequest(SecurityRestFilter.java:79)\n\tat [email protected]/org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:410)\n\tat [email protected]/org.elasticsearch.rest.RestController.tryAllHandlers(RestController.java:539)\n\tat [email protected]/org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:311)\n\tat [email protected]/org.elasticsearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:381)\n\tat [email protected]/org.elasticsearch.http.AbstractHttpServerTransport.handleIncomingRequest(AbstractHttpServerTransport.java:477)\n\tat [email protected]/org.elasticsearch.http.AbstractHttpServerTransport.incomingRequest(AbstractHttpServerTransport.java:354)\n\tat [email protected]/org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.handlePipelinedRequest(Netty4HttpPipeliningHandler.java:128)\n\tat [email protected]/org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.channelRead(Netty4HttpPipeliningHandler.java:118)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat [email protected]/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat [email protected]/io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat [email protected]/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat [email protected]/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat [email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat [email protected]/org.elasticsearch.http.netty4.Netty4HttpHeaderValidator.forwardData(Netty4HttpHeaderValidator.java:190)\n\tat [email protected]/org.elasticsearch.http.netty4.Netty4HttpHeaderValidator.forwardFullRequest(Netty4HttpHeaderValidator.java:134)\n\tat [email protected]/org.elasticsearch.http.netty4.Netty4HttpHeaderValidator$1.lambda$onResponse$0(Netty4HttpHeaderValidator.java:117)\n\tat [email protected]/io.netty.util.concurrent.PromiseTask.runTask(PromiseTask.java:98)\n\tat [email protected]/io.netty.util.concurrent.PromiseTask.run(PromiseTask.java:106)\n\tat [email protected]/io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174)\n\tat [email protected]/io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167)\n\tat [email protected]/io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470)\n\tat [email protected]/io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:566)\n\tat [email protected]/io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)\n\tat [email protected]/io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n\tat java.base/java.lang.Thread.run(Thread.java:1623)\nCaused by: org.elasticsearch.xcontent.XContentParseException: [-1:11] [template] unknown field [lifecycle]\n\tat [email protected]/org.elasticsearch.xcontent.ObjectParser.lambda$errorOnUnknown$2(ObjectParser.java:105)\n\tat [email protected]/org.elasticsearch.xcontent.ObjectParser.parse(ObjectParser.java:299)\n\tat [email protected]/org.elasticsearch.xcontent.ConstructingObjectParser.parse(ConstructingObjectParser.java:166)\n\tat [email protected]/org.elasticsearch.xcontent.ObjectParser.lambda$declareField$10(ObjectParser.java:431)\n\tat [email protected]/org.elasticsearch.xcontent.ObjectParser.parseValue(ObjectParser.java:609)\n\t... 97 more\n"},"status":400}]
at __randomizedtesting.SeedInfo.seed([58A72866AD695066:D0F317BC03953D9E]:0)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:572)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:524)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.elasticsearch.test.cluster.local.LocalElasticsearchCluster$1.evaluate(LocalElasticsearchCluster.java:39)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.AssertionError: expected [2xx] status code but api [cluster.put_component_template] returned [400 Bad Request] [{"error":{"root_cause":[{"type":"x_content_parse_exception","reason":"[-1:11] [template] unknown field [lifecycle]","stack_trace":"org.elasticsearch.ElasticsearchException$1: [-1:11] [template] unknown field [lifecycle]\n\tat [email protected]/org.elasticsearch.ElasticsearchException.guessRootCauses(ElasticsearchException.java:669)\n\tat [email protected]/org.elasticsearch.ElasticsearchException.guessRootCauses(ElasticsearchException.java:665)\n\tat [email protected]/org.elasticsearch.ElasticsearchException.generateFailureXContent(ElasticsearchException.java:597)\n\tat [email protected]/org.elasticsearch.rest.RestResponse.build(RestResponse.java:176)\n\tat [email protected]/org.elasticsearch.rest.RestResponse.<init>(RestResponse.java:124)\n\tat [email protected]/org.elasticsearch.rest.RestResponse.<in...
``` | https://github.com/elastic/elasticsearch/issues/95519 | https://github.com/elastic/elasticsearch/pull/95521 | 31d7c5d6725df1402f6322fd51950e6974347683 | 47e71af6da326ceada615008cc16279ee9cb201c | 2023-04-25T06:11:43Z | java | 2023-04-25T08:24:00Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,516 | ["x-pack/plugin/transform/qa/multi-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/transform/integration/TransformInsufficientPermissionsIT.java"] | [CI] TransformInsufficientPermissionsIT testTransformPermissionsDeferUnattendedNoDest failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/fbyzsxp52ifio/tests/:x-pack:plugin:transform:qa:multi-node-tests:javaRestTest/org.elasticsearch.xpack.transform.integration.TransformInsufficientPermissionsIT/testTransformPermissionsDeferUnattendedNoDest
**Reproduction line:**
```
./gradlew ':x-pack:plugin:transform:qa:multi-node-tests:javaRestTest' --tests "org.elasticsearch.xpack.transform.integration.TransformInsufficientPermissionsIT.testTransformPermissionsDeferUnattendedNoDest" -Dtests.seed=7D1146D3FAF85278 -Dtests.locale=is-IS -Dtests.timezone=America/Cambridge_Bay -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Yes
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.transform.integration.TransformInsufficientPermissionsIT&tests.test=testTransformPermissionsDeferUnattendedNoDest
**Failure excerpt:**
```
java.lang.AssertionError: Stats were: {checkpointing={next={checkpoint=1, checkpoint_progress={docs_processed=0, docs_indexed=0}, timestamp_millis=1682380201153, time_upper_bound_millis=1682380200153}, last={checkpoint=0}}, node={transport_address=127.0.0.1:45399, name=javaRestTest-2, attributes={}, id=fX_1MyFnQyiDNW6ox-2IMQ, ephemeral_id=sFd185cYSjmAUQOgpquxGw}, stats={pages_processed=3, index_time_in_ms=0, documents_deleted=0, search_failures=0, index_failures=0, search_total=3, processing_total=3, delete_time_in_ms=0, documents_indexed=0, trigger_count=3, documents_processed=0, search_time_in_ms=26, index_total=0, exponential_avg_checkpoint_duration_ms=0.0, exponential_avg_documents_processed=0.0, processing_time_in_ms=0, exponential_avg_documents_indexed=0.0}, health={issues=[{issue=Privileges check failed, count=1, details=Cannot create transform [transform-permissions-defer-unattended] because user john_junior lacks the required permissions [transform-permissions-defer-unattended-dest:[create_index, index, read], transform-permissions-defer-unattended-index:[read, view_index_metadata]], type=privileges_check_failed}, {issue=Transform indexer failed, first_occurrence=1682380191072, count=3, details=org.elasticsearch.index.IndexNotFoundException: no such index [transform-permissions-defer-unattended-dest], type=transform_indexer_failed}], status=red}, id=transform-permissions-defer-unattended, state=started}
Expected: a collection with size <1>
but: collection size was <2>
at __randomizedtesting.SeedInfo.seed([7D1146D3FAF85278:D80B348FB95AC769]:0)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.elasticsearch.xpack.transform.integration.TransformInsufficientPermissionsIT.assertRed(TransformInsufficientPermissionsIT.java:585)
at org.elasticsearch.xpack.transform.integration.TransformInsufficientPermissionsIT.lambda$testTransformPermissionsDeferUnattendedNoDest$7(TransformInsufficientPermissionsIT.java:425)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1158)
at org.elasticsearch.xpack.transform.integration.TransformInsufficientPermissionsIT.testTransformPermissionsDeferUnattendedNoDest(TransformInsufficientPermissionsIT.java:425)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95516 | https://github.com/elastic/elasticsearch/pull/95520 | 665bcfc4618ac30d66ff4afd85a9a78b7ee89488 | 31d7c5d6725df1402f6322fd51950e6974347683 | 2023-04-25T00:48:15Z | java | 2023-04-25T07:34:01Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,510 | ["docs/reference/cluster/nodes-stats.asciidoc"] | [DOCS] inaccuracy in node stats API -> index_metric -> query_cache docs | Stumbled across some inaccurate language in the docs (node stats API -> index_metric -> query_cache):
[the current doc](https://github.com/elastic/elasticsearch/blob/0ca5dc2eac3804f9542d643cc26239076a4f0d7b/docs/reference/cluster/nodes-stats.asciidoc?plain=1#L680-L687) says:
> `cache_size`::
(integer)
Size, in bytes, of the query cache.
>`cache_count`::
(integer)
Count of queries
in the query cache.
For the first one it looks like the `cache_size` metric is actually a count of cache items instead of "bytes".
For the second one it's probably not technically wrong but could sound a bit misleading, in that this metric actually includes the evicted cache items, which can hardly be interpreted as from the language "Count of queries in the query cache."
I haven't looked further into the code but from the data I got it seems like these two doc entries are not accurate. Would be nice if someone can confirm and update the docs if need be. Thanks! | https://github.com/elastic/elasticsearch/issues/95510 | https://github.com/elastic/elasticsearch/pull/98092 | 2ffef2f658a56373e29dd16e149af779d1a551aa | efc0cb542211f7daf0fec987cde31efd75e5c481 | 2023-04-24T16:45:43Z | java | 2023-08-03T07:45:22Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,501 | ["x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/MLModelDeploymentsUpgradeIT.java"] | [CI] MLModelDeploymentsUpgradeIT testTrainedModelDeploymentStopOnMixedCluster failing | Looks like a BWC problem related to the multiple deployments work.
**Build scan:**
https://gradle-enterprise.elastic.co/s/kckoxldn5uysg/tests/:x-pack:qa:rolling-upgrade:v8.0.1%23upgradedClusterTest/org.elasticsearch.upgrades.MLModelDeploymentsUpgradeIT/testTrainedModelDeploymentStopOnMixedCluster
**Reproduction line:**
```
./gradlew ':x-pack:qa:rolling-upgrade:v8.0.1#upgradedClusterTest' -Dtests.class="org.elasticsearch.upgrades.MLModelDeploymentsUpgradeIT" -Dtests.method="testTrainedModelDeploymentStopOnMixedCluster" -Dtests.seed=7AF5FD52AC644351 -Dtests.bwc=true -Dtests.locale=zh-TW -Dtests.timezone=Europe/Vaduz -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.upgrades.MLModelDeploymentsUpgradeIT&tests.test=testTrainedModelDeploymentStopOnMixedCluster
**Failure excerpt:**
```
java.lang.AssertionError:
Expected: "{}"
but: was "{\"metadata\":{\"trained_model_allocation\":{}}}"
at __randomizedtesting.SeedInfo.seed([7AF5FD52AC644351:611D2326BF7A84A8]: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.MLModelDeploymentsUpgradeIT.assertThatTrainedModelAssignmentMetadataIsEmpty(MLModelDeploymentsUpgradeIT.java:269)
at org.elasticsearch.upgrades.MLModelDeploymentsUpgradeIT.testTrainedModelDeploymentStopOnMixedCluster(MLModelDeploymentsUpgradeIT.java:158)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95501 | https://github.com/elastic/elasticsearch/pull/95748 | 062542b2c9c19e00842decf3e75b0ae6525031f4 | dde25064b2426e501213d4f6e9c546d3a6c73c5f | 2023-04-24T13:32:02Z | java | 2023-05-03T12:01:23Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,496 | ["modules/ingest-geoip/src/yamlRestTest/java/org/elasticsearch/ingest/geoip/IngestGeoIpClientYamlTestSuiteIT.java"] | [CI] IngestGeoIpClientYamlTestSuiteIT test {yaml=ingest_geoip/20_geoip_processor/Test geoip processor with lists, first only} failing | **Build scan:**
https://gradle-enterprise.elastic.co/s/grxksvoe4wwo4/tests/:modules:ingest-geoip:yamlRestTest/org.elasticsearch.ingest.geoip.IngestGeoIpClientYamlTestSuiteIT/test%20%7Byaml=ingest_geoip%2F20_geoip_processor%2FTest%20geoip%20processor%20with%20lists,%20first%20only%7D
**Reproduction line:**
```
./gradlew ':modules:ingest-geoip:yamlRestTest' --tests "org.elasticsearch.ingest.geoip.IngestGeoIpClientYamlTestSuiteIT.test {yaml=ingest_geoip/20_geoip_processor/Test geoip processor with lists, first only}" -Dtests.seed=B669491F0F32585C -Dtests.locale=is-IS -Dtests.timezone=Asia/Manila -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
No
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.ingest.geoip.IngestGeoIpClientYamlTestSuiteIT&tests.test=test%20%7Byaml%3Dingest_geoip/20_geoip_processor/Test%20geoip%20processor%20with%20lists,%20first%20only%7D
**Failure excerpt:**
```
java.lang.NullPointerException: Cannot invoke "java.util.List.stream()" because the return value of "java.util.Map.get(Object)" is null
at __randomizedtesting.SeedInfo.seed([B669491F0F32585C:3E3D76C5A1CE35A4]:0)
at org.elasticsearch.ingest.geoip.IngestGeoIpClientYamlTestSuiteIT.lambda$waitForDatabases$3(IngestGeoIpClientYamlTestSuiteIT.java:82)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1146)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:1131)
at org.elasticsearch.ingest.geoip.IngestGeoIpClientYamlTestSuiteIT.waitForDatabases(IngestGeoIpClientYamlTestSuiteIT.java:72)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:980)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.elasticsearch.test.cluster.local.LocalElasticsearchCluster$1.evaluate(LocalElasticsearchCluster.java:39)
at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95496 | https://github.com/elastic/elasticsearch/pull/95497 | 49a74847cdb477fee297b9d365d95f05ce1fcaaa | 7d6648d313f288a37adc9aa44eabab43f22eaf85 | 2023-04-24T10:41:44Z | java | 2023-04-24T12:47:23Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,487 | ["x-pack/plugin/ml-package-loader/src/test/java/org/elasticsearch/xpack/ml/packageloader/MachineLearningPackageLoaderTests.java"] | [CI] MachineLearningPackageLoaderTests testValidateModelRepository failing | Always fails on Windows - presumably a Windows-specific problem.
**Build scan:**
https://gradle-enterprise.elastic.co/s/foreblfh6omxq/tests/:x-pack:plugin:ml-package-loader:test/org.elasticsearch.xpack.ml.packageloader.MachineLearningPackageLoaderTests/testValidateModelRepository
**Reproduction line:**
```
gradlew ':x-pack:plugin:ml-package-loader:test' --tests "org.elasticsearch.xpack.ml.packageloader.MachineLearningPackageLoaderTests.testValidateModelRepository" -Dtests.seed=5E75D196AF6E8B5D -Dtests.locale=zh-Hant-TW -Dtests.timezone=SystemV/AST4 -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.ml.packageloader.MachineLearningPackageLoaderTests&tests.test=testValidateModelRepository
**Failure excerpt:**
```
org.junit.ComparisonFailure: expected:<...figuration: file:///[]home/elk/elasticsear...> but was:<...figuration: file:///[C:/]home/elk/elasticsear...>
at __randomizedtesting.SeedInfo.seed([5E75D196AF6E8B5D:816ADB1E1ECB96BA]:0)
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at org.elasticsearch.xpack.ml.packageloader.MachineLearningPackageLoaderTests.testValidateModelRepository(MachineLearningPackageLoaderTests.java:21)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95487 | https://github.com/elastic/elasticsearch/pull/95579 | 7e34b52c5d3743a6a41e230727fb5f8cec1e477c | 1be141eed65ea29885460115ccb7e0a3d33c68d9 | 2023-04-24T08:09:12Z | java | 2023-04-26T14:14:41Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,486 | ["x-pack/plugin/ml/qa/native-multi-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/ml/integration/MultipleDeploymentsIT.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/PyTorchModelRestTestCase.java"] | [CI] MultipleDeploymentsIT testGetStats failing | Failed in single processor tests, so probably means we're doing something that relies on more than 1 thread in a thread pool that only has one thread per processor. This can be a production problem on small Cloud nodes.
**Build scan:**
https://gradle-enterprise.elastic.co/s/rvqlsrhmzobmk/tests/:x-pack:plugin:ml:qa:native-multi-node-tests:javaRestTest/org.elasticsearch.xpack.ml.integration.MultipleDeploymentsIT/testGetStats
**Reproduction line:**
```
./gradlew ':x-pack:plugin:ml:qa:native-multi-node-tests:javaRestTest' --tests "org.elasticsearch.xpack.ml.integration.MultipleDeploymentsIT.testGetStats" -Dtests.seed=328E0568EB78E7F5 -Dtests.configure_test_clusters_with_one_processor=true -Dtests.locale=pl-PL -Dtests.timezone=Zulu -Druntime.java=20
```
**Applicable branches:**
main
**Reproduces locally?:**
Didn't try
**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.ml.integration.MultipleDeploymentsIT&tests.test=testGetStats
**Failure excerpt:**
```
org.elasticsearch.client.ResponseException: method [POST], host [http://127.0.0.1:46460], URI [/_ml/trained_models/model-with-1-deployment/deployment/_start?timeout=40s&wait_for=started&threads_per_allocation=1&number_of_allocations=1&priority=normal], status line [HTTP/1.1 429 Too Many Requests]
{"error":{"root_cause":[{"type":"status_exception","reason":"Could not start deployment because no ML nodes with sufficient capacity were found"}],"type":"status_exception","reason":"Could not start deployment because no ML nodes with sufficient capacity were found","caused_by":{"type":"illegal_state_exception","reason":"Could not start deployment because no suitable nodes were found, allocation explanation [Could not assign (more) allocations on node [EhOXHr8uQVGeP5OOv_KZqg]. Reason: This node has insufficient allocated processors. Available processors [1], free processors [0], processors required for each allocation of this model [1]|Could not assign (more) allocations on node [__3j4m0CSGKz-hMvvKghGg]. Reason: This node has insufficient allocated processors. Available processors [1], free processors [0], processors required for each allocation of this model [1]]"}},"status":429}
at __randomizedtesting.SeedInfo.seed([328E0568EB78E7F5:A5BFDB9EC48C1FA0]:0)
at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:347)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:313)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:288)
at org.elasticsearch.xpack.ml.integration.PyTorchModelRestTestCase.startDeployment(PyTorchModelRestTestCase.java:250)
at org.elasticsearch.xpack.ml.integration.PyTorchModelRestTestCase.startDeployment(PyTorchModelRestTestCase.java:223)
at org.elasticsearch.xpack.ml.integration.PyTorchModelRestTestCase.startDeployment(PyTorchModelRestTestCase.java:215)
at org.elasticsearch.xpack.ml.integration.MultipleDeploymentsIT.testGetStats(MultipleDeploymentsIT.java:79)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke(Method.java:578)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
at java.lang.Thread.run(Thread.java:1623)
``` | https://github.com/elastic/elasticsearch/issues/95486 | https://github.com/elastic/elasticsearch/pull/95490 | c9a23d151d055bbbc21321dd1d3ff2250cdc1fab | 7e2ec7779a9df386bf56303c8ee3026af2a4a45b | 2023-04-24T08:06:42Z | java | 2023-04-24T09:39:04Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,485 | ["server/src/main/java/org/elasticsearch/transport/TransportService.java", "server/src/test/java/org/elasticsearch/transport/TransportServiceHandshakeTests.java"] | Fix isIncompatibleBuild check for cloud deployments | There's currently a check in `TransportService.HandshakeResponse.isIncompatibleBuild` to stop ES with the same Version but different build hashes from joining a cluster. This needs to be relaxed for cloud deployments where Version is not applicable | https://github.com/elastic/elasticsearch/issues/95485 | https://github.com/elastic/elasticsearch/pull/95491 | ed06aa6d81dd5315e1882a9632d1e962b363234e | 665bcfc4618ac30d66ff4afd85a9a78b7ee89488 | 2023-04-24T07:01:06Z | java | 2023-04-25T07:12:48Z |
closed | elastic/elasticsearch | https://github.com/elastic/elasticsearch | 95,469 | ["docs/changelog/95481.yaml", "modules/data-streams/src/yamlRestTest/resources/rest-api-spec/test/data_stream/210_logs_custom_mappings.yml", "x-pack/plugin/core/src/main/resources/logs-template.json"] | Add a logs@custom component template for users to customize settings | Extend the [`logs-*-*` index template](https://github.com/elastic/elasticsearch/blob/main/x-pack/plugin/core/src/main/resources/logs-template.json) with this:
```
"composed_of": [
"logs-mappings",
"data-streams-mappings",
"logs-settings",
"logs@custom"
],
"ignore_missing_component_templates": ["logs@custom"],
```
The effect of this is that if a user is not happy with our changes, they can created the `logs@custom` component template and overwrite it. Because of the ignore_missing, the template does not have to exist.
We'll need to test what happens if a user creates this component template and tries to override a setting that we have also configured in `logs-settings`. For example, setting `ignore_malformed` to `false`. Ideally, the user setting should take precedence then. | https://github.com/elastic/elasticsearch/issues/95469 | https://github.com/elastic/elasticsearch/pull/95481 | 4e69fa102ffe583a224b11c3649c82784dd91a3e | af8725fce55856e3cfee1f9d908fc6e65d3216db | 2023-04-21T16:43:23Z | java | 2023-04-27T15:42:40Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.