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

Add abort method to Grid::Stream::Write

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • None

      Provide a mechanism to abort an upload.
      When calling fs#upload_from_stream, the upload will be aborted if the source stream raises an error.
      When an upload is aborted any chunks already uploaded will be deleted.
      Abort raises an error if it is unable to successfully abort the upload (for example, if an error occurs while deleting any chunks already uploaded). However, if the upload is being aborted because the source stream provided to upload_from_stream raised an error then the original error should be re-raised.
      Abort also closes the Stream, or at least places it in an aborted state, so any further attempts to write additional content to the Stream after Abort has been called fail immediately.

            Assignee:
            emily.stolfo Emily Stolfo
            Reporter:
            emily.stolfo Emily Stolfo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: