HBASE-18788 NPE when running TestSerialReplication (Fabrice Monnier)
This commit is contained in:
parent
9ae2750588
commit
6e772096ad
|
@ -83,8 +83,12 @@ public class ReplicationMetaCleaner extends ScheduledChore {
|
||||||
|
|
||||||
List<ReplicationPeerDescription> peers = admin.listReplicationPeers();
|
List<ReplicationPeerDescription> peers = admin.listReplicationPeers();
|
||||||
for (ReplicationPeerDescription peerDesc : peers) {
|
for (ReplicationPeerDescription peerDesc : peers) {
|
||||||
for (Map.Entry<TableName, List<String>> map : peerDesc.getPeerConfig().getTableCFsMap()
|
Map<TableName, List<String>> tableCFsMap = peerDesc.getPeerConfig().getTableCFsMap();
|
||||||
.entrySet()) {
|
if (tableCFsMap ==null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (Map.Entry<TableName, List<String>> map : tableCFsMap.entrySet()) {
|
||||||
if (serialTables.containsKey(map.getKey().getNameAsString())) {
|
if (serialTables.containsKey(map.getKey().getNameAsString())) {
|
||||||
serialTables.get(map.getKey().getNameAsString()).add(peerDesc.getPeerId());
|
serialTables.get(map.getKey().getNameAsString()).add(peerDesc.getPeerId());
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue