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

change S3Exception to checked exception

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.18.3
    • Fix Version/s: 0.21.0
    • Component/s: fs/s3
    • Labels:
      None
    • Hadoop Flags:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: