Pass writeConcern from UMCs into UMCTransaction

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0, 8.0.12
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Security
    • Fully Compatible
    • ALL
    • v8.0, v7.0, v6.0
    • Security 2024-11-11, Security 2024-11-25, Security 2024-12-09, Security 2024-12-23
    • 200
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Some user management commands (notably dropRoles and dropAllRolesFromDatabase ) utilize internal transactions, which is deferred to the internal UMCTransaction class. However, we don't pass the write concern specified on the command into the transaction, which causes the transaction to always run at w: majority by default.

      We should respect whatever write concern is provided to the command.

            Assignee:
            Varun Ravichandran
            Reporter:
            Varun Ravichandran
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: