Github user tdas commented on a diff in the pull request: https://github.com/apache/spark/pull/20622#discussion_r170389827 --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/continuous/ContinuousExecution.scala --- @@ -266,6 +264,12 @@ class ContinuousExecution( SQLExecution.withNewExecutionId( sparkSessionForQuery, lastExecution)(lastExecution.toRdd) } + } catch { + case t: Throwable + if StreamExecution.isInterruptionException(t) && state.get() == RECONFIGURING => + stopSources() + sparkSession.sparkContext.cancelJobGroup(runId.toString) --- End diff -- nit: I think its cleaner to put this in the `finally` since this is the invariant we want when this entire method terminates.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org