[
https://issues.apache.org/jira/browse/HDFS-13714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16530423#comment-16530423
]
Lukas Majercak commented on HDFS-13714:
---------------------------------------
The rename used is standard Java. From docs:
{code:java}
Renames the file denoted by this abstract pathname.
*
* <p> Many aspects of the behavior of this method are inherently
* platform-dependent: The rename operation might not be able to move a
* file from one filesystem to another, it might not be atomic, and it
* might not succeed if a file with the destination abstract pathname
* already exists. The return value should always be checked to make sure
* that the rename operation was successful.{code}
Seems like this fails on Windows. Proposing to change to delete() followed by
renameTo()
> Fix TestNameNodePrunesMissingStorages test failures on Windows
> --------------------------------------------------------------
>
> Key: HDFS-13714
> URL: https://issues.apache.org/jira/browse/HDFS-13714
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: hdfs, namenode, test
> Affects Versions: 3.1.0, 2.9.1, 3.2.0
> Reporter: Lukas Majercak
> Assignee: Lukas Majercak
> Priority: Major
> Labels: windows
> Attachments: HDFS-13714.000.patch
>
>
> Failed here:
> https://builds.apache.org/job/hadoop-trunk-win/508/testReport/org.apache.hadoop.hdfs.server.blockmanagement/TestNameNodePrunesMissingStorages/testRenamingStorageIds/
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]