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

ASF GitHub Bot commented on HADOOP-18511:
-----------------------------------------

Kerr0220 commented on PR #5085:
URL: https://github.com/apache/hadoop/pull/5085#issuecomment-1294196516

   We are working on a project 
[NonDex](https://github.com/TestingResearchIllinois/NonDex) to find out flaky 
tests in open-source projects and help developers to fix them.
   
   Using Nondex to detect potential flaky tests can find tests that might fail 
with different versions of JAVA. For example, the implementation of `HashSet` 
is such that iterating through the elements returns them in a deterministic 
order for **one Java
   version**, but that order can change between Java versions. Therefore, 
fixing flaky tests is important for making the program more compatible with 
different versions of programming languages.
   
   And I found that Hadoop has accepted PR 
https://github.com/apache/hadoop/pull/1835 for fixing flaky tests detected by 
NonDex. Therefore, I assumed that you might be interested in fixing further 
flaky tests to make tests more robust.
   
   Please feel free to ask me any questions about the flaky test! We are 
working on it. And hope this PR can be considered accepted!




> TestDecayRpcScheduler.testPriority is a flaky test
> --------------------------------------------------
>
>                 Key: HADOOP-18511
>                 URL: https://issues.apache.org/jira/browse/HADOOP-18511
>             Project: Hadoop Common
>          Issue Type: Bug
>         Environment: Apache Maven 3.6.0;
> openjdk version "1.8.0_342";
> OpenJDK Runtime Environment (build 1.8.0_342-8u342-b07-0ubuntu1~20.04-b07);
> OpenJDK 64-Bit Server VM (build 25.342-b07, mixed mode);
> h4.
>            Reporter: Yiteng Zhang
>            Priority: Trivial
>              Labels: pull-request-available
>
>  
> {code:java}
> org.apache.hadoop.ipc.TestDecayRpcScheduler.testPriority{code}
> This is a flaky test, it can pass maven-test while showing non-deterministic 
> behavior under [NonDex|[https://github.com/TestingResearchIllinois/NonDex]] 
> and thus failed.
> The test shows below:
> {code:java}
> java.lang.AssertionError: Get expected JMX of CallVolumeSummary before decay
>     at org.junit.Assert.fail(Assert.java:89)
>     at org.junit.Assert.assertTrue(Assert.java:42)
>     at 
> org.apache.hadoop.ipc.TestDecayRpcScheduler.testPriority(TestDecayRpcScheduler.java:295){code}
> *Steps to reproduce the failure:*
>  # install [NonDex|https://github.com/TestingResearchIllinois/NonDex]
>  # run the following command in hadoop: 
> {code:java}
> MODULE=hadoop-common-project/hadoop-common
> TEST=org.apache.hadoop.ipc.TestDecayRpcScheduler#testPriority   
> mvn install -pl $MODULE -am -DskipTests 
> mvn -pl $MODULE edu.illinois:nondex-maven-plugin:1.1.2:nondex 
> -Dtest=$TEST{code}
>       3. the result will be saved under the package folder in .nondex
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to