-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop errgroup.WithContext and add withCause (#1380)
We are sometimes unable to expand an APK into our cache due to an opaque "context canceled" error. This change attempts to address that in two ways. First, we drop our use of errgroup.WithContext when installing packages. If one package fails to install, we'll let the rest run to completion so that we make more forward progress towards populating the cache (if there is one). Even though the overall operation will still fail, in cases where that failure was transient, we avoid throwing away in-flight work towards the other packages. Second, we'll try to extract a cause for the context cancellation and annotate the errgroup's error with it so that we know why the overall operation was canceled. At least one of these changes should help determine what's going on. Signed-off-by: Jon Johnson <[email protected]>
- Loading branch information
1 parent
e707968
commit c8b52a0
Showing
1 changed file
with
20 additions
and
10 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