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

Possible deadlock with auth check for building indexes

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.4.0-rc1
    • 2.3.2
    • Concurrency, Security
    • None
    • ALL

    Description

      The auth checks for index creation happen far down, so that we can know the namespace that the index is being built on. This is a problem, however, because you might be in a lock when doing the auth checks, which could cause deadlock due to automatic privilege acquisition. We need to do the auth check at the beginning of the operation, before any locks are held

      Attachments

        Activity

          People

            spencer@mongodb.com Spencer Brody (Inactive)
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: