elasticsearch/elasticsearch — pull request #8803 by s1monw (2014-12-06 21:15:39+00:00)
Title: [ALLOCATION] Speed-up disk-threshold decider

Instead of iterating all shards of all indices to get all relocating
shards for a given node we can just use the RoutingNode#shardsWithState
method and fetch all `INITIALIZING` / `RELOCATING` shards and check if they
are relocating. This operation is much faster and uses pre-build
data-structures.

Relates to #6372