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

OsgiCamelContextPublisher might leak Service-References

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.21.0
    • osgi
    • None

    Description

      OsgiCamelContextPublisher holds a Map of Service-References in its doShutdown method this map is cleared.

      This could lead to problem when there are still items in the map.

      Instead of clearing the map, it should be iterate+remove

      Iterator<ServiceRegistration<?>> it = registrations.values().iterator();
          	while (it.hasNext()) {
      			it.next().unregister();
      			it.remove();
      		}
      

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            laeubi Christoph Läubrich
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: