Skip to content

Commit

Permalink
Fixed bug again
Browse files Browse the repository at this point in the history
  • Loading branch information
tdas committed May 12, 2015
1 parent 99c7678 commit 7dadfc3
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -531,16 +531,15 @@ class StreamingContext private[streaming] (
def start(): Unit = synchronized {
state match {
case INITIALIZED =>
import StreamingContext._
validate()
startSite.set(DStream.getCreationSite())
sparkContext.setCallSite(startSite.get)
ACTIVATION_LOCK.synchronized {
assertNoOtherContextIsActive()
StreamingContext.ACTIVATION_LOCK.synchronized {
StreamingContext.assertNoOtherContextIsActive()
scheduler.start()
uiTab.foreach(_.attach())
state = StreamingContextState.ACTIVE
setActiveContext(this)
StreamingContext.setActiveContext(this)
}
logInfo("StreamingContext started")
case ACTIVE =>
Expand Down

0 comments on commit 7dadfc3

Please sign in to comment.