Index: src/main/java/org/apache/hadoop/hbase/HBaseFileSystem.java =================================================================== --- src/main/java/org/apache/hadoop/hbase/HBaseFileSystem.java (revision 1493637) +++ src/main/java/org/apache/hadoop/hbase/HBaseFileSystem.java (working copy) @@ -259,9 +259,9 @@ */ public static boolean renameAndSetModifyTime(final FileSystem fs, Path src, Path dest) throws IOException { + // set the modify time for TimeToLive Cleaner + fs.setTimes(src, EnvironmentEdgeManager.currentTimeMillis(), -1); if (!renameDirForFileSystem(fs, src, dest)) return false; - // set the modify time for TimeToLive Cleaner - fs.setTimes(dest, EnvironmentEdgeManager.currentTimeMillis(), -1); return true; } }