directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@gmail.com>
Subject Re: AddIT.testAddPDUExceedingMaxSizeLdapApi hangs on Windows Hudson (was: Build failed in Hudson: dir-apacheds-jdk16-win » ApacheDS Server Integration #53)
Date Sun, 28 Nov 2010 23:05:38 GMT
On 11/28/10 7:34 PM, Stefan Seelmann wrote:
> Hi guys,
>
> I reactivated the ApacheDS Windows build on Hudson, after I have
> tested extensively on my Windows7 virtual machine. Unfortunately the
> build failed again with hanging server-integ tests. Niklas Gustavsson
> was so kind to create a thread dump of the hanging surefire process
> [1], the relevant part is:
>
> "main" prio=6 tid=0x000000000177c800 nid=0x1e94 in Object.wait()
> [0x0000000002c7d000]
>     java.lang.Thread.State: TIMED_WAITING (on object monitor)
> 	at java.lang.Object.wait(Native Method)
> 	- waiting on<0x00000000087d35a0>  (a
> org.apache.mina.core.future.DefaultWriteFuture)
> 	at org.apache.mina.core.future.DefaultIoFuture.await0(DefaultIoFuture.java:189)
> 	- locked<0x00000000087d35a0>  (a
> org.apache.mina.core.future.DefaultWriteFuture)
> 	at org.apache.mina.core.future.DefaultIoFuture.awaitUninterruptibly(DefaultIoFuture.java:150)
> 	at org.apache.directory.ldap.client.api.LdapNetworkConnection.modifyAsync(LdapNetworkConnection.java:2134)
> 	at org.apache.directory.ldap.client.api.LdapNetworkConnection.modify(LdapNetworkConnection.java:2045)
> 	at org.apache.directory.ldap.client.api.LdapNetworkConnection.modify(LdapNetworkConnection.java:2020)
> 	at org.apache.directory.ldap.client.api.LdapNetworkConnection.modify(LdapNetworkConnection.java:2029)
> 	at org.apache.directory.server.operations.add.AddIT.testAddPDUExceedingMaxSizeLdapApi(AddIT.java:1180)
>
>
> Any idea what's the cause?
It's complicated. It seems like we are never waken up while waiting on a 
lock. This lock is supposed to be notified when the data are completely 
written in the socket, which is not the case.

We have to investigate the MINA code in this area to see if there is a 
race condition. Not fun :/


-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com


Mime
View raw message