Closed hungta closed 11 years ago
Change title to "saEvtEventPublish should return error if eventDataSize is too big"
saEvtEventPublish() return SA_AIS_OK with eventDataSize = 100000000, but there is no event received due to large data size. It should return an error (SA_AIS_ERR_TOO_BIG).
Propose a solution:
Support extended definition
And support check for data limitation SaAisErrorT saEvtEventPublish(SaEvtEventHandleT eventHandle, const void pEventData, SaSizeT eventDataSize, SaEvtEventIdT \ pEventId) { ........ if (CL_EVENT_DATA_MAX_SIZE < eventDataSize) { rc = SA_AIS_ERR_TOO_BIG; return rc; } ........ }
However, our current Event Service is implementing SA Forum AIS EVT APIs (SAI-AIS-B.01.00.09) that does not provides APIs to identify limits for a particular implementation of the Event Service. In SAI-AIS-EVT-B.03.01, there is an API saEvtLimitGet() to obtain the current implementation-specific value of an Event Service limit. The issue can be resolved when our Event Service is moved up to (B.03.01).
Testing functionalities of SAFplus event service, it sometimes doesn't work. The steps that has been done:
For the entire code, please read the test package OpenClovis/ SAFplus-Test / mwComparison . The common.c file contains the common code worked for both SAFplus and OpenSAF.