ItemFetchJob never finishes
Daniel Vrátil
dvratil at kde.org
Sat Jan 21 14:10:42 GMT 2017
Hey,
thanks for the output, there is indeed something weird in the ItemRetriever
code when dealing with multiple requesters. Surprisingly it's something I
wrote :-) We have a test, but this path was not covered. I'll need to give it
some thought and understand that part of the code again, but I don't know when
I'll have time. Some pretty busy weeks ahead.
Dan
On Wednesday, January 18, 2017 12:15:55 AM CET David Faure wrote:
> In both 16.12 and master, I have regularly the problem that KMail gets stuck
> in a job, and then it won't do any other job (e.g. deleting an email,
> fetching new mails, etc.)
>
> The screenshot attached shows that it's an ItemFetchJob for ID 458937 which
> never finishes.
>
> Grepping the logs for that ID shows the following:
>
> 2017-01-17T23:38:50 Akonadi(8254)/org.kde.pim.akonadiserver
> Akonadi::Server::ItemRetrievalManager::requestItemDelivery: posting
> retrieval request for items (458937) there are 1 queues and 0 items in
> mine 2017-01-17T23:38:50 Akonadi(8254)/org.kde.pim.akonadiserver
> Akonadi::Server::ItemRetrievalJob::start: processing retrieval request for
> item (458937) parts: ("ENVELOPE") of resource: "akonadi_imap_resource_2"
> 2017-01-17T23:38:50 Akonadi(8254)/org.kde.pim.akonadiserver
> Akonadi::Server::ItemRetrievalManager::requestItemDelivery: posting
> retrieval request for items (458937) there are 1 queues and 0 items in
> mine 2017-01-17T23:38:50 Akonadi(8254)/org.kde.pim.akonadiserver
> Akonadi::Server::ItemRetrievalManager::requestItemDelivery: posting
> retrieval request for items (458937) there are 1 queues and 1 items in
> mine 2017-01-17T23:38:50 Akonadi(8254)/org.kde.pim.akonadiserver
> Akonadi::Server::ItemRetrievalManager::requestItemDelivery: posting
> retrieval request for items (458937) there are 1 queues and 2 items in
> mine 2017-01-17T23:38:50 Akonadi(8254)/org.kde.pim.akonadiserver
> Akonadi::Server::ItemRetrievalManager::retrievalJobFinished: someone else
> requested item (458937) as well, marking as processed 2017-01-17T23:38:50
> Akonadi(8254)/org.kde.pim.akonadiserver
> Akonadi::Server::ItemRetrievalManager::retrievalJobFinished: someone else
> requested item (458937) as well, marking as processed 2017-01-17T23:38:50
> Akonadi(8254)/org.kde.pim.akonadiserver
> Akonadi::Server::ItemRetrievalManager::retrievalJobFinished: someone else
> requested item (458937) as well, marking as processed 2017-01-17T23:38:50
> akonadi_archivemail_agent(2956)/org.kde.pim.akonadicore
> Akonadi::EntityTreeModelPrivate::monitoredItemChanged: Got a stale
> notification for an item which was already removed. 458937 ""
>
> It looks like this code in retrievalJobFinished is the problem, I usually
> don't get that "someone else requested item ... as well" debug output, and
> I do remember seeing it the last time this same bug happened.
>
> Dan, can you double-check that piece of code in ItemRetrievalManager? Does
> it somehow fail to terminate the client job?
>
> (Is this code path unittested and does the test pass? ;) )
>
> Thanks!
--
Daniel Vrátil
www.dvratil.cz | dvratil at kde.org
IRC: dvratil on Freenode (#kde, #kontact, #akonadi, #fedora-kde)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20170121/47ce0369/attachment.sig>
More information about the kde-pim
mailing list