diff options
author | Jason Tedor <jason@tedor.me> | 2017-06-30 17:50:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-30 17:50:20 -0400 |
commit | c70c44005088d4bf0eb7fc5d6f8660c25958a785 (patch) | |
tree | 5dbcaf4be194c655c7d4b643c449b71e14550a94 /core/src/test/java/org/elasticsearch/action/admin/indices/shards | |
parent | 6deb18c0de1ba060984a2ce4de22dd065a49456d (diff) |
Adjust status on bad allocation explain requests
When a user requests a cluster allocation explain in a situation where
it does not make sense (for example, there are no unassigned shards), we
should consider this a bad request instead of a server error. Yet, today
by throwing an illegal state exception, these are treated as server
errors. This commit adjusts these so that they throw illegal argument
exceptions and are treated as bad requests.
Relates #25503
Diffstat (limited to 'core/src/test/java/org/elasticsearch/action/admin/indices/shards')
0 files changed, 0 insertions, 0 deletions