[SERVER-78793] Add a timeout to the mongos FSync Lock Command Created: 07/Jul/23  Updated: 29/Oct/23  Resolved: 10/Aug/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 4.4.25, 7.0.2, 5.0.22, 6.0.11

Type: Task Priority: Major - P3
Reporter: Nandini Bhartiya Assignee: Jada Lilleboe (Inactive)
Resolution: Fixed Votes: 0
Labels: sharding-nyc-subteam1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v7.0, v6.0, v5.0, v4.4
Participants:
Story Points: 1

 Description   

As jack.mulrow@mongodb.com pointed out, the mongos fsync with lock command can also hit a deadlock scenario similar to the one described in https://jira.mongodb.org/browse/SERVER-65821.

In order to circumvent the possibility of a deadlock, a timeout can be added to the fsync with lock command. Refer to the OperationContext's setDeadlineAfterNowBy() method.



 Comments   
Comment by Githook User [ 15/Sep/23 ]

Author:

{'name': 'Nandini Bhartiya', 'email': 'nandini.bhartiya@mongodb.com', 'username': 'nandinibhartiyaMDB'}

Message: SERVER-78793: Add a timeout to the mongos FSync Lock Command

(cherry picked from 563630508f2c0f488b4f0895af15e1ccd91c1630)

(cherry picked from commit 013779494f3cad65bd3ea9452edea9a430444450)
(cherry picked from commit cd3e8f445d9bc7717221a42fddca146e0c32ce9c)
Branch: v4.4
https://github.com/mongodb/mongo/commit/ab543f26bf1da45d9e569b7e7beaa3b7ac669a9b

Comment by Githook User [ 13/Sep/23 ]

Author:

{'name': 'Nandini Bhartiya', 'email': 'nandini.bhartiya@mongodb.com', 'username': 'nandinibhartiyaMDB'}

Message: SERVER-78793: Add a timeout to the mongos FSync Lock Command

(cherry picked from 563630508f2c0f488b4f0895af15e1ccd91c1630)

(cherry picked from commit 013779494f3cad65bd3ea9452edea9a430444450)
Branch: v5.0
https://github.com/mongodb/mongo/commit/1eac65afd91be061198ca7aac59e8cee3cdc41fe

Comment by Githook User [ 12/Sep/23 ]

Author:

{'name': 'Nandini Bhartiya', 'email': 'nandini.bhartiya@mongodb.com', 'username': 'nandinibhartiyaMDB'}

Message: SERVER-78793: Add a timeout to the mongos FSync Lock Command

(cherry picked from 563630508f2c0f488b4f0895af15e1ccd91c1630)
Branch: v6.0
https://github.com/mongodb/mongo/commit/28e1d657bd67c885a6235e20c08c70271504d58d

Comment by Githook User [ 30/Aug/23 ]

Author:

{'name': 'Nandini Bhartiya', 'email': 'nandini.bhartiya@mongodb.com', 'username': 'nandinibhartiyaMDB'}

Message: SERVER-78793: Add a timeout to the mongos FSync Lock Command

(cherry picked from 563630508f2c0f488b4f0895af15e1ccd91c1630)
Branch: v7.0
https://github.com/mongodb/mongo/commit/93b14d22b414f3aec963fd035a141881037d7da6

Comment by Githook User [ 10/Aug/23 ]

Author:

{'name': 'Jada Lilleboe', 'email': '82007190+jadalilleboe@users.noreply.github.com', 'username': 'jadalilleboe'}

Message: SERVER-78793: Add a timeout to the mongos FSync Lock Command
Branch: master
https://github.com/mongodb/mongo/commit/563630508f2c0f488b4f0895af15e1ccd91c1630

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