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

BatchRequest should not parse supplied write concern if missing 'w' field

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Fully Compatible
    • v7.3, v7.2, v7.0
    • Repl 2024-04-01

      In SERVER-80363, we implemented new logic to address write concerns that lacked the 'w' field by filling it with information from the default write concern. However, in the process, we overlooked instances where the locally constructed batchRequest write concern was still being used (ex), leading to inconsistencies.

      This ticket aims to rectify this issue by ensuring that batch requests omit the write concern parsing if the 'w' field is missing, aligning with the changes made in SERVER-80363. We anticipate that any locally constructed batchRequest will have the correct 'w' field for the write concern. Furthermore, we will undo any overwriting of write concerns in Cluster::Write, where the caller sets the write concern.

      Additionally, there's another ticket (SERVER-83193) focused on entirely removing the write concern from batch requests, which will address this matter comprehensively.

            Assignee:
            m.maher@mongodb.com Moustafa Maher
            Reporter:
            m.maher@mongodb.com Moustafa Maher
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: