-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Error management on data integrity errors #2467
Comments
I think it would be better to check the response for a 409 code and then either throw a |
Yeah, that would probably be nice too. As long as I can check specifically for this error without having to do magic string lookups, I'll be happy. :D |
I'm trying to do atomic updates, utilizing the
_version
(@Version
) field. I'm trying to properly handle 409 Conflict, and I see that we get aDataAccessResourceFailureException
that only has a message:This is really hard to work with. Could we not extend
DataAccessResourceFailureException
(maybeElasticsearchResourceFailureException
?) that has more information about the failure?The text was updated successfully, but these errors were encountered: