From: mpriyank Date: Fri, 20 Dec 2024 11:31:58 +0000 (+0000) Subject: Update docs related to lock X-Git-Tag: 3.6.0~41 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F31%2F139731%2F1;p=cps.git Update docs related to lock - added the distributed lock in the documentation as well - updated the log level to debug to refrain printing every iteration of the scheduler Issue-ID: CPS-2479 Change-Id: Ieeeff46168d70aca6f423e82bda15a12d6c405a5 Signed-off-by: mpriyank --- diff --git a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/inventory/sync/ModuleSyncWatchdog.java b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/inventory/sync/ModuleSyncWatchdog.java index 5b71a8af70..32e1c49f17 100644 --- a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/inventory/sync/ModuleSyncWatchdog.java +++ b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/inventory/sync/ModuleSyncWatchdog.java @@ -92,7 +92,7 @@ public class ModuleSyncWatchdog { */ public void populateWorkQueueIfNeeded() { if (moduleSyncWorkQueue.isEmpty() && cpsAndNcmpLock.tryLock(MODULE_SYNC_WORK_QUEUE_LOCK_NAME)) { - log.info("Lock acquired by thread : {}", Thread.currentThread().getName()); + log.debug("Lock acquired by thread : {}", Thread.currentThread().getName()); try { populateWorkQueue(); if (moduleSyncWorkQueue.isEmpty()) { @@ -100,7 +100,7 @@ public class ModuleSyncWatchdog { } } finally { cpsAndNcmpLock.unlock(MODULE_SYNC_WORK_QUEUE_LOCK_NAME); - log.info("Lock released by thread : {}", Thread.currentThread().getName()); + log.debug("Lock released by thread : {}", Thread.currentThread().getName()); } } } diff --git a/docs/deployment.rst b/docs/deployment.rst index 9823fa2f8a..2a17e30a16 100644 --- a/docs/deployment.rst +++ b/docs/deployment.rst @@ -357,5 +357,7 @@ Below are the list of distributed datastructures that we have. | cps-ncmp | moduleSetTagsBeingProcessed | Track module set tags which are processed to prevent | | | | multiple threads working with same tag. | +--------------+------------------------------------+-----------------------------------------------------------+ +| cps-ncmp | cpsAndNcmpLock | Cps and NCMP distributed lock for various use cases. | ++--------------+------------------------------------+-----------------------------------------------------------+ -Total number of caches : 7 +Total number of caches : 8