HBASE-20585 Need to clear peer map when clearing MasterProcedureScheduler

This commit is contained in:
zhangduo 2018-05-15 21:24:13 +08:00
parent 60b8344cf1
commit 82e3011166
1 changed files with 4 additions and 0 deletions

View File

@ -247,6 +247,10 @@ public class MasterProcedureScheduler extends AbstractProcedureScheduler {
clear(tableMap, tableRunQueue, TABLE_QUEUE_KEY_COMPARATOR); clear(tableMap, tableRunQueue, TABLE_QUEUE_KEY_COMPARATOR);
tableMap = null; tableMap = null;
// Remove Peers
clear(peerMap, peerRunQueue, PEER_QUEUE_KEY_COMPARATOR);
peerMap = null;
assert size() == 0 : "expected queue size to be 0, got " + size(); assert size() == 0 : "expected queue size to be 0, got " + size();
} }