[Dovecot] record points outside file error with dovecot revision 9116:9ae55b68cf61

jsiegle at psu.edu jsiegle at psu.edu
Tue Jun 2 20:40:35 EEST 2009


On Tue, 2 Jun 2009, Timo Sirainen wrote:

> On Tue, 2009-06-02 at 13:24 -0400, jsiegle at psu.edu wrote:
>>>>   dovecot: IMAP(testuser): Corrupted index cache file /full/path/
>>>> dovecot.index.cache:  record points outside file
>>>
>>> So you're using AIX? Do you also happen to use NFS? Can you reproduce
>>> this error by running imaptest for a while? http://imapwiki.org/ImapTest
>>>
>>>
>> No NFS here. The filesystem is called GPFS. It is a clustered FS.
>
> Ah, that probably explains it. Can multiple different servers modify the
> same mailbox?

Yes. I have N+1 machines that access the same filesystem and it looks 
local to both machines.

> 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. This should probably be changed at some point, since it
> could just buffer more data to memory and then lock, write, unlock. That
> would also make the code simpler, since it can currently leave holes to
> the file because it has to guess initially how much space to reserve..
>
>
Ok. Should I disable Cache file or what would be the best fix?

Thanks,
Jonathan


More information about the dovecot mailing list