Xuefu Zhang created HIVE-8738: --------------------------------- Summary: Potential file descriptor leak at mr.HashTableLoader.load() method Key: HIVE-8738 URL: https://issues.apache.org/jira/browse/HIVE-8738 Project: Hive Issue Type: Bug Components: Query Processor Affects Versions: 0.13.1 Reporter: Xuefu Zhang
The following code is faulty: {code} ObjectInputStream in = new ObjectInputStream(new BufferedInputStream( new FileInputStream(path.toUri().getPath()), 4096)); try{ mapJoinTables[pos] = mapJoinTableSerdes[pos].load(in); } finally { in.close(); } {code} If an exception is thrown from any of the stream constructors, then the wrapped stream will not get closed. -- This message was sent by Atlassian JIRA (v6.3.4#6332)