Re: Fabric creates multiple DB connections
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?
Subject
Views
Written By
Posted
3300
August 30, 2016 12:20PM
Re: Fabric creates multiple DB connections
955
August 30, 2016 12:33PM
1002
August 30, 2016 02:33PM
842
August 31, 2016 06:54AM
880
August 31, 2016 01:44PM
956
September 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.