- **status**: review --> fixed
- **Comment**:
default (5.1) [staging:5aff16]
changeset: 7553:5aff16370234
user: Hung Nguyen <[email protected]>
date: Tue Apr 26 12:42:04 2016 +0700
summary: imm: Finalize search node if there are errors when fetching pure
rt attributes [#1776]
opensaf-5.0.x [staging:860c6d]
changeset: 7554:860c6d50a286
branch: opensaf-5.0.x
parent: 7551:87acd648e1d1
user: Hung Nguyen <[email protected]>
date: Tue Apr 26 12:42:04 2016 +0700
summary: imm: Finalize search node if there are errors when fetching pure
rt attributes [#1776]
opensaf-4.7.x [staging:2b506c]
changeset: 7555:2b506c41f13e
branch: opensaf-4.7.x
parent: 7550:a2741c56f904
user: Hung Nguyen <[email protected]>
date: Tue Apr 26 12:42:04 2016 +0700
summary: imm: Finalize search node if there are errors when fetching pure
rt attributes [#1776]
opensaf-4.6.x [staging:616b9b]
changeset: 7556:616b9b0902d8
branch: opensaf-4.6.x
parent: 7549:dfab16919d9f
user: Hung Nguyen <[email protected]>
date: Tue Apr 26 12:42:04 2016 +0700
summary: imm: Finalize search node if there are errors when fetching pure
rt attributes [#1776]
---
** [tickets:#1776] imm: IMMND crashes when receiving update-rt-attribute
response after it is timed out**
**Status:** fixed
**Milestone:** 4.6.2
**Created:** Fri Apr 22, 2016 04:50 AM UTC by Hung Nguyen
**Last Updated:** Tue Apr 26, 2016 05:47 AM UTC
**Owner:** Hung Nguyen
**Attachments:**
- [src.zip](https://sourceforge.net/p/opensaf/tickets/1776/attachment/src.zip)
(3.0 kB; application/x-zip-compressed)
Source code of test application is attached to this ticket.
Import the 'Test' class and create some objects of it.
root@SC-1:~# immcfg -f test_class.xml
root@SC-1:~# immpopulate -p 10 Test
Run the OI. The OI has a sleep of 7 seconds in SaImmOiRtAttrUpdateCallbackT.
root@SC-1:~# ./test_oi &
Try to read all objects of 'Test' class
root@SC-1:~# ./test_search
IMMND crashes when receiving respose from the OI.
Apr 22 11:27:51 SC-2 osafimmnd[431]: immnd_evt.c:1080: search_req_continue:
Assertion 'strncmp((const char *)rsp->objectName.buf, (const char
*)reply->runtimeAttrs.objectName.buf, rsp->objectName.size) == 0' failed.
-----
Analysis:
When the upcall to OI is timed out, IMMND erases the Continuation from the
sSearchReqContinuationMap but it still keeps the search-node (and the searchOp).
On the search client, after getting timeout, it doesn't finalize the search
handle and continues to do SearchNext().
That makes the searchOp in IMMND pop out a new object and store it to
mLastResult.
When the response from OI arrives at IMMND, it fails to assert because a new
object in searchOp has been popped out.
---
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.
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets