Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-64163

Synchronize orphans tracking upon upgrade/downgrade with ongoing migrations

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Sharding EMEA 2022-04-04

      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.

            Assignee:
            allison.easton@mongodb.com Allison Easton
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: