All problems

Rejected Batch Reservation Still Consumes a Seat

Level 2 · node · Reliability · Capacity not restored for invalid batch item

Scenario

A fictional workplace training room handles participant reservations in a batch with a fixed seat capacity. Only registered participants may occupy seats. The current service increments used seats before verifying registration, so invalid entries incorrectly reduce available capacity.

Requirements

Only a valid registered participant consumes a seat. Return rejected for invalid participants without changing used, deny additional requests when the room is full, and return results in request order.

Acceptance criteria

  • A valid participant consumes one seat.
  • An unregistered participant does not consume a seat.
  • A valid participant after an invalid one can use a remaining seat.
  • A full room rejects further reservations without changing used.