---

** [tickets:#2071] log: runtime log stream is deleted after restarting from 
headless**

**Status:** accepted
**Milestone:** 5.1.0
**Created:** Tue Sep 27, 2016 10:27 AM UTC by Vu Minh Nguyen
**Last Updated:** Tue Sep 27, 2016 10:27 AM UTC
**Owner:** Vu Minh Nguyen


When SCs restart from headless, if log client opens `safLgStr=Test` log stream 
with `SA_LOG_STREAM_CREATE` flag set, and the log stream `safLgStr=Test` exists 
right before the headless. Will got following in syslog:

> Sep 27 16:32:45 SC-1 local0.warn osaflogd[443]: WA saImmOiRtObjectCreate_2 
> returned 14 for safLgStr=Test, parent (null)

By getting error code 14 - `SA_AIS_ERR_EXIST`, logsv was consider creating the 
log stream failed and did free all allocated resources including the existing 
log stream.

``` C
  rc = lgs_create_rt_appstream(*o_stream);
  if (rc != SA_AIS_OK) log_stream_delete(o_stream);
```

This behavior is not correct. Logsv should look up that stream in recovery 
list, only creating IMM obj if the stream is not available there.


---

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.
------------------------------------------------------------------------------
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to