Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
Impala 2.2.4, impala 2.3
-
None
Description
The catalog is leaking connections to the Hive Metastore. For example, see the reloadTable() function in CatalogServiceCatalog:
catalogLock_.writeLock().lock(); synchronized(tbl) { long newCatalogVersion = incrementAndGetCatalogVersion(); catalogLock_.writeLock().unlock(); MetaStoreClient msClient = getMetaStoreClient(); org.apache.hadoop.hive.metastore.api.Table msTbl = null; try { msTbl = msClient.getHiveClient().getTable(db.getName(), tblName.getTable_name()); } catch (Exception e) { throw new TableLoadingException("Error loading metadata for table: " + db.getName() + "." + tblName.getTable_name(), e); } tbl.load(true, msClient.getHiveClient(), msTbl); tbl.setCatalogVersion(newCatalogVersion); return tbl; }