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

Refactor TestDFSStripedOutputStreamWithFailure test classes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0-alpha2
    • 3.1.0, 3.0.3
    • erasure-coding, test
    • None

    Description

      TestDFSStripedOutputStreamWithFailure has a great number of subclasses. The tests are parameterized based on the name of these subclasses.

      Seems like we could parameterize these tests with JUnit and then not need all these separate test classes.

      Another note, the tests will randomly return instead of running the test. Using Assume instead would make it more clear in the test output that these tests were skipped.

      Attachments

        1. HDFS-11600-1.patch
          36 kB
          Marton Elek
        2. HDFS-11600.002.patch
          35 kB
          Christopher Douglas
        3. HDFS-11600.003.patch
          72 kB
          Sammi Chen
        4. HDFS-11600.004.patch
          73 kB
          Sammi Chen
        5. HDFS-11600.005.patch
          73 kB
          Sammi Chen
        6. HDFS-11600.006.patch
          72 kB
          Sammi Chen
        7. HDFS-11600.007.patch
          72 kB
          Sammi Chen

        Issue Links

          Activity

            People

              Sammi Sammi Chen
              andrew.wang Andrew Wang
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: