@Override public void close() { isConnected = false; currentMetaVars = null; try { if (null != client) { client.shutdown(); } } catch (TException e) { LOG.debug("Unable to shutdown metastore client. Will try closing transport directly.", e); } // Transport would have got closed via client.shutdown(), so we dont need this, but // just in case, we make this call. if ((transport != null) && transport.isOpen()) { transport.close(); LOG.info("Closed a connection to metastore, current connections: " + connCount.decrementAndGet()); if (LOG.isTraceEnabled()) { LOG.trace("", new LogUtils.StackTraceLogger("METASTORE CONNECTION TRACE - close - " + System.identityHashCode(this))); } } }
LOG.debug("Opened an SSL connection to metastore, current connections: " + connCount.incrementAndGet()); if (LOG.isTraceEnabled()) { LOG.trace("", new LogUtils.StackTraceLogger("METASTORE SSL CONNECTION TRACE - open - " + System.identityHashCode(this))); LOG.info("Opened a connection to metastore, URI (" + store + ") current connections: " + connCount.incrementAndGet()); if (LOG.isTraceEnabled()) { LOG.trace("", new LogUtils.StackTraceLogger("METASTORE CONNECTION TRACE - open - " + System.identityHashCode(this)));