Skip to content

Commit

Permalink
change order of cleanup staging dir
Browse files Browse the repository at this point in the history
  • Loading branch information
tgravescs committed Sep 29, 2014
1 parent d3cc800 commit f0b6519
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ private[spark] class ApplicationMaster(args: ApplicationMasterArguments,
if (!unregistered) {
// we only want to unregister if we don't want the RM to retry
if (finalStatus == FinalApplicationStatus.SUCCEEDED || isLastAttempt) {
unregister(finalStatus, finalMsg)
cleanupStagingDir()
unregister(finalStatus, finalMsg)
}
}
}
Expand Down

0 comments on commit f0b6519

Please sign in to comment.