This is an automated email from the ASF dual-hosted git repository. vihangk1 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/master by this push: new 7488e93 HIVE-21932: IndexOutOfRangeException in FileChksumIterator (Vihang Karajgaonkar, reviewed by Anishek Agarwal) 7488e93 is described below commit 7488e93519d7feaa55be6bf715df21008a7a88f2 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 e611394..af01178 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 @@ -519,7 +519,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