Skip to content

_disk_usage action fails on indices with more than 16 shards #84779

@nik9000

Description

@nik9000

Elasticsearch Version

master branch

Installed Plugins

none

Java Version

bundled

OS Version

Linux porco 5.16.10-arch1-1 #1 SMP PREEMPT Wed, 16 Feb 2022 19:35:18 +0000 x86_64 GNU/Linux

Problem Description

_disk_usage fails on indices with more than 16 shards.

Steps to Reproduce

curl -uelastic:password -XDELETE localhost:9200/test curl -uelastic:password -XPUT -HContent-Type:application/json localhost:9200/test -d'{ "settings": { "number_of_shards": 32, "number_of_replicas": 0 } }' curl -uelastic:password -XPOST -HContent-Type:application/json localhost:9200/test/_doc?refresh -d'{"test": "test"}' curl -uelastic:password -XPOST -HContent-Type:application/json localhost:9200/test/_doc?refresh -d'{"test": "test"}' curl -uelastic:password -XPOST -HContent-Type:application/json localhost:9200/test/_doc?refresh -d'{"test": "test"}' curl -uelastic:password -XPOST -HContent-Type:application/json localhost:9200/test/_doc?refresh -d'{"test": "test"}' curl -uelastic:password -XPOST -HContent-Type:application/json localhost:9200/test/_doc?refresh -d'{"test": "test"}' curl -s -uelastic:password -XPOST localhost:9200/test/_disk_usage?run_expensive_tasks=true | jq ._shards 

replies with:

 "reason": { "type": "es_rejected_execution_exception", "reason": "rejected execution of org.elasticsearch.action.ActionRunnable$2/WrappedActionListener{org.elasticsearch.action.support.broadcast.TransportBroadcastAction$ShardTransportHandler$$Lambda$7347/0x0000000801cade20@372b5d49}{org.elasticsearch.action.support.broadcast.TransportBroadcastAction$ShardTransportHandler$$Lambda$7348/0x0000000801cae048@2338a214} on EsThreadPoolExecutor[name = runTask-0/analyze, queue capacity = 16, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@305bff3e[Running, pool size = 1, active threads = 1, queued tasks = 16, completed tasks = 45]]" } 

Logs (if relevant)

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions