Hi,

hmm, this could be similar to
https://issues.apache.org/jira/browse/OAK-2704

I had a closer look at the DOCUMENT_RDB fixture and I think
the problem is with the createNodeStore() method. The method
is supposed to create independent node store instances, but
the RDB implementation uses an instance field for the data source.
this means when called concurrently one store may point to
the data source created by another thread.

Regards
 Marcel

On 10/12/15 14:57, "Tomek Rekawek" wrote:
>Hi,
>
>I spent some time analysing the logs and I found out a strange thing. On
>a ³slow² machine, in the surefire logs for the AtomicCounterTest (which
>takes 63 sec while it should 3 sec), following test case appears [1]:
>
>  <testcase time="2.261"
>classname="org.apache.jackrabbit.oak.jcr.RepositoryTest"
>name="importWithRegisteredType[RDBDocumentStore on
>jdbc:derby:oaktest\;create=true]"/>
>
>
>It¹s a test case from a completely different class. I downloded all the
>surefire reports [2] and it seems that the test cases from the
>RepositoryTest class are spread across CRUDTest, ConflictResolutionTest,
>ObservationTest and others. Tests from the RepositoryTest class are
>executed in a different thread (pool-29-thread-1 in [3]). On the ³fast²
>machines the problem doesn¹t exist and all RepositoryTest methods are
>invoked within their own test case.
>
>I don¹t know yet what¹s the cause of this, but will dig deeper.
>
>Best regards,
>Tomek
>
>[1] https://gist.github.com/trekawek/30311820122b139a6e44
>[2] http://adobe.ly/1Rcao3V
>
>[3] 
>https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/jdk=lates
>t1.7,label=Ubuntu,nsfixtures=DOCUMENT_RDB,profile=unittesting/608/artifact
>/oak-jcr/target/unit-tests.log
>
>On 10/12/15 12:44, "Michael Dürig" <[email protected]> wrote:
>>>
>>> Ok, I added a post build action for archiving **/target/unit-tests.log.
>>> Let's see whether this works.
>>
>>Seems to work: 
>>https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/607/jdk=
>>jdk-1.6u45,label=Ubuntu,nsfixtures=SEGMENT_MK,profile=unittesting/

Reply via email to