Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-9252

Change TestFileTruncate to use FsDatasetTestUtils to get block file size and genstamp.

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7.1
    • 2.8.0, 3.0.0-alpha1
    • None
    • None

    Description

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

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

      Lets abstract the fsdataset-special logic behind FsDatasetTestUtils.

      Attachments

        1. HDFS-9252.04.patch
          9 kB
          Lei (Eddy) Xu
        2. HDFS-9252.03.patch
          9 kB
          Lei (Eddy) Xu
        3. HDFS-9252.02.patch
          9 kB
          Lei (Eddy) Xu
        4. HDFS-9252.01.patch
          8 kB
          Lei (Eddy) Xu
        5. HDFS-9252.00.patch
          8 kB
          Lei (Eddy) Xu

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            eddyxu Lei (Eddy) Xu
            eddyxu Lei (Eddy) Xu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment