-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
fix(tsdb): incorrect error type in type switch #16411
Conversation
@e-dard can you add 1.x label? |
// Maybe we can just change it to be consistent if we change it also in all | ||
// the places that construct it. | ||
case *PartialWriteError: | ||
case PartialWriteError: |
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.
Is there a unit test somewhere that can cover this?
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.
Seems no yet, for the error type. I will add a test case in index/inmem since this error is only populated from inmem index
With 0ccea81, it should be checking `PartialWriteError` instead of `*PartialWriteError`
3b0c975
to
d180397
Compare
@e-dard can you take a look at the updated version? |
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.
LGTM, thanks @foobar.
@foobar thanks. Would you mind cherry-picking this to the 1.8 branch also? |
Issue for forward porting this fix to 1.8: #17020 |
With 0ccea81, it should be checking
PartialWriteError
instead of*PartialWriteError