private boolean shouldReplicatePartition(String partitionName) {
      if (!replicationConfig.replicationVcrRecoveryPartitions.isEmpty()
          && !replicationConfig.replicationVcrRecoveryPartitions.contains(partitionName)) {
        logger.info("Ignoring state change of partition {} as it is not in recovery partition config", partitionName);
        return false;
      }
      return true;
    }
If only config specified list of partitions are being replicated from cloud, then check that the partition
belongs to the specified list.
@param partitionName Name of the partition to be checked.
@return true if all the partitions are being replicated or if the partition in the list of partitions to be
        replicated. false otherwise.
ambry-cloud/src/main/java/com/github/ambry/cloud/RecoveryManager.java