Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-16143

WriteConflict returned to client with concurrent multikey index inserts

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.8.0-rc2
    • Affects Version/s: 2.8.0-rc0
    • Component/s: Concurrency
    • ALL

      We have a handful of threads doing inserts and finds against a collection with a multikey index. The inserts should succeed, but the WriteResult returned by the server looks like this:

      {
          "nInserted" : 0,
          "writeError" : {
              "code" : 112,
              "errmsg" : "WriteConflict"
          }
      }
      

      The bug can happen with as few as 2 threads, but it is more reliable to reproduce with ~8 threads. Running with dozens or hundreds of threads seems to make it less reliable to reproduce.

        1. writeconflict-invariant-log
          63 kB
          David Percy
        2. writeconflict-log
          20 kB
          David Percy

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            david.percy@mongodb.com David Percy
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: