celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriele Ricciardi (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CELIX-297) Missing hashMapRemove in serviceRegistry_ungetServiceReference
Date Wed, 18 Nov 2015 15:01:11 GMT

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

Gabriele Ricciardi updated CELIX-297:
-------------------------------------
    Attachment: service_registry.patch

> Missing hashMapRemove in serviceRegistry_ungetServiceReference
> --------------------------------------------------------------
>
>                 Key: CELIX-297
>                 URL: https://issues.apache.org/jira/browse/CELIX-297
>             Project: Celix
>          Issue Type: Bug
>            Reporter: Gabriele Ricciardi
>         Attachments: service_registry.patch
>
>
> In case the service_registration is invalidate, the related service_reference is not
removed from the hashMap in serviceRegistry_ungetServiceReference, even if the service_reference
counter is 0.
> This leads to unconsistency (and possible crashes) during the stopBundle phase.
> Attached a patch that fix the serviceRegistry_ungetServiceReference (and also a related
unit test for RSA_DFI)



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

Mime
View raw message