Bug 716: Errors on controller shutdown
authortpantelis <tpanteli@brocade.com>
Tue, 22 Apr 2014 16:05:23 +0000 (12:05 -0400)
committertpantelis <tpanteli@brocade.com>
Sun, 11 May 2014 03:01:56 +0000 (23:01 -0400)
commit5e427a12a71b009eaaf4095b58fdb0f4e145a281
treec7c7bbfe87e78bc714acd305575c37620ffbad1d
parent6b4e6fd90f792e5b7d4d13e6cc7d0a4cee7d73c3
Bug 716: Errors on controller shutdown

    Fixed miscellaneous errors on shutdown:
        -  FlowProvider, GroupProvider and MeterProvider: all throw an
           UnsupportedOperationEx from their close methods with a TODO message.
           Implemented close to close the commitHandlerRegistration.

        - NetconfSSHServer: logs a socket closed exception due to closing the socket
          on shutdown. We can ignore this and not log the error (if 'up' is false).

        - RestconfProvider: NPE in stop method calling session.close.
          The 'session' member is never initialized or otherwise used so removed it.

        - RuntimeMappingModule and SchemaServiceImplSingletonModule:
          IllegalStateException from bundleContext.ungetService() call because the
          bundle has already been shutdown. Ignore ex as this can occur
          normally.

Need someone to commit this!

Change-Id: I31d9d6d66418dda7f5b73c2ad12bb251f3689643
Signed-off-by: tpantelis <tpanteli@brocade.com>
opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/impl/RestconfProvider.java
opendaylight/netconf/netconf-ssh/src/main/java/org/opendaylight/controller/netconf/ssh/NetconfSSHServer.java