- **status**: review --> fixed
- **Comment**:
changeset: 6113:5e81d22b4d96
branch: opensaf-4.5.x
tag: tip
parent: 6106:0603cc47e5a2
user: Anders Bjornerstedt <[email protected]>
date: Tue Nov 04 14:30:10 2014 +0100
summary: IMM: saImmOmCcbValidate must cancel ccb-timer before returning
[#1201]
changeset: 6112:64d212d11dbb
user: Anders Bjornerstedt <[email protected]>
date: Tue Nov 04 14:30:10 2014 +0100
summary: IMM: saImmOmCcbValidate must cancel ccb-timer before returning
[#1201]
---
** [tickets:#1201] IMM: saImmOmCcbValidate does not cancel ccb-timer.**
**Status:** fixed
**Milestone:** 4.5.1
**Created:** Tue Nov 04, 2014 01:06 PM UTC by Anders Bjornerstedt
**Last Updated:** Tue Nov 04, 2014 02:27 PM UTC
**Owner:** Anders Bjornerstedt
The OM API function saImmOmCcbValidate was added in OpenSAF 4.5. This function
allows the om-user to validate a ccb without any immediate commit if validation
succeeds. Instead control is returned to the om user, which may decide to either
commit the CCB using saImmOmCcbApply (which will then directly commit without
validation since it has already been done); or abort the ccb using
saImmOmCcbAbort.
A normal saImmOmCcbApply() where no saImmOmCcbValidate() has been performed
prior to the apply starts a timer to monitor the progress of the CCB during
validation and commit.
In the case of explicit and separate validation, the timer needs to be
reset/canceled before returning to the om-user on saImmOmCcbValidate. This is
not done currently. That is the error reported by this ticket. The timer can
interfere with interactive users which may linger between saImmOmCcbValidate()
and saImmOmCcbApply() causing the ccb to abort internally despite having been
validated. The user will see this as an ERR_FAILED_OPERATTION from ccbApply()
even though validation succeeded.
Note that a ccb that has validated successfuly *can* actually abort in
saImmOmCcbApply due to resource issues, such as the PBE having detached.
But it should not abort on timeout while the ccb and user are idle.
---
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.
------------------------------------------------------------------------------
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets