MaxGekk commented on code in PR #36704: URL: https://github.com/apache/spark/pull/36704#discussion_r886901736
########## sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/StreamExecution.scala: ########## @@ -319,7 +320,8 @@ abstract class StreamExecution( // This is a workaround for HADOOP-12074: `Shell.runCommand` converts `InterruptedException` // to `new IOException(ie.toString())` before Hadoop 2.8. updateStatusMessage("Stopped") - case e: Throwable => + case t: Throwable => + val e = QueryExecution.toInternalError(msg = s"Execution of the stream $name failed.", t) Review Comment: v2 invokes `executedPlan()` at: https://github.com/apache/spark/blob/8fab5978e30db4f2420d7830956462bd3e50ef33/sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/MicroBatchExecution.scala#L651 in which we convert the exception. but v1 gets the exception at another line: https://github.com/apache/spark/blob/8fab5978e30db4f2420d7830956462bd3e50ef33/sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/MicroBatchExecution.scala#L548 -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org