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

PositionCache decrements its position for reads at the end of file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.1.0
    • fs
    • None

    Description

      See

      int org.apache.hadoop.fs.FSDataInputStream.PositionCache.read(byte[] b, int off, int len)

      if in.read() returns -1 (e.g. at the end of file) the position in the cache will be decremented, while it should be retained.

      The attached patch would fix it.

      Attachments

        1. Position.patch
          0.7 kB
          Konstantin Shvachko

        Activity

          People

            Unassigned Unassigned
            shv Konstantin Shvachko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: