[SERVER-64163] Synchronize orphans tracking upon upgrade/downgrade with ongoing migrations Created: 03/Mar/22 Updated: 29/Oct/23 Resolved: 30/Mar/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.0.0-rc0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Pierlauro Sciarelli | Assignee: | Allison Easton |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Sprint: | Sharding EMEA 2022-04-04 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
When a batch from an orphaned range is cleared up, the numOrphanDocs field is updated on the corresponding range deletion task document. During upgrade such field is populated by counting orphaned docs via an index scan and during downgrade such field is unset. In case a range deletion task document being updated as part of upgrade/downgrade is also undergoing a batch deletion at the same time, the the update operations may overlap by leaving the orphaned docs count in an inconsistent state. |
| Comments |
| Comment by Githook User [ 30/Mar/22 ] |
|
Author: {'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}Message: |
| Comment by Githook User [ 22/Mar/22 ] |
|
Author: {'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}Message: Revert " This reverts commit 2e63d56d8feea365eeee5e1458ed3873a80ce71c. |
| Comment by Githook User [ 22/Mar/22 ] |
|
Author: {'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}Message: |