Catch exception when transformer fails to parse 71/90271/2
authorJamo Luhrsen <jluhrsen@gmail.com>
Thu, 4 Jun 2020 00:17:26 +0000 (17:17 -0700)
committerTomas Cere <tomas.cere@pantheon.tech>
Mon, 15 Jun 2020 08:34:48 +0000 (10:34 +0200)
commit6071fc649c7b524f8325c449735fca1601962edc
tree50f0baee0e2622437e6a8894e835f2cfb4eac8d4
parent126f12f7a2f64d88060f6d55e3c738e5d891deed
Catch exception when transformer fails to parse

There is a deadlock if a transformer fails to parse a reply
and uses that to invoke the rpc. The future gets stuck and
never completes. This catches the case of a bad toRpcResult
from the transformer and marks the future with a
DefaultDOMRpcException

JIRA: NETCONF-695
Signed-off-by: Jamo Luhrsen <jluhrsen@gmail.com>
Change-Id: Ied3e0ac4b08e128c41f54e01df91543e4d3fc3a4
netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/sal/NetconfDeviceRpc.java
netconf/sal-netconf-connector/src/test/java/org/opendaylight/netconf/sal/connect/netconf/sal/NetconfDeviceRpcTest.java