Re-create transaction chain upon failure in TopologyStatsProvider 50/95950/8
authorOleksii Mozghovyi <oleksii.mozghovyi@pantheon.tech>
Tue, 27 Apr 2021 17:16:18 +0000 (20:16 +0300)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 10 May 2021 16:38:20 +0000 (18:38 +0200)
commitd32b20f7bb8999c8781a297954926d63b3cf7c73
tree9bcdffd95bf3712be99e52e89fe6f00fbda21e66
parentde6df3ea177d609faf693fe5c32479ba66998b7f
Re-create transaction chain upon failure in TopologyStatsProvider

Transaction failures can occur as a side-effect of various datastore
failure scenarios. In case of TopologyStatsProviderImpl, such a failure
requires manual intervention to restart the component (and thus
re-establish exports).

Rework transaction chain lifecycle, so that we close it down on failures
and establish a new chain when we need it for the periodic updates
and/or unbind operations.

Since we are modifying lifecycle, also make sure we work in terms of a
TimerTask with an externally-provided timer -- we really do not care how
we are scheduled.

JIRA: BGPCEP-920
Change-Id: I6f2be6a5c14ac6e191988c3b7bfd56b78b94abb6
Signed-off-by: Oleksii Mozghovyi <oleksii.mozghovyi@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
pcep/topology/topology-stats/pom.xml
pcep/topology/topology-stats/src/main/java/org/opendaylight/bgpcep/pcep/topology/stats/provider/TopologyStatsProviderImpl.java
pcep/topology/topology-stats/src/main/resources/OSGI-INF/blueprint/pcep-stats.xml