We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d56106 commit dd4e702Copy full SHA for dd4e702
streaming/src/main/scala/org/apache/spark/streaming/StreamingContext.scala
@@ -591,6 +591,7 @@ class StreamingContext private[streaming] (
591
* received data to be completed
592
*/
593
def stop(stopSparkContext: Boolean, stopGracefully: Boolean): Unit = synchronized {
594
+ state = STOPPED
595
state match {
596
case INITIALIZED =>
597
logWarning("StreamingContext has not been started yet")
@@ -607,7 +608,6 @@ class StreamingContext private[streaming] (
607
608
if (stopSparkContext) sc.stop()
609
uiTab.foreach(_.detach())
610
// The state should always be Stopped after calling `stop()`, even if we haven't started yet:
- state = STOPPED
611
}
612
613
0 commit comments