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

Oversized bulk insert to mongos 2.4 considered successful

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.0-rc0
    • Affects Version/s: 1.1.9
    • Component/s: Bulk API, libmongoc
    • Labels:
      None

      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.

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

              Created:
              Updated:
              Resolved: