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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: 1.3, 1.4, 3.0
    • Fix Version/s: 2.0
    • Component/s: None
    • Environment:
      All
    • # Replies:
      25
    • Last comment by Customer:
      true

      Description

      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.

        Attachments

        1. concurrent_append_failure.js
          2 kB
          Vaughn Iverson
        2. gridstore.js
          52 kB
          Cristian Ianto

          Activity

            People

            • Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                2 years, 38 weeks, 3 days ago
                Date of 1st Reply: