Bug #37283 | Distributed Transactions (XA,MS DTC, ...) | ||
---|---|---|---|
Submitted: | 9 Jun 2008 14:29 | Modified: | 8 Apr 2009 8:55 |
Reporter: | Cyrille Giquello | Email Updates: | |
Status: | Won't fix | Impact on me: | |
Category: | Connector / NET | Severity: | S2 (Serious) |
Version: | 5.x | OS: | Windows |
Assigned to: | CPU Architecture: | Any | |
Tags: | Distributed Transaction, DTC, xa |
[9 Jun 2008 14:29]
Cyrille Giquello
[11 Jun 2008 12:01]
Cyrille Giquello
There is a thrid error message case : Multiple simultaneous connections or connections with different connection strings inside the same transaction are not cur rently supported. at MySql.Data.MySqlClient.MySqlConnection.Open()
[5 Aug 2008 7:46]
Cyrille Giquello
Hello, Is there a plan, or not, for Distributed Transactions ? Reagards Cyrille
[26 Mar 2009 5:32]
Norman Fung
hello Is this fixed in version 6.x alpha? Thanks
[26 Mar 2009 9:25]
Norman Fung
I used multiple connection with same connection string within a single transaction scope (.NET): System.NotSupportedException: Multiple simultaneous connections or connections with different connection strings inside the same transaction are not currently supported. I tested against 5.1 and 6.1 Alpha, no luck. If someone knows when a patch on this will be released please please please let us know many thanks
[26 Mar 2009 9:58]
Tonci Grgin
Norman, that is expected behavior of c/NET, take a look at pooling implementation. Now for distributed transactions. I do not know but it is my opinion this will not be "fixed" in any of connectors but rather connectors will wait for proper implementation in server. Alas, for now, I am unaware of such plans in MySQL 6.0.
[26 Mar 2009 10:03]
Norman Fung
Thanks Tonci. I checked the code, the application opened two connections (SAME connection string) within single transaction: conn #1: NHibernate conn - oConn1 conn #2: ADO.NET conn - oConn2 I will try to see if I simply use oConn1 (just one connection) will do the magic oConn2 = oConn1; Thanks for your reply however, appreciate it.
[7 Apr 2009 9:37]
Tonci Grgin
"Won't Fix" as proper place for this is in server...
[8 Apr 2009 8:55]
Cyrille Giquello
Hello, Tonci, I do not agree with you analize. XA Distributed connections are implemented in Mysql server and have to be implemented in the Connector.Net. Then to work, just have to configure the Transaction Coordinator, like MS-DTC. There some documentation about implementing system.transaction in Connector to work with distributed transaction. Also, there is the Npgsql2 (.Net PosgresSQL) source code where you can have a look to see how it works. Sorry for my poor information, but I forgot them, because 6 months ago I had to stop using Mysql for a big project because the Connector does not implement distributed transaction. Regards, Cyrille.
[9 Apr 2009 8:13]
Tonci Grgin
Cyrille, true, but with many limitations. However and in spite of my ruling, I asked devs for second opinion here.
[9 Apr 2009 8:17]
Norman Fung
This time I managed to get around the problem by using same connection to make two/more calls instead of opening new in my code - which is indeed more efficient. And I got it working in the end. However, I do not rule out possibility in future where we'll NEED Distributed Transaction, that we do need one connection to a MySQL and another to an Oracle/M$SQL or other.
[17 Apr 2009 7:06]
Tonci Grgin
I am sorry but I had no feedback yet from c/NET team leader regarding this. I will inform you when I learn something new.
[17 Apr 2009 7:08]
Tonci Grgin
Bug#44334 was marked a duplicate of this report.
[23 Sep 2010 7:59]
Tonci Grgin
Until there is an incomplete XA support in server there is not much c/NET team can do. Sorry.
[26 Mar 2011 16:40]
Valeriy Kravchuk
Bug #59035 was marked as a duplicate of this one.