Do not require changeAt to be after previous value
This cannot be enforced before the new serialized format is used on all nodes.
@@ -47,10 +47,6 @@ public class LoadBalancer {
/** Returns a copy of this with state set to given state */
public LoadBalancer with(State state, Instant changedAt) {
- if (changedAt.isBefore(this.changedAt)) {
- throw new IllegalArgumentException("Invalid changeAt: '" + changedAt + "' is before existing value '" +
- this.changedAt + "'");
- }
if (this.state != State.reserved && state == State.reserved) {
throw new IllegalArgumentException("Invalid state transition: " + this.state + " -> " + state);
}
