Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-15220 Über-jira: S3a phase V: Hadoop 3.2 features
  3. HADOOP-14606

S3AInputStream: Handle http stream skip(n) skipping < n bytes in a forward seek

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Critical
    • Resolution: Invalid
    • 2.8.1
    • None
    • fs/s3
    • None

    Description

      There's some hints in the InputStream docs that skip may skip <n bytes. Codepaths only seem to do this if read() returns -1, meaning end of stream is reached.

      If that happens when doing a forward seek via skip, then we have got our numbers wrong and are in trouble. Look for a negative response, log @ ERROR and revert to a close/reopen seek to an absolute position.

      I have no evidence of this acutally occurring

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stevel@apache.org Steve Loughran
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: