elasticsearch/elasticsearch — pull request #8545 by imotov (2014-11-19 02:49:55+00:00)
Title: Snapshot/Restore: restore with wait_for_completion=true should wait for ...

...succesfully restored shards to get started

This commit ensures that restore operation with wait_for_completion=true doesn't return until all successfully restored shards are started. Before it was returning as soon as restore operation was over, which cause some shards to be unavailable immediately after restore completion.

Fixes #8340