[Kde-pim] Problem with Akonadi::InvalidateCacheJob not terminating in single file resource

Kevin Krammer kevin.krammer at gmx.at
Sun Oct 9 15:55:41 BST 2011


On Sunday, 2011-10-09, David Jarvie wrote:
> I'm getting problems with Akonadi::InvalidateCacheJob permanently showing
> as running in the akonadiconsole job tracker, for the KAlarm single file
> resource (which is derived from SingleFileResource<>). This condition
> occurs after the resource's calendar file is overwritten externally - I
> presume that the InvalidateCacheJob is started in
> SingleFileResourceBase::fileChanged().
> 
> When this happens, it prevents a CollectionModifyJob which is started
> afterwards by the resource from executing - its status is stuck at
> "initial" in the job tracker. The CollectionModifyJob is essential to
> update the resource's status attributes, so this is a serious problem.
> 
> The akonadiconsole debugger shows only a message which is always output by
> SingleFileResourceBase::fileChanged():
> 
>    "AgentBase(akonadi_kalarm_resource_359): The file
> 'file:///home/david/.kdetrunk/share/apps/kalarm/exp.ics' was changed on
> disk while there were still pending changes in Akonadi. To avoid data
> loss, a backup of the internal changes has been created at
> 'file:///home/david/.kdetrunk/share/apps/akonadi_kalarm_resource_359/exp.i
> cs-20'."
> 
> I have run out of ideas on how to fix this, or find out what is going
> wrong, without spending a lot of time going through Akonadi code, so any
> help would be appreciated.

I had a look at the InvalidateCacheJob and it basically has three phases:
(1) it fetches the given collection
(2) it fetched all items stored in that collection
(3) it creates an ItemModifyJob for each item to discard their payloads

It ends when the last ItemModifyJob's result is in.

Since each phase is communication with Akonadi server, the respective protocol 
chatter should be optainable via the Akonadiconsole debugger.

Could you attach the contents of the resource's debugger tab?

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20111009/1929a837/attachment.sig>
-------------- next part --------------
_______________________________________________
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