News for hackers. Stuff that matters.
Re:I deleted data from production by whatever1 on Tuesday October 26, 2021 @12:07AM (#28996279)
None of the code for consumer production is verified formally. So please spare us the bs that you make no mistakes. You are just lucky.

Be humble because the complexity of modern systems is insane, there is no way you have all cases covered, if you had you would had a formal proof.

We all are just doing our best to cover most of the edge cases. That is why we need to keep learning from other peoples mistakes.

Re:I deleted data from production by sdhfjg on Tuesday October 26, 2021 @12:33AM (#28996426)
Read the article. We're not talking about formal verification.

>It's Sunday morning and I just discovered that I've lost 3To of data and that all data pipelines have stop working because on Friday I ran for no reason

  hdfs dfs -rm /data

This is profound incompetence.
Re:I deleted data from production by macrolocal on Tuesday October 26, 2021 @01:55AM (#28996876)
Back in 2014, my first tech job, I wrote a clean-up script to delete HDFS artifacts listed in some text file. One day I modified the list and left a blank line at the end. :)

We had nightly back-ups though.

Re:I deleted data from production by snicker7 on Tuesday October 26, 2021 @01:34AM (#28996755)
Possible explanation: lots of terminals paste on click. A single miss click can execute who know what from your clipboard.
Re:I deleted data from production by nicolas_t on Tuesday October 26, 2021 @01:51AM (#28996856)
In my experience some people keep making the same careless mistakes, the first time, you let it pass, treat it as a learning experience. The second time, you start seeing that it's always the same person doing the same mistake.

Copy pasting is not an excuse, before you run anything destructive, you double check what you're running.

Anyone who is responsible will double check before running this kind of command, and if I can't get that person off the team, I'd severely restrict his access (in general, I think most people in a team should not have access to production data).

And we do have disaster recovery plans so there's very little that could be done that would be catastrophic. But still, a lot of the disaster recovery plans call for downtime because it's not worth the cost benefit to engineer the system to be completely resilient to idiocy.

Re:I deleted data from production by ac50hz on Tuesday October 26, 2021 @05:29AM (#28998207)
+10
Re:I deleted data from production by teddyh on Tuesday October 26, 2021 @02:18AM (#28997024)
Modern terminals marks pasted data as pasted, and similarly modern shells detect these marks and do not run the pasted data immediately, but shows it, highlighted, so that you can review it before confirming it.
Re:I deleted data from production by hulitu on Tuesday October 26, 2021 @02:53AM (#28997206)
That's why you have a backup. I also noticed that i'm incompetent on friday evenings so i avoid doing sysadmin work then.
Re:I deleted data from production by arpa on Tuesday October 26, 2021 @12:39AM (#28996458)
yeah this is not something to be proud of. At least make up a reason!