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

FileHandler leak on partial iteration of the resultset.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.6.0
    • 0.7.0
    • Server Infrastructure
    • None
    • Hadoop 0.20.1, Hive0.6.0 and SUSE Linux Enterprise Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (5).

    • Reviewed
    • In Driver -> "close()" closed the resStream and FetchTask.

    Description

      If the "resultset" is not iterated completely , one filehandler is leaking

      Ex: We need only first row. This case one resource is leaking

      ResultSet resultSet = createStatement.executeQuery("select * from sampletable");
      
      if (resultSet.next())
      {
      	System.out.println(resultSet.getString(1)+"   "+resultSet.getString(2));
      } 
      
      

      Command used for checking the filehandlers

      lsof -p {hive_process_id} > runjarlsof.txt
      

      Attachments

        1. HIVE-1908.1.patch
          4 kB
          Chinna Rao Lalam

        Activity

          People

            chinnalalam Chinna Rao Lalam
            chinnalalam Chinna Rao Lalam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: