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;

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to