What’s worse is keeping two versions of a project open at once, one being the released and one being the dev, accidentally modifying both with different sets of changes, testing the one in dev, then deploying the full changes and suddenly nothing works. When you realize what happened… ugh
I spent an entire day trying to debug how a database record was seemingly randomly being updated during a workflow recently. Eventually discovered there was a whole other service doing its own thing that was updating it.
Hah. Good one. To give a bit more context, it was a document in a Cosmos database that was being updated. It doesn’t have locking as such - there’s a GUID that gets regenerated each time a document is updated that is used to detect conflicts, but it can be ignored.
The team that designed the system I work with built multiple independent services that all make changes to the same dataset. There’s no locking, no retry mechanism, no meaningful way of handling concurrency at all. Issues like this are quite common, but the architecture is so fundamentally flawed, that making any type of long term fix requires substantial rewriting.
1.8k
u/waremi Jan 02 '22
You sub-classed your panda wrong and
The code that is actually running is not the code you have been staring at for the past hour.