Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-2230

Rescue write errors in GridFS for cleanup purposes in addition to read errors

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.13.0.beta1
    • Affects Version/s: None
    • Component/s: GridFS
    • Labels:
      None
    • When an upload to GridFS fails due to a write error, the driver will now delete those chunks that have already been uploaded. Previously the driver would only delete the uploaded chunks if the upload failed due to a read error.
    • Minor Change

      GridFS currently, when it is writing a file and a read of the input fails, removes the chunks that have already been written prior to propagating the read exception to the application. It seems sensible to also remove the chunks that have been written if there is a network error on the writing side.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: