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] [Assigned] (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 reassigned SPARK-42971:
------------------------------------

    Assignee: Yang Jie

> 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
>
>           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