[
https://issues.apache.org/jira/browse/HADOOP-959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Doug Cutting updated HADOOP-959:
--------------------------------
Resolution: Fixed
Fix Version/s: 0.11.0
Status: Resolved (was: Patch Available)
I just committed this. Thanks, Dhruba!
> 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
> Fix For: 0.11.0
>
> Attachments: renameToWindows2.patch
>
>
> 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.