Skip to content

Commit e21488d

Browse files
committed
Minor update
1 parent 1a371d9 commit e21488d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/pyspark/streaming/context.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ def getActive(cls):
189189
if activeJvmContextOption.isEmpty():
190190
cls._activeContext = None
191191
elif activeJvmContextOption.get().hashCode() != activePythonContextJavaId:
192+
cls._activeContext = None
192193
raise Exception("JVM's active JavaStreamingContext is not the JavaStreamingContext "
193194
"backing the action Python StreamingContext. This is unexpected.")
194195
return cls._activeContext

0 commit comments

Comments
 (0)