You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, just familiariizing myself with this package, but I'm having some problems getting any transactions to successfully commit. I want to edit a set of documents in one transaction, so I created a transaction with the start function and I'm ending with a call to tx.commit. However, after 5 seconds I see an error that the transaction timed out and is rolled back. What am I doing wrong?
In the snippet below, I'm calling update several times to update many documents, then calling commit at the end.
Started "shiftPlanIndex" with transaction_id: WZF3DDWQpdEjdg4FT
I20160627-13:23:14.429(-4)? Pushed update command to stack: WZF3DDWQpdEjdg4FT
I20160627-13:23:14.429(-4)? Pushed update command to stack: WZF3DDWQpdEjdg4FT
I20160627-13:23:14.429(-4)? Pushed update command to stack: WZF3DDWQpdEjdg4FT
I20160627-13:23:14.430(-4)? Pushed update command to stack: WZF3DDWQpdEjdg4FT
I20160627-13:23:14.430(-4)? Beginning commit with transaction_id: WZF3DDWQpdEjdg4FT
I20160627-13:23:19.432(-4)? Transaction (WZF3DDWQpdEjdg4FT) was cancelled after being inactive for 5 seconds.
I20160627-13:23:19.439(-4)? Rollback reset transaction manager to clean state
The text was updated successfully, but these errors were encountered:
Strange, that looks fine to me. It just looks like the tx.commit() function isn't being called. Maybe an error is getting swallowed silently (which would be an issue with the package), breaking the event loop with the tx.commit() in it, while the Meteor.setTimeout call that checks the transaction is committed in reasonable time is still running (as it was initiated before the error). Normally, in this situation, I'd expect to see an error reported in the console though.
I'm not overly familiar with ES2015 syntax, so I would have written:
Hi, just familiariizing myself with this package, but I'm having some problems getting any transactions to successfully commit. I want to edit a set of documents in one transaction, so I created a transaction with the start function and I'm ending with a call to tx.commit. However, after 5 seconds I see an error that the transaction timed out and is rolled back. What am I doing wrong?
In the snippet below, I'm calling update several times to update many documents, then calling commit at the end.
The output looks like this:
The text was updated successfully, but these errors were encountered: