[ 
https://issues.apache.org/jira/browse/FELIX-4866?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pierre De Rop updated FELIX-4866:
---------------------------------
    Attachment: ConcurrencyTest.tgz

I have attached to this issue a framework testcase which can be added in the 
existing fwk junit tests. (see ConcurrencyTest.tgz, which contains 
src/test/java/org/apache/felix/framework/ConcurrencyTest.java).

When including this test in the fwk junit tests, mvn clean install fails with 
the following messages:

{code}
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.felix.framework.StartBundleTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.32 sec
Running org.apache.felix.framework.BundleWiringImplTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.148 sec
Running org.apache.felix.framework.ConcurrencyTest
Starting load test.
Starting Concurrency test ...
.
Test failed
junit.framework.AssertionFailedError: Found unsatisfied components 
expected:<10> but was:<9>
        at junit.framework.Assert.fail(Assert.java:47)
        at junit.framework.Assert.failNotEquals(Assert.java:277)
        at junit.framework.Assert.assertEquals(Assert.java:64)
        at junit.framework.Assert.assertEquals(Assert.java:130)
        at 
org.apache.felix.framework.ConcurrencyTest$Loader.createComponentsConcurrently(ConcurrencyTest.java:327)
        at 
org.apache.felix.framework.ConcurrencyTest$Loader.run(ConcurrencyTest.java:268)
        at java.lang.Thread.run(Thread.java:745)
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 61.056 sec <<< 
FAILURE!
{code}


> Improve service registry
> ------------------------
>
>                 Key: FELIX-4866
>                 URL: https://issues.apache.org/jira/browse/FELIX-4866
>             Project: Felix
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: framework-5.0.0
>            Reporter: Carsten Ziegeler
>            Assignee: David Bosschaert
>             Fix For: framework-5.2.0
>
>         Attachments: ConcurrencyTest.tgz
>
>
> The current service registry is currently not using any of the Java 5 
> concurrent data structures. Using those could improve the implementation, the 
> readibility of the code and potentially the performance of the service 
> registry.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to