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

S3 Native filesystem does not retry all connection failures

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 2.7.1
    • None
    • fs/s3
    • None

    Description

      Current implementation of NativeS3FileSystem.java uses RetryProxy that retries exceptions that may occur on network communication with S3 API, but these exceptions must be exact instances of IOException:
      https://github.com/apache/hadoop/blob/master/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3native/NativeS3FileSystem.java#L349

      Our tests show that HttpClient throws IOException subclasses which are not handled by Proxy.

      Additionally, not all methods that call S3 API are listed to be handled, i.e. storeEmptyFile and retrieveMetadata are missing.

      Attachments

        1. HADOOP-12353.001.patch
          5 kB
          Mariusz Strzelecki
        2. HADOOP-12353.002.patch
          6 kB
          Mariusz Strzelecki

        Activity

          People

            szczeles Mariusz Strzelecki
            szczeles Mariusz Strzelecki
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: