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

Allow direct shard operations which acquire locks only on non-user collections

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc5, 7.0.12, 7.3.4
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • v8.0, v7.3, v7.0
    • CAR Team 2024-05-13

      The direct shard operation checks currently disallow any database or collection lock acquisition from an external user without sufficient permissions. However, this is also disallowing some standard replica set maintenance operations (replSetStepDown, db.printReplicationInfo, etc) which are only acquiring locks on collections which we know cannot be moved or sharded.

      These commands shouldn't be disallowed by the direct shard operation checks because there is no danger of them causing data loss or corruption due to direct access after the collection is moved or sharded.

      In order to allow this type of maintenance commands, we should not throw errors on commands which only acquire locks for collections that are local to a shard (those in admin, config, and local databases plus system collections with some exceptions). 

            Assignee:
            allison.easton@mongodb.com Allison Easton
            Reporter:
            allison.easton@mongodb.com Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: