You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Stefan Seelmann <ma...@stefan-seelmann.de> on 2019/07/08 07:05:47 UTC

ApacheDS and API test issues

Hi,

I see two types of test issues recently:

* DIRSERVER_1974_IT seems to take too long on slow machines (especially
Windows) and causes timeout. I'll investigate a bit further.

* ClientAddRequestTest sometimes hangs forever. I was able to reproduce
on my machine when running it multiple times. It waits forever for a
future, see thread dump below.

Kind Regards,
Stefan


"main" #1 prio=5 os_prio=0 tid=0x00007fd6a400d800 nid=0x73ce in
Object.wait() [0x00007fd6aa16e000]

   java.lang.Thread.State: TIMED_WAITING (on object monitor)

        at java.lang.Object.wait(Native Method)


        - waiting on <0x00000007794c4780> (a
org.apache.directory.ldap.client.api.future.AddFuture)

        at
org.apache.directory.ldap.client.api.future.UniqueResponseFuture.get(UniqueResponseFuture.java:90)


        - locked <0x00000007794c4780> (a
org.apache.directory.ldap.client.api.future.AddFuture)
        at
org.apache.directory.ldap.client.api.LdapNetworkConnection.add(LdapNetworkConnection.java:1089)
        at
org.apache.directory.ldap.client.api.LdapNetworkConnection.add(LdapNetworkConnection.java:1021)
        at
org.apache.directory.shared.client.api.operations.ClientAddRequestTest.testAddNullValueSchemaAware(ClientAddRequestTest.java:417)




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org


Re: ApacheDS and API test issues

Posted by Emmanuel Lécharny <el...@gmail.com>.
On 09/07/2019 16:08, Stefan Seelmann wrote:
> On 7/8/19 5:12 PM, Emmanuel Lécharny wrote:
>>> * ClientAddRequestTest sometimes hangs forever. I was able to reproduce
>>> on my machine when running it multiple times. It waits forever for a
>>> future, see thread dump below.
>>
>> I'll investigate this one.
>>
>>
>>>      java.lang.Thread.State: TIMED_WAITING (on object monitor)
>>>           at java.lang.Object.wait(Native Method)
>>>           - waiting on <0x00000007794c4780> (a
>>> org.apache.directory.ldap.client.api.future.AddFuture)
>>>           at
>>> org.apache.directory.ldap.client.api.future.UniqueResponseFuture.get(UniqueResponseFuture.java:90)
> This should be fixed. Issue was that the UniqueResponseFuture always
> waited, even when it was already done, then it waited for the timeout
> what is by default 30 seconds. Same fix applied in HandshakeFuture.


Thanks a lot and congrats for the fix !



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org


Re: ApacheDS and API test issues

Posted by Stefan Seelmann <ma...@stefan-seelmann.de>.
On 7/8/19 5:12 PM, Emmanuel Lécharny wrote:
>> * ClientAddRequestTest sometimes hangs forever. I was able to reproduce
>> on my machine when running it multiple times. It waits forever for a
>> future, see thread dump below.
> 
> 
> I'll investigate this one.
> 
> 
>>
>>     java.lang.Thread.State: TIMED_WAITING (on object monitor)
>>          at java.lang.Object.wait(Native Method)
>>          - waiting on <0x00000007794c4780> (a
>> org.apache.directory.ldap.client.api.future.AddFuture)
>>          at
>> org.apache.directory.ldap.client.api.future.UniqueResponseFuture.get(UniqueResponseFuture.java:90)

This should be fixed. Issue was that the UniqueResponseFuture always
waited, even when it was already done, then it waited for the timeout
what is by default 30 seconds. Same fix applied in HandshakeFuture.

See commits d51054d003d4ca6c0f2d505de9d081ced9587078 and
b9c3f3d8f8ac7e0955741f77a6ab5018fa263800


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org


Re: ApacheDS and API test issues

Posted by Emmanuel Lécharny <el...@gmail.com>.
Hi Stefan,

