Lock by dbName + UUID rather than namespace in cleanUpRange

XMLWordPrintableJSON

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

      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
            Reporter:
            Silvia Surroca
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: