Re: cyrus replication validation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




The provided Cyrus tool "make_md5" is for validating replication.  It
would, for instance, have found the recently discussed bug in sync_server that caused random files to be overwritten in the event that sync_server reused a stale staging file. It would probably be cool if there were documentation somewhere that advised people on how to run it and how to use it to validate replication.

We have a patch that helps with this as well see "MD5 UUIDs" here:

http://cyrus.brong.fastmail.fm/

Basically it does two things:
1. You can make the UUIDs of all messages the first 11 bytes of the MD5 of the message
2. You can fetch a computed MD5 of any message on disk via IMAP

Using the second, you can do complete validation via IMAP, just iterate through all folders and all messages, get the computed MD5 and compare on both sides.

The UUID bit is just designed to help replication when messages are moved between folders, rather than having to resend the entire message on a move, it can just link them from one folder to the other at the replication end.

Rob

----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux