[SERVER-78505] Database cache does not use the 'allowLocks' option correctly Created: 28/Jun/23 Updated: 29/Oct/23 Resolved: 26/Jul/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 7.1.0-rc0, 5.0.19, 6.0.8, 7.0.0-rc8 |
| Fix Version/s: | 7.1.0-rc0, 6.0.10, 7.0.2, 5.0.22 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Allison Easton | Assignee: | Allison Easton |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Assigned Teams: |
Sharding EMEA
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Backport Requested: |
v7.0, v6.0, v5.0
|
||||||||||||||||||||
| Sprint: | Sharding EMEA 2023-07-10, Sharding EMEA 2023-07-24, Sharding EMEA 2023-08-07 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
The ShardingWriteRouter uses an option called 'allowLocks' during catalog cache refreshes which, when true, causes the refresh to exit rather than blocking if the refresh cannot be fulfilled with local information. However, though the allowLocks setting is sent to the getDatabase call and checked as part of the tassert, there is no early exit in place for the database section. This means that the onInserts observer that uses the ShardingWriteRouter can end up blocking behind a catalog cache refresh. This problem is also blocking the fix for |
| Comments |
| Comment by Githook User [ 19/Sep/23 ] |
|
Author: {'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}Message: (cherry picked from commit 00361bb6f7a801ac264e751e401c669cf3b6b222)
(cherry picked from commit 49fc629f216aae4b8c60176c7bf3386bb2e7ed15) |
| Comment by Githook User [ 01/Sep/23 ] |
|
Author: {'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}Message: (cherry picked from commit 00361bb6f7a801ac264e751e401c669cf3b6b222) |
| Comment by Githook User [ 25/Aug/23 ] |
|
Author: {'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}Message: (cherry picked from commit 00361bb6f7a801ac264e751e401c669cf3b6b222)
(cherry picked from commit 49fc629f216aae4b8c60176c7bf3386bb2e7ed15) |
| Comment by Githook User [ 26/Jul/23 ] |
|
Author: {'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}Message: |