From: Eliezio Oliveira Date: Mon, 10 Jun 2019 16:07:06 +0000 (+0100) Subject: Fix interrupt state left ON on NetconfSessionImpl.syncRpc() X-Git-Tag: 0.5.0~94^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=373085385b30c0fa05b650c7eb733ca8e31ca328;p=ccsdk%2Fcds.git Fix interrupt state left ON on NetconfSessionImpl.syncRpc() Change-Id: Ib1a58ff94f88f352636b5f0af7a6fe5244a8fe7e Issue-ID: CCSDK-1455 Signed-off-by: Eliezio Oliveira --- diff --git a/ms/blueprintsprocessor/functions/netconf-executor/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/netconf/executor/core/NetconfSessionImpl.kt b/ms/blueprintsprocessor/functions/netconf-executor/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/netconf/executor/core/NetconfSessionImpl.kt index b1121b3d4..4daaceeff 100644 --- a/ms/blueprintsprocessor/functions/netconf-executor/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/netconf/executor/core/NetconfSessionImpl.kt +++ b/ms/blueprintsprocessor/functions/netconf-executor/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/netconf/executor/core/NetconfSessionImpl.kt @@ -101,7 +101,6 @@ class NetconfSessionImpl(private val deviceInfo: DeviceInfo, private val rpcServ return streamHandler.getFutureFromSendMessage(streamHandler.sendMessage(formattedRequest, messageId), replyTimeout.toLong(), TimeUnit.SECONDS) } catch (e: InterruptedException) { - Thread.currentThread().interrupt() throw NetconfException("$deviceInfo: Interrupted while waiting for reply for request: $formattedRequest", e) } catch (e: TimeoutException) { throw NetconfException("$deviceInfo: Timed out while waiting for reply for request $formattedRequest after $replyTimeout sec.",