Yang Jie created SPARK-58770:
--------------------------------
Summary: Assign a name to the error condition
_LEGACY_ERROR_TEMP_3016-3020
Key: SPARK-58770
URL: https://issues.apache.org/jira/browse/SPARK-58770
Project: Spark
Issue Type: Sub-task
Components: Spark Core
Affects Versions: 5.0.0
Reporter: Yang Jie
Convert the five `_LEGACY_ERROR_TEMP_*` conditions in `SparkCoreErrors` that
cover RDD checkpointing -- `_3016` through `_3020` -- into proper error
conditions.
Four get user-facing names: `CHECKPOINT_DIRECTORY_NOT_SET` (55019),
`INVALID_CHECKPOINT_FILE` (58030), `FAILED_CREATE_CHECKPOINT_DIRECTORY` (58030)
and `CHECKPOINT_RDD_PARTITION_COUNT_MISMATCH` (58030). The fifth, `_3020`, is
an unreachable defensive branch whose guard sits two lines above its only
construction site, so it becomes `SparkException.internalError` and its JSON
entry is deleted.
None of the five had any test coverage; three `checkError` tests are added.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]