hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vihan...@apache.org
Subject hive git commit: HIVE-16765: ParquetFileReader should be closed to avoid resource leak (Colin Ma, reviewed by Ferdinand Xu)
Date Fri, 27 Oct 2017 00:03:05 GMT
Repository: hive
Updated Branches:
  refs/heads/branch-2 93036b457 -> c47b2a0e3


HIVE-16765: ParquetFileReader should be closed to avoid resource leak (Colin Ma, reviewed
by Ferdinand Xu)


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

Branch: refs/heads/branch-2
Commit: c47b2a0e357fc5afaaebe3db537aeab71ef586f2
Parents: 93036b4
Author: Ferdinand Xu <cheng.a.xu@intel.com>
Authored: Sat May 27 07:35:40 2017 +0800
Committer: Vihang Karajgaonkar <vihang@cloudera.com>
Committed: Thu Oct 26 16:56:42 2017 -0700

----------------------------------------------------------------------
 .../hive/ql/io/parquet/vector/VectorizedParquetRecordReader.java  | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/c47b2a0e/ql/src/java/org/apache/hadoop/hive/ql/io/parquet/vector/VectorizedParquetRecordReader.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/io/parquet/vector/VectorizedParquetRecordReader.java
b/ql/src/java/org/apache/hadoop/hive/ql/io/parquet/vector/VectorizedParquetRecordReader.java
index ecdd8bc..5423bd0 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/io/parquet/vector/VectorizedParquetRecordReader.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/io/parquet/vector/VectorizedParquetRecordReader.java
@@ -246,6 +246,9 @@ public class VectorizedParquetRecordReader extends ParquetRecordReaderBase
 
   @Override
   public void close() throws IOException {
+    if (reader != null) {
+      reader.close();
+    }
   }
 
   @Override


Mime
View raw message