ctdb-scripts: Enhancements to hung script debugging
commit2532149f8f9bbe6d3c8f5ac6e5e4bc2ad1681e27
authorMartin Schwenke <martin@meltin.net>
Fri, 7 Feb 2014 06:37:00 +0000 (7 17:37 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Wed, 19 Feb 2014 01:04:47 +0000 (19 12:04 +1100)
tree9d23e4a4a0a3621cd511f5c77b45ed3247a0af86
parent79e2725f339e7c5336b4053348c4266268de6ca3
ctdb-scripts: Enhancements to hung script debugging

* Add stack dumps for "interesting" processes that sometimes get
  stuck, so try to print stack traces for them if they appear in the
  pstree output.

* Add new configuration variables CTDB_DEBUG_HUNG_SCRIPT_LOGFILE and
  CTDB_DEBUG_HUNG_SCRIPT_STACKPAT.  These are primarily for testing
  but the latter may be useful for live debugging.

* Load CTDB configuration so that above configuration variables can be
  set/changed without restarting ctdbd.

Add a test that tries to ensure that all of this is working.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/debug-hung-script.sh
ctdb/doc/ctdbd.conf.5.xml
ctdb/tests/complex/90_debug_hung_script.sh [new file with mode: 0755]