Description
There is incorrect logging message present in method establishNewConnection() in class org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl .
protected RemotingConnection establishNewConnection() {
....
RemotingConnection newConnection = clientProtocolManager.connect(...);
newConnection.addFailureListener(new DelegatingFailureListener(newConnection.getID()));
schedulePing();
if (ActiveMQClientLogger.LOGGER.isTraceEnabled())
return newConnection;
}
Log message says, that it is returning connection (old one, present as an attribute of class), but connection stored in newConnection variable is returned (and then it is set as this.connection).