You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Renat Sabitov (Jira)" <ji...@apache.org> on 2019/09/05 05:00:00 UTC
[jira] [Reopened] (FELIX-5485) ServiceReference#getUsingBundles()
returns usages with 0 count
[ https://issues.apache.org/jira/browse/FELIX-5485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Renat Sabitov reopened FELIX-5485:
----------------------------------
Same issue in Felix 6.0.3
> ServiceReference#getUsingBundles() returns usages with 0 count
> --------------------------------------------------------------
>
> Key: FELIX-5485
> URL: https://issues.apache.org/jira/browse/FELIX-5485
> Project: Felix
> Issue Type: Bug
> Components: Framework
> Affects Versions: framework-5.6.0
> Reporter: Renat Sabitov
> Assignee: Guillaume Nodet
> Priority: Minor
> Fix For: framework-5.6.2
>
> Attachments: FELIX-5485.diff
>
>
> Javadoc for ServiceReference#getUsingBundles() states
> {quote}
> Specifically, this method returns the bundles whose usage count for that service is greater than zero.
> {quote}
> However, the implementation uses ServiceRegistry#getUsingBundles(ServiceReference<?> ref), which returns usages even if usage count is 0.
> The usage count is 0, because ServiceRegistry#ungetService doesn't call ServiceRegistry#flushUsageCount for non-prototype services:
> {quote}
> // If the registration is invalid or the usage count for a prototype
> // reached zero, then flush it. Non-prototype services are not flushed
> // on ungetService() when they reach 0 as this introduces a race
> // condition of concurrently the same service is obtained via getService()
> {quote}
> Expected:
> ServiceReference#getUsingBundles() doesn't return usages with 0 count
--
This message was sent by Atlassian Jira
(v8.3.2#803003)
Re: [jira] [Reopened] (FELIX-5485) ServiceReference#getUsingBundles()
returns usages with 0 count
Posted by Sascha Homeier <sh...@apollon.de>.
Vielen Dank für Ihre Nachricht.
Ich bin ab dem 09.09.2019 wieder im per Mail erreichbar.
In dringenden Fällen wenden sie sich bitte an jschoettle@apollon.de
Mit freundlichen Grüssen
Sascha Homeier
P. +84 166 456-3331
shomeier@apollon.de
apollon GmbH+Co. KG
Maximilianstr. 104
75172 Pforzheim
www.apollon.de
Geschäftsführer: Eugen Müller, Norbert Weckerle
Amtsgericht Mannheim HRA 705979
PhG: apollon Verwaltungs-GmbH Mannheim HRB 720987
Fashion meets AI - HACKATHON
14. – 15.09.2019 in Pforzheim
more information!