ctdb/eventscripts: Reconfigure lock should be released quickly
authorMartin Schwenke <martin@meltin.net>
Wed, 18 Dec 2013 02:51:22 +0000 (13:51 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Fri, 17 Jan 2014 06:59:26 +0000 (17:59 +1100)
commit8eb20c23476d390bb8a12ba01c9f06e7ac4a1453
tree1349b33669ed45405565014f89d87c18f3eb6a50
parente77d5f99e396d71c1d354b3f8dc5ddf9ba5c5ee9
ctdb/eventscripts: Reconfigure lock should be released quickly

Currently the lock is held until the corresponding eventscript
completes, since the process still exists.  If the regular part of an
eventscript hangs then the lock might unnecessarily be held for a long
time.  The pathological case is when a monitor event gets stuck in
D-wait state and the script times out but can't be killed so the lock
is still held.  This can cause an unwanted monitor replay.

Change this so that the lock is released immediately after the
reconfiguration is complete.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/functions
ctdb/tests/eventscripts/60.nfs.multi.003.sh
ctdb/tests/eventscripts/60.nfs.multi.004.sh
ctdb/tests/eventscripts/60.nfs.multi.005.sh