You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yang Jie (Jira)" <ji...@apache.org> on 2021/07/08 12:16:00 UTC
[jira] [Updated] (SPARK-36053) Unify write exception and delete
abnormal disk block object file process
[ https://issues.apache.org/jira/browse/SPARK-36053?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yang Jie updated SPARK-36053:
-----------------------------
Description:
There are some duplicate codes related to cleaning up failed files after DiskBlockObjectWriter writes data abnormally in `BypassMergeSortShuffleWriter`, `ExternalAppendOnlyMap` and `ExternalSorter`, the duplicate codes as follows:
{code:java}
writer.revertPartialWritesAndClose()
if (file.exists()) {
if (!file.delete()) {
logWarning(s"Error deleting ${file}")
}
}
{code}
> Unify write exception and delete abnormal disk block object file process
> ------------------------------------------------------------------------
>
> Key: SPARK-36053
> URL: https://issues.apache.org/jira/browse/SPARK-36053
> Project: Spark
> Issue Type: Improvement
> Components: Spark Core
> Affects Versions: 3.3.0
> Reporter: Yang Jie
> Priority: Minor
>
> There are some duplicate codes related to cleaning up failed files after DiskBlockObjectWriter writes data abnormally in `BypassMergeSortShuffleWriter`, `ExternalAppendOnlyMap` and `ExternalSorter`, the duplicate codes as follows:
> {code:java}
> writer.revertPartialWritesAndClose()
> if (file.exists()) {
> if (!file.delete()) {
> logWarning(s"Error deleting ${file}")
> }
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org