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 2016/03/23 10:22:25 UTC
[jira] [Created] (FELIX-5221) Reduce locking when service are
registered/unregistered
Carsten Ziegeler created FELIX-5221:
---------------------------------------
Summary: Reduce locking when service are registered/unregistered
Key: FELIX-5221
URL: https://issues.apache.org/jira/browse/FELIX-5221
Project: Felix
Issue Type: Improvement
Components: HTTP Service
Reporter: Carsten Ziegeler
Assignee: Carsten Ziegeler
Fix For: http.base-3.0.8
Currently when a new service is added/removed/modified through the whiteboard, the whole process is done within one global lock, forcing all operations to be done in sequence.
In addition, this code calls out to the service registry, which we should avoid.
I think we can solve this by treating SCH registration differently from all other services and use something like a change count for the SCH registrations: when a new whiteboard service is added, it's processed with the current set of SCHs. Once it's done it compares the current change count to the one from when the registration started. If it's different, it updates the registration. This is repeated until the count is equal.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)