Log message when a PDP's heart beats are missed 59/100559/1
authorJim Hahn <jrh3@att.com>
Tue, 21 Jan 2020 14:53:49 +0000 (09:53 -0500)
committerJim Hahn <jrh3@att.com>
Tue, 21 Jan 2020 18:32:08 +0000 (13:32 -0500)
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

main/src/main/java/org/onap/policy/pap/main/comm/PdpTracker.java

index 04dfe81..f79326d 100644 (file)
@@ -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 {