On Jun 2, 2009, at 1:31 PM, Timo Sirainen wrote:
On Tue, 2009-06-02 at 13:24 -0400, jsie...@psu.edu wrote:dovecot: IMAP(testuser): Corrupted index cache file /full/path/ dovecot.index.cache: record points outside fileSo you're using AIX? Do you also happen to use NFS? Can you reproducethis error by running imaptest for a while? http://imapwiki.org/ImapTestNo NFS here. The filesystem is called GPFS. It is a clustered FS.Ah, that probably explains it. Can multiple different servers modify thesame mailbox? Cache file is the part of Dovecot that demands the most from the OS/filesystem. The most difficult part is probably that it writes to the file without locking. It first reserves a space and then starts writing there. Multiple processes can write to the same file at the same time.
Timo,Are you saying that multiple processes on the same folder(INBOX) on the same IMAP server can cause this collision as well? Is there a difference between running multiple processes on the same folder(INBOX) on multiple IMAP servers vs running multiple processes on the same folder on a single IMAP server?
This should probably be changed at some point, since itcould just buffer more data to memory and then lock, write, unlock. That would also make the code simpler, since it can currently leave holes tothe file because it has to guess initially how much space to reserve..
This is definitely on my wish list. Thanks, Jonathan
smime.p7s
Description: S/MIME cryptographic signature