[
https://issues.apache.org/jira/browse/TEZ-1216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14093134#comment-14093134
]
ASF GitHub Bot commented on TEZ-1216:
-------------------------------------
Github user bikassaha commented on a diff in the pull request:
https://github.com/apache/tez/pull/3#discussion_r16071903
--- Diff: tez-dag/src/main/java/org/apache/tez/dag/app/DAGAppMaster.java ---
@@ -1531,6 +1542,35 @@ public synchronized void serviceStop() throws
Exception {
this.dagSubmissionTimer.cancel();
}
stopServices();
+
+ // Given pre-emption, we should delete tez scratch dir only if
unregister is
+ // successful
+ boolean deleteTezScratchData = this.amConf.getBoolean(
+ TezConfiguration.TEZ_AM_STAGING_SCRATCH_DATA_AUTO_DELETE,
+ TezConfiguration.TEZ_AM_STAGING_SCRATCH_DATA_AUTO_DELETE_DEFAULT);
+ LOG.info("Checking whether tez scratch data dir should be deleted,
deleteTezScratchData="
+ + deleteTezScratchData);
--- End diff --
LOG.Debug?
> Clean up the staging directory when the application completes
> -------------------------------------------------------------
>
> Key: TEZ-1216
> URL: https://issues.apache.org/jira/browse/TEZ-1216
> Project: Apache Tez
> Issue Type: Sub-task
> Reporter: Mohammad Kamrul Islam
> Assignee: Hitesh Shah
> Priority: Critical
> Attachments: TEZ-1216.1.patch, TEZ-1216.2.patch
>
>
> This JIRA is a part of TEZ-693. It includes the removal of stage directory
> when application's last attempt is done. In addition, it will check a config
> to determine whether to auto clean it or not.
--
This message was sent by Atlassian JIRA
(v6.2#6252)