Publications

Risk management and acting in an emergency

Last Friday evening, in the rain and at a time of high demand, our service suffered an outage that made card payments impossible.

Reports of occasional payment errors had been coming in since the morning, but their share was tiny and stayed below our thresholds, so we didn’t pay them much attention: this kind of “background noise” is quite common, mostly because of maintenance on the processing centres’ side.

At around 19:30 we were alerted to problems at the till in a dark store: the error had blocked some of the processes (an order couldn’t be closed and handed to a courier for delivery), so a pile of packed orders built up waiting to leave the dark store.

Here is how things went from there:

  1. We started working out whose side the problem was on (processing centre, acquirer, POS) and how widespread it was;
  2. Once we realised the problem had nothing to do with the processors or POS, we decided to switch to the backup acquirer;
  3. After the switch we started getting reports of new errors;
  4. Pretty tense by now, we rushed to find the cause of the new errors;
  5. Fairly quickly we found out that a certificate issued by the backup acquirer had expired;
  6. We started pinging partners in group chats and direct messages, asking them to reissue the certificate (it was already around nine);
  7. After the reissue and debugging we restart the process and…
  8. …find out that the account used for refunds when working through the backup acquirer has only enough money for a couple of transactions;
  9. Then we frantically call colleagues in the finance department to ask how soon they can top up the account (it’s 22:00 by now) and find out it can’t be done before Monday.

In the end we found a workaround and fixed the problem, and then agreed to run a thorough analysis of what happened and a retro with our partners.

“Well, these things happen,” experienced readers will say: you messed up, you didn’t check, so you lost money and spoiled the user experience along the way. And that’s true.

But here’s the interesting part: just last week I came across material that turned out to be a vivid illustration of how similar mistakes in other industries lead to disaster.

The disaster near Ufa

On 4 June 1989 the deadliest railway disaster in the history of Russia and the USSR took place: 575 people died (645 by other accounts), and another 623 were injured.

Several documentaries have been made and dozens of articles written about the tragedy, so I won’t go into detail: if you want to dig in, you can start with the Wikipedia article (in Russian) and this video from the YouTube channel “SPEKTR” (in Russian).

Here is a quote describing the events that preceded the tragedy (the bold is mine):

About 3 hours before the disaster the instruments showed a drop in pressure in the pipeline (the exact moments of the initial damage and of the critical depressurisation of the pipe have not been established). However, instead of looking for the cause of the abnormal situation, the staff on duty merely increased the gas supply to restore the pressure.

As a result, a large amount of propane, butane and other highly flammable hydrocarbons escaped under pressure through a crack in the pipe and collected in a hollow as a “gas lake”, because their vapours are denser than air.

The drivers of trains that passed before the disaster warned the section’s train dispatcher that there was heavy gas contamination on the stretch (the smell of the odorant added to the gas and petrol mixture), but no attention was paid to it.

The two passenger trains, which in the end were almost completely destroyed, were running slightly late. Had they kept to the timetable, they would not have met near the site of the pipeline accident.

I am in no way comparing a horrific disaster with not being able to order groceries. The point is how similar the pattern behind both events is: ignored reports of problems, communication failures, careless following of procedures, violated technical requirements.

Why organisations hide risk information

The Wikipedia article has a section on the organisational causes of the disaster. It cites the view of Dmitry Chernov, Doctor of Science in Risk Management, ETH Zurich.

I got curious and went looking online for other material by Chernov (in Russian). It turns out that for more than 17 years Dmitry has been studying man-made disasters and consulting “on how information about risks is passed on inside large technology companies, and on management decisions and information response in emergencies that arise in the production of goods or the provision of services”.

Here is a short excerpt from the materials of his training course “How managers can get information from their employees about the risk of a possible disaster before that disaster can happen”:

Reasons for concealing risk information inside organisations (based on an analysis of these 20 disasters)

  1. Short-term socio-economic and financial goals took priority over the goals of long-term safety and the well-being of citizens, consumers, employees, etc. (in 90% of the disasters)
  2. The organisation’s ambitious goals (75%)
  3. Subordinates’ and contractors’ fear of being blamed and punished for reporting a problem (70%)
  4. Subordinates’ and contractors’ fear of being seen as incompetent (60%)
  5. An organisational culture of constant haste (60%)
  6. Ineffective state regulation (60%) and close relations between industry and government officials (in some of the cases studied)
  7. A culture of “success at any cost” and of bringing managers “no bad news” (55%)
  8. Ignorance of risks and wishful thinking / overconfidence / self-persuasion / self-deception about the low probability of an emergency (50%)
  9. Weak internal control in the organisation (30%)
  10. Pressure on the organisation from competitors (25%)

I find it striking how well this fits the context of start-ups and fast-growing tech companies.

Much of it echoes topics I’ve written about before: trust in a team; a culture of feedback, transparent communication, the fear of being seen as incompetent, and so on.

That’s why I strongly recommend this and Dmitry Chernov’s other material to managers: download the PDF (in Russian).

P.S. I wanted to end with a neat conclusion, but nothing came to mind except the trite “There are no small things at work” and “Negligence is unacceptable”.

For myself, I’ve decided that from now on I will regularly “put on the hat” of someone on whom other people’s lives and health depend, so I can think critically about whether the steps we’ve taken are enough to keep the service safe and stable.


First published in my Telegram channel (in Russian) on 1 December 2024: t.me/raschet7/148 and t.me/raschet7/149.

If this note was useful, here’s how you can say thanks.