This is an automated email from the ASF dual-hosted git repository. vihangk1 pushed a commit to branch branch-3 in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/branch-3 by this push: new a665e9a HIVE-21932: IndexOutOfRangeException in FileChksumIterator (Vihang Karajgaonkar, reviewed by Anishek Agarwal) a665e9a is described below commit a665e9a34770790f49bfa3d9430eba0612c5914e Author: Vihang Karajgaonkar <vihan...@apache.org> AuthorDate: Fri Jun 28 10:44:30 2019 -0700 HIVE-21932: IndexOutOfRangeException in FileChksumIterator (Vihang Karajgaonkar, reviewed by Anishek Agarwal) --- .../java/org/apache/hive/hcatalog/listener/DbNotificationListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hcatalog/server-extensions/src/main/java/org/apache/hive/hcatalog/listener/DbNotificationListener.java b/hcatalog/server-extensions/src/main/java/org/apache/hive/hcatalog/listener/DbNotificationListener.java index e5da5d6..348c728 100644 --- a/hcatalog/server-extensions/src/main/java/org/apache/hive/hcatalog/listener/DbNotificationListener.java +++ b/hcatalog/server-extensions/src/main/java/org/apache/hive/hcatalog/listener/DbNotificationListener.java @@ -448,7 +448,7 @@ public class DbNotificationListener extends TransactionalMetaStoreEventListener public String next() { String result; try { - result = ReplChangeManager.encodeFileUri(files.get(i), chksums != null ? chksums.get(i) : null, + result = ReplChangeManager.encodeFileUri(files.get(i), (chksums != null && !chksums.isEmpty()) ? chksums.get(i) : null, subDirs != null ? subDirs.get(i) : null); } catch (IOException e) { // File operations failed