[ https://issues.apache.org/jira/browse/HIVE-7180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
skrho updated HIVE-7180: ------------------------ Attachment: HIVE-7180.patch Here is my patch.. I chanaged BufferedReader position and added BufferedReader close statement in finally statement Please review my source.. Give me chance to contribute source > BufferedReader is not closed in MetaStoreSchemaInfo ctor > -------------------------------------------------------- > > Key: HIVE-7180 > URL: https://issues.apache.org/jira/browse/HIVE-7180 > Project: Hive > Issue Type: Bug > Affects Versions: 0.13.1 > Reporter: Ted Yu > Assignee: Swarnim Kulkarni > Priority: Minor > Labels: patch > Attachments: HIVE-7180.patch > > > 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.3.4#6332)