Include hostname as part of lock owner 01/56201/1
authorJim Hahn <jrh3@att.com>
Wed, 11 Jul 2018 13:07:23 +0000 (09:07 -0400)
committerJim Hahn <jrh3@att.com>
Wed, 11 Jul 2018 13:07:23 +0000 (09:07 -0400)
commit0b01c65ad0f11d48020097edf3583a917adda4bf
treeb661e1c833f00a515f5e14e859eca55038861298
parent865dd094c03a145dc0588534263d1a62fef809eb
Include hostname as part of lock owner

Because the lock owner string is constructed, using just the target type
and request ID, lock requests made by different ONSETs running on
different PDP-Ds may both succeed.  Added the hostname to the owner
string so that locks for ONSETs for the same request ID will be rejected
if the request is made on different PDP-Ds.

Change-Id: I1d45194cbb1c5b1a1f6000477fe51879a2fecc19
Issue-ID: POLICY-872
Signed-off-by: Jim Hahn <jrh3@att.com>
controlloop/common/guard/src/main/java/org/onap/policy/guard/PolicyGuard.java
controlloop/common/guard/src/test/java/org/onap/policy/guard/PolicyGuardTest.java