Skip to content

Commit a9806aa

Browse files
committed
add a warning msg
1 parent 8d94930 commit a9806aa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/src/main/scala/org/apache/spark/util/Utils.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,10 @@ private[spark] object Utils extends Logging {
280280
hadoopConf: Configuration): Unit = {
281281
if (isTrashEnabled && hadoopConf.getInt("fs.trash.interval", 0) > 0) {
282282
logDebug(s"will move data ${partitionPath.toString} to trash")
283-
Trash.moveToAppropriateTrash(fs, partitionPath, hadoopConf)
283+
val isSuccess = Trash.moveToAppropriateTrash(fs, partitionPath, hadoopConf)
284+
if (!isSuccess) {
285+
logWarning(s"Failed to move data ${partitionPath.toString} to trash")
286+
}
284287
} else {
285288
fs.delete(partitionPath, true)
286289
}

0 commit comments

Comments
 (0)