- Description has changed:

Diff:

~~~~

--- old
+++ new
@@ -1,3 +1,5 @@
+Following bug causes cyclic reboot of standby node and generates coredump.
+
 Logsv used following code to iterate all existing log streams:
 
 ```C
@@ -21,3 +23,5 @@
 We will get following in syslog:
 
 > Sep 19 12:08:22 SC-2 local0.err osaflogd[453]: ER No streams exist!
+
+

~~~~




---

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

**Status:** review
**Milestone:** 5.1.1
**Created:** Mon Sep 19, 2016 05:20 AM UTC by Vu Minh Nguyen
**Last Updated:** Tue Sep 20, 2016 05:38 PM UTC
**Owner:** Vu Minh Nguyen


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