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

FailoverSingleServer delays on first connection.

    XMLWordPrintableJSON

Details

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

    Description

      Summary:
      _currentRetries is -1 on first connection but at the delay point in getNextBroker it has already been incremented.

      I'm sure the code was supposed to incorrectly say '-1' rather than '1' but both of those are wrong. We want to delay on all subsequent connection attempts which means '> 0'.

      • if (delayStr != null && _currentRetries != 1)
        + if (delayStr != null && _currentRetries > 0)

      So this should fix the issue. A work around is to use two brokers in the URL with their own connectdelay that way it will use the RoundRobin Method which doesn't have this bug.

      Attachments

        1. FailoverSingleServer.patch.txt
          0.7 kB
          Senaka Fernando

        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:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h