Ack. Thanks -Nagu > -----Original Message----- > From: Praveen Malviya > Sent: 20 June 2014 17:09 > To: [email protected]; Nagendra Kumar > Cc: [email protected] > Subject: [PATCH 1 of 1] amfnd : speed up shutdown of standby SC upon failover > during its shutdown [#942] > > osaf/services/saf/amf/amfnd/su.cc | 12 ++++++++++-- > 1 files changed, 10 insertions(+), 2 deletions(-) > > > Applications face problems in accessing opensaf services > during shutdown of opensaf on both the controllers. > > As soon as active controller completes failover happens. Standby AMFND > ignores > active modification of middleware and continue with its own pace of shutting > down opensaf. Since this process of standby controller shutdown mauy take > long time, application can have problems in accessing opensaf services. > > AMF should speed up shutdown on stanby controller if it gets failover request > during opensaf shutdown. It means all the components should be cleaned up as > soon as possible. > > diff --git a/osaf/services/saf/amf/amfnd/su.cc > b/osaf/services/saf/amf/amfnd/su.cc > --- a/osaf/services/saf/amf/amfnd/su.cc > +++ b/osaf/services/saf/amf/amfnd/su.cc > @@ -376,12 +376,20 @@ uint32_t avnd_evt_avd_info_su_si_assign_ > info->su_name.value, info->msg_act); > goto done; > } > + > if ((cb->term_state == > AVND_TERM_STATE_OPENSAF_SHUTDOWN_INITIATED) || > (cb->term_state == > AVND_TERM_STATE_OPENSAF_SHUTDOWN_STARTED)) { > + if ((su->is_ncs == true) && > + (info->msg_act == AVSV_SUSI_ACT_MOD) && > + (info->ha_state == SA_AMF_HA_ACTIVE)) { > + LOG_NO("shutdown started, failover requested, > escalate to forced shutdown"); > + avnd_last_step_clean(cb); > + } else { > LOG_NO("Shutting started : Ignoring assignment for > SU'%s'", > info->su_name.value); > - goto done; > - } > + goto done; > + } > + } > > avnd_msgid_assert(info->msg_id); > cb->rcv_msg_id = info->msg_id;
------------------------------------------------------------------------------ Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft _______________________________________________ Opensaf-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensaf-devel
