[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:
Depends
is depended on by SERVER-65014 Use long long type for orphan count Closed
Duplicate
is duplicated by SERVER-64599 Synchronize ongoing migrations with u... Closed
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: SERVER-64163 Synchronize orphans tracking upon upgrade/downgrade with ongoing migrations
Branch: master
https://github.com/mongodb/mongo/commit/9022ee2c1454336265e3f50d2bf43a86ec56c0e9

Comment by Githook User [ 22/Mar/22 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: Revert "SERVER-64163 Synchronize orphans tracking upon upgrade/downgrade with ongoing migrations"

This reverts commit 2e63d56d8feea365eeee5e1458ed3873a80ce71c.
Branch: master
https://github.com/mongodb/mongo/commit/7594b5990a9c11b0a4603a40447b2fdcf91a8930

Comment by Githook User [ 22/Mar/22 ]

Author:

{'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}

Message: SERVER-64163 Synchronize orphans tracking upon upgrade/downgrade with ongoing migrations
Branch: master
https://github.com/mongodb/mongo/commit/2e63d56d8feea365eeee5e1458ed3873a80ce71c

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