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

[6.0 only] setOrphanCountersOnRangeDeletionTasks should be resilient to range deletion tasks being deleted

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 6.0.0
    • Component/s: None
    • Catalog and Routing
    • ALL
    • Hide

      Attached repro to be run on v6.0

      Show
      Attached repro to be run on v6.0
    • CAR Team 2024-11-11, CAR Team 2024-11-25
    • 0

      The setOrphanCountersOnRangeDeletionTasks work done during upgrade to FCV 6.0 loops through all range deletion tasks and issues an update for each document to add the number of orphan documents to the task.

      However, this work is not synchronized with the removal of completed range deletions having their task documents deleted. We do take the ScopedRangeDeleterLock, but this only prevents us from modifying the number of orphans, not actually removing the document.

      I would propose that we should simply swallow these errors (note that depending on where we are in the execution of the update, we can either receive WriteConflictException or NoMatchingDocument) because if the task is removed we have no need of the orphan count.

            Assignee:
            allison.easton@mongodb.com Allison Easton
            Reporter:
            allison.easton@mongodb.com Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: