[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: |
|
||||
| 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: (cherry picked from 563630508f2c0f488b4f0895af15e1ccd91c1630) (cherry picked from commit 013779494f3cad65bd3ea9452edea9a430444450) |
| Comment by Githook User [ 13/Sep/23 ] |
|
Author: {'name': 'Nandini Bhartiya', 'email': 'nandini.bhartiya@mongodb.com', 'username': 'nandinibhartiyaMDB'}Message: (cherry picked from 563630508f2c0f488b4f0895af15e1ccd91c1630) (cherry picked from commit 013779494f3cad65bd3ea9452edea9a430444450) |
| Comment by Githook User [ 12/Sep/23 ] |
|
Author: {'name': 'Nandini Bhartiya', 'email': 'nandini.bhartiya@mongodb.com', 'username': 'nandinibhartiyaMDB'}Message: (cherry picked from 563630508f2c0f488b4f0895af15e1ccd91c1630) |
| Comment by Githook User [ 30/Aug/23 ] |
|
Author: {'name': 'Nandini Bhartiya', 'email': 'nandini.bhartiya@mongodb.com', 'username': 'nandinibhartiyaMDB'}Message: (cherry picked from 563630508f2c0f488b4f0895af15e1ccd91c1630) |
| Comment by Githook User [ 10/Aug/23 ] |
|
Author: {'name': 'Jada Lilleboe', 'email': '82007190+jadalilleboe@users.noreply.github.com', 'username': 'jadalilleboe'}Message: |