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

org.apache.hadoop.fs.HarFileSystem.HarFSDataInputStream.HarFsInputStream.skip(long) must never return negative value.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.0, 3.0.0-alpha1
    • 2.3.0
    • None
    • None

    Description

      The patch fixes bug in method org.apache.hadoop.fs.HarFileSystem.HarFSDataInputStream.HarFsInputStream.skip(long):
      // the contract is described in java.io.InputStream.skip(long):
      // this method returns the number of bytes actually skipped, so,
      // the return value should never be negative.

      The patch adds tests for the fixed functionality + other tests to cover other uncovered methods of classes org.apache.hadoop.fs.HarFileSystem.HarFSDataInputStream,
      org.apache.hadoop.fs.HarFileSystem.HarFSDataInputStream.HarFsInputStream.

      Attachments

        1. HADOOP-9016--f.patch
          28 kB
          Ivan A. Veselovsky
        2. HADOOP-9016--e.patch
          28 kB
          Ivan A. Veselovsky
        3. HADOOP-9016--d.patch
          25 kB
          Ivan A. Veselovsky
        4. HADOOP-9016--c.patch
          26 kB
          Ivan A. Veselovsky
        5. HADOOP-9016-branch-0.23--e.patch
          33 kB
          Ivan A. Veselovsky
        6. HADOOP-9016-branch-0.23--d.patch
          25 kB
          Ivan A. Veselovsky
        7. HADOOP-9016--b.patch
          13 kB
          Ivan A. Veselovsky
        8. HADOOP-9016.patch
          13 kB
          Ivan A. Veselovsky

        Activity

          People

            iveselovsky Ivan A. Veselovsky
            iveselovsky Ivan A. Veselovsky
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: