Open dinithihj opened 8 months ago
Noticed the same in test.mod. https://test.mod.spiff.status.im/i/866
Maybe just stop doing the fancy “on duplicate key update” stuff: https://medium.com/@mingwho/mysql-deadlock-caused-by-insert-on-duplicate-key-update-893ef30993a8. We can probably just rescue the duplicate key in code and ignore it, since if it is already written, we’re good (everyone is trying to insert the exact same row in this case, since it is just data and its corresponding hash).
Noticing this error time to time
Due to this issue, five process instances were errored in prod yesterday. I was able to restore four of them because they errored at the beginning of the process (no task data was captured), but not the one that errored closer to the end of the process.
Noticed deadlock errors in 2 instances on the test.mod(version 64/66) while release testing.
Some instances (so far 1 instance from each environment) were suspended after getting the following error. This occurred in the dev.app, test.app, and test.mod environments.
Process Instances
When checking the events tab, noticed that the error occurred after the "Set Xero Currencies Enum List"
FYI:
with_hint(MyModel, 'WITH (nolock)')