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

Noriko Hosoi nhosoi at redhat.com
Fri Mar 5 18:21:02 UTC 2010

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


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

I revised the previous patch to allow sending simultaneous total updates
against other replicas.  I think it's no need to disallow it.

Thank you!

> 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
> --
> 389-devel mailing list
> 389-devel at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/389-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/389-devel/attachments/20100305/676ab952/attachment.html 
-------------- 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/20100305/676ab952/attachment.bin 

More information about the 389-devel mailing list