elastic / elasticsearch-migration

This plugin will help you to check whether you can upgrade directly to the next major version of Elasticsearch, or whether you need to make changes to your data and cluster before doing so.
290 stars 32 forks source link

Errs out on empty cluster with Shield #33

Closed alexbrasetvik closed 8 years ago

alexbrasetvik commented 8 years ago

An empty cluster should be trivially updatable. However, if Shield is enabled, the _aliases-lookup will err IndexMissingException[[_all] missing] instead of returning an empty list, resulting in an error.

clintongormley commented 8 years ago

This is a problem with Shield: https://www.elastic.co/guide/en/shield/current/limitations.html#_changes_in_index_wildcard_behavior

I don't see how to fix this in the migration plugin.

Fortunately, if you have an empty cluster, upgrading shouldn't be too tricky :)