-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 4667 - incorrect accounting of readers in vattr rwlock (#4732)
Bug description: The fix #2932 (Contention on virtual attribute lookup) reduced contention on vattr acquiring vattr lock at the operation level rather than at the attribute level (filter and returned attr). The fix #2932 is invalid. it can lead to deadlock scenario (3 threads). A vattr writer (new cos/schema) blocks an update thread that hold DB pages and later needs vattr. Then if a reader (holding vattr) blocks vattr writer and later needs the same DB pages, there is a deadlock. The decisions are: - revert #2932 (this issue) - Skip contention if deployement has no vattr #4678 - reduce contention with new approaches (COW and/or cache vattr struct in each thread) no issue opened Fix description: The fix reverts #2932 relates: #4667 Reviewed by: William Brown, Simon Pichugin Platforms tested: F33
- Loading branch information
Showing
4 changed files
with
8 additions
and
157 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