[SERVER-70167] Resumed create coordinator may incorrectly try to release the critical section Created: 03/Oct/22  Updated: 29/Oct/23  Resolved: 28/Oct/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 6.1.0-rc0
Fix Version/s: 6.1.1, 6.2.0-rc0, 6.0.5, 5.0.16

Type: Bug Priority: Major - P3
Reporter: Pierlauro Sciarelli Assignee: Enrico Golfieri
Resolution: Fixed Votes: 0
Labels: sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
is caused by SERVER-65891 Make all distLock acquisitions local-... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.1, v6.0, v5.0
Sprint: Sharding EMEA 2022-10-31
Participants:

 Description   

It may happen that a create collection coordinator successfully commits the metadata of a new sharded collection on the config server (here or here) and releases the critical section right before stepping down. On resume, the collection is identified as already sharded and the critical section re-released. However, if a migration kicks in and acquires the critical section right before issuing the release, the following invariant is triggered.



 Comments   
Comment by Githook User [ 22/Feb/23 ]

Author:

{'name': 'Enrico Golfieri', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}

Message: SERVER-70167 Resumed create coordinator may incorrectly try to release the critical section

(cherry picked from commit 2551216048b331f5ea1da9ff8472e7305f3d5980)
Branch: v6.0
https://github.com/mongodb/mongo/commit/cbb1615777403112d957baee329e8c7d015cf21b

Comment by Githook User [ 22/Feb/23 ]

Author:

{'name': 'Enrico Golfieri', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}

Message: SERVER-70167 Resumed create coordinator may incorrectly try to release the critical section

(cherry picked from commit 2551216048b331f5ea1da9ff8472e7305f3d5980)
Branch: v5.0
https://github.com/mongodb/mongo/commit/42942fd8f0bc86f54dd74d067023ebedeee878f4

Comment by Githook User [ 15/Nov/22 ]

Author:

{'name': 'Enrico Golfieri', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}

Message: SERVER-70167 Resumed create coordinator may incorrectly try to release the critical section - 2
Branch: master
https://github.com/mongodb/mongo/commit/00953629dc95376384f912e692fdf42ce248ba56

Comment by Githook User [ 08/Nov/22 ]

Author:

{'name': 'Enrico Golfieri', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}

Message: SERVER-70167 Resumed create coordinator may incorrectly try to release the critical section

(cherry picked from commit 819bdae0b239f0ad75c0791e18943e6c4cf9762d)
Branch: v6.1
https://github.com/mongodb/mongo/commit/2551216048b331f5ea1da9ff8472e7305f3d5980

Comment by Githook User [ 28/Oct/22 ]

Author:

{'name': 'Enrico Golfieri', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}

Message: SERVER-70167 Resumed create coordinator may incorrectly try to release the critical section
Branch: master
https://github.com/mongodb/mongo/commit/819bdae0b239f0ad75c0791e18943e6c4cf9762d

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