Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-6695

mbeansRegistered in DefaultManagementAgent isn't ThreadSafe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.10.6, 2.11.1
    • 2.10.7, 2.11.2, 2.12.0
    • None
    • None
    • Unknown

    Description

      This is more or less a "corner-case" I stumbled upon, though
      the HashSet/HashMap (2.5/2.10 camel versions) in the DefaultManagementAgent containing the registered Mbean mbeansRegistered isn't Thread-Safe.
      This has been an issue for us while using the ProducerTemplate in a wrongful way, by instantiating the ProducerTemplate during every Route run.
      As this might be a common mistake by users I'd suggest to improve the mbeansRegistered by using a Synchronized Map.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            achim_nierbeck Achim Nierbeck
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: