ctdb-tests: Add tests for cluster mutex I/O timeout
commitdde461868f7bacf10b2aa141acd609ca0c965209
authorMartin Schwenke <martin@meltin.net>
Fri, 25 Feb 2022 08:44:52 +0000 (25 19:44 +1100)
committerMartin Schwenke <martins@samba.org>
Thu, 28 Jul 2022 11:10:54 +0000 (28 11:10 +0000)
tree180b20ccd148268edea999a6cecb136ed4fea44e
parent25d32ae97a6d7d425eea6f2e9585a1596776493c
ctdb-tests: Add tests for cluster mutex I/O timeout

Block the locker helper child by taking a lock on the 2nd byte of the
lock file.  This will cause a ping timeout if the process is blocked
for long enough.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Thu Jul 28 11:10:54 UTC 2022 on sn-devel-184
ctdb/tests/UNIT/cunit/cluster_mutex_002.sh
ctdb/tests/src/cluster_mutex_test.c