ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmytro Sen" <d...@hortonworks.com>
Subject Review Request 36846: Ambari Agent does not register / heartbeat if "df" command hangs
Date Mon, 27 Jul 2015 09:33:26 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/36846/
-----------------------------------------------------------

Review request for Ambari, Dmitro Lisnichenko and Vitalyi Brodetskyi.


Bugs: AMBARI-12548
    https://issues.apache.org/jira/browse/AMBARI-12548


Repository: ambari


Description
-------

The agent executes the "df" command when it starts up.
In rare scenarios, this command can hang (can even hanging for several days without any timeout).
When this happens the agent won't move forward to the process of registration, etc.
There's an ambari-server property called agent.check.mounts.timeout. This can be defined to
force a timeout.
However, we should always have a default timeout on the agent script side, even if this property
is not defined to avoid a situation where the agent is completely hung.


Diffs
-----

  ambari-agent/src/main/python/ambari_agent/Hardware.py 5567286 
  ambari-agent/src/test/python/ambari_agent/TestHardware.py d1bc2e6 
  ambari-server/src/test/python/custom_actions/TestCheckHost.py 024aab2 

Diff: https://reviews.apache.org/r/36846/diff/


Testing
-------

[INFO] Rat check: Summary of files. Unapproved: 0 unknown: 0 generated: 0 approved: 138 licence.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.557s
[INFO] Finished at: Mon Jul 27 12:24:48 EEST 2015
[INFO] Final Memory: 12M/192M
[INFO] ------------------------------------------------------------------------


Thanks,

Dmytro Sen


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