[PATCH] Avoid CTDB daemon deadlock while reading db sequence number (bug 13021)

Amitay Isaacs amitay at gmail.com
Mon Sep 11 03:59:02 UTC 2017


Hi,

Once the recovery starts and databases are frozen, then all the record
access is postponed till the recovery is complete except reading the
database sequence number.  Database access for reading sequence number
is done via a control which does not check if the databases are frozen
or not.

If the database is frozen and if the freeze transaction is not started
(this can happen when a node is inactive, or during recovery when the
database is frozen but the transaction has not yet started), then trying
to read sequence number will cause ctdb daemon to deadlock.

Before reading the sequence number, check if the database access is
allowed.

Please review and push.

Amitay.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ctdb.patch
Type: text/x-patch
Size: 3222 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170911/02c47cc9/ctdb.bin>


More information about the samba-technical mailing list