<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi!<br><br>So, you to be sure, "log" just log that have been some change in the mailbox, or it has been created or deleted? So, when some change is made, it check all the mailbox to sync the modifications?<br><br>is there any casuistry where it should necessary that everything is processed in order? first "log-PID" and then "log"?<br><br>Thanks for the response!<br><br>Manel Gimeno Zaragoza<br>magiza83@hotmail.com<br><br><br><div><div id="SkyDrivePlaceholder"></div>Date: Tue, 13 Mar 2012 11:56:48 +0100<br>From: michael.menge@zdv.uni-tuebingen.de<br>To: info-cyrus@lists.andrew.cmu.edu<br>Subject: Re: Sync log replica process<br><br><pre>Hi,<br> <br>Quoting Manel Gimeno Zaragozá <magiza83@hotmail.com>:<br> <br>><br>> Hello,<br>><br>> I've some doubts about how sync logs and the order about how they <br>> should be processed. I've done some bunch tests and during the <br>> process stop replic to try to simulate a possible crash.<br>> In my test I've saw the following:<br>><br>> 1.- I send 10 mails to Master and it starts to replicate.<br>> 2.- file "log" is created and change to "log-13835"<br>> 3.- Replica crash and "log-13835" never ends and remains in <br>> /var/lib/imap/sync/ "forever"<br>> 4.- while replica is crashed the user is making actions in the 10 <br>> mails send before (moving aroung folders, deleting, etc...) and all <br>> "changes" are saved in "log" file<br>> 5.- Replica comes up and i run "sync_client -r" to sincronize the changes.<br>> The question is here. Should I first run "sync_client -r -f <br>> /var/lib/imap/sync/log-13835" before starts "sync_client -r"? I <br>> understand that the log-13835 has the information about the 10 mail <br>> received, and "log" has information about mail that are not yet in <br>> replica.<br>> 6.- Anyway, I run "sync_client -r" without process "log-13835" <br>> and, what a surprise!! everything is on their place and sync works <br>> ok with out processing the log-13835<br>> 7.- I run my "integrity_check" based on Bron's integrity check and <br>> the only "problem" I see is a mismatch in "highestmodseq" for the <br>> folder where the user moves the mails.<br>> Mismatched 'highestmodseq' for "user.gdatmgim.temp" master=7, replica=9<br>> This error remain until some action is taken in the folder.<br>><br>> So, my question is, is it necessary to process the "log-PID" before <br>> sync the "log" file? Because in my test it looks like it's not <br>> necessary.<br>><br> <br>It depends on what actions where done while the syncornisation was down<br>Cyrus does not log every changed mail, but in which mailbox mails <br>where changed.<br> <br>So if log-13835 contains "MAILBOX user.gdatmgim.temp" and<br>"MAILBOX user.gdatmgim" and he recieved new mails in the INBOX but did <br>not change mails in the temp folder, the INBOX will be in sync without <br>the log-13835, but not user.gdatmgim.temp".<br> <br>So the replication will at some point catch missed actions from unprocessed<br>logs, but it can take some time (forever in worst case). On the other hand<br>it does not harm to run old logs.<br> <br>Michael<br> <br> <br> <br>--------------------------------------------------------------------------------<br> <br>M.Menge Tel.: (49) 7071/29-70316<br>Universität Tübingen Fax.: (49) 7071/29-5912<br>Zentrum für Datenverarbeitung mail: <br>michael.menge@zdv.uni-tuebingen.de<br>Wächterstraße 76<br>72074 Tübingen<br></pre><br>----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/</div>                                            </div></body>
</html>