From 8b201488c1337435da6d70fe19a00d206d71ecc0 Mon Sep 17 00:00:00 2001 From: Kevin McKiou Date: Fri, 27 Oct 2017 12:52:36 -0500 Subject: Tweak testTransaction Remove startTransaction from testTransaction since it does nothing functionally and causes exceptions which are logged. Issue-ID: POLICY-369 Change-Id: Idd064b49e1d68832d14039870414626ca56c779b Signed-off-by: Kevin McKiou --- .../java/org/onap/policy/common/im/IntegrityMonitor.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/integrity-monitor/src/main/java/org/onap/policy/common/im/IntegrityMonitor.java b/integrity-monitor/src/main/java/org/onap/policy/common/im/IntegrityMonitor.java index 9ac5adb6..ceb6d695 100644 --- a/integrity-monitor/src/main/java/org/onap/policy/common/im/IntegrityMonitor.java +++ b/integrity-monitor/src/main/java/org/onap/policy/common/im/IntegrityMonitor.java @@ -1002,14 +1002,10 @@ public class IntegrityMonitor { if(logger.isDebugEnabled()){ logger.debug("testTransaction called..."); } - // start Transaction - resets transaction timer and check admin state - try { - startTransaction(); - } catch (AdministrativeStateException | StandbyStatusException e) { - logger.error("IntegrityMonitor threw exception.", e); - } - - // TODO: add test functionality if needed + + // + // startTransaction() not required for testTransaction + // // end transaction - increments local FP counter endTransaction(); -- cgit 1.2.3-korg