jiangxb1987 commented on a change in pull request #26312: [SPARK-29649][SQL]
Stop task set if FileAlreadyExistsException was thrown when writing to output
file
URL: https://github.com/apache/spark/pull/26312#discussion_r345588951
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/FileFormatWriter.scala
##########
@@ -281,6 +281,10 @@ object FileFormatWriter extends Logging {
} catch {
case e: FetchFailedException =>
throw e
+ case f: FileAlreadyExistsException =>
+ // If any output file to write already exists, it does not make sense
to re-run this task.
+ // We throw the exception and let Executor throw ExceptionFailure to
about the job.
Review comment:
nit: `about` -> `abort`
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]