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

Lock by dbName + UUID rather than namespace in cleanUpRange

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Sharding EMEA 2022-09-19
    • 40

      Locking by namespace in cleanUpRange may lead to orphan leaks.

      The next flow will result on an orphan leak:

      1. A rename was ongoing from collA ---> collB, which copies range deletion docs from collA to collB and keeps the collA ones
      2. Step-down happened
      3. Step-up happened, so range deletions were resumed
      4. The resubmit wrongly happens by namespace rather than collection UUID
      5. As namespace collA is not found, that range deletion docs are deleted filtering by UUID+range, so range deletion docs from collB won't be processed.

            Assignee:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Reporter:
            silvia.surroca@mongodb.com Silvia Surroca
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: