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

Über-jira: Test Improvement by adding missing test cases for existing code

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • test
    • None

    Description

      We have covered some test cases in our nightly run and we'd like to backport those test cases to the community code branch. This work includes the efforts but not limited to:

      1. Add more meaningful test cases for existing code so it's hard to break it as stability and compatibility should always be guarded if possible
      2. Refactor existing tests that share common code snippet (e.g. helper methods) and/or logic (e.g. set up a MiniDFSCluster). One approach that is not popular (which it should) is @Parameterized tests
      3. Reduce unnecessary overhead in unit tests (e.g. long interval sleep, build MiniDFSCluster multiple times instead of reusing the same one). Some of the cases were addressed by HDFS-10666.

      This is not a long-term work to cover all future improvement in unit tests. We'll be happy to resolve this after our internal test cases (will file separate JIRAs for that) are mostly addressed/considered.

      Attachments

        Issue Links

          1.
          Add unit tests for HDFS command 'dfs -tail' and 'dfs -stat' Sub-task Resolved Mingliang Liu
          2.
          Refactor TestDFSShell by setting up MiniDFSCluser once for all commands test Sub-task Resolved Mingliang Liu
          3.
          Add unit tests for Trash with HDFS encryption zones Sub-task Resolved Hanisha Koneru
          4.
          Adding additional unit tests for Trash (II) Sub-task Resolved Weiwei Yang
          5.
          TestDFSShell.testStat fails intermittently Sub-task Resolved Eric Badger
          6.
          Add unit tests to verify ACLs in safemode Sub-task Closed Xiaobing Zhou
          7.
          Add more unit tests for ACLs Sub-task Open Namit Maheshwari
          8.
          Add unit test for HDFS command 'dfsadmin -printTopology' Sub-task Resolved Xiaobing Zhou
          9.
          Add unit test for HDFS command 'dfsadmin -getDatanodeInfo' Sub-task Resolved Xiaobing Zhou
          10.
          Add unit tests for HDFS command 'dfsadmin -fetchImage' in HA Sub-task Resolved Xiaobing Zhou
          11.
          Change unit test for testing parsing "-source" parameter in Balancer CLI Sub-task Resolved Mingliang Liu
          12.
          Add unit tests for HDFS command 'dfsadmin -set/clrSpaceQuota' Sub-task Resolved Xiaobing Zhou
          13.
          Add unit tests for HDFS command 'dfsadmin -set/clrQuota' Sub-task Closed Xiaobing Zhou
          14.
          TestDataNodeVolumeFailure#testVolumeFailure is flaky (though passing) Sub-task Resolved Mingliang Liu
          15.
          Add additional unit test for DataNode startup behavior when volumes fail Sub-task Resolved Mingliang Liu
          16.
          Add space quota tests for heterogenous storages Sub-task Resolved Xiaobing Zhou
          17.
          Add unit test for extended Acls Sub-task Resolved Chen Liang
          18.
          Add unit test for DFSAdmin -report command Sub-task Resolved Xiaobing Zhou
          19.
          Accelerate TestQuotaByStorageType using shared MiniDFSCluster Sub-task Closed Xiaobing Zhou
          20.
          Add unit test for NameNode failing to start when name dir is unwritable Sub-task Resolved Xiaobing Zhou
          21.
          Accelerate TestDiskBalancerCommand using static shared MiniDFSCluster Sub-task Closed Xiaobing Zhou
          22.
          TestDFSAdmin#testReportCommand fails due to timed out Sub-task Resolved Yiqun Lin

          Activity

            People

              liuml07 Mingliang Liu
              liuml07 Mingliang Liu
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: