[SERVER-58364] ShardServerCatalogCacheLoader::waitForCollectionFlush should be interruptible Created: 08/Jul/21  Updated: 29/Oct/23  Resolved: 14/Jul/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 5.0.2, 5.1.0-rc0

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

Issue Links:
Backports
Depends
Problem/Incident
is caused by SERVER-56648 Make dropCollection resilient to netw... Closed
Related
related to SERVER-60161 Deadlock between config server stepdo... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0
Sprint: Sharding EMEA 2021-07-12, Sharding EMEA 2021-07-26
Participants:
Linked BF Score: 124

 Description   

ShardServerCatalogCacheLoader::waitForCollectionFlush calls waitForActiveTaskCompletion which does an uninterruptible wait. This can lead to deadlocks when stepping down.
The same pattern exists for ShardServerCatalogCacheLoader::waitForDatabaseFlush.

We should make these waits interruptible



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 21/Jul/21 ]

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-58364 ShardServerCatalogCacheLoader::waitForCollectionFlush should be interruptible

(cherry picked from commit caea1f859f84d1f3e4e13bdc016b5057d4328fc2)
Branch: v5.0
https://github.com/mongodb/mongo/commit/63972fec15514ab8b164f06443446233250eb5cd

Comment by Githook User [ 14/Jul/21 ]

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-58364 ShardServerCatalogCacheLoader::waitForCollectionFlush should be interruptible
Branch: master
https://github.com/mongodb/mongo/commit/caea1f859f84d1f3e4e13bdc016b5057d4328fc2

Generated at Thu Feb 08 05:44:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.