You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by vi...@apache.org on 2019/06/28 18:29:53 UTC
[hive] branch branch-3 updated: HIVE-21932:
IndexOutOfRangeException in FileChksumIterator (Vihang Karajgaonkar,
reviewed by Anishek Agarwal)
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 <vi...@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