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

JMX destination entires fail due to race condition in MBeanBridgeDestination

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.9.1, 5.10.0
    • 5.10.1, 5.11.0
    • Broker
    • None
    • Patch Available

    Description

      JMX statistics on destinations creates a race condition in the MBeanBridgeDestination's onInboundMessage, onOutboundMessage, and the purgeInactiveDestinationView task. If the task fires and removes the objectName while the onInboundMessage or onOutboundMessage fires, it will spit out warnings of it already being created if multiple threads are running. The fix is to properly synchronize in the purgeInactiveDestinationView and also be sure it cleans up itself in the destinationObjectNameMap.

      Patch is attached as is a git pull request (for whatever is easier)

      Attachments

        1. activemq.patch
          7 kB
          Tarek Hammoud
        2. AMQ-5265.patch
          3 kB
          Jeff Genender

        Activity

          People

            dejanb Dejan Bosanac
            jgenender Jeff Genender
            Votes:
            0 Vote for this issue
            Watchers:
            5 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 - 40m
                40m