Skip to content

Commit

Permalink
keep schedule() calling in the main thread
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingCat committed May 5, 2014
1 parent fb05432 commit 02b37ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ private[spark] class Master(
}
}

case TriggerSchedule => schedule()

case RevokedLeadership => {
logError("Leadership has been revoked -- master shutting down.")
System.exit(0)
Expand Down Expand Up @@ -448,7 +450,7 @@ private[spark] class Master(
}

state = RecoveryState.ALIVE
schedule()
self ! TriggerSchedule
logInfo("Recovery complete - resuming operations!")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@ private[master] object MasterMessages {
case object RequestWebUIPort

case class WebUIPortResponse(webUIBoundPort: Int)

case object TriggerSchedule
}

0 comments on commit 02b37ca

Please sign in to comment.