You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Martin Alderson (JIRA)" <ji...@apache.org> on 2007/07/15 21:38:04 UTC

[jira] Created: (DIRSERVER-998) Messages time out if acknowledged too quickly

Messages time out if acknowledged too quickly
---------------------------------------------

                 Key: DIRSERVER-998
                 URL: https://issues.apache.org/jira/browse/DIRSERVER-998
             Project: Directory ApacheDS
          Issue Type: Bug
          Components: mitosis
    Affects Versions: 1.5.0
            Reporter: Martin Alderson
            Priority: Minor


Every so often a message (a login or logEntry message) will be written to a peer (by a 'client') and an acknowledgement is sent back before the sender knows that the original message has been sent.  We do not allow any more messages to be sent until the last sent message has been acknowledged or has timed out (which takes 60 seconds by default).

In the code, the points of interest are ReplicationClientContextHandler#messageSent, ReplicationClientContextHandler#messageReceived and ReplicationClientContextHandler#beginReplication (which only begins replication if there are no unacknowledged messages).

This isn't a major problem as replication will continue after the message has timed out, but it slows things down and is especiually bad for tests which expect replication to succeed within a few seconds.

When this issue is fixed ReplicationServiceITest#testTwoWayBind should be re-enabled.

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


[jira] Updated: (DIRSERVER-998) Messages time out if acknowledged too quickly

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

Emmanuel Lecharny updated DIRSERVER-998:
----------------------------------------

    Fix Version/s: 1.5.1

> Messages time out if acknowledged too quickly
> ---------------------------------------------
>
>                 Key: DIRSERVER-998
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-998
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: mitosis
>    Affects Versions: 1.5.0
>            Reporter: Martin Alderson
>            Priority: Minor
>             Fix For: 1.5.1
>
>
> Every so often a message (a login or logEntry message) will be written to a peer (by a 'client') and an acknowledgement is sent back before the sender knows that the original message has been sent.  We do not allow any more messages to be sent until the last sent message has been acknowledged or has timed out (which takes 60 seconds by default).
> In the code, the points of interest are ReplicationClientContextHandler#messageSent, ReplicationClientContextHandler#messageReceived and ReplicationClientContextHandler#beginReplication (which only begins replication if there are no unacknowledged messages).
> This isn't a major problem as replication will continue after the message has timed out, but it slows things down and is especiually bad for tests which expect replication to succeed within a few seconds.
> When this issue is fixed ReplicationServiceITest#testTwoWayBind should be re-enabled.

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


[jira] Resolved: (DIRSERVER-998) Messages time out if acknowledged too quickly

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

Martin Alderson resolved DIRSERVER-998.
---------------------------------------

    Resolution: Fixed
      Assignee: Martin Alderson

Fixed by scheduling the messages for timeout before they are sent.

> Messages time out if acknowledged too quickly
> ---------------------------------------------
>
>                 Key: DIRSERVER-998
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-998
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: mitosis
>    Affects Versions: 1.5.0
>            Reporter: Martin Alderson
>            Assignee: Martin Alderson
>            Priority: Minor
>             Fix For: 1.5.1
>
>
> Every so often a message (a login or logEntry message) will be written to a peer (by a 'client') and an acknowledgement is sent back before the sender knows that the original message has been sent.  We do not allow any more messages to be sent until the last sent message has been acknowledged or has timed out (which takes 60 seconds by default).
> In the code, the points of interest are ReplicationClientContextHandler#messageSent, ReplicationClientContextHandler#messageReceived and ReplicationClientContextHandler#beginReplication (which only begins replication if there are no unacknowledged messages).
> This isn't a major problem as replication will continue after the message has timed out, but it slows things down and is especiually bad for tests which expect replication to succeed within a few seconds.
> When this issue is fixed ReplicationServiceITest#testTwoWayBind should be re-enabled.

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


[jira] Closed: (DIRSERVER-998) Messages time out if acknowledged too quickly

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

Martin Alderson closed DIRSERVER-998.
-------------------------------------


> Messages time out if acknowledged too quickly
> ---------------------------------------------
>
>                 Key: DIRSERVER-998
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-998
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: mitosis
>    Affects Versions: 1.5.0
>            Reporter: Martin Alderson
>            Assignee: Martin Alderson
>            Priority: Minor
>             Fix For: 1.5.1
>
>
> Every so often a message (a login or logEntry message) will be written to a peer (by a 'client') and an acknowledgement is sent back before the sender knows that the original message has been sent.  We do not allow any more messages to be sent until the last sent message has been acknowledged or has timed out (which takes 60 seconds by default).
> In the code, the points of interest are ReplicationClientContextHandler#messageSent, ReplicationClientContextHandler#messageReceived and ReplicationClientContextHandler#beginReplication (which only begins replication if there are no unacknowledged messages).
> This isn't a major problem as replication will continue after the message has timed out, but it slows things down and is especiually bad for tests which expect replication to succeed within a few seconds.
> When this issue is fixed ReplicationServiceITest#testTwoWayBind should be re-enabled.

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