[ https://issues.apache.org/jira/browse/SPARK-42971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17706671#comment-17706671 ]
Snoot.io commented on SPARK-42971: ---------------------------------- User 'LuciferYang' has created a pull request for this issue: 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 > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org