Uploaded image for project: 'CXF Distributed OSGi'
  1. CXF Distributed OSGi
  2. DOSGI-177

stopped services still appear as available to clients

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: 1.5.0
    • Component/s: common
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Sometimes TopologyManagerImport receives more than one endpointAdded event for the same endpoint and filter. Currently this causes it to add the endpoint multiple times to an internal list. However when the endpoint is removed, only one endpointRemoved event is triggered, one instance is removed from the list, and the other copies remain. The rest of the code treats this as the endpoint still being available, which is what the clients see as well (the import is never closed).

      The patch simply adds a check so that the endpoint will not be added to the list if it's already there. It also removes empty import lists when all imports are removed, preventing a leak.

        Attachments

        1. fix_services_not_removed.diff
          1 kB
          Amichai Rothman

          Activity

            People

            • Assignee:
              amichai Amichai Rothman
              Reporter:
              amichai Amichai Rothman
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: