Ensure backoffMillis is not less than expected 51/113951/4
authorPeter Suna <peter.suna@pantheon.tech>
Wed, 9 Oct 2024 11:11:36 +0000 (13:11 +0200)
committerRobert Varga <nite@hq.sk>
Tue, 15 Oct 2024 12:20:09 +0000 (12:20 +0000)
commit29f0fdfc0f3402455230a1adb6c87d053be2d976
tree6b1a0041a426e8a6c876199f1ae98920b29d6dae
parente555953d571ea8dafa7e93a9f86d175787099b63
Ensure backoffMillis is not less than expected

Keeping the last backoff value after randomization can
reduce the SleepingTask timeout to a much smaller value
than expected.

Fix this by keeping the backoff value before randomization.

JIRA: NETCONF-1408
Change-Id: Ie926c92f9e203515c9623d9c794e441a447962f7
Signed-off-by: Peter Suna <peter.suna@pantheon.tech>
apps/netconf-topology/src/main/java/org/opendaylight/netconf/topology/spi/NetconfNodeHandler.java
apps/netconf-topology/src/test/java/org/opendaylight/netconf/topology/spi/NetconfNodeHandlerTest.java