Skip to content

Commit

Permalink
Remove duplicate check for replicationClusterSet (apache#11429)
Browse files Browse the repository at this point in the history
  • Loading branch information
Technoboy- authored Jul 23, 2021
1 parent 62b5dfb commit 083bb62
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -760,15 +760,6 @@ protected void internalSetNamespaceReplicationClusters(List<String> clusterIds)
throw new RestException(Status.FORBIDDEN, "Invalid cluster id: " + clusterId);
}
validatePeerClusterConflict(clusterId, replicationClusterSet);
}
for (String clusterId : replicationClusterSet) {
if (!clusters.contains(clusterId)) {
throw new RestException(Status.FORBIDDEN, "Invalid cluster id: " + clusterId);
}
validatePeerClusterConflict(clusterId, replicationClusterSet);
}

for (String clusterId : replicationClusterSet) {
validateClusterForTenant(namespaceName.getTenant(), clusterId);
}
updatePolicies(path(POLICIES, namespaceName.toString()), policies ->{
Expand Down

0 comments on commit 083bb62

Please sign in to comment.