Server errors on large upsertedIds in collection bulk write

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • ALL
    • Hide
      1. Send upserts in a collection bulk write.
      2. Each ReplaceOne filters a ~2 MB _id.
      3. The bulk write message is ~36 MB in total size to fit within the maxMessageSizeBytes.

      Repro code in golang and python

      Show
      Send upserts in a collection bulk write. Each  ReplaceOne  filters a ~2 MB  _id . The bulk write message is ~36 MB in total size to fit within the  maxMessageSizeBytes . Repro code in golang and python
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None

      Sending 9 upserts, each with a 2 MB _id in the filter, in a collection bulk write causes a server error:

      BulkWrite(BSONObjectTooLarge) BSON size limit hit while building Message. Size: 18874704 (0x1200150); maxSize: 16793600(16MB)
      

      It has been confirmed on a standalone local 8.0 and 8.1 server.

            Assignee:
            Unassigned
            Reporter:
            Qingyang Hu
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: