You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@orc.apache.org by om...@apache.org on 2016/12/09 22:17:01 UTC

[2/2] orc git commit: HIVE-15309 Miscellaneous logging clean up (Eugene Koifman, reviewed by Wei Zheng)

HIVE-15309 Miscellaneous logging clean up (Eugene Koifman, reviewed by Wei Zheng)

Signed-off-by: Owen O'Malley <om...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/orc/repo
Commit: http://git-wip-us.apache.org/repos/asf/orc/commit/f86602e0
Tree: http://git-wip-us.apache.org/repos/asf/orc/tree/f86602e0
Diff: http://git-wip-us.apache.org/repos/asf/orc/diff/f86602e0

Branch: refs/heads/branch-1.2
Commit: f86602e0d20a565b908936d0a930d4059c68be9c
Parents: aac6a8d
Author: Owen O'Malley <om...@apache.org>
Authored: Fri Dec 9 13:53:39 2016 -0800
Committer: Owen O'Malley <om...@apache.org>
Committed: Fri Dec 9 13:56:25 2016 -0800

----------------------------------------------------------------------
 java/core/src/java/org/apache/orc/impl/OrcAcidUtils.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/orc/blob/f86602e0/java/core/src/java/org/apache/orc/impl/OrcAcidUtils.java
----------------------------------------------------------------------
diff --git a/java/core/src/java/org/apache/orc/impl/OrcAcidUtils.java b/java/core/src/java/org/apache/orc/impl/OrcAcidUtils.java
index 72c7f54..7ca9e1d 100644
--- a/java/core/src/java/org/apache/orc/impl/OrcAcidUtils.java
+++ b/java/core/src/java/org/apache/orc/impl/OrcAcidUtils.java
@@ -54,6 +54,9 @@ public class OrcAcidUtils {
                                         Path deltaFile) throws IOException {
     Path lengths = getSideFile(deltaFile);
     long result = Long.MAX_VALUE;
+    if(!fs.exists(lengths)) {
+      return result;
+    }
     try (FSDataInputStream stream = fs.open(lengths)) {
       result = -1;
       while (stream.available() > 0) {