Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-5100

RCFile::sync(long) missing 1 byte in System.arraycopy()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.12.0
    • 0.12.0
    • None
    • Fix off-by-one regression RCFile::sync(long) resulting in skipped sync points.

    Description

      this has a bug in this:
      System.arraycopy(buffer, buffer.length - prefix - 1, buffer, 0, prefix);
      it should be
      System.arraycopy(buffer, buffer.length - prefix, buffer, 0, prefix);
      it is missing 1 byte at the end.

      Attachments

        1. HIVE-5100.01.patch
          4 kB
          Gopal Vijayaraghavan
        2. HIVE-5100-001.patch
          4 kB
          Gopal Vijayaraghavan

        Activity

          People

            gopalv Gopal Vijayaraghavan
            taguswang tagus wang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: