orc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject orc git commit: ORC-195: FileFormatException should include file name in the message
Date Tue, 15 Aug 2017 17:41:39 GMT
Repository: orc
Updated Branches:
  refs/heads/master 65dd8cf9b -> 4fc646725


ORC-195: FileFormatException should include file name in the message

Fixes #156

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


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

Branch: refs/heads/master
Commit: 4fc6467253d03f35d361f961386fb4dc66d98de5
Parents: 65dd8cf
Author: Eugene Koifman <ekoifman@hortonworks.com>
Authored: Mon Aug 14 12:49:37 2017 -0700
Committer: Owen O'Malley <omalley@apache.org>
Committed: Tue Aug 15 10:41:14 2017 -0700

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


http://git-wip-us.apache.org/repos/asf/orc/blob/4fc64672/java/core/src/java/org/apache/orc/impl/ReaderImpl.java
----------------------------------------------------------------------
diff --git a/java/core/src/java/org/apache/orc/impl/ReaderImpl.java b/java/core/src/java/org/apache/orc/impl/ReaderImpl.java
index 7702ac6..15d3c3f 100644
--- a/java/core/src/java/org/apache/orc/impl/ReaderImpl.java
+++ b/java/core/src/java/org/apache/orc/impl/ReaderImpl.java
@@ -512,7 +512,8 @@ public class ReaderImpl implements Reader {
       // Anything lesser than MAGIC header cannot be valid (valid ORC file is actually around
45 bytes, this is
       // more conservative)
       if (size <= OrcFile.MAGIC.length()) {
-        throw new FileFormatException("Not a valid ORC file");
+        throw new FileFormatException("Not a valid ORC file " + path
+          + " (maxFileLength= " + maxFileLength + ")");
       }
       fileTailBuilder.setFileLength(size);
 


Mime
View raw message