From fc683069fba43eab9d69c93e0334c043b7faaa5c Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Tue, 21 Jan 2020 09:53:49 -0500 Subject: 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 Change-Id: I1189ef66ad5a47e88f8cae770bd1393cafeb2393 --- main/src/main/java/org/onap/policy/pap/main/comm/PdpTracker.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main') 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 { -- cgit 1.2.3-korg