[ https://issues.apache.org/jira/browse/HIVE-21932?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vihang Karajgaonkar updated HIVE-21932: --------------------------------------- Resolution: Fixed Fix Version/s: 3.2.0 4.0.0 Status: Resolved (was: Patch Available) Patch merged in master and branch-3 > IndexOutOfRangeException in FileChksumIterator > ---------------------------------------------- > > Key: HIVE-21932 > URL: https://issues.apache.org/jira/browse/HIVE-21932 > Project: Hive > Issue Type: Bug > Reporter: Vihang Karajgaonkar > Assignee: Vihang Karajgaonkar > Priority: Major > Fix For: 4.0.0, 3.2.0 > > Attachments: HIVE-21932.01.patch > > > 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 > {noformat} > result = ReplChangeManager.encodeFileUri(files.get(i), chksums != null ? > chksums.get(i) : null, > subDirs != null ? subDirs.get(i) : null); > {noformat} > The chksums check above should include a {{!chksums.isEmpty()}} check as well > in the above line. -- This message was sent by Atlassian JIRA (v7.6.3#76005)