private void getDeprecatedContainers() {
    deprecatedContainers.clear();
    if (accountService != null) {
      Set<Container> containers =
          AccountUtils.getDeprecatedContainers(accountService, config.storeContainerDeletionRetentionDays);
      deprecatedContainers.addAll(containers.stream()
          .map(container -> new Pair<>(container.getParentAccountId(), container.getId()))
          .collect(Collectors.toSet()));
      //TODO: Filter out the INACTIVE containers from deprecatedContainers set if it's already been compacted.
    }
  }
Filters deprecated {@link Container}s for compaction purpose. Deprecated containers include DELETE_IN_PROGRESS
containers met with retention time and all INACTIVE containers.
ambry-store/src/main/java/com/github/ambry/store/BlobStoreCompactor.java