- **status**: unassigned --> invalid
---
** [tickets:#515] Ambiguous return statements for OiDispatch() call **
**Status:** invalid
**Created:** Mon Jul 22, 2013 11:30 AM UTC by surender khetavath
**Last Updated:** Mon Jul 22, 2013 11:30 AM UTC
**Owner:** nobody
Changeset : 4325
Testcase:
1) OiInitialize()
2) OiSelectionObjectGet()
3) start a thread and wait for OiDispatch with BLOCKING flag
4) Now in main thread do OiFinalize()
OiDispatch() call should return SA_AIS_OK or ERR_BAD_HANDLE?
spec has two return values for this case.
1) SA_AIS_OK - The function completed successfully. This value is also returned
if this
function is being invoked with dispatchFlags set to SA_DISPATCH_ALL or
SA_DISPATCH_BLOCKING, and the handle immOiHandle has been finalized.
2) SA_AIS_ERR_BAD_HANDLE - The handle immOiHandle is invalid, since it is cor-
rupted, uninitialized, or has already been finalized
Agent logs show that after calling OiFinalize(), OiDispatch is being called and
gets ERR_BAD_HANDLE.
Jul 22 16:41:21.927834 imma [6148:imma_oi_api.c:0319] << saImmOiInitialize_2
Jul 22 16:41:21.927875 imma [6148:imma_oi_api.c:0342] >>
saImmOiSelectionObjectGet
Jul 22 16:41:21.927890 imma [6148:imma_oi_api.c:0418] <<
saImmOiSelectionObjectGet
Jul 22 16:41:21.928225 imma [6148:imma_oi_api.c:0600] >> saImmOiFinalize
Jul 22 16:41:21.928428 imma [6148:imma_proc.c:0145] >> imma_callback_ipc_destroy
Jul 22 16:41:21.928453 imma [6148:imma_proc.c:0204] TR Deleting client node
Jul 22 16:41:21.928463 imma [6148:imma_init.c:0324] >> imma_shutdown: use count
2
Jul 22 16:41:21.928471 imma [6148:imma_init.c:0335] << imma_shutdown: use count
1
Jul 22 16:41:21.928480 imma [6148:imma_oi_api.c:0768] << saImmOiFinalize
Jul 22 16:41:21.928508 imma [6148:imma_oi_api.c:0445] >> saImmOiDispatch
Jul 22 16:41:21.928526 imma [6148:imma_oi_api.c:0463] T2 ERR_BAD_HANDLE:
client_node_get failed
Jul 22 16:41:21.928535 imma [6148:imma_oi_api.c:0572] << saImmOiDispatch
---
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.
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets