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

Mongos should forward reply items in bulk write operations to client

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Replication
    • Fully Compatible
    • Repl 2023-05-29, Repl 2023-06-12, Repl 2023-06-26, Repl 2023-07-10, Repl 2023-08-07, Repl 2023-08-21

      Currently mongos forwards error responses to the client but doesn't do the same for successful responses in a bulk write request. For example, if an update in a bulk write fails with DuplicateKey, this error is returned to the client. However, if the update succeeds, then the response to the client is simply ok: 1, idx: <index> instead of having the nModified, n, value fields as well.

      We need to attach these too to the response mongos give the client. We may also need to write logic to aggregate the response values as they may come from multiple shards.

            kaitlin.mahar@mongodb.com Kaitlin Mahar
            vishnu.kaushik@mongodb.com Vishnu Kaushik
            0 Vote for this issue
            5 Start watching this issue