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

Add abort method to Grid::Stream::Write

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 12_01_17
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Ruby Sprint 24

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: