fusheng9399 commented on code in PR #49833: URL: https://github.com/apache/spark/pull/49833#discussion_r1945961066
########## core/src/main/scala/org/apache/spark/util/HadoopFSUtils.scala: ########## @@ -250,8 +250,15 @@ private[spark] object HadoopFSUtils extends Logging { "method" -> u.getStackTrace.head.getMethodName)) } - val filteredStatuses = - statuses.filterNot(status => shouldFilterOutPathName(status.getPath.getName)) + val filteredStatuses = { + try { + statuses.filterNot(status => shouldFilterOutPathName(status.getPath.getName)) + } catch { + case e: Exception => + logError(s"Failed to filter out path names from ${path.toString}", e) + throw SparkException.internalError(s"Unexpected statuses for path ${path.toString}", e) Review Comment: No, users cannot face this error because it is an internal error at the spark internal layer, hence the use of "internalError". It is difficult to repro, as multiple attempts have failed to repro the issue. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org