X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-netconf-connector%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fconnect%2Fnetconf%2FNotificationHandler.java;h=bc3326e1ae5b58dc23dc7c14927a83d5d34d1fcf;hb=refs%2Fchanges%2F55%2F15555%2F2;hp=d340e4c1adf1b28f90600c0f320004dbede0f79c;hpb=74c4e776c8dea37c3aeecd24fd164f0a6df5135f;p=controller.git diff --git a/opendaylight/md-sal/sal-netconf-connector/src/main/java/org/opendaylight/controller/sal/connect/netconf/NotificationHandler.java b/opendaylight/md-sal/sal-netconf-connector/src/main/java/org/opendaylight/controller/sal/connect/netconf/NotificationHandler.java index d340e4c1ad..bc3326e1ae 100644 --- a/opendaylight/md-sal/sal-netconf-connector/src/main/java/org/opendaylight/controller/sal/connect/netconf/NotificationHandler.java +++ b/opendaylight/md-sal/sal-netconf-connector/src/main/java/org/opendaylight/controller/sal/connect/netconf/NotificationHandler.java @@ -63,7 +63,7 @@ final class NotificationHandler { private CompositeNode transformNotification(final NetconfMessage cachedNotification) { final CompositeNode parsedNotification = messageTransformer.toNotification(cachedNotification); - Preconditions.checkNotNull(parsedNotification, "{}: Unable to parse received notification %s", id, cachedNotification); + Preconditions.checkNotNull(parsedNotification, "%s: Unable to parse received notification: %s", id, cachedNotification); return parsedNotification; } @@ -91,6 +91,7 @@ final class NotificationHandler { } synchronized void onRemoteSchemaDown() { + queue.clear(); passNotifications = false; }