aboutsummaryrefslogtreecommitdiffstats
path: root/controlloop/common
diff options
context:
space:
mode:
Diffstat (limited to 'controlloop/common')
-rw-r--r--controlloop/common/feature-controlloop-trans/src/main/feature/config/feature-controlloop-trans.properties4
-rw-r--r--controlloop/common/feature-controlloop-trans/src/main/java/org/onap/policy/drools/apps/controlloop/feature/trans/ControlLoopMetrics.java3
2 files changed, 4 insertions, 3 deletions
diff --git a/controlloop/common/feature-controlloop-trans/src/main/feature/config/feature-controlloop-trans.properties b/controlloop/common/feature-controlloop-trans/src/main/feature/config/feature-controlloop-trans.properties
index af34a955f..7744defa4 100644
--- a/controlloop/common/feature-controlloop-trans/src/main/feature/config/feature-controlloop-trans.properties
+++ b/controlloop/common/feature-controlloop-trans/src/main/feature/config/feature-controlloop-trans.properties
@@ -17,5 +17,5 @@
# limitations under the License.
# ============LICENSE_END=========================================================
###
-controlloop.cache.transactions.size=500
-controllop.cache.transactions.timeout.seconds=3600
+controlloop.cache.transactions.size=100
+controllop.cache.transactions.timeout.seconds=1800
diff --git a/controlloop/common/feature-controlloop-trans/src/main/java/org/onap/policy/drools/apps/controlloop/feature/trans/ControlLoopMetrics.java b/controlloop/common/feature-controlloop-trans/src/main/java/org/onap/policy/drools/apps/controlloop/feature/trans/ControlLoopMetrics.java
index 2482d1814..3c818b8b3 100644
--- a/controlloop/common/feature-controlloop-trans/src/main/java/org/onap/policy/drools/apps/controlloop/feature/trans/ControlLoopMetrics.java
+++ b/controlloop/common/feature-controlloop-trans/src/main/java/org/onap/policy/drools/apps/controlloop/feature/trans/ControlLoopMetrics.java
@@ -307,7 +307,8 @@ class CacheBasedControlLoopMetricsManager implements ControlLoopMetrics {
}
this.transaction(notification, startTime);
- cache.invalidate(startNotification);
+ if (startNotification != null)
+ cache.invalidate(startNotification);
}
protected void evicted(VirtualControlLoopNotification notification) {