We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d94930 commit a9806aaCopy full SHA for a9806aa
core/src/main/scala/org/apache/spark/util/Utils.scala
@@ -280,7 +280,10 @@ private[spark] object Utils extends Logging {
280
hadoopConf: Configuration): Unit = {
281
if (isTrashEnabled && hadoopConf.getInt("fs.trash.interval", 0) > 0) {
282
logDebug(s"will move data ${partitionPath.toString} to trash")
283
- Trash.moveToAppropriateTrash(fs, partitionPath, hadoopConf)
+ val isSuccess = Trash.moveToAppropriateTrash(fs, partitionPath, hadoopConf)
284
+ if (!isSuccess) {
285
+ logWarning(s"Failed to move data ${partitionPath.toString} to trash")
286
+ }
287
} else {
288
fs.delete(partitionPath, true)
289
}
0 commit comments