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

Refactor TestDFSStripedOutputStreamWithFailure test classes

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha2
    • Fix Version/s: 3.1.0, 3.0.3
    • Component/s: erasure-coding, test
    • Labels:
      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.002.patch
          35 kB
          Chris Douglas
        2. HDFS-11600.003.patch
          72 kB
          Sammi Chen
        3. HDFS-11600.004.patch
          73 kB
          Sammi Chen
        4. HDFS-11600.005.patch
          73 kB
          Sammi Chen
        5. HDFS-11600.006.patch
          72 kB
          Sammi Chen
        6. HDFS-11600.007.patch
          72 kB
          Sammi Chen
        7. HDFS-11600-1.patch
          36 kB
          Elek, Marton

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: