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

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.3.0
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: