Doroszlai, Attila created AMBARI-21714: ------------------------------------------
Summary: 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 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)