You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Doroszlai, Attila (JIRA)" <ji...@apache.org> on 2017/08/14 11:07:00 UTC

[jira] [Updated] (AMBARI-21714) Intermittent unit test failure in ExecutionCommandWrapperTest

     [ https://issues.apache.org/jira/browse/AMBARI-21714?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doroszlai, Attila updated AMBARI-21714:
---------------------------------------
    Attachment: AMBARI-21714.patch

> Intermittent unit test failure in ExecutionCommandWrapperTest 
> --------------------------------------------------------------
>
>                 Key: AMBARI-21714
>                 URL: https://issues.apache.org/jira/browse/AMBARI-21714
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.6.0
>            Reporter: Doroszlai, Attila
>            Assignee: Doroszlai, Attila
>             Fix For: 3.0.0, 2.6.0
>
>         Attachments: AMBARI-21714.patch
>
>
> Intermittent failure in {{ExecutionCommandWrapperTest}}:
> {noformat}
> Running org.apache.ambari.server.actionmanager.ExecutionCommandWrapperTest
> Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 14.452 sec <<< FAILURE! - in org.apache.ambari.server.actionmanager.ExecutionCommandWrapperTest
> testExecutionCommandHasVersionInfoWithoutCurrentClusterVersion(org.apache.ambari.server.actionmanager.ExecutionCommandWrapperTest)  Time elapsed: 0.024 sec  <<< ERROR!
> org.apache.ambari.server.ServiceNotFoundException: Service not found, clusterName=c1, serviceName=HDFS
> 	at org.apache.ambari.server.actionmanager.ExecutionCommandWrapperTest.testExecutionCommandHasVersionInfoWithoutCurrentClusterVersion(ExecutionCommandWrapperTest.java:293)
> {noformat}
> is caused by dependence on order of execution of test methods.
> Steps to reproduce:
> # Disable {{testGetExecutionCommand()}} to simulate "wrong" order of execution
> # Run {{ExecutionCommandWrapperTest}}
> Result:
> {noformat}
> Running org.apache.ambari.server.actionmanager.ExecutionCommandWrapperTest
> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 7.4 sec <<< FAILURE! - in org.apache.ambari.server.actionmanager.ExecutionCommandWrapperTest
> testExecutionCommandHasVersionInfoWithoutCurrentClusterVersion(org.apache.ambari.server.actionmanager.ExecutionCommandWrapperTest)  Time elapsed: 0.011 sec  <<< ERROR!
> org.apache.ambari.server.ServiceNotFoundException: Service not found, clusterName=c1, serviceName=HDFS
> 	at org.apache.ambari.server.actionmanager.ExecutionCommandWrapperTest.testExecutionCommandHasVersionInfoWithoutCurrentClusterVersion(ExecutionCommandWrapperTest.java:298)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)