[SERVER-62882] Tenant Migration Recipient Service shouldn't call makeOperationContext() under its own instance mutex Created: 21/Jan/22  Updated: 29/Oct/23  Resolved: 24/Jan/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.0, 5.2.2

Type: Bug Priority: Major - P3
Reporter: Christopher Caplinger Assignee: Christopher Caplinger
Resolution: Fixed Votes: 0
Labels: shard-merge-milestone-1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
depends on SERVER-61131 Store backup cursor results and set s... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.2
Sprint: Server Serverless 2022-01-24, Server Serverless 2022-02-07
Participants:
Linked BF Score: 19

 Description   

makeOperationContext() takes the POS mutex, which can cause a deadlock with checkIfConflictsWithOtherInstances calls (the POS mutex is held during calls to checkIfConflictsWithOtherInstances).



 Comments   
Comment by Githook User [ 08/Mar/22 ]

Author:

{'name': 'Christopher Caplinger', 'email': 'christopher.caplinger@mongodb.com', 'username': 'UnicodeSnowman'}

Message: SERVER-62882: Move Recipient Service opctx creation outside of lock

(cherry picked from commit a94feb562cd9ffb42c10770fbf5b5d489875cc2f)
Branch: v5.2
https://github.com/mongodb/mongo/commit/346f9b67ee826fd655a56a5116f9c352f7a18397

Comment by Christopher Caplinger [ 25/Feb/22 ]

https://jira.mongodb.org/browse/BF-23714 was fixed, but did not make it into v5.2. we're currently getting dupe BF's for this issue, so backporting to avoid future failures.

looks like a backport isn't actually needed for this one

nevermind, I misread, I should still backport this.

Comment by Githook User [ 24/Jan/22 ]

Author:

{'name': 'Christopher Caplinger', 'email': 'christopher.caplinger@mongodb.com', 'username': 'UnicodeSnowman'}

Message: SERVER-62882: Move Recipient Service opctx creation outside of lock
Branch: master
https://github.com/mongodb/mongo/commit/a94feb562cd9ffb42c10770fbf5b5d489875cc2f

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