summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authora.sreekumar <ajith.sreekumar@est.tech>2019-11-19 17:11:10 +0000
committera.sreekumar <ajith.sreekumar@est.tech>2019-11-19 17:17:12 +0000
commit41a6c1afb79f90b9e5834734d50989e0b5699578 (patch)
tree6b3b7f07acbd5224ec10939237e2570756d096ba
parentc0856253027668067b85890d9e065872e5a81481 (diff)
Fixing issue where PdpRegistration message is treated as Heartbeat by PAP
PDPs now sends PdpGroup also during registration. So, PAP treats them as normal hearbeat and not registration message, causing errors. Fixing this. This change will be updated by POLICY-2231 This should also fix the csit failures in the PDPs. Change-Id: Idf62839d175c6e392101e9c58627217a76473de9 Issue-ID: POLICY-2234 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
-rw-r--r--main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java b/main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java
index 6998140f..09ee64dc 100644
--- a/main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java
+++ b/main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java
@@ -66,7 +66,7 @@ public class PdpStatusMessageHandler extends PdpMessageGenerator {
public void handlePdpStatus(final PdpStatus message) {
synchronized (updateLock) {
try (PolicyModelsProvider databaseProvider = modelProviderWrapper.create()) {
- if (message.getPdpGroup() == null && message.getPdpSubgroup() == null) {
+ if (message.getPdpSubgroup() == null) {
handlePdpRegistration(message, databaseProvider);
} else {
handlePdpHeartbeat(message, databaseProvider);