Skip to content

Commit

Permalink
optimize the fix
Browse files Browse the repository at this point in the history
  • Loading branch information
scwf committed Oct 1, 2014
1 parent 3a6c849 commit 984cb12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/org/apache/spark/util/Utils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1472,7 +1472,7 @@ private[spark] object Utils extends Logging {
return true
}
isBindCollision(e.getCause)
case e: MultiException => e.getThrowables.map(ex => isBindCollision(ex)).reduceLeft(_ || _)
case e: MultiException => e.getThrowables.exists(isBindCollision)
case e: Exception => isBindCollision(e.getCause)
case _ => false
}
Expand Down

0 comments on commit 984cb12

Please sign in to comment.