void removeNonOnlineRegions(RegionSizeStore store, Set<RegionInfo> onlineRegions) {
    // We have to remove regions which are no longer online from the store, otherwise they will
    // continue to be sent to the Master which will prevent size report expiration.
    if (onlineRegions.isEmpty()) {
      // Easy-case, no online regions means no size reports
      store.clear();
      return;
    }

    Iterator<Entry<RegionInfo, RegionSize>> iter = store.iterator();
    int numEntriesRemoved = 0;
    while (iter.hasNext()) {
      Entry<RegionInfo, RegionSize> entry = iter.next();
      RegionInfo regionInfo = entry.getKey();
      if (!onlineRegions.contains(regionInfo)) {
        numEntriesRemoved++;
        iter.remove();
      }
    }
    if (LOG.isTraceEnabled()) {
      LOG.trace("Removed " + numEntriesRemoved + " region sizes before reporting to Master "
        + "because they are for non-online regions.");
    }
  }
A Chore which sends the region size reports on this RegionServer to the Master.
hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/RegionSizeReportingChore.java