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

changeset:   8130:94366a84495a
tag:         tip
parent:      8125:161ad8e1eb9b
user:        vu.m.ngu...@dektech.com.au
date:        Thu Sep 22 14:44:16 2016 +0200
summary:     log: fix ER no stream exists in syslog [#2043]

rev: 94366a84495a1f09f07ab0e75b27121d93620ae3

changeset:   8129:d2a5cecbaf1f
branch:      opensaf-5.1.x
parent:      8126:d84ede934bf9
user:        vu.m.ngu...@dektech.com.au
date:        Thu Sep 22 14:44:16 2016 +0200
summary:     log: fix ER no stream exists in syslog [#2043]

rev: d2a5cecbaf1f5b4902851fe39899c6da81e80f17



---

** [tickets:#2043] log: ER no stream exists**

**Status:** fixed
**Milestone:** 5.1.1
**Created:** Mon Sep 19, 2016 05:20 AM UTC by Vu Minh Nguyen
**Last Updated:** Wed Sep 21, 2016 08:38 AM UTC
**Owner:** nobody


Following bug causes cyclic reboot of standby node and generates coredump.

Logsv used following code to iterate all existing log streams:

```C
  /* check existing streams */
  num = get_number_of_streams();
  stream = log_stream_get_by_id(--num);
  if (!stream)
    LOG_ER("No streams exist!");
  while (stream != NULL) {
    stream = log_stream_get_by_id(--num);
  }
```

If we create 02 log streams, then delete them in the following order, above 
code will run incorrectly.

1) Create streamA
2) Create streamB
3) Delete streamA
4) Reboot active node

We will get following in syslog:

> Sep 19 12:08:22 SC-2 local0.err osaflogd[453]: ER No streams exist!





---

Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net 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
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to