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

NPE in S3AInputStream read() after failure to reconnect to store

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      when reading from S3a storage, SSLException (which extends IOException) happens, which will trigger onReadFailure.

      onReadFailure calls "reopen". it will first close the original wrappedStream and set wrappedStream = null, and then it will try to re-get wrappedStream. But what if the previous code obtaining S3Object throw exception, then "wrappedStream" will be null.

      And the retry mechanism may re-execute the wrappedStream.read and cause NPE.

       

      For more details, please refer to https://github.com/NVIDIA/spark-rapids/issues/2915

      Attachments

        1. s3a-test.tar.gz
          106 kB
          Bobby Wang
        2. failsafe-report.html.gz
          76 kB
          Bobby Wang
        3. 3.3-branch-failsafe-report.html.gz
          75 kB
          Bobby Wang

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            wbo4958 Bobby Wang
            wbo4958 Bobby Wang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 4h 40m
                4h 40m

                Slack

                  Issue deployment