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

Add a wrapper to handleError for bulkWrite on mongod

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Replication
    • Repl 2023-04-17

    Description

      For bulkWrite we use write_ops_exec::handleError to determine if we can continue to process other items in the operation. This function throws exceptions in multiple instances that we do not (where we want to add the individual error to our cursor response instead of failing at the top level).

      Currently the only known case where we want to throw here is the isTransientTranactionError block. To simplify this we should make a helper function in bulk_write.cpp that calls write_ops_exec::handleError and only throws on this error

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: