hadoop-hdfs-dev 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-9252) Change TestFileTruncate to FsDatasetTestUtils to get block file size and genstamp.
Date Thu, 15 Oct 2015 22:17:05 GMT
Lei (Eddy) Xu created HDFS-9252:
-----------------------------------

             Summary: Change TestFileTruncate to FsDatasetTestUtils to get block file size
and genstamp.
                 Key: HDFS-9252
                 URL: https://issues.apache.org/jira/browse/HDFS-9252
             Project: Hadoop HDFS
          Issue Type: Improvement
    Affects Versions: 2.7.1
            Reporter: Lei (Eddy) Xu
            Assignee: Lei (Eddy) Xu


{{TestFileTruncate}} verifies block size and genstamp by directly accessing the  local filesystem,
e.g.:

{code}
assertTrue(cluster.getBlockMetadataFile(dn0,
   newBlock.getBlock()).getName().endsWith(
   newBlock.getBlock().getGenerationStamp() + ".meta"));
{code}

Lets abstract the fsdataset-special logic behind FsDatasetTestUtils.



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

Mime
View raw message