public static void controlReplicationForPartition(List<ConnectedChannel> channels, List<PartitionId> partitionIds,
      boolean enable) throws Exception {
    for (PartitionId id : partitionIds) {
      controlReplicationForPartition(channels, id, enable);
    }
  }
Enable or disable replication on the replicas
@param channels the connection channel to the replicas.
@param partitionIds the partitions that the control requests are targeting.
@param enable if true, enable the replication. If false, disable the replication
@throws Exception any exception
ambry-test-utils/src/main/java/com/github/ambry/server/ServerTestUtil.java