We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80b3668 commit a3eeab8Copy full SHA for a3eeab8
hbase-client/src/main/java/org/apache/hadoop/hbase/client/replication/ReplicationPeerConfigUtil.java
@@ -125,7 +125,13 @@ public static ReplicationProtos.TableCF[] convert(String tableCFsConfig) {
125
}
126
// 2 split to "table" and "cf1,cf2"
127
// for each table: "table#cf1,cf2" or "table"
128
- Iterator<String> i = Splitter.on(':').split(tab).iterator();
+ List<String> pair = Splitter.on(':').splitToList(tab);
129
+ if (pair.size() > 2) {
130
+ LOG.info("incorrect format:" + tableCFsConfig);
131
+ continue;
132
+ }
133
+ assert pair.size() > 0;
134
+ Iterator<String> i = pair.iterator();
135
String tabName = i.next().trim();
136
if (tabName.length() == 0) {
137
LOG.info("incorrect format:" + tableCFsConfig);
0 commit comments