[ 
https://issues.apache.org/jira/browse/HDFS-11919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16035991#comment-16035991
 ] 

Yiqun Lin edited comment on HDFS-11919 at 6/3/17 3:07 PM:
----------------------------------------------------------

Hi [~anu], I did a quick look. I think there are two points caused the tests 
slow-running:

* The default heartbeat interval(3s) time for unit testing seems too long, 1s 
is enough. Have ran the test in 1s interval time , the total time can be great 
reduced.
* There are too many {{thread.sleep(time)}} operations used to check the node 
state across test methods. This can be also improved.

Will attach the patch soon.


was (Author: linyiqun):
Hi [~anu], I did a quick look. I think there are two points caused the tests 
slow-running:

* The default heartbeat interval(3s) time for unit testing seems too long, 1s 
is enough. Have ran the test in 1s interval time , the total time can be great 
reduced.
* There are too many {{thread.sleep(time)}} operations across tests. This can 
be improved.

Will attach the patch soon.

> Ozone: SCM: TestNodeManager takes too long to execute
> -----------------------------------------------------
>
>                 Key: HDFS-11919
>                 URL: https://issues.apache.org/jira/browse/HDFS-11919
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: ozone
>    Affects Versions: HDFS-7240
>            Reporter: Anu Engineer
>            Assignee: Yiqun Lin
>            Priority: Trivial
>
> On my laptop it takes 97.645 seconds to execute this test. We should explore 
> if we can make this test run faster. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to