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

Pass writeConcern from UMCs into UMCTransaction

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Security
    • Fully Compatible
    • ALL
    • 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@mongodb.com Varun Ravichandran
            Reporter:
            varun.ravichandran@mongodb.com Varun Ravichandran
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: