You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Yiqun Lin (Jira)" <ji...@apache.org> on 2019/11/27 15:14:00 UTC

[jira] [Created] (HDFS-15019) Refactor the unit test of TestDeadNodeDetection

Yiqun Lin created HDFS-15019:
--------------------------------

             Summary: Refactor the unit test of TestDeadNodeDetection 
                 Key: HDFS-15019
                 URL: https://issues.apache.org/jira/browse/HDFS-15019
             Project: Hadoop HDFS
          Issue Type: Sub-task
            Reporter: Yiqun Lin
            Assignee: Lisheng Sun


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.

{code}
din2 = (DFSInputStream) in1.getWrappedStream();
{code}
Should be 
{code}
din2 = (DFSInputStream) in2.getWrappedStream();
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org