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

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

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

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: test
    • Labels:
      None
    • Target Version/s:

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

          Activity

            People

            • Assignee:
              liuml07 Mingliang Liu
              Reporter:
              liuml07 Mingliang Liu

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment