PAP erroneously undeploying policies 72/106772/2
authorJim Hahn <jrh3@att.com>
Tue, 28 Apr 2020 21:22:28 +0000 (17:22 -0400)
committerJim Hahn <jrh3@att.com>
Tue, 28 Apr 2020 21:48:26 +0000 (17:48 -0400)
commit248e0619a89f27f5d8111adb8743e72d1b11e010
tree76332ab8cc0a24208f866c558c0d428fb5dadbe5
parentf0bbc5f3ab9770e21ef704ea9c5c33b31551f600
PAP erroneously undeploying policies

The problem appears to be a multi-threading type of issue:
- PAP sends request to XACML
- JMeter pushes the next deployment request into PAP
- PAP receives response from XACML
  - based on request ID, the response is routed to the handler,
    but blocks while PAP processes the deployment request
- PAP replaces old list of policies with new, and changes the
  request ID
- PAP responds to JMeter
- PAP handles XACML response, even though it's request ID no
  longer matches

Modified PAP to no longer replace any messages that are at the
head of the queue.
Fixed the license.

Issue-ID: POLICY-2527
Change-Id: I43218a7d0591649d761e17282189e51d5dbd26ed
Signed-off-by: Jim Hahn <jrh3@att.com>
main/src/main/java/org/onap/policy/pap/main/comm/PdpRequests.java