Bug 427358 - akonadi_ical_resource stuck in InvalideCacheForCollection
Summary: akonadi_ical_resource stuck in InvalideCacheForCollection
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: ICal file resource (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-05 10:21 UTC by Markus
Modified: 2020-10-11 17:45 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.15.3


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus 2020-10-05 10:21:35 UTC
SUMMARY
Running some remote ics calendars. In the past they updated automatically, but current it just stucks in InvalideCacheForCollection.

STEPS TO REPRODUCE
Reproducing is currently not possible, due to bug 425460.

OBSERVED RESULT
When I look in akonadi console in the task list of the resource it is always sitting in the current task "InvalideCacheForCollection". (With a "SyncAll" queued up but never executed.)

In the code I see that "InvalidateCacheJobPrivate::itemStoreResult" is calling "emitResult", but "ResourceScheduler::taskDone" or "ResourceScheduler::executeNext" is never called again.

SOFTWARE/OS VERSIONS
Linux: 5.8
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.74.0
KDE Apps Version: 20.08.1
Qt Version: 5.15.1
Comment 1 Markus 2020-10-05 14:14:23 UTC
I recover (for the moment) by putting the agent offline, restart it, abort all activities, put it online again and manually start synchronize all.

Restarting the agent again, will block in InvalideCacheForCollection again, when the (ics) file changed: "The hash has changed."


I checked in resourcebase.cpp, the commit removed the connect of the result?
https://github.com/KDE/akonadi/commit/97fcc9bebd790289b02680c3db7e621bb6a1a9a0#diff-b2f3b083990c6ceb5ed429b2a5fd820fL698

Reverting that bit makes InvalideCacheForCollection finish again.

Was it removed on purpose?
Comment 2 Laurent Montel 2020-10-05 14:35:16 UTC
I added Dan as CC of this bug. As indeed it seems not logical to remove it.
But perhaps he has a reason for removing it
Comment 3 Laurent Montel 2020-10-11 17:45:09 UTC
Git commit b2e4ee76d5831df075349a5a597c371a4d9c1460 by Laurent Montel.
Committed on 11/10/2020 at 17:43.
Pushed by mlaurent into branch 'release/20.08'.

Bug 427358 - akonadi_ical_resource stuck in InvalideCacheForCollection

Readd code removed.
Thanks for Markus for debugging it
FIXED-IN: 5.15.3

M  +2    -1    src/agentbase/resourcebase.cpp

https://invent.kde.org/pim/akonadi/commit/b2e4ee76d5831df075349a5a597c371a4d9c1460