HBASE-19492 (addendum) Add EXCLUDE_NAMESPACE and EXCLUDE_TABLECFS support to replication peer config
Signed-off-by: zhangduo <zhangduo@apache.org>
This commit is contained in:
parent
d2534fc570
commit
cae5c2706b
|
@ -137,9 +137,10 @@ public class ReplicationManager {
|
||||||
checkNamespacesAndTableCfsConfigConflict(peerConfig.getExcludeNamespaces(),
|
checkNamespacesAndTableCfsConfigConflict(peerConfig.getExcludeNamespaces(),
|
||||||
peerConfig.getExcludeTableCFsMap());
|
peerConfig.getExcludeTableCFsMap());
|
||||||
} else {
|
} else {
|
||||||
if ((peerConfig.getExcludeNamespaces() != null && !peerConfig.getNamespaces().isEmpty())
|
if ((peerConfig.getExcludeNamespaces() != null
|
||||||
|
&& !peerConfig.getExcludeNamespaces().isEmpty())
|
||||||
|| (peerConfig.getExcludeTableCFsMap() != null
|
|| (peerConfig.getExcludeTableCFsMap() != null
|
||||||
&& !peerConfig.getTableCFsMap().isEmpty())) {
|
&& !peerConfig.getExcludeTableCFsMap().isEmpty())) {
|
||||||
throw new ReplicationException(
|
throw new ReplicationException(
|
||||||
"Need clean exclude-namespaces or exclude-table-cfs config firstly"
|
"Need clean exclude-namespaces or exclude-table-cfs config firstly"
|
||||||
+ " when replicate_all flag is false");
|
+ " when replicate_all flag is false");
|
||||||
|
|
Loading…
Reference in New Issue