Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-3707

TestFSInputChecker: improper use of skip

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-alpha
    • Fix Version/s: 2.0.2-alpha
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      TestFSInputChecker assumes that FSDataInputStream#skip always skips the full amount of bytes. However, FSDataInputStream inherits this method from InputStream. InputStream#skip skips "up to" the requested number of bytes. It is not an error if it skips fewer.

        Attachments

        1. HDFS-3707.001.patch
          6 kB
          Colin P. McCabe
        2. hdfs-3707.txt
          2 kB
          Eli Collins

          Issue Links

            Activity

              People

              • Assignee:
                cmccabe Colin P. McCabe
                Reporter:
                cmccabe Colin P. McCabe
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: