-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compact: unwrap the original error as well (#2637)
* compact: unwrap the original error as well Just like in IsHaltError(), let's unwrap the given error to see if is `terrors.MultiError`. This lets us detect the retryable errors as well: * `BucketCompactor.Compact` returns `terrors.MultiError` of wrapped errors; * `compactMainFn` wraps the previously returned error again. So, we need to unwrap it at the beginning, iterate over it, and then unwrap again which is what the code does with this change. Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com> * compact: test: add case for wrapped retryable error Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com> * CHANGELOG: update Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com>
- Loading branch information
Showing
3 changed files
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters