Oversized bulk insert to mongos 2.4 considered successful

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.3.0-rc0
    • Affects Version/s: 1.1.9
    • Component/s: Bulk API, libmongoc
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
              A. Jesse Jiryu Davis
              Reporter:
              A. Jesse Jiryu Davis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: