Zifei Feng created SPARK-59623:
----------------------------------
Summary: Spark Connect: Race condition in Streaming Query Listener
Removal
Key: SPARK-59623
URL: https://issues.apache.org/jira/browse/SPARK-59623
Project: Spark
Issue Type: Bug
Components: Structured Streaming
Affects Versions: 4.0.4
Reporter: Zifei Feng
Previously, {{StreamingQueryListenerBus.remove}} called
{{self._execution_thread.join()}} while holding {{{}self._lock{}}}. If the
event thread had already received an event and was entering
{{{}post_to_all{}}}, it needed the same lock to dispatch that event before it
could terminate. The remover waited for the event thread, while the event
thread waited for the remover's lock, causing a deadlock
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]