-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backup: use correct Context in restore workers
Previously some of the workers, which are called by ctxgroup goroutines, were using RestoreDataProcessor.Ctx, instead of the child context that the group created, which, critically, is cancelled if any group task fails. This could mean one worker in the group fails and stops draining a channel and returns an error to the group, which cancels its context, but another worker trying to write to that channel hangs if it is not checking the passed, now cancelled context. Release note (bug fix): fix a case where a RESTORE job could hang if it encountered an error when ingesting restored data.
- Loading branch information
Showing
2 changed files
with
10 additions
and
12 deletions.
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