Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve Forever Waiting Issue in FlintJob for Streaming Jobs (#156)
This commit specifically tackles the issue detailed in #116. Previously, regardless of whether a streaming job was successfully initiated or encountered syntax/semantic errors during creation, the main thread would indefinitely wait for the streaming job's termination. This behavior often led to situations where the main thread would hang indefinitely, waiting for a streaming job that had not even started due to errors. This update introduces a change: spark.streams.awaitAnyTermination() is now invoked only if the streaming query is executed without encountering any exceptions. Testing Performed: * Replicated the original issue to confirm its presence. * Applied the fix and verified that the issue of indefinite waiting has been successfully resolved. Signed-off-by: Kaituo Li <[email protected]>
- Loading branch information