On 08/07/2019 09:05, Stefan Seelmann wrote:
> Hi,
>
> I see two types of test issues recently:
>
> * DIRSERVER_1974_IT seems to take too long on slow machines (especially
> Windows) and causes timeout. I'll investigate a bit further.

This test - which was ignored because it was failing - injects 1000 
entries into a server. It will also remove those 1000 entries. That will 
take a heck of time if done on a slow machine with a HD. We can safely 
@Ignore it again as soon as the associated bug was fixed.

>
> * ClientAddRequestTest sometimes hangs forever. I was able to reproduce
> on my machine when running it multiple times. It waits forever for a
> future, see thread dump below.


I'll investigate this one.


>
> Kind Regards,
> Stefan
>
>
> "main" #1 prio=5 os_prio=0 tid=0x00007fd6a400d800 nid=0x73ce in
> Object.wait() [0x00007fd6aa16e000]
>
>     java.lang.Thread.State: TIMED_WAITING (on object monitor)
>
>          at java.lang.Object.wait(Native Method)
>
>
>          - waiting on <0x00000007794c4780> (a
> org.apache.directory.ldap.client.api.future.AddFuture)
>
>          at
> org.apache.directory.ldap.client.api.future.UniqueResponseFuture.get(UniqueResponseFuture.java:90)
>
>
>          - locked <0x00000007794c4780> (a
> org.apache.directory.ldap.client.api.future.AddFuture)
>          at
> org.apache.directory.ldap.client.api.LdapNetworkConnection.add(LdapNetworkConnection.java:1089)
>          at
> org.apache.directory.ldap.client.api.LdapNetworkConnection.add(LdapNetworkConnection.java:1021)
>          at
> org.apache.directory.shared.client.api.operations.ClientAddRequestTest.testAddNullValueSchemaAware(ClientAddRequestTest.java:417)
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
> For additional commands, e-mail: dev-help@directory.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org


Re: ApacheDS and API test issues

Posted by Emmanuel Lécharny <el...@gmail.com>.
Another recurrent issue (although it does not happen frequently :


[ERROR] Failures:
[ERROR] 
ServerEntrySerializerTest.testSerializeServerEntryWithAttributeStringValue:272 
expected: org.apache.directory.api.ldap.model.entry.DefaultEntry<Entry
dn:
ObjectClass: person
but was: org.apache.directory.api.ldap.model.entry.DefaultEntry<Entry
dn:
ObjectClass: person

This is a weird error...

On 08/07/2019 09:05, Stefan Seelmann wrote:
> Hi,
>
> I see two types of test issues recently:
>
> * DIRSERVER_1974_IT seems to take too long on slow machines (especially
> Windows) and causes timeout. I'll investigate a bit further.
>
> * ClientAddRequestTest sometimes hangs forever. I was able to reproduce
> on my machine when running it multiple times. It waits forever for a
> future, see thread dump below.
>
> Kind Regards,
> Stefan
>
>
> "main" #1 prio=5 os_prio=0 tid=0x00007fd6a400d800 nid=0x73ce in
> Object.wait() [0x00007fd6aa16e000]
>
>     java.lang.Thread.State: TIMED_WAITING (on object monitor)
>
>          at java.lang.Object.wait(Native Method)
>
>
>          - waiting on <0x00000007794c4780> (a
> org.apache.directory.ldap.client.api.future.AddFuture)
>
>          at
> org.apache.directory.ldap.client.api.future.UniqueResponseFuture.get(UniqueResponseFuture.java:90)
>
>
>          - locked <0x00000007794c4780> (a
> org.apache.directory.ldap.client.api.future.AddFuture)
>          at
> org.apache.directory.ldap.client.api.LdapNetworkConnection.add(LdapNetworkConnection.java:1089)
>          at
> org.apache.directory.ldap.client.api.LdapNetworkConnection.add(LdapNetworkConnection.java:1021)
>          at
> org.apache.directory.shared.client.api.operations.ClientAddRequestTest.testAddNullValueSchemaAware(ClientAddRequestTest.java:417)
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
> For additional commands, e-mail: dev-help@directory.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org