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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        1d 1h 26m 1 Daryn Sharp 25/Apr/12 18:06
        Daryn Sharp made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Invalid [ 6 ]
        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?
        Daryn Sharp created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development