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

WriteConflict returned to client with concurrent multikey index inserts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.8.0-rc0
    • Fix Version/s: 2.8.0-rc2
    • Component/s: Concurrency
    • Labels:
    • Operating System:
      ALL

      Description

      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.

        Attachments

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

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: