diff options
author | Jim Hahn <jrh3@att.com> | 2021-06-23 16:27:20 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2021-06-25 15:23:39 -0400 |
commit | f76d2083c9440bac3ac866b30b52a3abedb9292c (patch) | |
tree | ae9819860b4c257222567bdca5aabb96d84b62c0 /main/src/main/java/org/onap/policy/pap/main/startstop/PapActivator.java | |
parent | 1a4b8b99c9903847640363b36beceffcfe44e1ac (diff) |
Send pdp-update if PDP response doesn't match DB
Because multiple PAPs can be updating the DB, it's possible that a
pdp-update sent by a PAP does not reflect the latest deployment data
in the DB. To solve that problem, modified code to compare any response
received from a PDP with what's in the DB, potentially generating a new
pdp-update (and/or pdp-state-change).
Issue-ID: POLICY-3426
Change-Id: I241994330d7645c0fffe66abc33de67d71d77250
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'main/src/main/java/org/onap/policy/pap/main/startstop/PapActivator.java')
-rw-r--r-- | main/src/main/java/org/onap/policy/pap/main/startstop/PapActivator.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/main/java/org/onap/policy/pap/main/startstop/PapActivator.java b/main/src/main/java/org/onap/policy/pap/main/startstop/PapActivator.java index 78a301f6..ed73c3e1 100644 --- a/main/src/main/java/org/onap/policy/pap/main/startstop/PapActivator.java +++ b/main/src/main/java/org/onap/policy/pap/main/startstop/PapActivator.java @@ -234,7 +234,7 @@ public class PapActivator extends ServiceManagerContainer { frequencyMs, TimeUnit.MILLISECONDS); }, - () -> pdpExpirationTimer.get().shutdownNow()); + () -> pdpExpirationTimer.get().shutdown()); addAction("PAP client executor", () -> |