pderop opened a new pull request, #614:
URL: https://github.com/apache/felix-dev/pull/614

   Motivation:
   
   Component.getServiceProperties() can be called from any thread (e.g. the dm 
shell command). It reads the dependency events map, which is a plain HashMap 
modified by the component executor. If a propagated dependency is removed from 
the component meanwhile, getDependencyEvent() throws a NullPointerException.
   
   Modification:
   
   Use a ConcurrentHashMap for the dependency events, and make 
getDependencyEvent()/getDependencyEvents() return null/an empty set for a 
dependency which is no longer part of the component.
   
   Result:
   
   The service properties of a component can be safely computed from any 
thread, even while its dependencies are being removed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to