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

David Jarvie djarvie at kde.org
Sun Oct 9 19:53:58 BST 2011


On Sunday 09 October 2011 15:55:41 Kevin Krammer wrote:
> 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 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?

Hi Kevin,

Here are the debugger contents. The job tracker shows the InvalidateCacheJob still running, with the following sub-jobs showing as ended:

CollectionFetchJob
- ItemFetchJob
- - CollectionSelectJob.

akonadi_kalarm_resource_359 (0x8b9d900) 6 HRID MODIFY ((-15 "file:///home/david/.kdetrunk/share/apps/kalarm/exp.ics") (0 "")) PARENT 0 REMOTEID "file:///home/david/.kdetrunk/share/apps/kalarm/exp.ics" KAlarmCompatibility "4 10910" 
akonadi_kalarm_resource_359 (0x8b9d900) 6 OK MODIFY done 
akonadi_kalarm_resource_359 (0x8b9d900) 7 HRID LSUB ((-17 "file:///home/david/.kdetrunk/share/apps/kalarm/exp.ics") (0 "")) 0 () () 
akonadi_kalarm_resource_359 (0x8b9d900) * 261 0 (NAME "Old expired" MIMETYPE (application/x-vnd.kde.alarm.archived) REMOTEID "file:///home/david/.kdetrunk/share/apps/kalarm/exp.ics" REMOTEREVISION "" RESOURCE "akonadi_kalarm_resource_359" CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT -1 SYNCONDEMAND false LOCALPARTS (ALL)) ENTITYDISPLAY "(\"Old expired\" \"kalarm\" \"\" ())" AccessRights "wcdW" KAlarmCompatibility "4 10910" KAlarmCollection "2 2 1 0") 
akonadi_kalarm_resource_359 (0x8b9d900) 7 OK List completed 
akonadi_kalarm_resource_359 (0x8b9d900) 8 SELECT SILENT 261 
akonadi_kalarm_resource_359 (0x8b9d900) 8 OK Completed 
akonadi_kalarm_resource_359 (0x8b9d900) 9 FETCH 1:* EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE DATETIME) 
akonadi_kalarm_resource_359 (0x8b9d900) 9 OK FETCH completed 
AkonadiConsole Browser Widget (0xb622cfc8) 3 LSUB 0 0 () (ANCESTORS INF) 
AkonadiConsole Browser Widget (0xb622cfc8) 3 OK List completed 
AkonadiConsole Browser Widget (0xb622cfc8) 4 LSUB 261 0 () (ANCESTORS INF) 
AkonadiConsole Browser Widget (0xb622cfc8) * 261 0 (NAME "Old expired" MIMETYPE (application/x-vnd.kde.alarm.archived) REMOTEID "file:///home/david/.kdetrunk/share/apps/kalarm/exp.ics" REMOTEREVISION "" RESOURCE "akonadi_kalarm_resource_359" CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT -1 SYNCONDEMAND false LOCALPARTS (ALL)) ANCESTORS ((0 "")) ENTITYDISPLAY "(\"Old expired\" \"kalarm\" \"\" ())" AccessRights "wcdW" KAlarmCompatibility "4 10910" KAlarmCollection "2 2 1 0") 
AkonadiConsole Browser Widget (0xb622cfc8) 4 OK List completed 

-- 
David Jarvie.
KDE developer.
KAlarm author -- http://www.astrojar.org.uk/kalarm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20111009/d0243171/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