You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Alex Karasulu (JIRA)" <ji...@apache.org> on 2007/08/26 03:23:30 UTC

[jira] Created: (DIRSERVER-1033) Timing dependent failures on BadDnTest

Timing dependent failures on BadDnTest
--------------------------------------

                 Key: DIRSERVER-1033
                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1033
             Project: Directory ApacheDS
          Issue Type: Bug
            Reporter: Alex Karasulu
            Assignee: Alex Karasulu
             Fix For: 1.5.1


Every now and then under heavy load the BadDnTest in server-unit's o.a.d.server package fails.  Seems like the client cannot connect to the server for some reason.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRSERVER-1033) Timing dependent failures on BadDnTest

Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12522832 ] 

Alex Karasulu commented on DIRSERVER-1033:
------------------------------------------

Correction the server was not shutting down but the connection was being dropped.  If the connection was dropped before any bytes were returned for the bind response then a ServiceUnavailableException occurred
but if some bytes of an incomplete message did get to the client then we were seeing a CommunicationException.  

If all the bytes were received then the test passed.  This explains the observed timing issues. 

> Timing dependent failures on BadDnTest
> --------------------------------------
>
>                 Key: DIRSERVER-1033
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1033
>             Project: Directory ApacheDS
>          Issue Type: Bug
>            Reporter: Alex Karasulu
>            Assignee: Alex Karasulu
>             Fix For: 1.5.1
>
>
> Every now and then under heavy load the BadDnTest in server-unit's o.a.d.server package fails.  Seems like the client cannot connect to the server for some reason.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (DIRSERVER-1033) Timing dependent failures on BadDnTest

Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1033?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Karasulu closed DIRSERVER-1033.
------------------------------------

    Resolution: Fixed

This was due to a bug in the protocol-provider which was causing the server to shutdown prematurely before a bind response which was already written could be sent back to the client.  Sometimes this caused ServiceUnavailableExceptions and other times it caused CommunicationExceptions. 

The bug was triggered when a non-existant user with a vaild DN was used.  The INVALID_CREDENTIALS error response was built and asynchronously sent but before that could happen a NPE was causing the server to flip out and shutdown.  This was fixed by avoiding the NPE here in this commit:

     http://svn.apache.org/viewvc?view=rev&revision=569768

> Timing dependent failures on BadDnTest
> --------------------------------------
>
>                 Key: DIRSERVER-1033
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1033
>             Project: Directory ApacheDS
>          Issue Type: Bug
>            Reporter: Alex Karasulu
>            Assignee: Alex Karasulu
>             Fix For: 1.5.1
>
>
> Every now and then under heavy load the BadDnTest in server-unit's o.a.d.server package fails.  Seems like the client cannot connect to the server for some reason.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRSERVER-1033) Timing dependent failures on BadDnTest

Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12522826 ] 

Alex Karasulu commented on DIRSERVER-1033:
------------------------------------------

BadDnTest.testBadBindDnInContext(org.apache.directory.server)
    javax.naming.ServiceUnavailableException: localhost:1024; socket closed
    at com.sun.jndi.ldap.Connection.readReply(Connection.java:416)
    at com.sun.jndi.ldap.LdapClient.ldapBind(LdapClient.java:340)
    Show details ยป

> Timing dependent failures on BadDnTest
> --------------------------------------
>
>                 Key: DIRSERVER-1033
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1033
>             Project: Directory ApacheDS
>          Issue Type: Bug
>            Reporter: Alex Karasulu
>            Assignee: Alex Karasulu
>             Fix For: 1.5.1
>
>
> Every now and then under heavy load the BadDnTest in server-unit's o.a.d.server package fails.  Seems like the client cannot connect to the server for some reason.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.