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

`deleteRangeDeletionTasksForRename` must not deregister tasks for the target collection

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 6.2.0-rc5, 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • v6.2
    • Sharding EMEA 2022-12-26, Sharding EMEA 2023-01-09

      When renaming a sharded collection, each participant shard is executing some code aimed at copying existing range deletion documents from the source namespace to the target namespace. Subsequently, this code is executed to delete range deletion documents referring the old namespace.

      The range deleter service observer is reacting by deregistering the range deletion task for each deleted document: since renaming preserves collection UUIDs, this results in wrongly deregistering range deletion tasks belonging to the target collection.

      As the new range deleter service lands in v6.2, the release candidate is the only version affected at the time of writing this ticket.

            Assignee:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: