Brian O'Connor

Fix for HZ intent store

The old value should be 'null'

Change-Id: I55d7826faa2c24bc911e6cc85be7d0e8bdc69c36
...@@ -180,7 +180,7 @@ public class HazelcastIntentStore ...@@ -180,7 +180,7 @@ public class HazelcastIntentStore
180 prevParking = states.get(id); 180 prevParking = states.get(id);
181 if (prevParking == null) { 181 if (prevParking == null) {
182 IntentState existing = states.putIfAbsent(id, SUBMITTED); 182 IntentState existing = states.putIfAbsent(id, SUBMITTED);
183 - verify(existing != null, "Conditional replace %s => %s failed", prevParking, SUBMITTED); 183 + verify(existing == null, "Conditional replace %s => %s failed", prevParking, SUBMITTED);
184 } else { 184 } else {
185 verify(prevParking == WITHDRAWN, 185 verify(prevParking == WITHDRAWN,
186 "Illegal state transition attempted from %s to SUBMITTED", 186 "Illegal state transition attempted from %s to SUBMITTED",
......