New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change IndexPrimaryShardNotAllocatedException from 409 to 500 #7632
Labels
Comments
reuben-sutton
added a commit
to reuben-sutton/elasticsearch
that referenced
this issue
Oct 4, 2014
Change IndexPrimaryShardNotAllocatedException from 409 (RestStatus.CONFLICT) to 500 (RestStatus.INTERNAL_SERVER_ERROR)
imho this should be RestStatus#SERVICE_UNAVAILABLE (503) |
+1 to using 503 |
A 503 is used to signal to the clients that they should retry on another node. if the primary is not allocated, then retrying on another node won't help. |
fair enough. I can't see a better alternative then. +1 on 500. |
tlrx
added a commit
to tlrx/elasticsearch
that referenced
this issue
Oct 17, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Currently the IndexPrimaryShardNotAllocatedException returns HTTP status code 409 (conflict) which is incorrect. It should be 500 (internal server error)
The text was updated successfully, but these errors were encountered: