void close(long waitTimeSecs) throws InterruptedException {
    isActive = false;
    if (waitTimeSecs > 0 && !runningLatch.await(waitTimeSecs, TimeUnit.SECONDS)) {
      logger.error("Compactor did not shutdown within {} seconds for {}", waitTimeSecs, storeId);
    }
    logger.trace("Closed BlobStoreCompactor for {}", storeId);
  }
Closes the compactor and waits for {@code waitTimeSecs} for the close to complete.
@param waitTimeSecs the number of seconds to wait for close to complete.
@throws InterruptedException if the wait for close was interrupted.
ambry-store/src/main/java/com/github/ambry/store/BlobStoreCompactor.java