Dongjoon Hyun created ORC-301:

             Summary: `extractFileTail` should open a file in `try` statement
                 Key: ORC-301
             Project: ORC
          Issue Type: Bug
          Components: Java
    Affects Versions: 1.4.1
            Reporter: Dongjoon Hyun

To prevent opened file leakage, we need to move the file open position.

--- a/java/core/src/java/org/apache/orc/impl/
       long maxFileLength) throws IOException {
-    FSDataInputStream file =;
+    FSDataInputStream file = null;
     ByteBuffer buffer;
     OrcProto.PostScript ps;
     OrcProto.FileTail.Builder fileTailBuilder = OrcProto.FileTail.newBuilder();
     long modificationTime;
     try {
+      file =;

This message was sent by Atlassian JIRA

Reply via email to