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

Race condition caused by Linkstealing might make durable subs inactive

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.11.0
    • Fix Version/s: 5.11.0
    • Component/s: Broker
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      Link Stealing creates a new connection and disconnects the old connection. These operations are done concurrently.
      New connection triggers addConsumer() for active subscriptions and old connection stop causes removeConsumer() for the same.

      Problems:

      • addConsumer() would throw exception that the sub is already active (if remove did not happen before)
      • even if we go past the exception, it will not set the right (new) connection context and consumer info the subs
      • removeConsumer() may remove subcription even if it had different connection context (created by linkstealing)

      Patch attached.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tabish Timothy A. Bish
                Reporter:
                workanandr AR
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: