public static Set<Container> selectInactiveContainerCandidates(
      AggregatedAccountStorageStats aggregatedAccountStorageStats, Set<Container> deleteInProgressContainers) {
    Set<Container> inactiveContainerCandidateSet = new HashSet<>();
    if (aggregatedAccountStorageStats != null) {
      Map<Short, Set<Short>> nonEmptyContainersByAccount = new HashMap<>();
      searchNonEmptyContainers(nonEmptyContainersByAccount, aggregatedAccountStorageStats);
      for (Container container : deleteInProgressContainers) {
        if (nonEmptyContainersByAccount.containsKey(container.getParentAccountId()) && nonEmptyContainersByAccount.get(
            container.getParentAccountId()).contains(container.getId())) {
          logger.debug("Container {} has not been compacted yet", container);
        } else {
          logger.info("Container {} has been compacted already", container);
          inactiveContainerCandidateSet.add(container);
        }
      }
    }
    return inactiveContainerCandidateSet;
  }
Selects {@link Container}s to be marked as INACTIVE. Check the valid data size of each DELETE_IN_PROGRESS container
from {@link AggregatedAccountStorageStats} and select the ones with zero data size to be marked as INACTIVE.
@return {@link Set} of inactive {@link Container} candidates.
ambry-account/src/main/java/com/github/ambry/account/AccountUtils.java