Bug #49537 | driver.connect is connecting just to first slave, and if it is down it hangs | ||
---|---|---|---|
Submitted: | 8 Dec 2009 16:39 | Modified: | 16 Dec 2009 10:03 |
Reporter: | zohar aharoni | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S3 (Non-critical) |
Version: | 5.1.10 | OS: | Any |
Assigned to: | Mark Matthews | CPU Architecture: | Any |
Tags: | connector, java, loadbalance, replication |
[8 Dec 2009 16:39]
zohar aharoni
[11 Dec 2009 0:16]
Todd Farmer
Proposed patch
Attachment: diff.txt (text/plain), 1011 bytes.
[11 Dec 2009 6:31]
Tonci Grgin
Pending Mark's review and based on Todd's test I'm marking this verified as described with workaround being "use most trusted box for first slave".
[14 Dec 2009 16:42]
Mark Matthews
Fixed for 5.1.11, from the changelog: - "Replication" connections (those with URLs that start with jdbc:mysql:replication) now use a jdbc:mysql:loadbalance connection under the hood for the slave "pool". This also means that one can set load balancing properties such as "loadBalanceBlacklistTimeout" and "loadBalanceStrategy" to choose a mechanism for balancing the load and failover/fault tolerance strategy for the slave pool. This work was done in order to fix Bug#49537.
[16 Dec 2009 10:03]
Tony Bedford
A 'change' entry has been added to the 5.2.11 changelog: Replication connections, those with URLs that start with jdbc:mysql:replication, now use a jdbc:mysql:loadbalance connection for the slave pool. This means that it is possible to set load balancing properties such as loadBalanceBlacklistTimeout and loadBalanceStrategy in order to choose a mechanism for balancing the load, and failover or fault tolerance strategy for the slave pool.