HBASE-19621 (addendum) Revisit the methods in ReplicationPeerConfigBuilder
This commit is contained in:
parent
7ce1943ef3
commit
80c7e4ea79
|
@ -363,9 +363,14 @@ public class ReplicationPeersZKImpl extends ReplicationStateZKBase implements Re
|
||||||
}
|
}
|
||||||
// Update existingConfig's peer config and peer data with the new values, but don't touch config
|
// Update existingConfig's peer config and peer data with the new values, but don't touch config
|
||||||
// or data that weren't explicitly changed
|
// or data that weren't explicitly changed
|
||||||
ReplicationPeerConfigBuilder builder = ReplicationPeerConfig.newBuilder(newConfig);
|
ReplicationPeerConfigBuilder builder = ReplicationPeerConfig.newBuilder(existingConfig);
|
||||||
builder.putAllConfiguration(existingConfig.getConfiguration());
|
builder.putAllConfiguration(newConfig.getConfiguration())
|
||||||
builder.putAllPeerData(existingConfig.getPeerData());
|
.putAllPeerData(newConfig.getPeerData())
|
||||||
|
.setReplicateAllUserTables(newConfig.replicateAllUserTables())
|
||||||
|
.setNamespaces(newConfig.getNamespaces()).setTableCFsMap(newConfig.getTableCFsMap())
|
||||||
|
.setExcludeNamespaces(newConfig.getExcludeNamespaces())
|
||||||
|
.setExcludeTableCFsMap(newConfig.getExcludeTableCFsMap())
|
||||||
|
.setBandwidth(newConfig.getBandwidth());
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ZKUtil.setData(this.zookeeper, getPeerNode(id),
|
ZKUtil.setData(this.zookeeper, getPeerNode(id),
|
||||||
|
|
Loading…
Reference in New Issue