protected void doPostLoopActions(long elapsedTime) throws InterruptedException {
    String threadTypeName = getClass().getName();
    if (elapsedTime < checkInterval && !stop.get()) {
      Thread.sleep(checkInterval - elapsedTime);
    }

    if (elapsedTime < MAX_WARN_LOG_TIME) {
      LOG.debug("{} loop took {} seconds to finish.", threadTypeName, elapsedTime/1000);
    } else {
      LOG.warn("Possible {} slowdown, loop took {} seconds to finish.", threadTypeName, elapsedTime/1000);
    }

  }
Get the partition being compacted.
@param ci compaction info returned from the compaction queue
@return metastore partition, or null if there is not partition in this compaction info
@throws MetaException if underlying calls throw, or if the partition name resolves to more than
one partition.
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorThread.java