Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-6946

PeerBrokers contains raw URI from transportConnector

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.15.3
    • Fix Version/s: None
    • Component/s: Broker, Connector
    • Labels:
      None

      Description

      When two transportConnectors are configured and one has updateClusterClients or rebalanceClusterClients enabled, a client connecting to the transportConnector will not work reliable.

      In org.apache.activemq.broker.BrokerService.getDefaultSocketURIString(), it loops over all transportConnectors and deteremines the defaultSocketURI. This is used, when no peer has joined the cluster.

      Depending on the order of the transportConnectors, this results in a peer with 0.0.0.0 being declared. This is due to the second connector not being started at the point where defaultSocketURI is needed.

      Working:

                  <transportConnector name="openwire_ssl" uri="ssl://0.0.0.0:61616?maximumConnections=1000&amp;wireFormat.maxFrameSize=2147483648"updateClusterClients="true" rebalanceClusterClients="true" updateClusterClientsOnRemove="true" />
                  <transportConnector name="openwire" uri="tcp://0.0.0.0:61617?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600" />
      

      NOT working:

                  <transportConnector name="openwire" uri="tcp://0.0.0.0:61617?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600" />
                  <transportConnector name="openwire_ssl" uri="ssl://0.0.0.0:61616?maximumConnections=1000&amp;wireFormat.maxFrameSize=2147483648"updateClusterClients="true" rebalanceClusterClients="true" updateClusterClientsOnRemove="true" />
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mtheiss Martin Theiss
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: