spark.apache.org
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2021
08:29 AM
- last edited
4 weeks ago
by
Advika
Per API docs on StreamingQuery.stop(),
https://spark.apache.org/docs/latest/api/scala/org/apache/spark/sql/streaming/StreamingQuery.html
It says, this stops the execution of this query if it is running and waits until the termination of the query execution threads or until a timeout is hit.
This doesn't mean it waits for micro-batch completion. It will interrupt all active threads but wait until the termination or completion if it couldn't interrupt the current "thread" running. Sometimes we use uninterruptible threads, e.g. with Kafka - because interrupting Kafka threads bricks the cluster. All other threads will be interrupted.
- Labels:
-
Structured streaming

