[SERVER-76835] Deadlock in the shard filtering metadata refresh path Created: 04/May/23  Updated: 29/Oct/23  Resolved: 11/May/23

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 7.0.0-rc0, 6.0.5, 5.0.17, 4.4.21, 6.3.1
Fix Version/s: 7.1.0-rc0, 7.0.0-rc1

Type: Bug Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
related to SERVER-75262 Add a passthrough test that exercises... Open
is related to SERVER-76834 Circular wait dependency between PBWM... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0
Sprint: Sharding EMEA 2023-05-15
Participants:
Linked BF Score: 107

 Description   

More context is available in the more general SERVER-76834.
This ticket is specifically to avoid the known deadlocks on the shard filtering metadata refresh path:

  • ShardFilteringMetadataRefresh: Takes both PBWM and a ticket, but doesn't need to wait on the PBWM, neither on a ticket, because it doesn't do any storage engine work itself.
  • ShardServerCatalogCacheLoader: Takes both PBWM and a ticket. The PBWM is required for correctness, but it should skip the ticket acquisition.


 Comments   
Comment by Githook User [ 11/May/23 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-76835 Avoid blocking on PBWM and admission control tickets on the sharding metadata refresh path

(cherry picked from commit 515c5d6a658810648275079c038365c47d21bbb1)
Branch: v7.0
https://github.com/mongodb/mongo/commit/553883f2ad4e5db4c3380ee52a47248665435de6

Comment by Githook User [ 11/May/23 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-76835 Avoid blocking on PBWM and admission control tickets on the sharding metadata refresh path
Branch: master
https://github.com/mongodb/mongo/commit/515c5d6a658810648275079c038365c47d21bbb1

Generated at Thu Feb 08 06:33:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.