[Kde-pim] I want to break Maildir resource…

Martin Steigerwald Martin at lichtvoll.de
Sun Jun 22 15:44:40 BST 2014


Hi!

After

[Akonadi] [Bug 336582] New: Sudden write interruption during akonadictl vacuum 
causes database corruption

(Dan, I don´t agree. These have been SSDs, there has been no power loss. I 
think its a rename without fsync() bug. Ext4 catches these as Ext3 didn´t have 
Delayed Allocation and Linus insisted on not breaking – broken – userspace, 
XFS and BTRFS do not,)

and

[Akonadi] [Bug 336581] New: accidental database loss causes Akonadi / KMail 
breaks correct folder assignments

which I just triggered due to seriously being fed up with Maildir resource 
performance, I want to break it.



Now that I probably have your attention:

I think most of the issue is related to folder synchronization. Even after 
convincing it to at least not sort the directory entries anymore. I.e. the 
following bug:

[Akonadi] [Bug 334216] New: synchronizes folder with filesystem after 
downloading and filtering mails needlessly

I want to disable out any folder synchronization – i.e. "the lets look if the 
filesystem still has all the mail files we have referenced in the database" 
thing – that seems to be unnecessary to me.

I.e. about all folder synchronization, since honestly if Akonadi works 
correctly I only see two kinds of synchronization as necessary:

1) Initial folder sync.

2) Folder sync whenever someone put a mail file there while Akonadi is not 
running.


I want to disable any other folder synchronizations, cause filesystems usually 
do not loose files, you know?


I have an appointment in a moment and will be busy in the next two weeks, but 
if you have any hint at where to look in the source, please hint me.

I will create a nice break-maildir-resource branch in git and disable any 
folder sync that is not necessary. And then I see what breaks, cause honestly:

It can´t corrupt any data, can it?


Ideally I want to test with:

1) Do an initial folder sync.

2) Just for safety for now: Do an folder sync if I click a folder and that 
folder has not been synced in the last day or so. Or four hours.

Thats it.

Especially:

No folder syncing on filtering mails into folders. I had an empty database 
today and yet newly filtered mails showed up in the respective folders *before* 
the folder sync it triggered as completed. It was just the old mails, that 
KMail did not show, since the folder has not been synced initially at that 
time. The new mails KMail displayed just fine. So Akonadi knows where mailfilter 
had sorted the mails *without* a folder sync.

Ciao,
-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list