summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2020-01-21 09:53:49 -0500
committerJim Hahn <jrh3@att.com>2020-01-21 13:32:08 -0500
commitfc683069fba43eab9d69c93e0334c043b7faaa5c (patch)
treee923d529db3406fb7b3bef2891a2efa2ea569d21 /main
parent1fdc00a18235a4ffc1efb9750f5a32093591e6d8 (diff)
Log message when a PDP's heart beats are missed
If a PDP's heart beats are missed, PAP silently removes the PDP from the DB. Added a "logger" call. Issue-ID: POLICY-2326 Signed-off-by: Jim Hahn <jrh3@att.com> Change-Id: I1189ef66ad5a47e88f8cae770bd1393cafeb2393
Diffstat (limited to 'main')
-rw-r--r--main/src/main/java/org/onap/policy/pap/main/comm/PdpTracker.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/main/java/org/onap/policy/pap/main/comm/PdpTracker.java b/main/src/main/java/org/onap/policy/pap/main/comm/PdpTracker.java
index 04dfe813..f79326dc 100644
--- a/main/src/main/java/org/onap/policy/pap/main/comm/PdpTracker.java
+++ b/main/src/main/java/org/onap/policy/pap/main/comm/PdpTracker.java
@@ -2,7 +2,7 @@
* ============LICENSE_START=======================================================
* ONAP PAP
* ================================================================================
- * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -140,6 +140,7 @@ public class PdpTracker {
private void handleTimeout(String pdpName) {
synchronized (modifyLock) {
// remove timer - no need to cancel it, as TimerManager does that
+ logger.warn("missed heart beats - removing PDP {}", pdpName);
pdp2timer.remove(pdpName);
try {