Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.4
-
None
-
None
Description
PigHCatUtil::getTable() creates a metastore client but never call close on it. As a result, underlying connection will not be released. Metastore client is created in multiple different files, all of those should be examined to make sure, client is properly closed at the end.
As part of HCAT-36 I added HCatUtil.closeHiveClientQuietly() to cases where the client was created using HCatUtil as I encountered HCAT-236 with client.close(). Probably that should also become part of the patch for this jira instead of being in HCAT-36.