---

** [tickets:#1330] LOG: Incorrect usage of saImmRtObjectDelete when terminating 
an app stream with config obj**

**Status:** unassigned
**Milestone:** 5.0
**Created:** Wed Apr 22, 2015 07:35 AM UTC by elunlen
**Last Updated:** Wed Apr 22, 2015 07:35 AM UTC
**Owner:** nobody

As far as I can see OiRtObjectCreate_2() is used only when an application 
stream with a runtime object is created. When an application stream using a 
configuration object is created no object is created by the log server. The 
object creation is done by IMM. The logserver OI is involved in validating the 
creation parameters and if validation pass IMM is creating the object no 
OiRtObjectCreate is involved in this. All of this seems correct.

Termination of an application stream is done by deleting its configuration 
object as shown below. I can see that the function used for terminating an 
application stream with a runtime object is also used with the app stream with 
configuration object. This is correct except for one thing. This function calls 
a function that calls a function that calls OiRtObjectDelete() which is NOT 
correct. What will happen is exactly what can be seen below and that's that 
when OiRtObjectDelete() no runtime object with the given name can be found to 
delete and error code 12 (SA_AIS_ERR_NOT_EXIST) is returned. However this is 
done in the apply callback so IMM has already got a positive affirmation to 
remove the configuration object and will do so.

This means that terminating an application stream with a configuration object 
works but the warning " WA saImmOiRtObjectDelete returned 12 for 
safLgStrCfg=appstream1,safApp=safLogService" will always be logged. This is a 
defect and should be fixed. I will write an OpenSAF ticket for this.

See function log_stream_delete() in lgs_stream.c
Call chain: stream_ccb_apply_delet() (lgs_imm.c), log_stream_close(), 
log_stream_delete()


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to