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

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

    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.00.patch
          8 kB
          Lei (Eddy) Xu
        2. HDFS-9252.01.patch
          8 kB
          Lei (Eddy) Xu
        3. HDFS-9252.02.patch
          9 kB
          Lei (Eddy) Xu
        4. HDFS-9252.03.patch
          9 kB
          Lei (Eddy) Xu
        5. HDFS-9252.04.patch
          9 kB
          Lei (Eddy) Xu

        Activity

          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: