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

Submit tasks to the CollectionRangeDeleter when config.rangeDeletions is updated

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.1
    • None
    • Sharding
    • None
    • Fully Compatible
    • Sharding 2019-11-04

    Description

      In the ShardServerOpObserver::onUpdates function, if we observe an update to config.rangeDeletions removing the "prepare" field, we should call CollectionShardingRuntime::cleanupRange for the range specified in the document.

      We can test this independently with a jstest:

      1. Insert orphans directly into a shard
      2. Insert a document directly into config.rangeDeletions
      3. Assert that orphans eventually are removed.

      Attachments

        Activity

          People

            alex.taskov@mongodb.com Alexander Taskov (Inactive)
            matthew.saltz@mongodb.com Matthew Saltz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: