Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.7.1, 2.7.3, 3.0.0-alpha1, 3.0.0-alpha2
-
Reviewed
Description
The NativeIO.c#renameTo0 currently uses MoveFile Windows system call, which fails when renaming a file to a destination that already exists.
This makes the TestRollingUpgrade.testRollback test fail on Windows, as during that execution, a DataNode tries to rename block's meta file to a destination that exists.
The proposal is to change to using MoveFileEx Windows call, and passing in MOVEFILE_REPLACE_EXISTING flag to force the renaming.
Attachments
Attachments
Issue Links
- is broken by
-
HADOOP-9437 TestNativeIO#testRenameTo fails on Windows due to assumption that POSIX errno is embedded in NativeIOException
- Closed
- is related to
-
HADOOP-12550 NativeIO#renameTo on Windows cannot replace an existing file at the destination.
- Resolved