spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Shar (JIRA)" <>
Subject [jira] [Created] (SPARK-18027) .sparkStaging not clean on error
Date Thu, 20 Oct 2016 11:05:58 GMT
David Shar created SPARK-18027:

             Summary: .sparkStaging not clean on error
                 Key: SPARK-18027
             Project: Spark
          Issue Type: Bug
          Components: YARN
    Affects Versions: 1.6.0
            Reporter: David Shar


It seems that SPARK-7705 didn't fix all issues with .sparkStaging folder cleanup.

in Client.scala:monitorApplication 
 val report: ApplicationReport =
        try {
        } catch {
          case e: ApplicationNotFoundException =>
            logError(s"Application $appId not found.")
            return (YarnApplicationState.KILLED, FinalApplicationStatus.KILLED)
          case NonFatal(e) =>
            logError(s"Failed to contact YARN for application $appId.", e)
            return (YarnApplicationState.FAILED, FinalApplicationStatus.FAILED)
if (state == YarnApplicationState.FINISHED ||
        state == YarnApplicationState.FAILED ||
        state == YarnApplicationState.KILLED) {
        return (state, report.getFinalApplicationStatus)

In case of ApplicationNotFoundException, we don't cleanup the sparkStaging folder.

I believe we call cleanupStagingDir(appId) on the catch clause above.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message