[Bugs] #2132 URGE: Datastore index corruption

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Tue Aug 24 00:24:49 EDT 2010


#2132: Datastore index corruption
--------------------------------+-------------------------------------------
    Reporter:  bernie           |          Owner:  tomeu                      
        Type:  defect           |         Status:  closed                     
    Priority:  Urgent           |      Milestone:  Unspecified by Release Team
   Component:  sugar-datastore  |        Version:  Git as of bugdate          
    Severity:  Blocker          |     Resolution:  fixed                      
    Keywords:  dextrose, r+     |   Distribution:  Unspecified                
Status_field:  Unconfirmed      |  
--------------------------------+-------------------------------------------
Changes (by bernie):

  * status:  new => closed
  * resolution:  => fixed


Old description:

> Today we figured out one of the possibly many ways in which the index of
> the datastore can get corrupted in Sugar.
>
> Here's an almost infallible recipe to reproduce it:
>
> 1. open Write
> 2. type something
> 3. close Write
> 4. wait a few seconds
> 5. kill -9 the datastore process
> 6. restart sugar (ctrl-alt-del)
>
> Your saved entry is gone. It still takes up space on disk, but it's no
> longer visible until you rebuild the index.
>
> Step 5 is just an artificial way to reproduce the problem. Other equally
> effective ways to trigger this data loss issue in the real-world include
> running out of battery, holding the power button for 4 seconds, and
> triggering the kernel out-of-memory killer.

New description:

 Today we figured out one of the possibly many ways in which the index of
 the datastore can get corrupted in Sugar.

 Here's an almost infallible recipe to reproduce it:

 1. open Write
 2. type something
 3. close Write
 4. wait a few seconds
 5. kill -9 the datastore process
 6. restart sugar (ctrl-alt-del)

 Your saved entry is gone. It still takes up space on disk, but it's no
 longer visible until you rebuild the index.

 Step 5 is just an artificial way to reproduce the problem. Other equally
 effective ways to trigger this data loss issue in the real-world include
 running out of battery, holding the power button for 4 seconds, and
 triggering the kernel out-of-memory killer.

--

Comment:

 Both patches are committed.

 This hopefully closes one of the nastiest data loss bugs that plagued
 Sugar for several years!

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/2132#comment:10>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list