public boolean isPartitionOwned(PartitionId partitionId) {
    return partitions.contains(partitionId);
  }
@return whether the compactor is shutting down.
ambry-cloud/src/main/java/com/github/ambry/cloud/CloudStorageCompactor.java