Yuta HIGUCHI

IntentStores: only post Parking states

Change-Id: I7ed3f2e38d71b5a5f83a47d582326576b7da52f1
......@@ -451,10 +451,10 @@ public class DistributedIntentStore
builder.put(STATES_TABLE, strIntentId(intent.id()), serializer.encode(newState));
if (PARKING.contains(newState)) {
transitionedToParking.add(intent.id());
events.add(IntentEvent.getEvent(newState, intent));
} else {
transitionedToParking.remove(intent.id());
}
events.add(IntentEvent.getEvent(newState, intent));
break;
case SET_INSTALLABLE:
......
......@@ -490,8 +490,8 @@ public class HazelcastIntentStore
if (PARKING.contains(newState)) {
transientStates.remove(intentId);
}
events.add(IntentEvent.getEvent(newState, intent));
}
log.trace("{} - {} -> {}", intentId, prevIntentState, newState);
// TODO sanity check and log?
......