Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-982

What errors should be returned when a document in a batch is too large?

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Core API
    • None

      The new Core API design handles batch splitting as it's creating wire messages, which means we don't check to ensure all of the documents are below the maximum document size before we start writing to the server. If the user has specified unordered for batching and an error occured this means we have to choose whether we return the error from a document being too large or the write errors. Which should we return? Should we try to return a hybrid error?

            Assignee:
            Unassigned Unassigned
            Reporter:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: