CPS-1015: Distributed datastore solution for Module Sync Watchdog

CPS-1015: Distributed datastore solution for Module Sync Watchdog

https://lf-onap.atlassian.net/browse/CPS-1122

Assumptions/Decisions


#

Issue

Notes/Jira

Decision

#

Issue

Notes/Jira

Decision

1







2







3







4









  • First, create "get the list" functionality

  • After it the synchronization

Implementation Proposal


Distributed datastore solution for Module Sync Watchdog

#

Classes

Proposed Changes

#

Classes

Proposed Changes

1

SynchronizationSemaphoresConfig

  1. Change moduleSyncSemaphore type to Map<String, Boolean>[ value: is finished? (true/false)], use the "time to live" filter

  2. Set a higher value for the "time to live" filter , half hour?

2

SyncUtils

  1. Return a list of "advised" cm handles 

3

ModuleSyncWatchdog

  1. Iterate on the cm handle list

  2. Store in haselcast, that cm handle id which processing currently with value: false

  3. Set the boolean value true when finished

Test

  • update existing tests to handle the new situations

  • create manual tests for the distributed datastore

Walking skeleton

Distributed datastore solution for Module Sync Watchdog