celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerrit Binnenmars (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CELIX-344) service tracker removes wrong service
Date Mon, 01 Feb 2016 19:20:40 GMT

     [ https://issues.apache.org/jira/browse/CELIX-344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gerrit Binnenmars updated CELIX-344:
------------------------------------
    Attachment: 0001-untrack-can-remove-wrong-service.patch

> service tracker removes wrong service
> -------------------------------------
>
>                 Key: CELIX-344
>                 URL: https://issues.apache.org/jira/browse/CELIX-344
>             Project: Celix
>          Issue Type: Bug
>          Components: Framework
>            Reporter: Gerrit Binnenmars
>             Fix For: next
>
>         Attachments: 0001-untrack-can-remove-wrong-service.patch
>
>
> In serviceTracker_track the function serviceTracker_invokeAddingService is called. If
this function returns an error the service reference is not added to the arrayList of tracked
services. This is correct! 
> In serviceTracker_untrack the assumption is made that the reference is always in the
arrayList of tracked services. This is not correct!. 
> E.g. the config_admin service tracker returns an error on invokeAddingService if a service
with the same PID is registered twice!
> See attached simple patch to solve this



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message