view · edit · sidebar · attach · print · history

20120330-reproduce-floating-data-oddb_org

<< | Index | Masa.20120329-reproduce-floating-data-oddb_org >>


Test

  • what happens if ODBA.cache.cleaner stops

/usr/local/lib/ruby/gems/1.9.1/gems/odba-1.0.8/lib/odba/cache.rb

 module ODBA
   class Cache
    include Singleton
    include DRb::DRbUndumped
    CLEANER_PRIORITY = 0  # :nodoc: 
    #CLEANING_INTERVAL = 5 # :nodoc: 
    CLEANING_INTERVAL = 0 # :nodoc: 

Result

  • Nothing happens

Note

  • It is sure that
    • ODBA.cache.clean is not thread safe
    • Persistable#odba_stubize causes data floating

This patch may help (change mutex part in ODBA.cache)

view · edit · sidebar · attach · print · history
Page last modified on March 30, 2012, at 07:37 PM