diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/MasterProcedureScheduler.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/MasterProcedureScheduler.java index 1a393073d52..d78efc6d0b3 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/MasterProcedureScheduler.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/MasterProcedureScheduler.java @@ -247,6 +247,10 @@ public class MasterProcedureScheduler extends AbstractProcedureScheduler { clear(tableMap, tableRunQueue, TABLE_QUEUE_KEY_COMPARATOR); tableMap = null; + // Remove Peers + clear(peerMap, peerRunQueue, PEER_QUEUE_KEY_COMPARATOR); + peerMap = null; + assert size() == 0 : "expected queue size to be 0, got " + size(); }