Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-759

Oversized bulk insert to mongos 2.4 considered successful

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • 1.1.9
    • 1.3.0-rc0
    • bulk, libmongoc
    • None

    Description

      test_large_inserts_ordered fails with a 2.4 mongos. mongos responds to getLastError after an oversized insert:

      	{ err: "assertion src/mongo/s/strategy_shard.cpp:461", n: 0, ok: 1.0 }
      

      There's an "err" but no "code", so _mongoc_write_result_merge_legacy skips it. There may be more cases where the server returns an err with no code, audit all.

      Attachments

        Issue Links

          Activity

            People

              jesse@mongodb.com A. Jesse Jiryu Davis
              jesse@mongodb.com A. Jesse Jiryu Davis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: