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

Support internal errors only field for bulkWrite

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • Repl 2023-11-13

      Handling WouldChangeOwningShard requires inspecting the write errors, the current singleBatch:true + batchSize:0 for bulkWrite would not return write errors in its current form. We need to add an internal field to be sent from mongos -> mongod in order to still receive write errors even with singleBatch and batchSize:0

      We do not want to expose this to users since it will have higher precedence than batchSize:0 which would be a confusing API

            Assignee:
            sean.zimmerman@mongodb.com Sean Zimmerman
            Reporter:
            sean.zimmerman@mongodb.com Sean Zimmerman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: