On 12-Feb-14 3:45 PM, Hans Feldt wrote: >> -----Original Message----- >> From: praveen malviya [mailto:praveen.malv...@oracle.com] >>>> Please clear one doubt here before testing it. Since avadown is received >>>> by AMFND and it is ignoring it. It means AMFND >>>> is not cleaning up comp related information in its database. >>>> But what about MDS. MDS should clear all comp related information in >>>> which case >>>> next time AMFND's message of sending any callback (not only terminate) >>>> to that component should fail. >>> Yes that is what happens in the event handler >>> avnd_comp_clc_inst_term_hdler() >>> It calls m_AVND_COMP_REG_PARAM_RESET >> But in shutdown phase our sequence is: >> 1)If component has assignment then >> removal of assignment and then cleanup (in >> avnd_evt_last_step_term_evh). >> 2)If component is not assigned then >> only cleanup (in avnd_evt_last_step_term_evh) >> We are not invoking any terminate callback in shutdown phase. > Aha now I see, the commit message should say CSI remove callback, not > terminate callback! Even then I am seeing callabck is not issued: Relevant code and traces are here:
In comp.cc /* remove this csi */ rc = avnd_comp_cbk_send(cb, comp, AVSV_AMF_CSI_REM, 0, csi); m_AVND_COMP_CSI_CURR_ASSIGN_STATE_SET(csi, AVND_COMP_CSI_ASSIGN_STATE_REMOVING); m_AVND_SEND_CKPT_UPDT_ASYNC_UPDT(cb, csi, AVND_CKPT_COMP_CSI_CURR_ASSIGN_STATE); if (NCSCC_RC_SUCCESS != rc) { if (m_AVND_IS_SHUTTING_DOWN(cb)) { /* Csi remove failure may be because of component crash during shutting down. */ rc = avnd_comp_csi_remove_done(cb, comp, csi); if (NCSCC_RC_SUCCESS != rc) goto done; } else goto done; } If mds send fails simply remove done is called. But this code is not present in csi null case. But again in shutdown phase we issue remove callback with target one. Below mds send failed for remove callback. Feb 12 11:59:19.616120 osafamfnd [22653:tmr.cc:0125] TR callback response timer stopped Feb 12 11:59:19.616127 osafamfnd [22653:cbq.cc:1032] << avnd_comp_cbq_csi_rec_del Feb 12 11:59:19.616132 osafamfnd [22653:susm.cc:0940] >> avnd_su_si_oper_done: 'safSu=SU1,safSg=AmfDemo,safApp=AmfDemo1' 'safSi=AmfDemo1,safApp=AmfDemo1' Feb 12 11:59:19.616138 osafamfnd [22653:susm.cc:0948] TR SI 'safSi=AmfDemo1,safApp=AmfDemo1' Feb 12 11:59:19.616160 osafamfnd [22653:susm.cc:0959] NO Removed 'safSi=AmfDemo1,safApp=AmfDemo1' from 'safSu=SU1,safSg=AmfDemo,safApp=AmfDemo1' Feb 12 11:59:19.616167 osafamfnd [22653:susm.cc:0908] TR all SIs at rank 2 removed Feb 12 11:59:19.616172 osafamfnd [22653:susm.cc:0709] >> avnd_su_si_remove: 'safSu=SU1,safSg=AmfDemo,safApp=AmfDemo1' 'safSi=AmfDemo,safApp=AmfDemo1' Feb 12 11:59:19.616178 osafamfnd [22653:comp.cc:1218] >> avnd_comp_csi_remove: comp: 'safComp=AmfDemo,safSu=SU1,safSg=AmfDemo,safApp=AmfDemo1' : csi: '0xaa8e50' Feb 12 11:59:19.616184 osafamfnd [22653:comp.cc:1219] IN Removing 'safCsi=AmfDemo,safSi=AmfDemo,safApp=AmfDemo1' from 'safComp=AmfDemo,safSu=SU1,safSg=AmfDemo,safApp=AmfDemo1' Feb 12 11:59:19.616190 osafamfnd [22653:comp.cc:1884] >> avnd_comp_cbk_send: 'safComp=AmfDemo,safSu=SU1,safSg=AmfDemo,safApp=AmfDemo1' 4 Feb 12 11:59:19.616197 osafamfnd [22653:cbq.cc:0628] >> avnd_comp_cbq_send Feb 12 11:59:19.616203 osafamfnd [22653:cbq.cc:0697] >> avnd_comp_cbq_rec_send Feb 12 11:59:19.616210 osafamfnd [22653:mds.cc:1150] >> avnd_mds_send: Msg type '2' Feb 12 11:59:19.616304 osafamfnd [22653:mds.cc:1199] TR ncsmds_api for 0 FAILED, dest=2010f00005a6a <---------------------------------mds failed Feb 12 11:59:19.616312 osafamfnd [22653:mds.cc:1205] << avnd_mds_send: 2 Feb 12 11:59:19.616318 osafamfnd [22653:cbq.cc:0758] << avnd_comp_cbq_rec_send Feb 12 11:59:19.616324 osafamfnd [22653:cbq.cc:0659] << avnd_comp_cbq_send Feb 12 11:59:19.616329 osafamfnd [22653:comp.cc:2024] << avnd_comp_cbk_send: 2 Feb 12 11:59:19.616334 osafamfnd [22653:comp.cc:1687] >> avnd_comp_csi_remove_done: 'safComp=AmfDemo,safSu=SU1,safSg=AmfDemo,safApp=AmfDemo1' 'safCsi=AmfDemo,safSi=AmfDemo,safApp=AmfDemo1' Feb 12 11:59:19.616355 osafamfnd [22653:comp.cc:1688] IN Removed 'safCsi=AmfDemo,safSi=AmfDemo,safApp=AmfDemo1' from 'safComp=AmfDemo,safSu=SU1,safSg=AmfDemo,safApp=AmfDemo1' Feb 12 11:59:19.616369 osafamfnd [22653:cbq.cc:1003] >> avnd_comp_cbq_csi_rec_del: 'safComp=AmfDemo,safSu=SU1,safSg=AmfDemo,safApp=AmfDemo1', 'safCsi=AmfDemo,safSi=AmfDemo,safApp=AmfDemo1' Feb 12 11:59:19.616381 osafamfnd [22653:cbq.cc:1032] << avnd_comp_cbq_csi_rec_del Feb 12 11:59:19.616393 osafamfnd [22653:susm.cc:0940] >> avnd_su_si_oper_done: 'safSu=SU1,safSg=AmfDemo,safApp=AmfDemo1' 'safSi=AmfDemo,safApp=AmfDemo1' > /Hans ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk _______________________________________________ Opensaf-devel mailing list Opensaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensaf-devel