Details
-
Bug
-
Status: Patch Available
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
ResultSet res = stmt.executeQuery(versionQuery); if (!res.next()) { throw new HiveMetaException("Didn't find version data in metastore"); } String currentSchemaVersion = res.getString(1); metastoreConn.close();
When HiveMetaException is thrown, metastoreConn.close() would be skipped.
stmt is not closed upon return from the method.