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
4790
September 16, 2005 11:14AM
2049
September 19, 2005 04:26AM
1999
September 19, 2005 06:35AM
1943
September 19, 2005 06:48AM
1928
September 19, 2005 06:53AM
1865
September 19, 2005 07:08AM
1770
September 19, 2005 07:13AM
1966
September 19, 2005 07:42AM
Re: incorrect information ?
1857
September 19, 2005 07:52AM
1693
September 19, 2005 08:04AM
1777
September 19, 2005 08:24AM
1805
September 19, 2005 08:35AM
1802
September 19, 2005 09:42AM


Sorry, you can't reply to this topic. It has been closed.

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.