Concurrent GridStore file append operations result in file corruption / data loss, uncaught throw

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Critical - P2
    • 2.0
    • Affects Version/s: 1.3, 1.4, 3.0.0
    • Component/s: None
    • Environment:
      All
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Interleaving of concurrent appended writes to a GridStore file result in an uncaught throw in the driver resulting from file corruption and/or data loss due to duplicate chunk numbering when the writes cause one or more chunks to be created or added to.

      Attached script synthetically reproduces the issue in a single process thread. The same issue may occur with multiple processes accessing the same GridFS collection simultaneously.

        1. concurrent_append_failure.js
          2 kB
        2. gridstore.js
          52 kB

              Assignee:
              Christian Amor Kvalheim
              Reporter:
              Vaughn Iverson
              None
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: