Expose AskTimeoutException counter from DatastoreInfoMXBean 14/93114/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 22 Oct 2020 21:38:04 +0000 (23:38 +0200)
committerRobert Varga <nite@hq.sk>
Thu, 22 Oct 2020 22:41:09 +0000 (22:41 +0000)
commit27aa99100f4860edafa4d62d6fa2188f79348d98
tree9c6833ac66584a5648e972d1108ebe337ea2a9b2
parenteee6aa43c9b24a24e3b9f6e7c5f21d61afc15b9f
Expose AskTimeoutException counter from DatastoreInfoMXBean

This is a natural place to keep track of all exceptions which
happen in datastore context. Hook an onComplete() to each future
which goes by and update the counter.

JIRA: CONTROLLER-1963
Change-Id: Ib208b377e1ab533993597660228b5fc87919e75b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 9045f6fc943e9794055463442dcfa9bce64b68d3)
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/jmx/mbeans/DatastoreInfoMXBean.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/jmx/mbeans/DatastoreInfoMXBeanImpl.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/ActorUtils.java