Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-2039

tearDown may interrupt wrong threads after failures

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.5.5
    • None
    • Broker
    • None

    Description

      If a failover is happening, and consumers are stuck for any reason during the process, HornetQ might issue interrupts on wrong threads.
      This is because the list of threads is captured before a time wait what could cause issues with the system is the thread doen't belong to the consumer any longer.

      How reproducible:

      On a MDB that's receiving messages and sending messages to a remote node, pull the cable (or disable network). and make failover happen to a backup.

      Steps to Reproduce:
      1. Deploy the MDB on that condition
      2. Pull the network cable
      3. failover that server.

      Actual results:

      JCA will have connections into invalid state. You will get exception on an infinite loop.

      There's a secondary issue here as those connections shouldn't come back to the pool.

      Expected results:

      Connections to reconnect successfully without

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bmaxwell Brad Maxwell
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: