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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.8.0-rc0
    • Fix Version/s: 3.0.0-rc6
    • Component/s: Concurrency, Security
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      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

            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: