hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-8834) TestReplication#testReplicationWhenBlockCorruption is not valid after HDFS-6482
Date Wed, 29 Jul 2015 14:20:09 GMT

    [ https://issues.apache.org/jira/browse/HDFS-8834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14646099#comment-14646099
] 

Hudson commented on HDFS-8834:
------------------------------

FAILURE: Integrated in Hadoop-Hdfs-trunk #2198 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/2198/])
HDFS-8834. TestReplication is not valid after HDFS-6482. (Contributed by Lei Xu) (lei: rev
f4f1b8b267703b8bebab06e17e69a4a4de611592)
* hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestReplication.java


> TestReplication#testReplicationWhenBlockCorruption is not valid after HDFS-6482
> -------------------------------------------------------------------------------
>
>                 Key: HDFS-8834
>                 URL: https://issues.apache.org/jira/browse/HDFS-8834
>             Project: Hadoop HDFS
>          Issue Type: Test
>          Components: datanode
>    Affects Versions: 2.7.1
>            Reporter: Lei (Eddy) Xu
>            Assignee: Lei (Eddy) Xu
>            Priority: Minor
>              Labels: testing
>             Fix For: 3.0.0, 2.8.0
>
>         Attachments: HDFS-8834.00.patch
>
>
> {{TestReplication#testReplicationWhenBlockCorruption}} assumes DN has one level of directory:
> {code}
> File[] listFiles = participatedNodeDirs.listFiles();
> {code}
> However, HDFS-6482 changed the layout of block directories and used two level directories,
which makes the following code invalidate (not running).
> {code}
> for (File file : listFiles) {
>   if (file.getName().startsWith(Block.BLOCK_FILE_PREFIX)
>       && !file.getName().endsWith("meta")) {
>       blockFile = file.getName();
>       for (File file1 : nonParticipatedNodeDirs) {
>         file1.mkdirs();
>         new File(file1, blockFile).createNewFile();
>         new File(file1, blockFile + "_1000.meta").createNewFile();
>       }
>     break;
>     }
>  }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message