Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
3.1.0
-
None
-
None
Description
In SPARK-29649, we catch `FileAlreadyExistsException` in `FileFormatWriter` and fail fast for the task set to prevent task retry.
One concern for this approach is we might break some cases where users rely on task retry and their tasks throw `FileAlreadyExistsException` in user code, instead of Spark internally.
To take care both cases, better approach is to throw a Spark specific exception for commit protocol errors.