digideskio / zotonic

Automatically exported from code.google.com/p/zotonic
0 stars 0 forks source link

After a module crashes, the new dynamic observe_* methods are not re-initialized #100

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When a module crashes it loses its notification handlers when it is started 
again by z_module_sup.

z_module_sup:add_observers(Module, Pid, Context) should be called somewhere. 
But how to detect when a child crashes?

Original issue reported on code.google.com by scherpenisse on 14 Aug 2010 at 3:18

GoogleCodeExporter commented 8 years ago
good catch, this must be the root cause of the solr-problems we are seeing.

I will fix it.

Original comment by ma...@pobox.com on 14 Aug 2010 at 7:02

GoogleCodeExporter commented 8 years ago
The current module supervisor uses a standard supervisor.  For better control 
of the crashes and restarts I am replacing it with a z_supervisor based module 
manager.  Similar to what has been done to the sites supervisor previously.

Original comment by ma...@pobox.com on 15 Aug 2010 at 8:21

GoogleCodeExporter commented 8 years ago
Fixed by r2829ed3236

Original comment by ma...@pobox.com on 15 Aug 2010 at 12:22