Skip to content

Commit

Permalink
[SPARK-7236] Fix to prevent AkkaUtils askWithReply from sleeping on f…
Browse files Browse the repository at this point in the history
…inal attempt
  • Loading branch information
BryanCutler committed May 4, 2015
1 parent 49549d5 commit 653a07b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/main/scala/org/apache/spark/util/AkkaUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ private[spark] object AkkaUtils extends Logging {
lastException = e
logWarning(s"Error sending message [message = $message] in $attempts attempts", e)
}
Thread.sleep(retryInterval)
if (attempts < maxAttempts) {
Thread.sleep(retryInterval)
}
}

throw new SparkException(
Expand Down

0 comments on commit 653a07b

Please sign in to comment.