public void clearAllSessions() {
    for (HashMap<Long, BootstrapSession> sessions : bootstrapSessionsMap.values()) {
      for (BootstrapSession session : sessions.values()) {
        // Enable compaction for the blob store
        controlCompactionForBlobStore(session.getPartitionId(), true);
        session.stop();
      }
    }
    bootstrapSessionsMap.clear();
  }
Clears all bootstrap sessions.
This method stops all sessions and clears the map.
ambry-store/src/main/java/com/github/ambry/store/BootstrapSessionManager.java