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

Race in range deleter can trigger invariant if epoch changes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Operating System:
      ALL
    • Linked BF Score:
      12

      Description

      setFilteringMetadata in the metadata manager, when a collection's epoch has changed, triggers clearing the range deleter's queue.

      If this happens when the range deleter is executing a task for that collection in between these lines, where the range deleter is not holding the metadata manager's mutex, then the invariant here will be triggered.

      We should either make this not an invariant or fix the concurrency control between the range deleter and the metadata manager (though the former seems more tractable).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-sharding Backlog - Sharding Team
              Reporter:
              matthew.saltz Matthew Saltz
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: