Re-create transaction chain upon failure in TopologyStatsProvider 35/96035/1
authorOleksii Mozghovyi <oleksii.mozghovyi@pantheon.tech>
Tue, 27 Apr 2021 17:16:18 +0000 (20:16 +0300)
committerRobert Varga <nite@hq.sk>
Mon, 10 May 2021 16:39:09 +0000 (16:39 +0000)
commit58245c112960839c6615f902edf8ca2cb23becc2
tree5624bd9f6d95321ce495397c8211be98074ca8c7
parent602dc1b0cc2697768178d44a10a0b0bbf00e4c2f
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