[SERVER-76546] _migrateClone can deadlock with prepared transactions on secondaries Created: 26/Apr/23 Updated: 29/Oct/23 Resolved: 17/May/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 7.1.0-rc0, 5.0.19, 7.0.0-rc6, 6.0.8 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Louis Williams | Assignee: | Randolph Tan |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | sharding-nyc-subteam1 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Assigned Teams: |
Sharding NYC
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Backport Requested: |
v7.0, v6.0, v5.0
|
||||||||||||||||||||
| Sprint: | Sharding NYC 2023-05-29 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Linked BF Score: | 105 | ||||||||||||||||||||
| Story Points: | 5 | ||||||||||||||||||||
| Description |
|
The _migrateClone command isn't supposed to run on secondaries, but we perform no
Note that this deadlock requires the _migrateClone to start on a primary and then block on a prepared transaction after the node steps down to secondary. The issue can most easily be solved in one of two ways:
|
| Comments |
| Comment by Githook User [ 23/Jun/23 ] |
|
Author: {'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'}Message: (cherry picked from commit e90dcb18de438b6b6ab02b2c921463fd35b866cb) |
| Comment by Githook User [ 21/Jun/23 ] |
|
Author: {'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'}Message: (cherry picked from commit e90dcb18de438b6b6ab02b2c921463fd35b866cb) |
| Comment by Githook User [ 21/Jun/23 ] |
|
Author: {'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'}Message: (cherry picked from commit e90dcb18de438b6b6ab02b2c921463fd35b866cb) |
| Comment by Githook User [ 17/May/23 ] |
|
Author: {'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'}Message: |