"DTC transaction prepare phase failed" when UPDATE:ing in a promoted TransactionScope

Description

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

Environment

None

is related to

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

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

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?
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?