Cluster health returns 500 when wait_for_active_shards is set to 'all' #31151
Labels
>bug
:Distributed Coordination/Allocation
All issues relating to the decision making around placing a shard (both master logic & on the nodes)
Steps to reproduce (6.2, 6.x and master):
wait_for_active_shards
set toall
An
IllegalStateException
is returned as part of the response, the status code is500
:The error comes from https://github.com/elastic/elasticsearch/blob/master/server/src/main/java/org/elasticsearch/action/support/ActiveShardCount.java#L131 , reading from its javadocs "This method should only be invoked with ActiveShardCount objects created from
from(int)
, orNONE
orONE
". We are calling it though withALL
.The text was updated successfully, but these errors were encountered: