ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitro Lisnichenko" <>
Subject Review Request 36771: Provide traceback patch to debug hanging agents
Date Fri, 24 Jul 2015 10:09:42 GMT

This is an automatically generated e-mail. To reply, visit:

Review request for Ambari, Andrew Onischuk and Sumit Mohanty.

Bugs: AMBARI-12522

Repository: ambari


Patch tries to load and register traceback handler if it is available, and skips if not. Also
it fixes binding signal handlers twice during agent start.
To install faulthandler under Centos 6 (faulthandler is not included to default distribution
of Python 2.x), we have to perform:
yum install python-devel gcc -y
# install setup tools
curl | python -
# install pip
curl | python -
easy_install faulthandler
If faulthandler module is available, agent posts Registered faulthandler to agent out file.
After that, we start agent and can dump tracebacks for all running threads like that:
# kill -USR1 `cat /var/run/ambari-agent/`
# cat /var/log/ambari-agent/ambari-agent.out


  ambari-agent/src/main/python/ambari_agent/ f9d0e14 
  ambari-agent/src/main/python/ambari_agent/ 0971cbb 
  ambari-agent/src/test/python/ambari_agent/ 6218b59 



test_invalid (TestFileSystem.TestFileSystem) ... ok

Ran 410 tests in 6.028s


Process finished with exit code 0


Dmitro Lisnichenko

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message