Skip to content

Commit

Permalink
HBASE-27247 TestPerTableCFReplication.testParseTableCFsFromConfig is …
Browse files Browse the repository at this point in the history
…broken because of ReplicationPeerConfigUtil.parseTableCFsFromConfig (apache#4658)

Co-authored-by: comnetwork <comnetwork@163.com>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
  • Loading branch information
comnetwork and comnetwork authored Jul 27, 2022
1 parent 80b3668 commit a3eeab8
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,13 @@ public static ReplicationProtos.TableCF[] convert(String tableCFsConfig) {
}
// 2 split to "table" and "cf1,cf2"
// for each table: "table#cf1,cf2" or "table"
Iterator<String> i = Splitter.on(':').split(tab).iterator();
List<String> pair = Splitter.on(':').splitToList(tab);
if (pair.size() > 2) {
LOG.info("incorrect format:" + tableCFsConfig);
continue;
}
assert pair.size() > 0;
Iterator<String> i = pair.iterator();
String tabName = i.next().trim();
if (tabName.length() == 0) {
LOG.info("incorrect format:" + tableCFsConfig);
Expand Down

0 comments on commit a3eeab8

Please sign in to comment.