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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.0-rc6
    • Affects Version/s: 2.8.0-rc0
    • Component/s: Concurrency, Security
    • None
    • Fully Compatible
    • ALL

      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.

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

              Created:
              Updated:
              Resolved: