meteor-transactions icon indicating copy to clipboard operation
meteor-transactions copied to clipboard

tx.selfRepairMode = 'rollback' does not work

Open surashreek opened this issue 10 years ago • 2 comments

I was testing this package by running a loop to insert a 1000 documents in a collection, and wrapped this up in tx.start() ... tx.commit(). If I kill Meteor midway (after it's finished inserting say, 500 documents), and start the app again, the transaction goes back to the beginning and starts inserting a 1000 documents again, and towards the end I have 1500 documents total, instead of 1000.

I tried setting tx.selfRepairMode = 'rollback' after tx.start() (and also in main.js) but this doesn't work either. What am I doing wrong?

surashreek avatar Sep 28 '15 16:09 surashreek

Sounds like the package has a bug. Is there a simple repro somewhere I could use to create a failing test?

JackAdams avatar Sep 28 '15 23:09 JackAdams

I've just released 0.7.5 on Atmosphere. It fixes a number of bugs, one of which might be causing this. If this is still not working, let me know and I'll take an in-depth look.

JackAdams avatar Nov 22 '15 10:11 JackAdams