hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lei (Eddy) Xu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-9251) Refactor TestWriteToReplica and TestFsDatasetImpl to avoid explicitly creating Files in tests code.
Date Thu, 15 Oct 2015 20:34:05 GMT
Lei (Eddy) Xu created HDFS-9251:
-----------------------------------

             Summary: Refactor TestWriteToReplica and TestFsDatasetImpl to avoid explicitly
creating Files in tests code.
                 Key: HDFS-9251
                 URL: https://issues.apache.org/jira/browse/HDFS-9251
             Project: Hadoop HDFS
          Issue Type: Improvement
          Components: HDFS
    Affects Versions: 2.7.1
            Reporter: Lei (Eddy) Xu
            Assignee: Lei (Eddy) Xu


In {{TestWriteToReplica}} and {{TestFsDatasetImpl}}, tests directly creates block and metadata
files:

{code}
replicaInfo.getBlockFile().createNewFile();
replicaInfo.getMetaFile().createNewFile();
{code}

It leaks the implementation details of {{FsDatasetImpl}}. This JIRA proposes to use {{FsDatasetImplTestUtils}}
(HDFS-9188) to create replicas. 



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

Mime
View raw message