BUG-8494: Cap queue sleep time 33/58033/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 30 May 2017 09:41:58 +0000 (11:41 +0200)
committerTom Pantelis <tompantelis@gmail.com>
Wed, 31 May 2017 14:31:43 +0000 (14:31 +0000)
commit15a67bd103c2dc32f28139a7295ac84143c20d0c
treee417cf08a328e393ead63b1c94266afbf9b8f750
parentea6ba66600c4f2f143cbb13279ded184ce6d3fcc
BUG-8494: Cap queue sleep time

Inconsistency in transmit queue backpressure has caused an observed
delay of over 44 minutes in CSIT. Thile this is an artefact of a bug,
we should not delay application thread for large periods of time, as
that can cause failures in the application (if it has other
time-bound duties like BGP keepalive messages and similar).

Restrict the sleep time to 5 seconds, emitting an INFO-level messages
when we reach this level of sleeping. This should not typically not
occur, as the backpressure should be kicking in much sooner, smooting
out the delay curve.

Change-Id: Ie5f148248caa71791bdda71ddd7e33e5733aa7f8
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/AbstractClientConnection.java
opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/ClientActorBehavior.java