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

TestFSInputChecker: improper use of skip

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.0-alpha
    • 2.0.2-alpha
    • None
    • None
    • 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 McCabe
        2. hdfs-3707.txt
          2 kB
          Eli Collins

        Issue Links

          Activity

            People

              cmccabe Colin McCabe
              cmccabe Colin McCabe
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: