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

Modifications to admin.system.users and admin.system.roles collections must be serialized

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • 2.8.0-rc0
    • 3.0.0-rc6
    • Concurrency, Security
    • None
    • Fully Compatible
    • ALL

    Description

      Writes to the admin.system.roles and maybe admin.system.users and admin.system.version collections need to be serialized, because the role graph and user cache maintenance code depends on that behavior. The actual user and role management commands are fine, because they are externally synchronized, but direct writes to the roles collection, say by mongorestore, need to be synchronized.

      The easiest solution is to make all writes to the admin database require a MODE_X lock on the admin database.

      Attachments

        Activity

          People

            mark.benvenuto@mongodb.com Mark Benvenuto
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: