MySQL Forums :: Utilities :: Fabric creates multiple DB connections


Advanced Search

Re: Fabric creates multiple DB connections
Posted by: Puneet Nahata ()
Date: August 30, 2016 12:33PM

I went into the source code of FabricMySQLConnectionProxy.java and i think the problem is in the implementation of this line.

protected Map<ServerGroup, ReplicationConnection> serverConnections = new HashMap<ServerGroup, ReplicationConnection>();

ServerGroup object does not override hashCode() and equals() method.
I put a debug point in the middle of my application run and the size of the map was 1424. It should be not more than 4 since i have 1 global group and 3 HA groups.

I am using mysql-connector-java-5.1.36

Can anyone from Oracle/MySql look into this?

Options: ReplyQuote


Subject Views Written By Posted
Fabric creates multiple DB connections 665 Puneet Nahata 08/30/2016 12:20PM
Re: Fabric creates multiple DB connections 263 Puneet Nahata 08/30/2016 12:33PM
Re: Fabric creates multiple DB connections 265 Puneet Nahata 08/30/2016 02:33PM
Re: Fabric creates multiple DB connections 247 Jernej Krmelj 08/31/2016 06:54AM
Re: Fabric creates multiple DB connections 247 Puneet Nahata 08/31/2016 01:44PM
Re: Fabric creates multiple DB connections 235 Jernej Krmelj 09/01/2016 01:48AM


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.