[SERVER-82328] Concurrent access to MovePrimaryCoordinatorDocument without acquiring mutex Created: 19/Oct/23  Updated: 13/Nov/23  Resolved: 13/Nov/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 7.2.0-rc0, 6.0.11, 7.1.0-rc4, 7.0.3
Fix Version/s: 7.1.1, 7.2.0-rc0, 7.0.4, 7.3.0-rc0

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

Issue Links:
Backports
Depends
Assigned Teams:
Sharding EMEA
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.2
Sprint: Sharding EMEA 2023-10-30, CAR Team 2023-11-13, CAR Team 2023-11-27
Participants:
Linked BF Score: 104

 Description   

An unprotected read access in MovePrimaryCoordinator::checkIfOptionsConflict can be concurrent to write accesses in the DDL coordinator, like here.



 Comments   
Comment by Aitor Esteve Alvarado [ 13/Nov/23 ]

britt.snyman@mongodb.com My bad, the change made it to 7.2, but I didn't close this ticket. Closing now.

Comment by Githook User [ 07/Nov/23 ]

Author:

{'name': 'Aitor Esteve Alvarado', 'email': 'aitor.esteve@mongodb.com', 'username': 'atesteve'}

Message: SERVER-82328 Protect concurrent access to _doc in MovePrimaryCoordinator

(cherry picked from commit 669a23f588ed95250b006c57fd374d0effb7b0bc)
Branch: v7.0
https://github.com/mongodb/mongo/commit/7f5f1b829afb74f145d696527d1761b6cd3bf398

Comment by Githook User [ 07/Nov/23 ]

Author:

{'name': 'Aitor Esteve Alvarado', 'email': 'aitor.esteve@mongodb.com', 'username': 'atesteve'}

Message: SERVER-82328 Protect concurrent access to _doc in MovePrimaryCoordinator

(cherry picked from commit 669a23f588ed95250b006c57fd374d0effb7b0bc)
Branch: v7.1
https://github.com/mongodb/mongo/commit/4b314de270c957e4567afe22e2d28cfdcf0b35fb

Comment by Githook User [ 06/Nov/23 ]

Author:

{'name': 'Aitor Esteve Alvarado', 'email': 'aitor.esteve@mongodb.com', 'username': 'atesteve'}

Message: SERVER-82328 Protect concurrent access to _doc in MovePrimaryCoordinator
Branch: master
https://github.com/mongodb/mongo/commit/669a23f588ed95250b006c57fd374d0effb7b0bc

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