[SERVER-63666] Implement upgrade/downgrade logic for orphans tracking Created: 15/Feb/22  Updated: 29/Oct/23  Resolved: 04/Mar/22

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 6.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Pierlauro Sciarelli Assignee: Paolo Polato
Resolution: Fixed Votes: 0
Labels: pm-2323-orphans-tracking
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-63335 Add `numOrphanDocs` field to range de... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2022-03-07
Participants:

 Description   

On upgrade (during phase 2 of setFCV):

  • Populate theĀ numOrphanDocs field on range deletion task documents by counting index entries belonging to orphaned ranges

On downgrade (during phase 1 of setFCV):

  • Unset the numOrphanDocs field from range deletion task documents.

It does not fall in the scope of this ticket the synchronization of numOrphanDocs updates with ongoing migrations.



 Comments   
Comment by Githook User [ 03/Mar/22 ]

Author:

{'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'}

Message: SERVER-63666 set/clear numOrphanDocs field in RangeDeletions during setFCV
Branch: master
https://github.com/mongodb/mongo/commit/caf5eb51d40dbf7c1b10e1888ecdca124d087226

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