[2.3.11] sync_client bug: Starting MASTER imap-server can be delayed for 1000s if SLAVE is down.

Boris Lytochkin boris.lytochkin at e-port.ru
Mon Jan 14 15:18:22 EST 2008


How to replicate:
1) Set replication up (master's cyrus.conf runs sync_client w/o -o option)
2) Shutdown both master & slave
3) Start MASTER cyrus.

While SLAVE is down MASTER do not start services (i.e. imap server is
down for users) because sync_client do not go into background.

There is a patch in attachment that:
- fixes this bug releasing MASTER as soon as possible (even before connecting to SLAVE)
- adds some additional debug messages into do_sync(...)
- adds -D flag that disables 1st-level fork() for sync_client.

-- 
Boris Lytochkin,
JSC e-port, Moscow
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-sync_client.c
Type: application/octet-stream
Size: 5670 bytes
Desc: not available
Url : http://lists.andrew.cmu.edu/pipermail/cyrus-devel/attachments/20080114/82b0d48f/attachment.obj 


More information about the Cyrus-devel mailing list