PAP should discard responses for old requests 03/106803/2
authorJim Hahn <jrh3@att.com>
Tue, 28 Apr 2020 20:55:24 +0000 (16:55 -0400)
committerJim Hahn <jrh3@att.com>
Wed, 29 Apr 2020 14:02:25 +0000 (10:02 -0400)
commited81ba9cc8e54c3c2d8c70972a6307a1b5bbe86a
tree5ba1d466265a6114d3d682694538b87ead120fa6
parent0f4acdbe709ec9e96e3984cc4541bce0b4096d4e
PAP should discard responses for old requests

This is a more robust solution to the race condition previously
identified with back-to-back deployment requests.  The old fix has
been rolled back and replaced with this fix.

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