void markCycleComplete() {
    CycleLog cycleLog = getCurrentCycleLog();
    if (!cycleLog.getPhase().equals(Phase.CLEANUP)) {
      throw new IllegalStateException("Should be in CLEANUP phase to complete cycle");
    }
    cycleLog.cycleEndTime = time.milliseconds();
    currentIdx++;
    flush();
    logger.trace("{}: Marked cycle as complete for {}", file, cycleLog.compactionDetails);
  }
Marks the current compaction cycle as complete.
ambry-store/src/main/java/com/github/ambry/store/CompactionLog.java