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

Submit tasks to the CollectionRangeDeleter when config.rangeDeletions is updated

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.1
    • Component/s: Sharding
    • Labels:
      None

      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

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: