int getCurrentIdx() {
    return currentIdx < cycleLogs.size() ? currentIdx : -1;
  }
@return the index of the {@link CompactionDetails} being provided.
ambry-store/src/main/java/com/github/ambry/store/CompactionLog.java