-
Notifications
You must be signed in to change notification settings - Fork 9.8k
tsdb/errors.MultiError: support errors.As #16544
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
tsdb/errors.MultiError: support errors.As #16544
Conversation
the multierror was hiding some errors in Mimir. I also added unit tests because I had them handy from a similar change I and yuri did in XXX and some time ago Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
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 save for some nits.
Would it help solve this ? Lines 69 to 71 in e7e3ab2
|
@mmorel-35 I'm really not sure. How would the two be connected? @dimitarvdimitrov Would you know? |
When I enabled errorlint on the code base, I got stuck on that part , I'm not sure but it might be due to the fact that MultiError was not supporting errors.As correctly. It's the occasion to check on that. |
This is related to errors.As on wlog.CorruptionErr sorry for the trouble |
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com> Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
* tsdb/errors.MultiError: implement Unwrap the multierror was hiding some errors in Mimir. I also added unit tests because I had them handy from a similar change I and yuri did in XXX and some time ago --------- Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com> Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com> Signed-off-by: WuLiang <wu1998102@gmail.com>
the multierror was hiding some errors in Mimir. I also added unit tests because I had them handy from a similar change I and @duricanikolic did in grafana/dskit#522 and grafana/dskit#254 some time ago.