Skip to content
Snippets Groups Projects
Commit 97eee508 authored by Matei Zaharia's avatar Matei Zaharia
Browse files

Fixes a nasty bug that could happen when tasks fail, because calling

wait() with a timeout of 0 on a Java object means "wait forever".
parent 1e10df0a
No related branches found
No related tags found
No related merge requests found
......@@ -363,7 +363,7 @@ private trait DAGScheduler extends Scheduler with Logging {
val endTime = System.currentTimeMillis() + timeout // TODO: Use pluggable clock for testing
while (eventQueues(runId).isEmpty) {
val time = System.currentTimeMillis()
if (time > endTime) {
if (time >= endTime) {
return None
} else {
lock.wait(endTime - time)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment