<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á &lt;magiza83@hotmail.com&gt;:<br> <br>&gt;<br>&gt; Hello,<br>&gt;<br>&gt; I've some doubts about how sync logs and the order about how they  <br>&gt; should be processed. I've done some bunch tests and during the  <br>&gt; process stop replic to try to simulate a possible crash.<br>&gt; In my test I've saw the following:<br>&gt;<br>&gt; 1.- I send 10 mails to Master and it starts to replicate.<br>&gt; 2.- file "log" is created and change to "log-13835"<br>&gt; 3.- Replica crash and "log-13835" never ends and remains in  <br>&gt; /var/lib/imap/sync/ "forever"<br>&gt; 4.- while replica is crashed the user is making actions in the 10  <br>&gt; mails send before (moving aroung folders, deleting, etc...) and all  <br>&gt; "changes" are saved in "log" file<br>&gt; 5.- Replica comes up and i run "sync_client -r" to sincronize the changes.<br>&gt;     The question is here. Should I first run "sync_client -r -f  <br>&gt; /var/lib/imap/sync/log-13835" before starts "sync_client -r"? I  <br>&gt; understand that the log-13835 has the information about the 10 mail  <br>&gt; received, and "log" has information about mail that are not yet in  <br>&gt; replica.<br>&gt; 6.- Anyway, I run "sync_client -r"    without process "log-13835"  <br>&gt; and, what a surprise!! everything is on their place and sync works  <br>&gt; ok with out processing the log-13835<br>&gt; 7.- I run my  "integrity_check" based on Bron's integrity check and  <br>&gt; the only "problem" I see is a mismatch in "highestmodseq" for the  <br>&gt; folder where the user moves the mails.<br>&gt;     Mismatched 'highestmodseq' for "user.gdatmgim.temp" master=7, replica=9<br>&gt;     This error remain until some action is taken in the folder.<br>&gt;<br>&gt; So, my question is, is it necessary to process the "log-PID" before  <br>&gt; sync the "log" file? Because in my test it looks like it's not  <br>&gt; necessary.<br>&gt;<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>