You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by Julian Reschke <ju...@gmx.de> on 2014/01/10 14:53:00 UTC

remaining test failures

Hi everybody,

the good news is that the frequency of test failures on Windows went 
down significantly.

On my slower machines, the tests usually pass. On my 64 bit i7 desktop, 
I occasionally have test failures:

A) Observation

testSingleMixin(org.apache.jackrabbit.core.observation.MixinTest): Path 
/testroot/node1/prop1 not found in events.
 
testMultipleMixinOnNode(org.apache.jackrabbit.core.observation.MixinTest): 
Path /testroot/node1/prop1 not found in events.


B) User Import

Tests in error:
 
testImportInvalidImpersonationIgnore(org.apache.jackrabbit.oak.jcr.security.user.UserImportIgnoreTest): 
Java heap space
 
testImportInvalidImpersonationIgnore(org.apache.jackrabbit.oak.jcr.security.user.UserImportIgnoreTest)


Regarding B): do we have a recommended setting for MAVEN_OPS? I'm 
running with "-Xms256m -Xmx1024m -XX:PermSize=128m 
-XX:MaxPermSize=256m", which works on two out of my three machines just 
fine...


Feedback appreciated, Julian

Re: remaining test failures

Posted by Julian Reschke <ju...@gmx.de>.
On 2014-01-14 12:13, Julian Reschke wrote:
> On 2014-01-14 11:21, Michael Dürig wrote:
>>
>>
>> On 10.1.14 2:53 , Julian Reschke wrote:
>>> On my slower machines, the tests usually pass. On my 64 bit i7 desktop,
>>> I occasionally have test failures:
>>>
>>> A) Observation
>>>
>>> testSingleMixin(org.apache.jackrabbit.core.observation.MixinTest): Path
>>> /testroot/node1/prop1 not found in events.
>>>
>>> testMultipleMixinOnNode(org.apache.jackrabbit.core.observation.MixinTest):
>>>
>>>
>>> Path /testroot/node1/prop1 not found in events.
>>
>> I can't reproduce those. Looking at the code I can make a few guesses:
>>
>> - There might be a race in the test cases: in the presence of "spurious"
>> events preceding the expected events:
>> org.apache.jackrabbit.test.api.observation.EventResult#getEvents(long)
>> will return the spurious events instead of waiting for the expected
>> events in this case.
>>
>> - If this only happens with the SegmentMK it might be causes by an issue
>> I stumbled on last week. See
>> http://markmail.org/message/gk55nt5rg7owxuw6.
>
> FWIW, Manfred tried yesterday and saw the same problems on his Windows
> machine (quad core), but not on his ancient MacBook.

FWIW, right now I can't seem to reproduce them as well.

Best regards, Julian


Re: remaining test failures

Posted by Julian Reschke <ju...@gmx.de>.
On 2014-01-14 11:21, Michael Dürig wrote:
>
>
> On 10.1.14 2:53 , Julian Reschke wrote:
>> On my slower machines, the tests usually pass. On my 64 bit i7 desktop,
>> I occasionally have test failures:
>>
>> A) Observation
>>
>> testSingleMixin(org.apache.jackrabbit.core.observation.MixinTest): Path
>> /testroot/node1/prop1 not found in events.
>>
>> testMultipleMixinOnNode(org.apache.jackrabbit.core.observation.MixinTest):
>>
>> Path /testroot/node1/prop1 not found in events.
>
> I can't reproduce those. Looking at the code I can make a few guesses:
>
> - There might be a race in the test cases: in the presence of "spurious"
> events preceding the expected events:
> org.apache.jackrabbit.test.api.observation.EventResult#getEvents(long)
> will return the spurious events instead of waiting for the expected
> events in this case.
>
> - If this only happens with the SegmentMK it might be causes by an issue
> I stumbled on last week. See http://markmail.org/message/gk55nt5rg7owxuw6.

FWIW, Manfred tried yesterday and saw the same problems on his Windows 
machine (quad core), but not on his ancient MacBook.

Best regards, Julian


Re: remaining test failures

Posted by Michael Dürig <md...@apache.org>.

On 10.1.14 2:53 , Julian Reschke wrote:
> On my slower machines, the tests usually pass. On my 64 bit i7 desktop,
> I occasionally have test failures:
>
> A) Observation
>
> testSingleMixin(org.apache.jackrabbit.core.observation.MixinTest): Path
> /testroot/node1/prop1 not found in events.
>
> testMultipleMixinOnNode(org.apache.jackrabbit.core.observation.MixinTest):
> Path /testroot/node1/prop1 not found in events.

I can't reproduce those. Looking at the code I can make a few guesses:

- There might be a race in the test cases: in the presence of "spurious" 
events preceding the expected events: 
org.apache.jackrabbit.test.api.observation.EventResult#getEvents(long) 
will return the spurious events instead of waiting for the expected 
events in this case.

- If this only happens with the SegmentMK it might be causes by an issue 
I stumbled on last week. See http://markmail.org/message/gk55nt5rg7owxuw6.

Michael