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

Synchronize orphans tracking upon upgrade/downgrade with ongoing migrations

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 6.0.0-rc0
    • None
    • None
    • Fully Compatible
    • Sharding EMEA 2022-04-04

    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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: