You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/11/08 20:52:00 UTC

[jira] [Commented] (NIFI-10743) TestHBase_1_1_2_ClientService.testScan uses non-deterministic HashMap

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

ASF subversion and git services commented on NIFI-10743:
--------------------------------------------------------

Commit ce18b63db0b86035d523e46e744c1fae512f3452 in nifi's branch refs/heads/main from sopan98
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=ce18b63db0 ]

NIFI-10743 Used LinkedHashMap in TestHBase_1_1_2_ClientService.testScan

This closes #6632

Signed-off-by: David Handermann <ex...@apache.org>


> TestHBase_1_1_2_ClientService.testScan uses non-deterministic HashMap 
> ----------------------------------------------------------------------
>
>                 Key: NIFI-10743
>                 URL: https://issues.apache.org/jira/browse/NIFI-10743
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>         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);
>            Reporter: Sopan Phaltankar
>            Priority: Trivial
>             Fix For: 1.19.0
>
>         Attachments: org.apache.nifi.hbase.TestHBase_1_1_2_ClientService.txt
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> {code:java}
> org.apache.nifi.hbase.TestHBase_1_1_2_ClientService.testScan{code}
> This is a flaky test, it can pass mvn test while but when run using the tool [NonDex|https://github.com/TestingResearchIllinois/NonDex], it fails. NonDex is a tool that will introduce non-determinism in certain java collections.
> The test shows below:
> {code:java}
> [ERROR] Failures: 
> [ERROR]   TestHBase_1_1_2_ClientService.testScan:432->verifyResultCell:497 expected: <greeting> but was: <name> {code}
> *Steps to reproduce the failure:*
>  # Run the following command in nifi:
>  # First, build the module:
> {noformat}
> mvn install -pl nifi-nar-bundles/nifi-standard-services/nifi-hbase_1_1_2-client-service-bundle/nifi-hbase_1_1_2-client-service -DskipTests -Drat.skip -am {noformat}
>  # Then run the test using [NonDex|https://github.com/TestingResearchIllinois/NonDex]
> {noformat}
> mvn -pl nifi-nar-bundles/nifi-standard-services/nifi-hbase_1_1_2-client-service-bundle/nifi-hbase_1_1_2-client-service edu.illinois:nondex-maven-plugin:1.1.2:nondex -Dtest=org.apache.nifi.hbase.TestHBase_1_1_2_ClientService#testScan{noformat}
>  # The result will be saved under the module folder in .nondex
>  



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