Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add a warning msg
  • Loading branch information
Udbhav30 committed Aug 24, 2020
commit 502dd08e99eaed2bc71b49cdfb98bdaf3a9cdec1
5 changes: 4 additions & 1 deletion core/src/main/scala/org/apache/spark/util/Utils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,10 @@ private[spark] object Utils extends Logging {
hadoopConf: Configuration): Unit = {
if (isTrashEnabled && hadoopConf.getInt("fs.trash.interval", 0) > 0) {
logDebug(s"will move data ${partitionPath.toString} to trash")
Trash.moveToAppropriateTrash(fs, partitionPath, hadoopConf)
val isSuccess = Trash.moveToAppropriateTrash(fs, partitionPath, hadoopConf)
if (!isSuccess) {
logWarning(s"Failed to move data ${partitionPath.toString} to trash")
}
} else {
fs.delete(partitionPath, true)
}
Expand Down