Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-14110

Clean up stop agent to not print unnecessary error message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.4.0
    • ambari-agent
    • None

    Description

      When you restart agent you will see this error:

      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
      

      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.

      Attachments

        1. AMBARI-14110.patch
          1 kB
          Vitaly Brodetskyi

        Issue Links

          Activity

            People

              vbrodetskyi Vitaly Brodetskyi
              vbrodetskyi Vitaly Brodetskyi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: