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

Race condition caused by Linkstealing might make durable subs inactive

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.11.0
    • 5.11.0
    • Broker
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: