Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
keep schedule() calling in the main thread
  • Loading branch information
CodingCat committed May 5, 2014
commit 02b37ca7e9256628e31cd56ba21d7e579c1233d6
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is no longer used.

}