Comment

Comment by koolba

Following through the blog to the actual docs: https://docs.mongodb.com/master/release-notes/4.0/

> By default, multi-document transactions wait 5 milliseconds to acquire locks required by the operations in the transaction. If the transaction cannot acquire its required locks with the 5 milliseconds, the transaction aborts.

Automatic cancellation rather than actual deadlock detection is going to be one hell of a footgun.

I'd argue this is a double barreled footgun as most usage of MongoDB is from garbage collected languages. One wrongly time GC and your transaction is dead.

parent koolba 8 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton