#2773 HIGH Trial-3: Some sugar modules are running code on import causing hard to debug performance issues

Zarro Boogs per Child bugtracker at laptop.org
Tue Aug 14 09:47:48 EDT 2007


#2773: Some sugar modules are running code on import causing hard to debug
performance issues
---------------------+------------------------------------------------------
  Reporter:  J5      |       Owner:  tomeu  
      Type:  defect  |      Status:  new    
  Priority:  high    |   Milestone:  Trial-3
 Component:  sugar   |     Version:         
Resolution:          |    Keywords:  review+
  Verified:  0       |  
---------------------+------------------------------------------------------
Comment (by smcv):

 No, calls will fail after the service crashes or is stopped. If you add
 follow_name_owner_changes=True to the get_object() call, it *might* work,
 or not - it depends entirely on the D-Bus interface you're wrapping.
 That's why the dbus-python default is to not follow owner changes.

 This can only be fixed on a case-by-case basis, by someone who understands
 the API that's being wrapped.

 If the API you're wrapping is stateless, using follow_name_owner_changes
 will work.

 If you want to cope with crashes in a stateful API, you probably have to
 expose more of the detail of what's going on to the API user. For
 instance, invalidating objects when the service that created them crashes.

-- 
Ticket URL: <https://dev.laptop.org/ticket/2773#comment:11>
One Laptop Per Child <http://laptop.org/>



More information about the Bugs mailing list