[Bugs] #1160 UNSP: no way to wait for index to finish updating/(re)building

SugarLabs Bugs bugtracker-noreply at sugarlabs.org
Tue Aug 11 16:45:59 EDT 2009


#1160: no way to wait for index to finish updating/(re)building
------------------------------------------+---------------------------------
    Reporter:  sascha_silbe               |          Owner:  tomeu            
        Type:  defect                     |         Status:  new              
    Priority:  Unspecified by Maintainer  |      Milestone:  0.86             
   Component:  sugar-datastore            |        Version:  Git as of bugdate
    Severity:  Unspecified                |       Keywords:                   
Distribution:  Unspecified                |   Status_field:  New              
------------------------------------------+---------------------------------
 The datastore (re)builds the index in the background (idle loop), but has
 no API to wait for this to finish. That creates a race condition when
 using the datastore from a test suite:
 The test suite needs to run from a clean directory every time (so it's
 deterministic), thus causing the datastore to do an index build on
 startup. The datastore is started automatically by DBus and the tests fire
 their API requests right away, so any API call that uses the index will
 fail to work as intended (for regular use).

-- 
Ticket URL: <http://dev.sugarlabs.org/ticket/1160>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list