-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[7.4.0] Do no crash if a requested resource is not available (#23911)
Before: ``` Caused by: java.util.NoSuchElementException: Resource foo is not tracked in this resource set. at com.google.devtools.build.lib.actions.ResourceManager.assertExtraResourcesTracked(ResourceManager.java:499) at com.google.devtools.build.lib.actions.ResourceManager.areResourcesAvailable(ResourceManager.java:540) ``` After: ``` ERROR: src/test/java/com/google/devtools/build/lib/actions/BUILD:102:10: Testing //src/test/java/com/google/devtools/build/lib/actions:ActionsTests failed: Resource foo is not being tracked by the resource manager. Available resources are: cpu, memory ``` Fixes #19572 Closes #23541. PiperOrigin-RevId: 682282327 Change-Id: Ifdff5f85de9e45ac119c2a2cfd161c054a722546 (cherry picked from commit e5ab94b) Closes #23868 Co-authored-by: Alessandro Patti <ale812@yahoo.it>
- Loading branch information
1 parent
fadee7a
commit c2c4a39
Showing
4 changed files
with
28 additions
and
14 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
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