Skip to content

Commit

Permalink
add a warning msg
Browse files Browse the repository at this point in the history
  • Loading branch information
Udbhav30 committed Aug 21, 2020
1 parent 8d94930 commit a9806aa
Showing 1 changed file with 4 additions and 1 deletion.
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

0 comments on commit a9806aa

Please sign in to comment.