public synchronized void setExpiredFromCache() {
      if (users.get() != 0) {
        LOG.warn("Evicted client has non-zero user count: " + users.get());
      }

      expiredFromCache = true;
    }
Communicate to the client that it is no longer in the cache.
The expiration time should be voided to allow the connection to be closed at the first opportunity.
metastore/src/java/org/apache/hadoop/hive/metastore/HiveClientCache.java