MySQL Forums
Forum List  »  Utilities

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

I went into the source code of 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

Written By
Re: Fabric creates multiple DB connections
August 30, 2016 12:33PM

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.