hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Nauroth (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-8554) TestDatanodeLayoutUpgrade fails on Windows.
Date Sat, 06 Jun 2015 14:36:00 GMT

     [ 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

View raw message