- **status**: review --> fixed
- **Comment**:
https://sourceforge.net/p/opensaf/mailman/message/34906594/
changeset: 7305:9ad67105a7a3
tag: tip
parent: 7302:6350d2e33ef4
user: [email protected]
date: Mon Mar 07 12:30:48 2016 +0530
summary: ntf/imcn: handle ERR_TIME_OUT returned by
saImmOmClassDescriptionGet_2 [#1689]
changeset: 7304:413fd6c03922
branch: opensaf-4.7.x
parent: 7296:d3a8f6ad8a1a
user: [email protected]
date: Mon Mar 07 12:30:35 2016 +0530
summary: ntf/imcn: handle ERR_TIME_OUT returned by
saImmOmClassDescriptionGet_2 [#1689]
changeset: 7303:a3527537b564
branch: opensaf-4.6.x
parent: 7295:c470eb0dc821
user: [email protected]
date: Mon Mar 07 12:30:10 2016 +0530
summary: ntf/imcn: handle ERR_TIME_OUT returned by
saImmOmClassDescriptionGet_2 [#1689]
---
** [tickets:#1689] ntf/imcn : IMCN asserts when saImmOmClassDescriptionGet()
returns ERR_TIME_OUT.**
**Status:** fixed
**Milestone:** 4.6.2
**Created:** Fri Mar 04, 2016 09:25 AM UTC by Praveen
**Last Updated:** Fri Mar 04, 2016 10:03 AM UTC
**Owner:** Praveen
**Attachments:**
-
[imcn_repr.patch](https://sourceforge.net/p/opensaf/tickets/1689/attachment/imcn_repr.patch)
(975 Bytes; application/octet-stream)
-
[osafimmnd](https://sourceforge.net/p/opensaf/tickets/1689/attachment/osafimmnd)
(2.6 MB; application/octet-stream)
-
[osafntfcn](https://sourceforge.net/p/opensaf/tickets/1689/attachment/osafntfcn)
(24.1 kB; application/octet-stream)
For getting rdn attribute name, IMCN calls saImmOmClassDescriptionGet_2() API.
If this API returns ERR-TIME_OUT, IMCN is not giving a retry and asserts.
Currently IMCN give a retry only when its gets ERR_TRY_AGAIN.
Above API call will allocate memroy for class description that will be freed by
application (here IMCN)
by calling saImmOmClassDescriptionMemoryFree(). This API never returns
TRY_AGAIN as per IMM spec, so retry loop for this API in ntfimcn_imm.c can be
removed.
traces from ntfcn:
Mar 4 14:25:55.792614 osafntfimcnd [15265:imma_om_api.c:5070] TR ClassName:
OsafNtfCmTestCFG
Mar 4 14:25:55.792630 osafntfimcnd [15265:imma_om_api.c:5087] TR ClassDescrGet
3
Mar 4 14:25:56.794112 osafntfimcnd [15265:imma_om_api.c:5331] <<
saImmOmClassDescriptionGet_2
Mar 4 14:25:56.794157 osafntfimcnd [15265:ntfimcn_imm.c:0134] NO DEBUG: Class
description :5
Mar 4 14:25:56.794176 osafntfimcnd [15265:ntfimcn_imm.c:0136] ER
saImmOmClassDescriptionGet_2 failed SA_AIS_ERR_TIMEOUT (5)
Issue is too random to get reproduced, so above traces are reproduced after
forcing the API tp return time out by introducing a slee in immnd (could not
find any elegant way to reproduce it). I have attached patch to reproduce it
(imcn_repr.patch).
steps to reproduce:
1)Apply imcn_repr.patch and bring up one controller.
2)From OpenSAF staging repo run this command
immcfg -f tests/ntfsv/ntfsv_test_classes.xml
This will create test classes.
3)Now create a object of the command
immcfg -c "OsafNtfCmTestCFG" stringRdnCfg=object1 -a testAnyCfg=1 -a
testNameCfg=name1 -a testStringCfg=string1
Also attached immnd and ntfcn traces.
---
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.
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://makebettercode.com/inteldaal-eval
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets