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

SugarLabs Bugs bugtracker-noreply at sugarlabs.org
Wed Aug 12 08:18:56 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                |     Resolution:                   
    Keywords:  r?                         |   Distribution:  Unspecified      
Status_field:  New                        |  
------------------------------------------+---------------------------------

Comment(by sascha_silbe):

 > But in order to be deterministic, you also need to have the same data
 and metadata, having the same index is not enough. So, why not just delete
 the whole DS, then adding entries with Create?
 That's exactly what I'm doing. The test suite creates a temporary
 directory and starts up a new datastore instance with HOME set to the
 temporary directory. But since an empty directory doesn't contain an
 index, the datastore will schedule an index (re)build. I need to wait for
 the index build to finish, otherwise API calls like get_uniquevalues() or
 find() won't work properly.

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


More information about the Bugs mailing list