torture: Run durable_v2_reconnect_delay_msec with leases
authorVolker Lendecke <vl@samba.org>
Tue, 10 Dec 2019 10:48:07 +0000 (11:48 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 10 Dec 2019 20:31:40 +0000 (20:31 +0000)
commit7535359602e8b33e38ef1e0e38dc070773a39ea8
tree9d365fcd01a4c51c43861098b63ea5aaf7db825c
parent79b2ee8dc2382354750601ee3d57912442c09817
torture: Run durable_v2_reconnect_delay_msec with leases

This will show a leases.tdb record leak. If you SIGSTOP the smbtorture
process while it's in the 10-second wait, you will find locking.tdb
and share_entries.tdb empty after the scavenger has cleaned up. But
there will be an entry in leases.tdb left.

I have no clue how to test this properly, or how to have a reasonably
cheap assert in smbd during normal operations. The problem is that
this leak can't really be distinguished from a "normal" leak that a
crashed smbd would leave behind. Possibly we need a background job
walking leases.tdb to clean this up properly.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
selftest/knownfail.d/durable-v2-delay [new file with mode: 0644]
source4/torture/smb2/durable_v2_open.c