[
https://issues.apache.org/jira/browse/HDFS-8554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chris Nauroth updated HDFS-8554:
--------------------------------
Attachment: HDFS-8554.001.patch
Here is a patch correcting the 2 problems:
# The test code built the test data directories using string concatenation. It
used {{File.separator}}, but at this point, {{test.build.data}} has forward
slashes instead of back slashes. Passing through a {{File}} instance converts
the slashes. Then, calling {{toURI}} gives a result in URI format, which
avoids spurious warnings in the logs about not following proper URI syntax.
# The test works by unpacking a tarball containing blocks from an HDFS version
before the use of block ID-based layout. On Windows, we don't call the {{tar}}
utility and instead unpack tarballs in Java code. {{FileUtil#unpackEntries}}
was not coded to be aware of hard links, so it would incorrectly handle them by
creating a 0-byte file.
> TestDatanodeLayoutUpgrade fails on Windows.
> -------------------------------------------
>
> Key: HDFS-8554
> URL: https://issues.apache.org/jira/browse/HDFS-8554
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: test
> Reporter: Chris Nauroth
> Assignee: Chris Nauroth
> Attachments: HDFS-8554.001.patch
>
>
> {{TestDatanodeLayoutUpgrade}} fails on Windows due to some Linux-specific
> file system path handling and incorrect handling of hard links unpacked from
> a tarball.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)