- Description has changed:

Diff:

~~~~

--- old
+++ new
@@ -1,6 +1,6 @@
 When standby takes active role, "new" active logsv starts one thread 
`imm_impl_restore_thread` to set OI implementer for LOG service. In the 
meantime, the main thread is still there, ready to receive any coming requests. 
 
-So, the picture here is there are 02 threads using one OiHandle. It violates 
the IMM rule, stated in IMM PR doc, 
+So, the picture here is there are 02 threads using one OiHandle concurrently - 
`imm_impl_restore_thread` and main thread. It violates the IMM rule, stated in 
IMM PR doc, 
 `"the developer must avoid using the same handle concurrently from several 
threads."`
 
 In the trace log below, there are 02 problems caused by using OiHandle in 02 
different threads:

~~~~




---

** [tickets:#1527] log: terminated due to use SaImmOiHandleT concurrently from 
02 threads**

**Status:** unassigned
**Milestone:** 5.0
**Created:** Wed Oct 07, 2015 10:59 AM UTC by Vu Minh Nguyen
**Last Updated:** Wed Oct 07, 2015 10:59 AM UTC
**Owner:** nobody


When standby takes active role, "new" active logsv starts one thread 
`imm_impl_restore_thread` to set OI implementer for LOG service. In the 
meantime, the main thread is still there, ready to receive any coming requests. 

So, the picture here is there are 02 threads using one OiHandle concurrently - 
`imm_impl_restore_thread` and main thread. It violates the IMM rule, stated in 
IMM PR doc, 
`"the developer must avoid using the same handle concurrently from several 
threads."`

In the trace log below, there are 02 problems caused by using OiHandle in 02 
different threads:
1) Get `ERR_BAD_OPERATION` as do request to IMM while no implementer have been 
set.

> Sep 17 18:22:04 SC-2 osaflogd[15047]: NO ACTIVE request 
Sep 17 18:22:04 SC-2 osaflogd[15047]: ER ERR_BAD_OPERATION: The SaImmOiHandleT 
is not associated with any implementer name
...
> Sep 17 18:22:04 SC-2 osafimmnd[15026]: NO Implementer connected: 211 
> (safLogService) <7, 2020f> 

2) Get `ERR_LIBRARY` as double LOCK from IMM side, logsv terminated.

> Sep 17 20:07:59 SC-2 osafimmnd[14962]: NO Implementer connected: 401 
> (safLogService) <7, 2020f>
...
Sep 17 20:07:59 SC-2 osaflogd[14975]: saImmOiClassImplementerSet FAILED, rc = 2
….
Sep 17 20:08:09 SC-2 osafamfnd[15047]: NO 
'safComp=LOG,safSu=SC-2,safSg=2N,safApp=OpenSAF' faulted due to 'avaDown' : 
Recovery is 'nodeFailfast'
Sep 17 20:08:09 SC-2 osafamfnd[15047]: ER 
safComp=LOG,safSu=SC-2,safSg=2N,safApp=OpenSAF Faulted due to:avaDown Recovery 
is:nodeFailfast



---

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