HyukjinKwon commented on code in PR #36589:
URL: https://github.com/apache/spark/pull/36589#discussion_r875529189
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/StreamExecution.scala:
##########
@@ -647,6 +655,10 @@ object StreamExecution {
} else {
false
}
+ // py4j.Py4JException - with pinned thread mode on, the exception can be
interrupted by Py4J
+ // access, for example, in
`DataFrameWriter.foreachBatch`. See also
+ // SPARK-39218.
+ case e: py4j.Py4JException =>
PROXY_ERROR.findFirstIn(e.getMessage).isDefined
Review Comment:
To fully address, we should have a way to pass the original exception around
.. but seems not easy at this moment. This is more just a workaround for now.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]