-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Return HTTP 409 Conflict when ETag doesn't match #2619
Comments
Piling on this with a somewhat related bug (gRPC caller in this case): dapr/dotnet-sdk#426 For SDKs and just general sanity we need to make sure it's possible to programmatically tell the difference between an ETag mismatch and other types of state store failure. |
@yaron2 @artursouza I don't think this should be closed yet. It was closed by dapr/components-contrib#579, but that PR only partially closes this issue. It ensures that a specialized |
GitHub closed it automatically because it was mentioned |
In what area(s)?
Describe the proposal
When encountering an ETag mismatch while trying to update state, Dapr will return an HTTP 500 status code. It would be better to return an HTTP 409 Conflict status code to distinguish from other server failures.
The error code in the HTTP response body is
ERR_STATE_SAVE
, which is also pretty generic for an ETag conflict.The text was updated successfully, but these errors were encountered: