"DTC transaction prepare phase failed" when UPDATE:ing in a promoted TransactionScope
Activity
Show:
Frédéric DelaporteJune 29, 2017 at 5:20 PM
Some ongoing work currently fixes DtcFailuresFixture.TransactionInsertLoadWithRollBackTask
. Please provide additional test cases if you do not think this one correctly covers the reported bug.
Oskar BerggrenNovember 12, 2012 at 8:14 PM
I suspect the existing (failing/ignored) test DtcFailuresFixture.TransactionInsertLoadWithRollBackTask() also expose the same problem.
Germán SchuagerMarch 12, 2012 at 11:23 PM
This seems to be the same (or at least very related issue) http://groups.google.com/group/rhino-tools-dev/browse_thread/thread/6c4e9cce18581dac/922dcafbd567e368
Germán SchuagerMarch 12, 2012 at 11:12 PM
I'm getting the same behavior. This is a problem when trying to use NH along with something like Rhino Service Bus.
Fixed
Created July 12, 2010 at 2:25 PM
Updated September 20, 2017 at 2:59 AM
Resolved September 7, 2017 at 7:59 AM
Who's Looking?
When saving an updated object in a TransactionScope that is promoted to a DTC transaction (by sending a message to a MSMQ), I get the following exception after exactly 20 seconds :
http://gist.github.com/472508#file_stacktrace
I have tried to create a BugTestFixture to reproduce this behaviour, please see http://gist.github.com/472508. In my environment the two simple tests "RenamePersonUsingITransaction" and "RenamePersonUsingTransactionScope" works as expected, but "RenamePersonUsingPromotedTransactionScope" fails as per the stacktrace.
Sorry for not providing a diff for the test case, I'm working against someones Git repo. If you want, I can try to provide one.
Thanks for great work on a great framework!
Best regards,
Ragnar Dahlén