public boolean isCompactionDone(int waitSec) {
    try {
      this.doneLatch.await(waitSec, TimeUnit.SECONDS);
    } catch (InterruptedException e) {
      logger.error("[COMPACT] Error waiting for compaction to end {}", e);
    }
    return this.doneLatch.getCount() == 0;
  }
Returns compaction progress
@return True if compaction is complete
ambry-cloud/src/main/java/com/github/ambry/cloud/CloudStorageCompactor.java