Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-5613

change S3Exception to checked exception

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.18.3
    • 0.21.0
    • fs/s3
    • None
    • Reviewed

    Description

      Currently the S3 filesystems can throw unchecked exceptions (S3Exception) which are not declared in the interface of FileSystem. These aren't caught by the various callers and can cause unpredictable behavior. IOExceptions are caught by most users of FileSystem since it is declared in the interface and hence is handled better.

      I propose we modify S3Exception to extend IOException.

      Attachments

        1. patch-ioexceptions.patch
          0.6 kB
          Andrew Hitchcock

        Activity

          People

            anhi Andrew Hitchcock
            anhi Andrew Hitchcock
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: