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

Race in range deleter can trigger invariant if epoch changes

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding
    • None
    • Sharding
    • ALL
    • 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

        Activity

          People

            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            matthew.saltz@mongodb.com Matthew Saltz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: