Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-501

Incorrect log message in class ClientSessionFactoryImpl

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.0
    • 1.3.0
    • AMQP
    • None

    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())

      { 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).

      Attachments

        Activity

          People

            Unassigned Unassigned
            bayern39 Chen Maoqian
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: