synchronized void deinit() {
    if (isInited) {
      isInited = false;
      metricMap.clear();
      resetInstance();
    }
  }
MetricCollector.
In memory collection of metrics
ql/src/java/org/apache/hadoop/hive/ql/parse/repl/metric/MetricCollector.java