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

WriteConflict returned to client with concurrent multikey index inserts

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 2.8.0-rc0
    • 2.8.0-rc2
    • Concurrency
    • 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
        2. writeconflict-log
          20 kB

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: