[SERVER-76720] Chunk Migration migrates the session history for the migrating session leading to a deadlock Created: 01/May/23 Updated: 29/Oct/23 Resolved: 08/May/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.1.0-rc0, 7.0.0-rc1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Rachita Dhawan | Assignee: | Randolph Tan |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| 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
|
||||||||||||||||||||
| Sprint: | Sharding NYC 2023-05-15 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Linked BF Score: | 145 | ||||||||||||||||||||
| Description |
|
The chunkMigration protocol always migrates the oplog entries for $incompleteOplogHistory noop oplog entry irrespective of if:- Steps while migrating oplogs The Receiving shard always checksout the session it is migrating. And then, as part of migrating oplogs, we also checkout the session that is being migrated and since the session is already checkedout, it causes a server hang here This seems to be violating the assumption that chunk migration protocol could never migrate session it is migrating (due to how incomplete session history is handled) |
| Comments |
| Comment by Githook User [ 08/May/23 ] |
|
Author: {'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'}Message: (cherry picked from commit 22707c4f3a2c26529d5487e4d036aa3cbcb3ff2e) |
| Comment by Githook User [ 05/May/23 ] |
|
Author: {'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'}Message: |