- **status**: review --> fixed
- **assigned_to**: Canh Truong --> nobody
- **Comment**:
changeset: 7369:df70a8de30dc
tag: tip
parent: 7366:cc8fe259620c
user: Canh Truong <[email protected]>
date: Wed Mar 30 16:58:57 2016 +0200
summary: log: check for max app streams limit during streamOpen and in
completed callback [#1446]
rev: df70a8de30dc097977b3ebafd51d9a29b7c7c0b2
changeset: 7368:072bc8719d8c
branch: opensaf-4.7.x
parent: 7362:6cbbfd9a7b64
user: Canh Truong <[email protected]>
date: Wed Mar 30 16:57:52 2016 +0200
summary: log: check for max app streams limit during streamOpen and in
completed callback [#1446]
rev: 072bc8719d8c3d15855fcfb1a3414ef902839c2f
changeset: 7367:7c228f63b498
branch: opensaf-4.6.x
parent: 7363:43216aa49d03
user: Canh Truong <[email protected]>
date: Wed Mar 30 16:56:31 2016 +0200
summary: log: check for max app streams limit during streamOpen and in
completed callback [#1446]
rev: 7c228f63b4982ab2e0f62e22efb8074c63ed8f2c
---
** [tickets:#1446] log: trouble when the number of existing app streams reachs
limitation**
**Status:** fixed
**Milestone:** 4.6.2
**Created:** Thu Aug 13, 2015 10:10 AM UTC by Vu Minh Nguyen
**Last Updated:** Thu Mar 17, 2016 08:56 AM UTC
**Owner:** nobody
When creating an configurable app stream (e.g: using `immcfg –c`). Suppose all
inputs are valid.
In this case, logsv returns `SA_AIS_OK` to IMM for its callbacks. Means IMM is
allowed to creates its database/resource for this obj (*1*).
In apply callback, IMM asks logsv to apply the change – not require acknowledge.
If number of app streams has reached the limitation - defined by
`logMaxApplicationStreams`, logsv will get failed to add this stream to
stream_array.
As the result, logsv deletes all allocated resources managed by itself. The
created resources in step (*1*) is still existing. And it causes things as
below – see my comments in right side:
1. Create obj successfully from IMM. But actually, logsv gets failed at
ccbApplyCallback
> immcfg -c SaLogStreamConfig safLgStrCfg=test6 -a saLogStreamPathName=. -a
> saLogStreamFileName=test6
2. immlist failed as logsv returns not ok `no such obj` to IMM.
> immlist safLgStrCfg=test6
error - saImmOmAccessorGet_2 FAILED: SA_AIS_ERR_NO_RESOURCES (18)
3. Create obj failed as the resource is existing
> immcfg -c SaLogStreamConfig safLgStrCfg=test6 -a saLogStreamPathName=. -a
> saLogStreamFileName=test6
error - saImmOmCcbObjectCreate_2 FAILED with SA_AIS_ERR_EXIST (14)
---
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://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets