You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Carsten Ziegeler (Jira)" <ji...@apache.org> on 2023/06/07 11:26:00 UTC
[jira] [Resolved] (FELIX-6613) ServicesCheck still reports services available after they are gone
[ https://issues.apache.org/jira/browse/FELIX-6613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler resolved FELIX-6613.
-------------------------------------
Resolution: Fixed
https://github.com/apache/felix-dev/commit/995a2fb51a5788063031edf0ebaf5cb5a3c0c9dc
> ServicesCheck still reports services available after they are gone
> ------------------------------------------------------------------
>
> Key: FELIX-6613
> URL: https://issues.apache.org/jira/browse/FELIX-6613
> Project: Felix
> Issue Type: Bug
> Components: Health Checks
> Affects Versions: healthcheck.generalchecks 3.0.4
> Reporter: Carsten Ziegeler
> Assignee: Carsten Ziegeler
> Priority: Blocker
> Fix For: healthcheck.generalchecks 3.0.6
>
>
> ServicesCheck is using a service tracker to track services. it checks the *tracking count* to verify if a service is available. however, tracking count does not return the number of available services (as the code assumes) but the number of changes to that service.
> For example, if a service is added and then removed, the tracking count is two - the HC will report the service as being available although it is not.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)