s4/torture: add a test for ctdb-tombstrone-record deadlock
authorRalph Boehme <slow@samba.org>
Sat, 23 Jul 2016 09:08:13 +0000 (11:08 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 10 Aug 2016 07:03:26 +0000 (09:03 +0200)
commit8f6b83dd81a5b665810709b1cf9c5e323e4d4252
treecb80041c591abc2ccfe361de7a321f93246b0c76
parenta21dbf76fe606ee9287ea3ec1f65bb8dee4ee18e
s4/torture: add a test for ctdb-tombstrone-record deadlock

This tests for a possible deadlock between smbd and ctdb dealing with
ctdb tombstone records.

Commit 925625b52886d40b50fc631bad8bdc81970f7598 explains the deadlock in
more details and contains the fix. It's a fix for a regression
introduced by the patch for bug 10008 (1cae59ce112c).

If you ever want to use this test against that specific commit:

$ git checkout 925625b52886d40b50fc631bad8bdc81970f7598
$ git cherry-pick THIS_COMMIT

This should not deadlock on a ctdb cluster.

$ git revert 925625b52886d40b50fc631bad8bdc81970f7598

This will deadlock.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12005

Pair-Programmed-With: Michael Adam <obnox@samba.org>

Signed-off-by: Ralph Boehme <slow@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit b17e2f5c740fb081c007ed2e1c23138ffcba1469)
source4/torture/smb2/lock.c