Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-701

makeBrokerConnection uses a while sleep() and should be updated to use a wait() notify()

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • M2.1, M3
    • M3
    • JMS AMQP 0-x
    • None

    Description

      The makeBrokerConnection poses a problem with failover but not on its own. The use of makeBrokerConnection will start the connection process that if it fails will cause the Failover Thread to handle connection. As can be seen in the AMQConnection constructor the majority of the method needs to be moved in to a connect() method as it lets the failover mechanism handle the failover issue. (It does need to be improved as commented in a //todo there is a Thread.sleep loop that could be replaced with a wait() notify() mechanism.)

      The other two cases are related to attempting reconnection due to a redirection which are currently only called as part of the failover mechanism and so should already be wrapped in FailoverSupport

      Attachments

        Issue Links

          Activity

            People

              ritchiem Martin Ritchie
              ritchiem Martin Ritchie
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: