Details
-
Bug
-
Status: Resolved
-
P3
-
Resolution: Fixed
-
None
-
None
Description
In case of failure, SteamingContext#awaitTerminationOrTimeout and SteamingContext#awaitTermination will both throw an exception, and so state = State.DONE will not be executed in the code block below.
In addition, it would probably make sense to set state = State.FAILED in cases where an exception takes place.
if (isStreamingPipeline()) { // stop streaming context if (timeout > 0) { jssc.awaitTerminationOrTimeout(timeout); } else { jssc.awaitTermination(); } // stop streaming context gracefully, so checkpointing (and other computations) get to // finish before shutdown. jssc.stop(false, gracefully); } state = State.DONE;
Attachments
Issue Links
- links to