Fix for HZ intent store
The old value should be 'null' Change-Id: I55d7826faa2c24bc911e6cc85be7d0e8bdc69c36
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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", | ... | ... |
-
Please register or login to post a comment