- Feature Articles
- CodeSOD
- Error'd
-
Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Edit Admin
Well, the last two times I traveled by train, coaches were not available since they just went part of the train, so my reservations basically disappeared into thin air. No delays, no cancellation - just a train with missing coaches. But I have to say a concurrency issue is similar frustrating, didn't happen to me (yet).
Admin
Another option is that when a race condition double-booking happens, it is no big deal. Just something that is quickly and easily worked out on the train as happened in the article. Both passengers were happy they got to they were going with an amusing story to tell, so they never reported a bug.
Admin
TRWTF is not applying for a refund (which would force them to fix the booking system,) or the train company not charging to reserve a seat (unlikely.)
Admin
This is why DB consrraints are important even if you have logic in code.
If the DB didn't allow two people on the same train to have the same seat then one transaction would fail. That's annoying when you're the person who has to reselect their seat or retry, but it's better than knowingly allowing bad data to exist.
Edit Admin
Clearly this did not happen in Belgium... the real WTF would be taking the train and expecting everything to go smoothly and without delay