-
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.
Fix crashes introduced by heuristically dropping file and directory l…
…isting state nodes # Background * 658ba15 implemented heuristically dropping state nodes under flag `--experimental_heuristically_drop_nodes`. Multiple blaze crashes are observed when the flag is applied. * abb402e enhanced `GraphInconsistencyReceiver` (`GIR` in short) so that it can tolerate inconsistencies introduced by heuristically dropping state nodes regardless of rewinding. This commit also fixes the crash when blaze cannot get file/directory state `depKey`s for symlinks. # Goal of this commit Local tests with target `//devtools/blaze/main:blaze` still indicates two other crashes when heuristically dropping state nodes. 1. `SkyFunctionEnvironment#batchPrefetch(true)` could inform `GIR` with `BUILDING_PARENT_FOUND_UNDONE_CHILD` inconsistency which also needs to be tolerated. 2. `AbstractParallelEvaluator#maybeHandleRegisteringNewlyDiscoveredDepsForDoneEntry()` should re-create instead of crash when declared dep is missing. PiperOrigin-RevId: 504053773 Change-Id: I43e2f90ac3b84a9fbe9e590c90c20db3a94cd54b
- Loading branch information
1 parent
e372e70
commit b24930f
Showing
6 changed files
with
98 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
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