Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ static class ReplicationPeerConfigBuilderImpl implements ReplicationPeerConfigBu

@Override
public ReplicationPeerConfigBuilder setClusterKey(String clusterKey) {
this.clusterKey = clusterKey;
this.clusterKey = clusterKey == null ? clusterKey : clusterKey.trim();
return this;
}

Expand Down