qertoip/transaction_retry

Why do you require isolation?

tillvollmer opened this issue · 2 comments

In the init section it uses this
TransactionIsolation.apply_activerecord_patch

But there is no call of isolation() in the code.

Why is that needed?

I think Rails 4 supports specifying the transaction level.. maybe that could be used?

That other gem does some exception rewriting, and this one depends on the ActiveRecord::TransactionIsolationConflict exception, rather than the collection of other exceptions it wraps:

rescue *[::ActiveRecord::TransactionIsolationConflict, *retry_on]