[389-devel] Please review: [Bug 570667] MMR: simultaneous total updates on the masters cause deadlock and data loss

Noriko Hosoi nhosoi at redhat.com
Fri Mar 5 02:01:35 UTC 2010


Subject: MMR: simultaneous total updates on the masters cause deadlock and data loss

https://bugzilla.redhat.com/show_bug.cgi?id=570667

Description: In the MMR topology, if a master receives a total
update request to initialize the other master and being initialized
by the other master at the same time, the 2 replication threads hang
and the replicated backend instance could be wiped out.

To prevent the server running the total update supplier and the
consumer at the same time, REPLICA_TOTAL_EXCLUSIVE bit has
been introduced and set to the replica state flag by the either
operation.  Once the bit is detected, the other operation fails with
the error.

Files:
  ldap/servers/plugins/replication/repl5.h
  ldap/servers/plugins/replication/repl5_protocol.c
  ldap/servers/plugins/replication/repl_extop.c


[Fix proposal]
  -->  (https://bugzilla.redhat.com/attachment.cgi?id=397962)
git patch file


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6646 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.fedoraproject.org/pipermail/389-devel/attachments/20100304/4fa5804c/attachment.bin 


More information about the 389-devel mailing list