You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Andrew Onischuk (JIRA)" <ji...@apache.org> on 2017/03/09 14:29:38 UTC

[jira] [Assigned] (AMBARI-20332) Few ambari agent unit tests are failing

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

Andrew Onischuk reassigned AMBARI-20332:
----------------------------------------

    Assignee: Andrew Onischuk

> Few ambari agent unit tests are failing
> ---------------------------------------
>
>                 Key: AMBARI-20332
>                 URL: https://issues.apache.org/jira/browse/AMBARI-20332
>             Project: Ambari
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 2.5.0
>            Reporter: Yesha Vora
>            Assignee: Andrew Onischuk
>             Fix For: 2.5.0
>
>         Attachments: AMBARI-20332.patch
>
>
> Few ambari agent tests are failing as below. 
> {code:title=test cmd}
> export MAVEN_OPTS="-Xmx8192m -XX:MaxPermSize=4096m"; mvn -B -nsu -DforkCount=4 -Dmaven.test.failure.ignore=true -fae clean test {code}
> {code}
> ======================================================================
> ERROR: test_may_manage_folder (TestDatanodeHelper.TestDatanodeHelper)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/xxx/ambari/ambari-common/src/test/python/mock/mock.py", line 1199, in patched
>     return func(*args, **keywargs)
>   File "/xxx/ambari/ambari-agent/src/test/python/resource_management/TestDatanodeHelper.py", line 179, in test_may_manage_folder
>     self.assertSetEqual(dirs_unmounted, set())
> AttributeError: 'TestDatanodeHelper' object has no attribute 'assertSetEqual'
> ======================================================================
> FAIL: test_kill_process_with_children (TestShell.TestShell)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/xxx/ambari/ambari-agent/src/test/python/ambari_agent/TestShell.py", line 71, in test_kill_process_with_children
>     self.assertTrue(sleep_cmd in out)
> AssertionError
> ======================================================================
> FAIL: test_facterMemInfoOutput (TestHardware.TestHardware)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/xxx/ambari/ambari-common/src/test/python/mock/mock.py", line 1199, in patched
>     return func(*args, **keywargs)
>   File "/xxx/ambari/ambari-agent/src/test/python/ambari_agent/TestHardware.py", line 247, in test_facterMemInfoOutput
>     self.assertEquals(result['memorysize'], 1832392)
> AssertionError: u'4194304' != 1832392
> ----------------------------------------------------------------------
> Ran 448 tests in 15.028s
> FAILED (failures=2, errors=1)
> [INFO]                         {code}
> {code}
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] Ambari Main ........................................ SUCCESS [  7.696 s]
> [INFO] Apache Ambari Project POM .......................... SUCCESS [  0.213 s]
> [INFO] Ambari Web ......................................... SUCCESS [02:07 min]
> [INFO] Ambari Views ....................................... SUCCESS [  6.316 s]
> [INFO] Ambari Admin View .................................. SUCCESS [01:17 min]
> [INFO] utility ............................................ SUCCESS [  3.209 s]
> [INFO] ambari-metrics ..................................... SUCCESS [  1.427 s]
> [INFO] Ambari Metrics Common .............................. SUCCESS [  5.610 s]
> [INFO] Ambari Metrics Hadoop Sink ......................... SUCCESS [  7.023 s]
> [INFO] Ambari Metrics Flume Sink .......................... SUCCESS [  5.797 s]
> [INFO] Ambari Metrics Kafka Sink .......................... SUCCESS [  4.710 s]
> [INFO] Ambari Metrics Storm Sink .......................... SUCCESS [  2.895 s]
> [INFO] Ambari Metrics Storm Sink (Legacy) ................. SUCCESS [  3.642 s]
> [INFO] Ambari Metrics Collector ........................... SUCCESS [07:18 min]
> [INFO] Ambari Metrics Monitor ............................. SUCCESS [  5.923 s]
> [INFO] Ambari Metrics Grafana ............................. SUCCESS [  3.769 s]
> [INFO] Ambari Metrics Assembly ............................ SUCCESS [  7.651 s]
> [INFO] Ambari Server ...................................... FAILURE [15:35 min]
> [INFO] Ambari Functional Tests ............................ SKIPPED
> [INFO] Ambari Agent ....................................... FAILURE [ 42.590 s]
> [INFO] Ambari Client ...................................... SUCCESS [  0.068 s]
> [INFO] Ambari Python Client ............................... SUCCESS [  2.080 s]
> [INFO] Ambari Groovy Client ............................... SUCCESS [ 17.194 s]
> [INFO] Ambari Shell ....................................... SUCCESS [  0.044 s]
> [INFO] Ambari Python Shell ................................ SUCCESS [  0.232 s]
> [INFO] Ambari Groovy Shell ................................ SUCCESS [ 10.669 s]
> [INFO] ambari-logsearch ................................... SUCCESS [  0.171 s]
> [INFO] Ambari Logsearch Appender .......................... SUCCESS [  0.418 s]
> [INFO] Ambari Logsearch Portal ............................ SUCCESS [ 15.327 s]
> [INFO] Ambari Logsearch Log Feeder ........................ SUCCESS [  9.812 s]
> [INFO] Ambari Logsearch Solr Client ....................... SUCCESS [  2.240 s]
> [INFO] Ambari Infra Solr Plugin ........................... SUCCESS [  3.225 s]
> [INFO] Ambari Logsearch Assembly .......................... SUCCESS [  0.314 s]
> [INFO] Ambari Logsearch Integration Test .................. SUCCESS [  1.969 s]
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 29:13 min
> [INFO] Finished at: 2017-03-06T19:21:57+00:00
> [INFO] Final Memory: 207M/1616M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (python-test) on project ambari-server: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]
> [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (python-test) on project ambari-agent: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [ERROR] 
> [ERROR] After correcting the problems, you can resume the build with the command
> [ERROR]   mvn <goals> -rf :ambari-server{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)