[Nepomuk] Review Request 110794: FileIndexer: report if indexing certain files failed
Simeon Bird
bladud at gmail.com
Mon Jun 3 03:57:24 UTC 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/110794/
-----------------------------------------------------------
Review request for Nepomuk, Jörg Ehrichs and Vishesh Handa.
Description
-------
FileIndexer: report if indexing certain files failed
At the moment, if the fileindeer chokes on a file, it will be repeatedly
requeued, and the indexer will consume all the CPU forever.
This patch stores a list of any files that did not index internally and
does not add them to the queue. This list does not persist across
restarts, because indexing failures may well be transient.
We are limited to 100 failed files. Once we have this many, just stop
indexing.
Furthermore add dbus methods to the indexer service to report the
number of failed files as well as their filenames and error message.
BUG: 315817
FIXED-IN: 4.11
There should be some sort of ui component for this, so that user can easily see and
copy-paste the names of files that didn't index properly. I didn't write this yet,
as I was hoping that by waiting I can just add it to the new qml controller.
I'm not completely convinced by the showFailedFiles function either - a newline
separated list seems like it could be improved upon.
This addresses bug 315817.
http://bugs.kde.org/show_bug.cgi?id=315817
Diffs
-----
interfaces/org.kde.nepomuk.FileIndexer.xml 9e56cb139f05e4a4267adf575d0894c5a69935a1
services/fileindexer/fileindexer.h 3d87a04bcf6a7d8c9402e8085daeb7c630bc4e91
services/fileindexer/fileindexer.cpp 8c712dfc43af06c55f5503295e8460da89e5fcb5
services/fileindexer/fileindexingqueue.h b017f226b0a209d57bcac7b9fb949d5b17e79cba
services/fileindexer/fileindexingqueue.cpp 2b119255e39fc873db08148291e1638e1a8c510a
services/fileindexer/indexscheduler.h c6a9e35bed7ce885a8948aec37eccd5d23f7eb5d
services/fileindexer/indexscheduler.cpp 2835eb21274c80738b47f4526c47028d0d9dd06e
Diff: http://git.reviewboard.kde.org/r/110794/diff/
Testing
-------
Compiled, ran, called the dbus methods. No files fail to index for me now though
Thanks,
Simeon Bird
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/nepomuk/attachments/20130603/ada8d722/attachment.html>
More information about the Nepomuk
mailing list