mosche commented on code in PR #22620:
URL: https://github.com/apache/beam/pull/22620#discussion_r969328513


##########
runners/spark/src/main/java/org/apache/beam/runners/spark/translation/streaming/SparkRunnerStreamingContextFactory.java:
##########
@@ -85,7 +85,14 @@ public JavaStreamingContext call() throws Exception {
     EvaluationContext ctxt = new EvaluationContext(jsc, pipeline, options, 
jssc);
     // update cache candidates
     SparkRunner.updateCacheCandidates(pipeline, translator, ctxt);
-    pipeline.traverseTopologically(new SparkRunner.Evaluator(translator, 
ctxt));
+    try {
+      pipeline.traverseTopologically(new SparkRunner.Evaluator(translator, 
ctxt));
+    } catch (RuntimeException e) {
+      jssc.stop(false, false);

Review Comment:
   I created a separate issue/PR for this: 
https://github.com/apache/beam/pull/23204



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to