/** * Actions to take when the AM container is completed * @param containerId container ID * @throws IOException problems */ public void onAMContainerFinished(ContainerId containerId) throws IOException { LOG.info("AM Container {} finished, purging application attempt records", containerId); // remove all application attempt entries purgeAppAttemptRecords(containerId.getApplicationAttemptId()); // also treat as a container finish to remove container // level records for the AM container onContainerFinished(containerId); }