Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.5.0
-
None
Description
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.