MySQL Forums
Forum List  »  NDB clusters

Re: incorrect information ?
Posted by: Mark Matthews
Date: September 19, 2005 07:52AM

kostya kote wrote:
> and more.
> I quote from
> http://dev.mysql.com/doc/connector/j/en/cj-configu
> ration-properties.html
> "...
> If the URL property "autoReconnect" is true:
> Failover happens when the driver determines that
> the connection has failed (before every query),
> and falls back to the first host when it
> determines that the host has become available
> again (after queriesBeforeRetryMaster queries have
> been issued)...." (с)
>
> So, is it wrong ? or in which cases can it happens
> "that driver determines before every query.."
>
>
>
> Edited 1 times. Last edit at 09/19/05 09:43AM by
> kostya kote.

Kostya,

That information is slightly wrong. We'll correct the documentation. It should state re-connect only happens when autoCommit=false, which means reconnection won't happen in the middle of a transaction, only at the _beginning_ of a transaction. If the connection fails in the _middle_ of a transaction, you need to set the connection back to autoCommit=true, and start the transaction over again.

-Mark

Mark Matthews
Consulting Member Technical Staff - MySQL Enterprise Tools
Oracle
http://www.mysql.com/products/enterprise/monitor.html

Options: ReplyQuote


Subject
Views
Written By
Posted
4668
September 16, 2005 11:14AM
1969
September 19, 2005 04:26AM
1943
September 19, 2005 06:35AM
1891
September 19, 2005 06:48AM
1866
September 19, 2005 06:53AM
1813
September 19, 2005 07:08AM
1705
September 19, 2005 07:13AM
1915
September 19, 2005 07:42AM
Re: incorrect information ?
1805
September 19, 2005 07:52AM
1640
September 19, 2005 08:04AM
1738
September 19, 2005 08:24AM
1755
September 19, 2005 08:35AM
1751
September 19, 2005 09:42AM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.