@Override protected void serviceStop() throws Exception { try { if(isLastAMRetry) { cleanupStagingDir(); } else { LOG.info("Skipping cleaning up the staging dir. " + "assuming AM will be retried."); } } catch (IOException io) { LOG.error("Failed to cleanup staging dir: ", io); } super.serviceStop(); } }
@Override protected void serviceStop() throws Exception { try { if(isLastAMRetry) { cleanupStagingDir(); } else { LOG.info("Skipping cleaning up the staging dir. " + "assuming AM will be retried."); } } catch (IOException io) { LOG.error("Failed to cleanup staging dir: ", io); } super.serviceStop(); } }
@Override protected void serviceStop() throws Exception { try { if(isLastAMRetry) { cleanupStagingDir(); } else { LOG.info("Skipping cleaning up the staging dir. " + "assuming AM will be retried."); } } catch (IOException io) { LOG.error("Failed to cleanup staging dir: ", io); } super.serviceStop(); } }