osaf/services/saf/amf/amfnd/clc.cc |  1 -
 1 files changed, 0 insertions(+), 1 deletions(-)


Problem: AMF indefinitely tries to instantiate a component for
which instantiate script is not found.

Reason: If AMF tries to instantiate a component and it does not
found the instantiate script for the component, it cleans up it.
After successful cleanup, AMF retries to instantiate the component
based on the value of attribute saAmfNumMaxInstantiateWithoutDelay.
In the present case AMF resets current retry count for re-instantiation
after successful clean up of component. Due to this, AMF keeps on
reinstantiating the component indefinitely.

Fix: Fix ensures that current no. of retries to instantiate
should not go beyond saAmfNumMaxInstantiateWithoutDelay.

diff --git a/osaf/services/saf/amf/amfnd/clc.cc 
b/osaf/services/saf/amf/amfnd/clc.cc
--- a/osaf/services/saf/amf/amfnd/clc.cc
+++ b/osaf/services/saf/amf/amfnd/clc.cc
@@ -1628,7 +1628,6 @@ uint32_t avnd_comp_clc_xxxing_cleansucc_
         */
        avnd_comp_cmplete_all_assignment(cb, comp);
 
-       avnd_comp_curr_info_del(cb, comp);
 
        if ((clc_info->inst_retry_cnt < clc_info->inst_retry_max) &&
            (AVND_COMP_INST_EXIT_CODE_NO_RETRY != clc_info->inst_code_rcvd)) {

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Opensaf-devel mailing list
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to