You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by "Pepijn Noltes (Jira)" <ji...@apache.org> on 2019/09/17 17:44:00 UTC
[jira] [Closed] (CELIX-297) Missing hashMapRemove in
serviceRegistry_ungetServiceReference
[ 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)