Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13571 Deadnode detection
  3. HDFS-15019

Refactor the unit test of TestDeadNodeDetection

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      There are many duplicated lines in unit test TestDeadNodeDetection. We can simplified that.

      In additional in testDeadNodeDetectionInMultipleDFSInputStream, the DFSInputstream is passed incorrectly in asset operation.

      din2 = (DFSInputStream) in1.getWrappedStream();
      

      Should be

      din2 = (DFSInputStream) in2.getWrappedStream();
      

        Attachments

        1. HDFS-15019.001.patch
          5 kB
          Lisheng Sun

          Activity

            People

            • Assignee:
              leosun08 Lisheng Sun
              Reporter:
              linyiqun Yiqun Lin
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: