References:
Jira Legacy server ONAP System Jira serverId 425b2b0a4733707d-557c2057-3c0c3a0f-b515ae5e-579789cceedb4fd8aff50176 key CPS-898 - CPS-875 CM Handle State: Watchdog-process that syncs 'ADVISED' CM Handles
- CPS-899 Start and stop sessions on Java API
- CPS Internal Relation DB Schema
...
- Wake up on a specified schedule
- Identify node with state ‘ADVISED’
- Lock database, update timestamp, unlock the database
- Model sync
- Update the state of the node to ‘READY’
...
It is identified that a ‘lock’ can also be implemented in the DB plugin, CPS, and the client (NCMP) or combination of these.
Locking method scenarios
Scenario | Description | |
---|---|---|
1 | Only anchor table row is locked |
|
2 | anchor and every fragment associated with the anchor is locked |
|
Issues and decisions
Description | Issues | Notes | Decisions | |
---|---|---|---|---|
1 | Scenario #2 is chosen as the method for locking anchor |
|
|
|
2 | To implement a lock we must do it inside a transaction |
|
| |
3 | Locking of anchor on multiple namespaces |