[
https://issues.apache.org/jira/browse/AMBARI-14110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15031734#comment-15031734
]
Hudson commented on AMBARI-14110:
---------------------------------
FAILURE: Integrated in Ambari-trunk-Commit #3933 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/3933/])
AMBARI-14110. Clean up stop agent to not print unnecessary error (vbrodetskyi:
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=c4d5ff90c1946cfbff81200bff2376b372bc7fff])
* ambari-agent/src/main/python/ambari_agent/main.py
* ambari-agent/src/test/python/ambari_agent/TestMain.py
> Clean up stop agent to not print unnecessary error message
> ----------------------------------------------------------
>
> Key: AMBARI-14110
> URL: https://issues.apache.org/jira/browse/AMBARI-14110
> Project: Ambari
> Issue Type: Bug
> Components: ambari-agent
> Affects Versions: 2.1.0
> Reporter: Vitaly Brodetskyi
> Assignee: Vitaly Brodetskyi
> Fix For: 2.3.0
>
> Attachments: AMBARI-14110.patch
>
>
> When you restart agent you will see this error:
> {code}
> ERROR 2015-08-11 16:22:45,384 main.py:317 - Fatal exception occurred:
> Traceback (most recent call last):
> File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 314, in
> <module>
> main(heartbeat_stop_callback)
> File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 250, in
> main
> stop_agent()
> File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 200, in
> stop_agent
> sys.exit(1)
> SystemExit: 1
> {code}
> Looking at the code, it throws exception when PID file exists but its not
> clear if there was an attempt to delete the file but that failed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)