You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Xuefu Zhang (JIRA)" <ji...@apache.org> on 2014/11/05 01:58:35 UTC

[jira] [Created] (HIVE-8738) Potential file descriptor leak at mr.HashTableLoader.load() method

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)