[
https://issues.apache.org/jira/browse/HDFS-4705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ivan Mitic updated HDFS-4705:
-----------------------------
Attachment: HDFS-4705.2.patch
Hi Chris,
I spent some time thinking here, and wasn’t able to come up with anything
better than what you suggested. Basically, the value for
{{dfs.namenode.name.dir}} ends up being an invalid URI on Windows because of
how its value is expanded. In production, passing a valid URI will work, so we
don’t have any problems. In test, reasonable approach is to be explicit and set
{{dfs.namenode.name.dir}} to a value that is a valid URI on both Unix and
Windows platforms.
I went ahead and fixed all above tests with the similar approach. This will get
all of them to pass, with the exception of TestCheckpoint, which will continue
to fail on Windows for a different reason.
Let me know if you have any feedback on the patch. And big thanks for your
proactive help!
> TestAllowFormat fails on Windows because of invalid dfs.namenode.name.dir
> -------------------------------------------------------------------------
>
> Key: HDFS-4705
> URL: https://issues.apache.org/jira/browse/HDFS-4705
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 3.0.0
> Reporter: Ivan Mitic
> Assignee: Ivan Mitic
> Priority: Minor
> Attachments: HDFS-4705.1.patch, HDFS-4705.2.patch
>
>
> Test fails on Windows with the below exception:
> {code}
> testFormatShouldBeIgnoredForNonFileBasedDirs(org.apache.hadoop.hdfs.server.namenode.TestAllowFormat)
> Time elapsed: 49 sec <<< ERROR!
> java.io.IOException: No image directories available!
> at
> org.apache.hadoop.hdfs.server.namenode.FSImage.saveFSImageInAllDirs(FSImage.java:912)
> at
> org.apache.hadoop.hdfs.server.namenode.FSImage.saveFSImageInAllDirs(FSImage.java:905)
> at
> org.apache.hadoop.hdfs.server.namenode.FSImage.format(FSImage.java:151)
> at
> org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:758)
> at
> org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:259)
> at
> org.apache.hadoop.hdfs.server.namenode.TestAllowFormat.testFormatShouldBeIgnoredForNonFileBasedDirs(TestAllowFormat.java:181)
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira