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

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

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.1
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Target Version/s:

      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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: