-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix normalize-done race causing sync/normalize to execute in parallel…
… after pause/resume (#1452) Fixes #1448 Solves via two redundant angles: 1. drain normalize-done at start 2. don't send normalize-done when `ctx.Err() != nil` The race was consistently happening when normalize received cancel while in normalize activity. It'd then send normalize-done to parent, who already having returned continue-as-new but waiting on children to finish, would have the signal buffer for its next run Co-authored-by: Kaushik Iska <[email protected]>
- Loading branch information
1 parent
6a66489
commit 120786f
Showing
4 changed files
with
8 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
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