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

Concurrent gridstore writes lead to corrupt files, occasional errors

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 1.4.2
    • Affects Version/s: 1.4
    • Component/s: None
    • Labels:
    • Environment:
      Ubuntu 12.04.4 LTS, MongoDB 2.4.7, replica set with 2 members

      Note: this issue does not refer to concurrent writes on the same file and it is not related to NODE-157. This is a problem introduced with version 1.4.0, reproducible in 1.4.1 as well. Not reproducible with version 1.3.23.

      Writing two or more different files concurrently from different node processes using the GridStore.writeFile command results in some files not being correctly written (ending up with a number of corrupt files in the gridstore). Ending up with corrupt files even with all writeFile calls being successfull and no indication of error. writeFile occasionally fails with error "chunks out of order", but this happens very rarely (something like 1 failed writeFile for 100 corrupt files or more).

            Assignee:
            christkv Christian Amor Kvalheim
            Reporter:
            iantocristian Cristian Ianto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: