Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-6551

Incorrect log message in class ClientSessionFactoryImpl

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 11.0.0.Final
    • 10.0.0.Final
    • JMS
    • None

      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()) {
               ActiveMQClientLogger.LOGGER.trace("returning " + connection);
            }
            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).

              bayern39_jira Chen Maoqian (Inactive)
              bayern39_jira Chen Maoqian (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: