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

FSDataInputStream.readFully doesn't work on filesystems without seek -even when the offset==getPos

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.1.0-beta, 1.3.0, 3.0.0-alpha1
    • None
    • fs
    • None

    Description

      FSDataInputStream.readFully(offset,data) doesn't work even if the offset==the current location -because it always seeks to the offset and seeks back. No seek => Exception.

      We could optimise FSDataInputStream.readFully(offset,data) to eliminate the seeks on these operations -which would have tangible benefits for those filesystems where seek is expensive (remote blobstores). It would also let you use readFully against filesystems without seeks, provided you are only reading from the current location.

      Attachments

        Activity

          People

            m.pryahin Mikhail Pryakhin
            stevel@apache.org Steve Loughran
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: