Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.0.2, 2.1.0
-
None
Description
The streaming thread in StreamExecution uses the following ways to check if it should exit:
- Catch an InterruptException.
- `StreamExecution.state` is TERMINATED.
when starting and stopping a query quickly, the above two checks may both fail.
- Hit HADOOP-14084 and swallow InterruptException
- StreamExecution.stop is called before `state` becomes `ACTIVE`. Then runBatches changes the state from `TERMINATED` to `ACTIVE`.
If the above cases both happen, the query will hang forever.
Attachments
Issue Links
- is related to
-
HADOOP-14084 Shell.joinThread swallows InterruptedException
- Patch Available
- relates to
-
SPARK-19718 Fix flaky test: org.apache.spark.sql.kafka010.KafkaSourceStressForDontFailOnDataLossSuite: stress test for failOnDataLoss=false
- Resolved
- links to