-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NPE due to improperly scheduled write tasks (fixes #35)
When an absent computation returns null, a add/removal task was being improperly scheduled. As there was no Node, this null field was then causing an NPE during the maintenance cycle. Usually that was on a background executor, but could be visible if `cleanUp` is called. This wasn't caught by tests since the executor's was swalled, logged, and logging was disabled to avoid spamming the report. Now the executor is instrumented so that the validation can assert no failures occurred. This detected the two bugs found with existing tests, so this provides more coverage than a one-off fix.
- Loading branch information
Showing
18 changed files
with
223 additions
and
95 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
Oops, something went wrong.