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

Validate and/or fix invariant in MetadataManager::cleanUpRange

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • ALL
    • Sharding 2019-12-02, Sharding 2019-12-30, Sharding 2020-01-13, Sharding 2020-01-27

      This invariant to check that the metadata has not been cleared when calling cleanUpRange may not be valid. It seems that it would be possible to hit this invariant with this existing use of cleanUpRange, in the case where the collection gets dropped and a refresh occurs after the migration completes but before cleanUpRange is called here. It will also be possible to hit this invariant with the addition of new code in the resumable range deleter project.

      We should verify whether this should truly be an invariant and:

      • If so, fix the existing bugs around usages of cleanUpRange
      • If not, change the invariant to an error or otherwise handle this case appropriately.

            Assignee:
            matthew.saltz@mongodb.com Matthew Saltz (Inactive)
            Reporter:
            matthew.saltz@mongodb.com Matthew Saltz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: