Stefan Seifert created SLING-10973:
--------------------------------------

             Summary: osgi-mock: Generate Service Registration and Bundle IDs 
in a thread-safe way
                 Key: SLING-10973
                 URL: https://issues.apache.org/jira/browse/SLING-10973
             Project: Sling
          Issue Type: Bug
          Components: Testing
    Affects Versions: Testing OSGi Mock 3.2.0
            Reporter: Stefan Seifert
            Assignee: Stefan Seifert
             Fix For: Testing OSGi Mock 3.2.2


after a lot of debugging around a racing conditions which leads to services 
that are registered but not found afterwards in context of 
https://wcm-io.atlassian.net/browse/WTES-69 if found an actually issue in the 
way internal IDs for service registrations and bundle IDs are generated: an 
integer field with ++ used.

osgi-mock is doing everything (except sending OSGi events) in a synchronous 
way. but if the actual code that is tested is using multiple threads, this can 
become a threading issue.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to