private boolean shouldResetReplication() {
    return (prioritizedPartitions.entrySet().stream().
        filter(entry -> entry.getKey() != PriorityTier.NORMAL).
        allMatch(entry -> entry.getValue().isEmpty()) || !disabledReplicationPartitions.isEmpty())
        && !isHighPriorityReplicationRunning.get();
  }
Checks if replication should be reset to normal operation.
@return true if replication should be reset, false otherwise
ambry-prioritization/src/main/java/com/github/ambry/replica/prioritization/ReplicationPrioritizationManager.java