abstractdog commented on code in PR #309: URL: https://github.com/apache/tez/pull/309#discussion_r1342724994
########## tez-api/src/main/java/org/apache/tez/client/TezClientUtils.java: ########## @@ -336,8 +328,13 @@ public static FileSystem ensureStagingDirExists(Configuration conf, UserGroupInformation ugi = UserGroupInformation.getLoginUser(); realUser = ugi.getShortUserName(); currentUser = UserGroupInformation.getCurrentUser().getShortUserName(); - if (fs.exists(stagingArea)) { - FileStatus fsStatus = fs.getFileStatus(stagingArea); + FileStatus fsStatus = null; + try { + fsStatus = fs.getFileStatus(stagingArea); + } catch (FileNotFoundException fnf) { + // Ignore Review Comment: what about returning if ``` if (fsStatus == null) { return fs; } ``` and having the rest of the method unindented -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@tez.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org