forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix async_semaphore deadlock, and only fail speculation if primary co…
…mmand fails. (pantsbuild#8374) ### Problem Speculation should not interfere with a users current experience of pants. Currently if either one of the dispatched commands fails the failure is propagated to the user. Additionally, we've observed a deadlock in the presence of speculation above `BoundedCommandRunner`. ### Solution Instead of failing fast on the first returned error. If the secondary request fails before the primary request we let the primary request finish and take the result/error from that request. I.e we only use successful results from the secondary. ### Result If the user has enabled speculation, only failures from the primary command runner, which default to the local machine, will be fatal. Fixes pantsbuild#8089.
- Loading branch information
Showing
8 changed files
with
293 additions
and
38 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.