Mathi, Ingvar is on vacation.

We have our doubts about this patch. We would like to see SMF retry setting the 
campaign state to COMPLETED until it succeeds. This state change is a trigger 
for higher level SW management functionality. With the proposed change in SMF 
the next level is also affected and needs to cater for a non-writeable IMM.

Is it possible for SMF to retry until it succeeds instead?

Thanks,
Hans

> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> Sent: den 24 juni 2014 03:16
> To: Ingvar Bergström
> Cc: [email protected]
> Subject: [devel] [PATCH 1 of 1] smf: update campaign state before restoring 
> pbe in the completed state [#944]
> 
>  osaf/services/saf/smfsv/smfd/SmfCampState.cc |  7 ++++---
>  1 files changed, 4 insertions(+), 3 deletions(-)
> 
> 
> By way of ticket #677 we restore the pbe in the campaign completed state 
> itself.
> i.e.
> In SmfCampStateExecuting::executeWrapup()
> {
> 
> a) we first restore the pbe
> i.e. i_camp->restorePbe();
> 
> b) And, then subsequently update the campaign state,
> i.e. changeState(i_camp, SmfCampStateExecCompleted::instance());
> 
> }
> However, it is possible that when the pbe is restored, the pbe could take 
> more time (than the immutil wait time) to become
> functionally ready. And in such sitautions, the updation to the campaign 
> state will not succeed until the PBE is really ready.
> The patch updates the campaign state first (to imm) inthe completed state and 
> subsequently
> restores the pbe.
> 
> diff --git a/osaf/services/saf/smfsv/smfd/SmfCampState.cc 
> b/osaf/services/saf/smfsv/smfd/SmfCampState.cc
> --- a/osaf/services/saf/smfsv/smfd/SmfCampState.cc
> +++ b/osaf/services/saf/smfsv/smfd/SmfCampState.cc
> @@ -838,9 +838,6 @@ SmfCampStateExecuting::executeWrapup(Smf
>               return SMF_CAMP_FAILED;
>       }
> 
> -     //Activate IMM BPE if active when campaign was started.
> -     i_camp->restorePbe();
> -
>       // TODO Start wait to complete timer
>       LOG_NO("CAMP: Start wait to complete timer (not implemented yet)");
> 
> @@ -848,6 +845,10 @@ SmfCampStateExecuting::executeWrapup(Smf
>       changeState(i_camp, SmfCampStateExecCompleted::instance());
> 
>       LOG_NO("CAMP: Upgrade campaign completed %s", 
> i_camp->getCampaignName().c_str());
> +
> +     //Activate IMM BPE if active when campaign was started.
> +     i_camp->restorePbe();
> +
>       TRACE_LEAVE();
>          return SMF_CAMP_COMPLETED;
>  }
> 
> ------------------------------------------------------------------------------
> 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

------------------------------------------------------------------------------
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

Reply via email to