Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Duplicate
-
None
-
None
-
None
Description
Now we can config the table and CF in Replication, but I think the parse will be wrong if the table name includes namespace
ReplicationPeer#parseTableCFsFromConfig(line 125)
Map<String, List<String>> tableCFsMap = null; // parse out (table, cf-list) pairs from tableCFsConfig // format: "table1:cf1,cf2;table2:cfA,cfB" String[] tables = tableCFsConfig.split(";"); for (String tab : tables) { // 1 ignore empty table config tab = tab.trim(); if (tab.length() == 0) { continue; } // 2 split to "table" and "cf1,cf2" // for each table: "table:cf1,cf2" or "table" String[] pair = tab.split(":"); String tabName = pair[0].trim(); if (pair.length > 2 || tabName.length() == 0) { LOG.error("ignore invalid tableCFs setting: " + tab); continue; }
Attachments
Attachments
Issue Links
- relates to
-
HBASE-11393 Replication TableCfs should be a PB object rather than a string
- Closed
-
HBASE-13035 [0.98] Backport HBASE-12867 - Shell does not support custom replication endpoint specification
- Closed
-
HBASE-18626 Handle the incompatible change about the replication TableCFs' config
- Resolved