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 dd88444 commit 3da6547Copy full SHA for 3da6547
streaming/src/main/scala/org/apache/spark/streaming/StreamingContext.scala
@@ -521,7 +521,7 @@ class StreamingContext private[streaming] (
521
* - StreamingContextState.STOPPED - The context has been stopped and cannot be used any more.
522
*/
523
@DeveloperApi
524
- def getState(): StreamingContextState = {
+ def getState(): StreamingContextState = synchronized {
525
state
526
}
527
0 commit comments