Tweak testTransaction 51/21051/1 v1.1.0
authorKevin McKiou <km097d@att.com>
Fri, 27 Oct 2017 17:52:36 +0000 (12:52 -0500)
committerKevin McKiou <km097d@att.com>
Fri, 27 Oct 2017 17:53:20 +0000 (12:53 -0500)
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 <km097d@att.com>
integrity-monitor/src/main/java/org/onap/policy/common/im/IntegrityMonitor.java

index 9ac5adb..ceb6d69 100644 (file)
@@ -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();