You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2023/03/30 04:54:00 UTC

[jira] [Resolved] (SPARK-42971) When processing the WorkDirCleanup event, if appDirs is empty, should print workdir

     [ https://issues.apache.org/jira/browse/SPARK-42971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon resolved SPARK-42971.
----------------------------------
    Fix Version/s: 3.4.0
       Resolution: Fixed

Issue resolved by pull request 40597
[https://github.com/apache/spark/pull/40597]

> When processing the WorkDirCleanup event, if appDirs is empty, should print workdir 
> ------------------------------------------------------------------------------------
>
>                 Key: SPARK-42971
>                 URL: https://issues.apache.org/jira/browse/SPARK-42971
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 3.4.0, 3.5.0
>            Reporter: Yang Jie
>            Assignee: Yang Jie
>            Priority: Major
>             Fix For: 3.4.0
>
>
>           val appDirs = workDir.listFiles()
>           if (appDirs == null) {
>             throw new IOException(
>               s"ERROR: Failed to list files in ${appDirs.mkString("dirs(", ", ", ")")}")
>           }
>  
> Otherwise, npe will be thrown here when appDirs is null
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org