summaryrefslogtreecommitdiff
path: root/core/src/test/java/org/elasticsearch/action/admin/indices/mapping
diff options
context:
space:
mode:
authorJason Tedor <jason@tedor.me>2017-06-30 17:50:20 -0400
committerGitHub <noreply@github.com>2017-06-30 17:50:20 -0400
commitc70c44005088d4bf0eb7fc5d6f8660c25958a785 (patch)
tree5dbcaf4be194c655c7d4b643c449b71e14550a94 /core/src/test/java/org/elasticsearch/action/admin/indices/mapping
parent6deb18c0de1ba060984a2ce4de22dd065a49456d (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/mapping')
0 files changed, 0 insertions, 0 deletions