You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Mingliang Liu (JIRA)" <ji...@apache.org> on 2016/08/04 23:44:20 UTC
[jira] [Updated] (HDFS-10666) Über-jira: Unit tests should not use fixed sleep interval to wait for conditions
[ https://issues.apache.org/jira/browse/HDFS-10666?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mingliang Liu updated HDFS-10666:
---------------------------------
Affects Version/s: (was: 3.0.0-alpha2)
Target Version/s: 3.0.0-alpha2
Description:
There have been dozens of intermittent failing unit tests because they depend on fixed-interval sleep to wait for conditions to reach before assertion. This umbrella jira is to replace these sleep statements with:
* {{GenericTestUtils.waitFor()}} to retry the conditions/assertions
* Trigger internal state change of code to test, e.g. for {{MiniDFSCluster}} we can trigger {BlockReports,HeartBeats,DeletionReports}
* Fails fast if specific exceptions are caught
* Coordinate the JUnit thread with activities of the internal threads
* _ad-hoc fixes_...
p.s. I don't know how closures in Java 8 comes into play but I'd like to see any effort.
was:
There have been dozens of intermittent failing unit tests because they depend on fixed-interval sleep to wait for conditions to reach before assertion. This umbrella jira is to replace these sleep statements with:
* {{GenericTestUtils.waitFor()}} to retry the conditions/assertions
* Trigger internal state change of {{MiniDFSCluster}}, e.g. trigger {BlockReports,HeartBeats,DeletionReports}
* Fails fast if specific exceptions are caught
* Coordinate the JUnit thread with activities of the internal threads
* _ad-hoc fixes_...
p.s. I don't know how closures in Java 8 comes into play but I'd like to see any effort.
> Über-jira: Unit tests should not use fixed sleep interval to wait for conditions
> --------------------------------------------------------------------------------
>
> Key: HDFS-10666
> URL: https://issues.apache.org/jira/browse/HDFS-10666
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: test
> Reporter: Mingliang Liu
> Assignee: Mingliang Liu
>
> There have been dozens of intermittent failing unit tests because they depend on fixed-interval sleep to wait for conditions to reach before assertion. This umbrella jira is to replace these sleep statements with:
> * {{GenericTestUtils.waitFor()}} to retry the conditions/assertions
> * Trigger internal state change of code to test, e.g. for {{MiniDFSCluster}} we can trigger {BlockReports,HeartBeats,DeletionReports}
> * Fails fast if specific exceptions are caught
> * Coordinate the JUnit thread with activities of the internal threads
> * _ad-hoc fixes_...
> p.s. I don't know how closures in Java 8 comes into play but I'd like to see any effort.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org