TestCheckpoint fails on Windows
-------------------------------

                 Key: HADOOP-959
                 URL: https://issues.apache.org/jira/browse/HADOOP-959
             Project: Hadoop
          Issue Type: Bug
          Components: dfs
            Reporter: dhruba borthakur
         Assigned To: dhruba borthakur


The new unit test that tests periodic checkpointing fails on Windows. The 
problem is that the method FSEditLog.purgeEditLog() uses renameTo() to 
atomically move edits.new to edits

File.renameTo() fails on Windows is not atomic: 
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4017593

I propose that we change this code to first try the renameTo(). If it fails, 
then it deletes edits and then renames edits.new to edits. 

 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to