Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-157

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

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

      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:
            christkv Christian Amor Kvalheim
            Reporter:
            vsi Vaughn Iverson
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: