What happens is that the comp presence state fsm in avnd_clc.c ignores the 
event 'RESTART' in presence state 'RESTARTING'.

Makes me wonder we/how events can be silently ignored in the fsm. Aren't all 
unhandled events a bug?


---

** [tickets:#542] AMF: "avaDown" event is not handled correctly in RESTARTING 
state**

**Status:** unassigned
**Created:** Tue Aug 13, 2013 11:40 AM UTC by Hans Feldt
**Last Updated:** Tue Aug 13, 2013 11:40 AM UTC
**Owner:** nobody

If a comp crashes or does exit() without calling saAmfResponse(OK) then the 
component presence state machine hangs forever in RESTARTING state.

Aug 13 13:20:40 uabhafe-eld osafamfnd[2445]: NO Admin restart requested for 
'safComp=AmfDemo,safSu=SU2,safSg=AmfDemo,safApp=AmfDemo1'
Aug 13 13:20:40 uabhafe-eld amf_demo[2871]: Terminating
Aug 13 13:20:40 uabhafe-eld osafamfnd[2445]: NO 
'safComp=AmfDemo,safSu=SU2,safSg=AmfDemo,safApp=AmfDemo1' faulted due to 
'avaDown' : Recovery is 'componentRestart'


$ date;amf-state comp all 
safComp=AmfDemo,safSu=SU2,safSg=AmfDemo,safApp=AmfDemo1
Tue Aug 13 13:39:53 CEST 2013
safComp=AmfDemo,safSu=SU2,safSg=AmfDemo,safApp=AmfDemo1
        saAmfCompOperState=ENABLED(1)
        saAmfCompPresenceState=RESTARTING(5)
        saAmfCompReadinessState=IN-SERVICE(2)

very easy to reproduce, just put an exit() in the terminate callback and do 
admin comp restart


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to