hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-7180) BufferedReader is not closed in MetaStoreSchemaInfo ctor
Date Thu, 05 Jun 2014 16:58:02 GMT
Ted Yu created HIVE-7180:
----------------------------

             Summary: BufferedReader is not closed in MetaStoreSchemaInfo ctor
                 Key: HIVE-7180
                 URL: https://issues.apache.org/jira/browse/HIVE-7180
             Project: Hive
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


Here is related code:
{code}
      BufferedReader bfReader =
        new BufferedReader(new FileReader(upgradeListFile));
      String currSchemaVersion;
      while ((currSchemaVersion = bfReader.readLine()) != null) {
        upgradeOrderList.add(currSchemaVersion.trim());
{code}
BufferedReader / FileReader should be closed upon return from ctor.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message