Skip to content

Beware of Thread#kill and partially commited ActiveRecord transactions

coderrr.wordpress.com
10 pointscoderrr1 comment
On HN

Comments

I actually had this happen with one of my apps and I do think it is a quite surprising behavior that it rollbacks transactions in the main thread and commits transactions in the other threads.

I actually find it surprising that it commits my transactions in any kind of unexpected behavior like my process being killed, but the part of it behaving differently in the threads is somewhat amusing.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.