- 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
Admin
It's not even labor day yet!
On-topic: why not remove the email-sending routine beforehand?!
Admin
Because they wouldn't get confirmation that their appointment was deleted of course! Obviously there is no success message on the front end...
Admin
Soo... what did Martin do with the 1137 separate emails he got for deleting one appointment series?
Admin
Is there a connection between the working from 11:30 to 3a.m. the next day and this wtf?
There is a reason why NASA and Boeing engineers are not allowed to work more than a certain number of hours each week, and it isn't unions. It's that nobody, no matter how good they think they are, can really sustain more than a certain amount of effort without becoming tired and careless. The long hours culture explains a lot of things, from software foulups to stock market fat fingers.
Admin
Should be more than that. Remember, he tried to delete the appointment several times.
Admin
Yeah, but he only got spammed once, when the trigger worked "correctly" again.
The single mails from the failed tries probably only contributed to the "it says it's working, but it isn't" impression.
Admin
Continuing the discussion from Classic WTF: The Non-Deleting Delete:
Shrug. No big deal. Notify him about it, warn him to turn his machine on, open up his email program, then go away and have a coffee while it updates. Then suggest that he sort by sender, or better (if he has such a beast) to filter by sender, then "just" select them all and delete them. Job done.
If Martin is insufficiently tech-savvy to know what he is doing, offer to do it for him.
Throughout the course of the above, explain honestly that a deep-seated long-standing bug has finally come to the surface and explain that while you have fixed it, it will take a little time to clean out the debris.
Assuming you are working in an office whose internal politics are based on the fact that the staff are intelligent adults worthy of respect, this should be an appropriate way to manage the situation. If it is peopled by childish entitled ignoramuses, then you will have a somewhat rockier ride.
Admin
What I'm wondering is: how the hell did the email sending functionality work?
Admin
Shell exec to sendmail? SQL Mail? Queue table that is used by a background service? Does it matter?
Admin
Admin
Messages --> Create Filter --> done.
Admin
I sincerely hope that you are not involved in software development in any way whatsoever. Actually, anything technical at all.
"Yeah, this nuclear reactor explodes every few days, but let's just publish some information on how to clean the fallout with an automated lawn mower. Can't be arsed to change the design."
Admin
You'd be wrong. :smiley:
My real point is that it's sometimes easier to patch the consequences, at least temporarily, than it is to fix the root cause. (A thousand email messages really aren't that many, even when dumped in one mailbox, unless you insist on reading every single one carefully. I've had systems drop far more than that on me; it was mildly irritating until I realised that it was because something was replaying the notifications from 15 years of SCM commits for some obscure reason.)
Admin
Admin
I thought it was going to a single mailbox. Fixing the trigger is obviously the right thing to do, but a mail filter is how to clear the mess out of one mailbox while you fix the real problem…
Admin
Admin
This article reminded me of this other one: http://thedailywtf.com/articles/Feeling-Aggregated
Admin
Given that the problematic code only deleted one line, I suspect even the after delete trigger only ran once per delete, so there was no spam?
Admin
The trigger might do a lot more than just emailing; dev did the right thing opening it up first and double-checking that there were no crazy side-effects before disabling, like updating some other table, or enforcing legal retention of records (setting a "deleted" column instead of deleting the row).
Admin
You're all worried about poor Martin's inbox? I say Martin deserves a little grief in his life for scheduling a room 20+ years out. That's TRWTF, here.