-
Notifications
You must be signed in to change notification settings - Fork 819
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Null Reference Exception when the TransactionScope exits from the scope #870
Comments
@damageboy, want this? |
@damageboy do you want to take a look at this? |
I'm really sorry this hasn't received an answer sooner. I'm hard at work preparing 3.1 for a beta release and won't be able to look at this soon. However, one of 3.2's major goals is a cleanup of how distributed transactions work, and this will be definitely be taken care of. |
Am finally getting around to work on System.Transactions support - am pretty much rewriting the whole thing to be safer and simpler. A lot has changed regardless in Npgsql since this issue was opened, so I'm going to close it. If you can help test the upcoming 3.2, you should be able to grab recent 3.2 CI nugets from the unstable feed, or you can wait until a beta is released (hopefully not too long from now). If you encounter the same issue with these new versions, please post back here and I'll reopen. |
I'm using Npgsql 3.0.3 and a PostgreSQL server 9.3 and I'm trying to use a distributed transaction to orchestrate some data movement between two different database servers.
The code I'm using the the following:
When the TransactionScope exits from the scope (when exiting the using statement), I get a Null Reference Exception with the following stack trace:
Server stack trace:
at Npgsql.NpgsqlConnector.Cleanup()
at Npgsql.NpgsqlConnector.Break()
at Npgsql.NpgsqlConnector.ReadSingleMessage(DataRowLoadingMode dataRowLoadingMode, Boolean returnNullForAsyncMessage)
at Npgsql.NpgsqlConnector.ReadExpectingT
.........
It happens randomly.
The text was updated successfully, but these errors were encountered: