Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-8738

Potential file descriptor leak at mr.HashTableLoader.load() method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.13.1
    • None
    • Query Processor
    • None

    Description

      The following code is faulty:

              ObjectInputStream in = new ObjectInputStream(new BufferedInputStream(
                  new FileInputStream(path.toUri().getPath()), 4096));
              try{
                mapJoinTables[pos] = mapJoinTableSerdes[pos].load(in);
              } finally {
                in.close();
              }
      

      If an exception is thrown from any of the stream constructors, then the wrapped stream will not get closed.

      Attachments

        Activity

          People

            Unassigned Unassigned
            xuefuz Xuefu Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: