Bug 270135 - Idle detection in akonadi_nepomuk_mail_feeder broken
Summary: Idle detection in akonadi_nepomuk_mail_feeder broken
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Nepomuk Feeder Agents (show other bugs)
Version: 4.7
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Tobias Koenig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-05 10:40 UTC by Andre Heinecke
Modified: 2012-03-12 00:53 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andre Heinecke 2011-04-05 10:40:59 UTC
I am not sure if this is a bug for KIdleTime but i can only say that it manifests itself in the akonadi_nepomuk_mail_feeder. 
On Windows this feeder always reports "system is busy", in a setup where contact_feeder and calendar_feeder correctly fill the index (because they have idle detection disabled) this leads to mails not beeing indexed at all.
Comment 1 Andre Heinecke 2011-04-05 11:06:34 UTC
Git commit b334e52933cde1f995f59d30b93a73d1c0e2c9e2 by Andre Heinecke.
Committed on 05/04/2011 at 11:02.
Pushed by aheinecke into branch 'master'.

Disable idle detection for Windows

    On Windows either KIdleTime is broken or the Nepomuk idle detection,
    causing the feeder to not index anything when idle detection is
    enabled. Idle detection is already disabled in the Contacts and
    Calendar feeder.
    CCBUG: 270135

M  +5    -0    nepomuk_email_feeder/nepomukemailfeeder.cpp     

http://commits.kde.org/kdepim/b334e52933cde1f995f59d30b93a73d1c0e2c9e2
Comment 2 Alejandro Nova 2011-07-10 20:17:52 UTC
Please, remove that idle detection. That detection is simply crazy.

1. When I type text with idle CPU usage, the system CAN index, but akonadi_nepomuk_mail_feeder suspends indexing. Wrong.
2. When my CPU usage is high but I am not in the computer, the system CANNOT index, but akonadi_nepomuk_mail_feeder indexes. More WRONG.
3. When I am on batteries, Strigi indexing is suspended, but akonadi_nepomuk_mail_feeder doesn't follow Strigi policies, and indexes. TRIPLE WRONG.

Please, scrap all that code and replace idle policies with nepomukstrigiservice's (nice=19, index even if I'm typing, suspend with nepomukstrigiservice when I'm on battery power).
Comment 3 Alejandro Nova 2011-07-10 20:23:04 UTC
I'm on Linux, and this detection is useless here.
Comment 4 Andre Heinecke 2011-07-11 08:33:50 UTC
Alejandro I might agree with your assesment of the state there but I do not think this bug is the correct place. 
"Broken" in this discription meant it does not work at all. Broken in your definition means that it does not work like you think it should.

This should imho rather go into a message to the kdepim mailing list to get a discussion started if the way idle detection is used makes sense. If you do think bugs kde.org is the best place for it please open a new bug because this bug is specific about Windows and maybe the way that KIdletime is used there in the Nepomuk feeders as described in Comment #1
Comment 5 Alejandro Nova 2011-07-11 14:24:51 UTC
Right then. Ignore that mail and I'll follow the proper procedures.
Comment 6 Volker Krause 2012-03-11 17:12:47 UTC
akonadi_nepomuk_mail_feeder doesn't exist anymore in KDE PIM 4.8. Idle detection/throttling has been completely reworked in its replacement.
Comment 7 Alejandro Nova 2012-03-12 00:53:27 UTC
I was trying to find this one to close it as FIXED myself, but I got lost in the new Bugzilla. Anyway, this issue is now irrelevant, because of all the fixes that came along KDE 4.8.1
Comment 8 Alejandro Nova 2012-03-12 00:53:51 UTC
Thanks!