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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.12.0
    • Fix Version/s: 0.12.0
    • Component/s: None
    • Labels:
    • Release Note:
      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-001.patch
          4 kB
          Gopal Vijayaraghavan
        2. HIVE-5100.01.patch
          4 kB
          Gopal Vijayaraghavan

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: