-
Notifications
You must be signed in to change notification settings - Fork 495
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
Treat etag errors across all state stores #579
Conversation
Codecov Report
@@ Coverage Diff @@
## master #579 +/- ##
==========================================
+ Coverage 30.57% 30.61% +0.04%
==========================================
Files 84 85 +1
Lines 7065 7107 +42
==========================================
+ Hits 2160 2176 +16
- Misses 4673 4697 +24
- Partials 232 234 +2
Continue to review full report at Codecov.
|
err := r.writeRow(req) | ||
if req.ETag != "" { | ||
return state.NewETagError(state.ETagMismatch, err) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yaron2 - can you explain how this works? I'm not familiar with those code but it looks like this would return state.NewETagError
every time an ETag is specified.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Theres an err check missing here, I'll push a fix later
* treat etag errors across all state stores * linter * linter
This PR consolidates error handling for possible etag mismach and invalid etags across all state stores.
Partially closes dapr/dapr#2619