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

IndexOutOfRangeException in FileChksumIterator

Log workAgile BoardRank to TopRank to BottomVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0, 4.0.0
    • Component/s: None
    • Labels:
      None

      Description

      According to definition of InsertEventRequestData in hive_metastore.thrift the filesAddedChecksum is a optional field. But the FileChksumIterator does not handle it correctly when a client fires a insert event which does not have file checksums. The issue is that InsertEvent class initializes fileChecksums list to a empty arrayList so the following check will never come into play

      result = ReplChangeManager.encodeFileUri(files.get(i), chksums != null ? chksums.get(i) : null,
                      subDirs != null ? subDirs.get(i) : null);
      

      The chksums check above should include a !chksums.isEmpty() check as well in the above line.

        Attachments

        1. HIVE-21932.01.patch
          1 kB
          Vihang Karajgaonkar

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

            • Assignee:
              vihangk1 Vihang Karajgaonkar Assign to me
              Reporter:
              vihangk1 Vihang Karajgaonkar

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment