Hadoop Common
  1. Hadoop Common
  2. HADOOP-8311

FSInputStream's positioned read fails to check seek

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 0.23.3, 0.24.0, 2.0.0-alpha
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      FSInputStream#read(long, byte[], int, int) will seek into the input stream, but does not check that the seek actually succeeded.

        Activity

        Hide
        Daryn Sharp added a comment -

        My mistake, I confused seek with skip which is supposed to return the actual number of bytes skipped.

        Show
        Daryn Sharp added a comment - My mistake, I confused seek with skip which is supposed to return the actual number of bytes skipped.
        Hide
        Ravi Prakash added a comment -

        Stating the obvious, but shouldn't seek throw an IOException if it failed?

        Show
        Ravi Prakash added a comment - Stating the obvious, but shouldn't seek throw an IOException if it failed?

          People

          • Assignee:
            Unassigned
            Reporter:
            Daryn Sharp
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development