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

Avoid using hard coded datanode data dirs in unit tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.1.0
    • test
    • None
    • Reviewed

    Description

      There are a few unit tests that rely on hard-coded MiniDFSCluster data dir names.

       

      • TestDataNodeVolumeFailureToleration
      • TestDataNodeVolumeFailureReporting
      • TestDiskBalancerCommand
      • TestBlockStatsMXBean
      • TestDataNodeVolumeMetrics
      • TestDFSAdmin
      • TestDataNodeHotSwapVolumes
      • TestDataNodeVolumeFailure

      This ticket is opened to use

      MiniDFSCluster#getInstanceStorageDir(0, 1);
      
      instead of like below
      
      new File(cluster.getDataDirectory(), "data1");

       

      Attachments

        1. HDFS-13251.000.patch
          18 kB
          Ajay Kumar
        2. HDFS-13251.001.patch
          19 kB
          Ajay Kumar
        3. HDFS-13251.002.patch
          20 kB
          Ajay Kumar
        4. HDFS-13251.003.addendum.patch
          2 kB
          Ajay Kumar
        5. HDFS-13251.003.patch
          17 kB
          Ajay Kumar

        Activity

          People

            ajayydv Ajay Kumar
            xyao Xiaoyu Yao
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: