-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix race condition for transaction cache (#20875)
Bug was (likely) as follows: Reader thread | Writer thread (state sync) invalidate tickets get ticket miss cache read database insert to cache insert to cache (racing) ticket is valid panic write to database The writer thread must insert to db first so that the db read cannot find an old value while holding a valid ticket
- Loading branch information
1 parent
2c0cea6
commit 11e5ec9
Showing
3 changed files
with
70 additions
and
10 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