celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pepijn Noltes (Jira)" <j...@apache.org>
Subject [jira] [Closed] (CELIX-297) Missing hashMapRemove in serviceRegistry_ungetServiceReference
Date Tue, 17 Sep 2019 17:44:00 GMT

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

Pepijn Noltes closed CELIX-297.
-------------------------------
    Resolution: Fixed

> 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
>            Priority: Major
>         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
(v8.3.2#803003)

Mime
View raw message