Skip to content

Commit

Permalink
Clarify the reason for the special exception handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcelo Vanzin committed Feb 10, 2015
1 parent 05bfc08 commit df82427
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ object SparkSubmit {
} catch {
case e: Exception =>
// Hadoop's AuthorizationException suppresses the exception's stack trace, which
// confuses the JVM when propagating it. Instead, detect exceptions with empty
// stack traces here, and treat them differently.
// makes the message printed to the output by the JVM not very helpful. Instead,
// detect exceptions with empty stack traces here, and treat them differently.
if (e.getStackTrace().length == 0) {
printStream.println(s"ERROR: ${e.getClass().getName()}: ${e.getMessage()}")
exitFn()
Expand Down

0 comments on commit df82427

Please sign in to comment.