- **status**: accepted --> invalid
- **Comment**:

Tested on CS #8019. Amf return BAD_HANDLE. Below is the test case code snippet:

1.         SaNtfCorrelationIdsT *corr_ids=malloc(sizeof(SaNtfCorrelationIdsT));
        corr_ids->rootCorrelationId = SA_NTF_IDENTIFIER_UNUSED;
        corr_ids->parentCorrelationId = SA_NTF_IDENTIFIER_UNUSED;
rc = saAmfComponentErrorReport_4(my_amf_hdl, &my_comp_name, 0, 
SA_AMF_COMPONENT_RESTART, corr_ids);

        if (rc != SA_AIS_OK) {
                syslog(LOG_ERR, "1.saAmfComponentErrorReport FAILED - %u", rc);
        } else
                syslog(LOG_ERR, "1. saAmfComponentErrorReport Success - %u", 
rc);

------------------------------
    2.     syslog(LOG_ERR, "================= Calling Err Clear ");
        SaNtfCorrelationIdsT *corr_ids=malloc(sizeof(SaNtfCorrelationIdsT));
        corr_ids->rootCorrelationId = SA_NTF_IDENTIFIER_UNUSED;
        corr_ids->parentCorrelationId = SA_NTF_IDENTIFIER_UNUSED;
              rc = saAmfComponentErrorClear_4(my_amf_hdl, &my_comp_name, 
corr_ids);
        if (rc != SA_AIS_OK) {
                syslog(LOG_ERR, "1.saAmfComponentErrorClear FAILED - %u", rc);
        } else
                syslog(LOG_ERR, "1. saAmfComponentErrorClear Success - %u", rc);


The result:
1.  Nov  7 10:55:14 PM_SC-1 amf_demo[4843]: saAmfFinalize Success - 1
Nov  7 10:55:14 PM_SC-1 amf_demo[4843]: ================= Calling Err Rep
Nov  7 10:55:14 PM_SC-1 amf_demo[4843]: saAmfComponentErrorReport FAILED - 9

2. Nov  7 11:08:17 PM_SC-1 amf_demo[7798]: saAmfFinalize Success - 1
Nov  7 11:08:17 PM_SC-1 amf_demo[7798]: ================= Calling Err Clear
Nov  7 11:08:17 PM_SC-1 amf_demo[7798]: 1.saAmfComponentErrorClear FAILED - 9

So, closing this ticket.



---

** [tickets:#248] "amf: Incorrect return code from saAmfComponentErrorReport_4 
() and saAmfComponentErrorClear_4()". **

**Status:** invalid
**Milestone:** 5.2.FC
**Created:** Thu May 16, 2013 06:41 AM UTC by Praveen
**Last Updated:** Fri Nov 04, 2016 12:12 PM UTC
**Owner:** Nagendra Kumar


Migrated from http://devel.opensaf.org/ticket/2817.

Changeset:3728
 When saAmfComponentErrorReport_4() and saAmfComponentErrorReport_4() are 
called after finalizing the amfHandle(calling saAmfFinalize()), both of them 
returns SA_AIS_ERR_VERSION instead of SA_AIS_ERR_BAD_HANDLE.



---

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.
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to