- 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
Sanity had little to do with Enron. Yes, there was someone at Enron who knew exactly how much they didn't have - to the penny. Exceedingly meticulous. However, I can point to you many people at an OCD conference who are exceedingly meticulous, but not sane.
If the financial type at Enron had both knowledge of how much money Enron did not have and sanity, he would not have been at Enron. A sane individual would have fled that company years earlier. (I seem to recall that there had been such a person, in fact.)
Admin
They probably did. However, when the cash registers no longer know any item prices, and the items have no price tags, just bar codes, everything is a price check. Customers won't put up with that for long.
Admin
No, it's not lunacy. It's wtf ... errr ... concept known as unitabular database architecture. Running very strong with some managerial types floating on the fringes of IT. And, no, this isn't a joke :D
Admin
OK altogether now: "The REAL WTF is...."
Seriously though, there's no way that one database crash alone caused bankruptcy...it musta been f***d up in the first place. Remeber pets.com? they went out with a whimper, not a bang....
Admin
You must be one hungry bastard.... 10MB would hold a hell of grocery list.....
Admin
Great. Now as a programmer you come along and decide to change the database. Clean it up. Maybe delete a column that is no longer needed. So you have to write a program just to delete the column?
Admin
Admin
This story is probably fabricated. Too many things don't make sense:
First, the price of the hosting: $75 per month for 100 Mb of disk space???
That could have made sense 10 years ago, but not now. I pay about $100 per year for a much better hosting, with 24/7 support, backups and whatsnot.
Next, is the statement "For starters, its database ballooned to several gigabytes within the first month. On top of that, its Web traffic was far higher than the company's allotted bandwidth and other Web sites on the shared server were getting bogged down."
That doesn't hold water. If the database was as described, it would NOT have ballooned to several Gbs within the first month. Either it would have been bigger from the getgo, or it would not have increased from less than 10 Mbs to several Gbs in a month.
Next the idea that store employees putting store data in the database would bust the bandwidth ceiling isn't very realistic.
Next, the database was loaded on the ISP's server, which means that another reasonably recent copy existed. Did it magically disappear?
Those and other clues suggest the story is a fake.
Admin
Quoted for agreement!
Admin
Deletes don't kill databases, people kill databases.
Admin
Had similar experience once with my friend who accidentally deleted production data of customer. Thankfully the backups saved the disgrace. The Account Manager was furious on him, but mistakes do happen. The important part is to minimize the impact of mistakes !! Companies who are lazy / ignorant about backups are bound to a calamity some day, only the day has to come.
Admin
While deleting data on prod server, it is better to use a transaction context, so a rollback can be done if needed.
Any delete queries should be run on stage first to make sure it is just deleting what it is supposed to delete.
A simple where clause miss is going to wipe out the table !! So I would do 10 checks before doing anything with such a serious effect.
Admin
The backups can only solve the problem to certain extent.
As in clustered - distributed DB scenario, the backup is not that real-time. Depending on how frequent auto backup are taken, there is a likelihood of some delta getting missed post recovery.
Also the time spent in finding the backups & recovery can be so huge depending on DB size, it might be worth investing time in doing peer code review before doing a DELETE !!
Having said that, I would really hate to say that modern DB must be smart enough to cover the stupid developer ass! I usually love to hate the machine than the human.
Admin
Are we talking about the same people here ? Oh, that was irony ? ;)
Admin
I suspect you need to go on a diet. 10Mb = ~20 novels in plain text. Even counting DB overhead and poor table structure, let's say you only have 10% of that space used for actual data, that's still one hell of a shopping list.
Think Gloves. A RDBMS is a scoche of overkill for a shopping list. I use a pen and paper. This has the added advantage of my boys seeing me write things down, deomonstrates that writing is useful in a world where that's not as obvious anymore.
Your point is still valid though. For what they were going to use it for, the DB was VERY poorly specced. One wonders whether or not the original advice came from our Delete Monkey?
Admin
It was a pet store. They have inspectors. You can't just hang monkeys upside down from the ceiling, no matter how stupid they are.
Personally I've been on the receiving end of more than one stupid delete statement/command initiated by people who should know better. The person who should've been sued in this case was the monkey. We're asked to carry professional indemnity for a reason folks.
CAPTCHA - Nulla - final size of MegaPetCo's database?
Admin
I still do. dosbox.sourceforge.net
Admin
These things rarely say exactly when they take place. I just assumed that it was long enough ago for the price to be... high but within the normal range for low-end.
I'd not be surprised if it started out being just the database for the website, but things got moved over to it. "Why are we paying for this database when we have a perfectly good database at the web hosting company. We need that one, because they can't use our local SQLite db to run it. We don't need the local one."
Think camels and straws. Think poorly designed protocols. Think 'select * from db;'
The only copy was the ISP's server. When that died, it all died.
Most of the clues people use to determine stories here are fake fall into two categories:
Stupid things people do that other people think are too stupid for people to actually do. But we know people do these things.
Details which are probably anonymisation artifacts.
I've seen people do most of the stupid shit in this story - just not all on the same project.
Admin
But rhat would be tri-country, not tri-state.
Admin
After reading that, I skipped right past saying both 'WHAT', and 'THE' .. and headed straight for the 'F" word.
Admin
Hey, good point! Couldn't Australia get along with one-letter state abbreviations?
Reminds me of a panel discussion I attended once comparing American to Australian culture. One of the Americans commented that she thought it was interesting that Australia has about the same land area as the United States, but the United States is divided into 50 states while Australia is divided into only 6. To which an Australian replied, "Yes, but of course you don't have 50 separate state governments, do you?" Well, uh, yes, actually we do ...
Admin
I ran into this when I was in college in upstate N.Y. (near Albany). We ran a bus service for Thanksgiving and spring break, and people would come by looking for tickets to 'the city' (Huh?) I needed somebody else to explain to me that they meant NYC. But what can you expect from people who think Westchester County is 'upstate' when even from Albany, there are almost 180 miles MORE upstate to go 'til you reach the Canadian border.
captcha: opto - reminds me of opto-isolators used in factory control circuits.
Admin
Say that again. So you have a customer with a moronic database, and because of that setup they are paying you $4000 extra a month. So you are going to offer to fix the system for them? eh?
Admin
Like others have said, a back up is not a backup until it's been tested; I once worked for a small company which had the SME market as it's primary focus. This one time I was able to gain a contract for a boutique wine maker, of international reputation, to upgrade some PC's and the storage on their server. Thinking that we had a great start, as they had been running Tape backups of their data "for ever" and RAID 1 on the drives in the server running Windows NT.
We tried to test the backups on another machine - FAILURE nothing on the tapes.
Still thinking that all was OK as there was the RAID 1 partition, my boss, went to upgrade the operating system in the machine (going to Small Business Server), and being the type of person that he was, FDISK is the only way to start. Whilst he was getting ready to kill the partition, I demanded that he check the RAID backup "for safety". With much cursing and grumbling he asceeded to my demands to check the alternate partition. good thing we did as FAILURE dud drive on the alternate partition, it had never been setup correctly by the previous IT company.
I never even got a thanks for saving the business from making a major fubar to the customers files.
All being said I left there not too long afterwards, and the IT compay closed it's doors a while later.
The boutique winery, did end up getting a Server that did create tape backups, and a RAID system that worked too.
Admin
The government should act in everybody's interest. Here we see hundreds of jobs lost to stupidity, not to mention an unknown amount of tax dollars.
So a regulation that requires backups only propagates knowledge gained from experience: Avoid job losses by having good backups. More jobs and lower taxes mean more happy voters, too.
And that regulation could also take some wind (cash) out of the managers' golden parachutes by imposing stiff penalties. At that point the difference between $75 and $4000 suddenly stops looking so enormous.
Admin
Ummmmm....
Hang on a bit.
The Govt SHOULD act in the people's interest, but then so should the people. I don't know about you but I don't want to live in a Nanny state. I don't want a Govt inspector in my toilet stall at work watching me wipe my lily white muscular arse in case I miss a spot. I should do a good job, for the sake of my health and for the olfactory sake of my work colleagues. That's enlightened self interest.
The trouble with regulations is that they need to be enforced. That actually INCREASES taxes, it doesn't reduce them. Good management and good business sense (in fact good COMMON sense) tells me that MegaPetCo should have been keeping backups. They weren't. This is not the Govt's fault, it's the fault of the executive of MegaPetCo for not ensuring their business was safe from 'disaster'. Business Continuity is a part of any business plan these days and it has to be - it should be. Part of any BC plan is working and tested backups.
Getting the Govt to intrude on something that 99.9% of the business community either is or thinks they're doing seems like another itrusive waste of taxpayer's money.
Well this is the real problem that you're trying to solve here. The managers shouldn't come out of this scott free after their fundamental mistake has destroyed their business. Your way of doing it however simply doesn't hold water.
Here in Australia we're working on ways to stop executives from bailing out with massive payouts as companies go bankrupt. We've had the odd spectacular failure (especially in the insurance sector) over the last decade, and executives are being held more accountable for the way they conduct their businesses.
BUT, how far do you go? Do you have Govt auditors with caseloads, every business larger than X or every director with a salary larger than Y has to be periodically audited for how they run their business dealings? I mean, why stop at backups? Why even START there?
Businesses fare best when the intervention from Govt is less, not more. Occasionally someone gets it wrong and there are massive consequences because businesses are so large. That's not malicious, it's business. Some people make profit, some people make losses. It's sad, but some people lose their jobs.
My point is this - businesses are NOT social welfare programs. They're there to earn a profit. You work for one to help it earn a profit. Generally they'll keep you employed for as long as what you do is more valuable to them than the cost of retaining your services. When a business fails, the people own the business are losers too. Your argument above seems to imply that the only people who lose from a failed business are the employees and that simply isn't true.
So, should the Govt FORCE business to do something that almost everyone does simply because it's good business sense and stops things like MegaPetCo debacles? Well, no. They shouldn't. I don't want my tax dollars increased to fund the Inspectors for Doing the Obvious (IDO) Dept.
What SHOULD the Govt do in cases like this? Put more funding into education. Teach people to not only to learn their curriculum, but teach them to think at the same time. Take the lesson from MegaPetCo, and feed it into the MBA course for every university in the land.
Yes, MBA, not computer science. It's often been said that you don't need to be technical to manage technicians. We all know this to be wrong, but what we've lost sight of is that the reverse is now true - you have to have a measure of technical knowledge to be a mainstream manager of note in any business.
Anon, I see and share your pain, but we need the Govt to fix the problem at the source - education, not regulation, is more likely to stop MegaPetCo from happening again.
Admin
First of all, its "I feel your pain"(tm).
Second, the US is slowly drifting to a consensus consistent with Anon's POV (see: slashdot). If I were you, acid, I would prep myself for a sudden influx of the productive US citizens as immigrants. Some smart tax policy, and Australia is poised to become the next economic super-power. We'll leave the US to the the Anons of the world to figure out how to pay off $10T in debt by complying with their federally-mandated backup policies.
Admin
And the local chapter of the Humane Society and all the no-kill shelters that have to pick up the pieces when a bunch of breeders suddenly have nobody to sell to.
Admin
Yes.
And I also need a law that tells me not to break the law so that I wont go to jail for stupidly ignoring all these laws.
Admin
I have to say they deserved to go out of business. Anybody who takes IT operations and development lightly in this day and age should not be managing a company that relies on technology for its survival.
Admin
Having been admin at 3 different ISPs, we've ALWAYS had regular backups, at least weekly. So there are two WTFs:
Company has a "ninja" developer.
ISP has horrid service.
Admin
HEY BOSS! I GOT GOOD NEWS AND BAD NEWS!
The good news is, I solved the space problem on the disk ...
Admin
"TRWTF is that the ISP had no backups. They deserved to be sued. It isn't their place to determine if a customer's database is crappy. Even if the $75 account meant no backups were made, the developer should have made backups before any work was done!"
The real WTF is playing with a production system without first trying out on a mirror... That being said: What in heaven makes you believe a webspace provider should make any backups? I'd sue anyone making backups of my data without my permission because it's potentially deadly stuff we talk about: wages, debts etc. Let some of those things leak to the public and it could have a devastating effect on any business sending their stocks reight through the bottom -.-
On the other hand I can tell you exactly how that database came to be: a fast expansion of the business and no own IT department (if they had one it was propably "Larry in the basement" who was responsible for kicking the desktops when windows wouldn't boot). After some time they need some new feature for accounts so they hire the cheapest guy they can get. That guy is either an idiot or well underpaid and lazy and just adds the stuff to the existing table. Four or five of those guys later you need a fucking genius to identify which column belongs to which value. Plus you have the php code of some of the pages somewhere hidden in the table. Nobody really wants to mess with this (at least not at the price they are willing to pay) and they don't have the knowledge to see why this is bad ("It works."). In the end nobody is responsible: the company didn't have a clue about backups, the developers didn't get paid well enough to give a shit and the ISP didn't get paid to make backups.
Admin
I grew up in range of both New York and Philadelphia TV stations, and was included as part of two tri-state areas: NT/CT/NJ and PA/DE/NJ