Fix NetconfMessage not sent on EmbeddedChannel 16/108116/7
authorRuslan Kashapov <ruslan.kashapov@pantheon.tech>
Mon, 2 Oct 2023 10:41:53 +0000 (13:41 +0300)
committerRobert Varga <nite@hq.sk>
Thu, 12 Oct 2023 20:42:49 +0000 (20:42 +0000)
commit6aabbf6024ab3c9d3fc4562a3dea0b79e73b8142
treefe61a09739ca73f76edbd6af11396508364bd185
parentd2c3cab674c0a85b9dbda6da40084cc565e46397
Fix NetconfMessage not sent on EmbeddedChannel

The EmbeddedChannel implementation uses built-in implementation
for event loop (EmbeddedEventLoop) which has no own executor.
The tasks placed via execute() method are queued but not executed
unless predefined events like channel closure.

Explicit triggering of pending tasks processing resolves the issue
for now, but this needs to be revisited.

JIRA: NETCONF-1106
Change-Id: Ief1d9566651c39e10310c961e5899324e73fa923
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/AbstractNetconfSession.java
protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/NetconfSubsystem.java