[Nepomuk] [PATCH] Strigiservice Initial Run timing bug.

Vishesh Handa handa.vish at gmail.com
Tue Apr 20 22:01:48 CEST 2010


Hi

Currently the initial indexing timing is buggy. The timer isn't paused when
the indexing is paused. This patch fixes the issue.

I've done a minor amount of refactoring by adding two private slots -
pauseIndexing and resumeIndexing. Should I have prefixed them with slot?
I've refactored the code cause it makes it easier to read, and the TODO
given (Add actions to the initial indexing notification) is now easily
doable.

Now to the part I suck at - Testing. How in the world am I supposed to test
it? It tried to change the location of the virtuoso repository
(nepomukserverrc file) to a pen drive which didn't have adequate space, but
that didn't really work. I started getting errors like -
[/home/vishesh/kde/bin/nepomukservicestub]
"/home/vishesh/kde/bin/nepomukservicestub(5372)" Error in thread 3052354416
: "SQLExecDirect failed on query 'sparql  ask where { {
<nepomuk:/ctx/7d689871-f944-460b-b0bf-75dbd444766c> ?p1 ?o1 . } UNION { ?s2
<nepomuk:/ctx/7d689871-f944-460b-b0bf-75dbd444766c> ?o2 . } UNION { ?s3 ?p3
<nepomuk:/ctx/7d689871-f944-460b-b0bf-75dbd444766c> . } UNION { graph
<nepomuk:/ctx/7d689871-f944-460b-b0bf-75dbd444766c> { ?s4 ?4 ?o4 . } . } }'
(iODBC Error: [OpenLink][Virtuoso iODBC Driver][Virtuoso Server]SR174: Log
out of disk : while writing new IRI_ID allocation to log file)"

And I didn't get any notification saying there wasn't adequate space. :-/

Could somebody test it out by draining their laptop battery? I have no idea
how I can emulate a battery on my desktop.

Thanks

- Vishesh Handa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/nepomuk/attachments/20100421/3f7d6b3e/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bigger_patch.diff
Type: text/x-patch
Size: 3121 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/nepomuk/attachments/20100421/3f7d6b3e/attachment.diff 


More information about the Nepomuk mailing list