- **status**: review --> fixed
- **assigned_to**: Vu Minh Nguyen -->  nobody 
- **Comment**:

changeset:   8185:fc64038af947
tag:         tip
parent:      8183:f0b59b8c475c
user:        Vu Minh Nguyen <[email protected]>
date:        Tue Oct 04 13:06:50 2016 +0700
summary:     log: fix runtime log stream is deleted after restarting from 
headless [#2071]

changeset:   8184:0570e373d7e1
branch:      opensaf-5.1.x
parent:      8181:82833779f890
user:        Vu Minh Nguyen <[email protected]>
date:        Tue Oct 04 13:06:50 2016 +0700
summary:     log: fix runtime log stream is deleted after restarting from 
headless [#2071]




---

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

**Status:** fixed
**Milestone:** 5.1.1
**Created:** Tue Sep 27, 2016 10:27 AM UTC by Vu Minh Nguyen
**Last Updated:** Tue Sep 27, 2016 12:41 PM UTC
**Owner:** nobody


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.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to