BUG-7927: stop scanning bundles on framework stop 35/56235/2
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 27 Apr 2017 15:36:37 +0000 (17:36 +0200)
committerStephen Kitt <skitt@redhat.com>
Fri, 28 Apr 2017 12:50:52 +0000 (12:50 +0000)
commitf24948ddece8b195d317438bcd85fa44a03ce524
tree82e1a479005b255d22b2321824aba50b87161f1c
parentda06e5075869af81d46b861691f2e95d22a96bbc
BUG-7927: stop scanning bundles on framework stop

Monitor framework bundle for STOPPING event and when it triggers
flag us as stopping: all bundles are about to shut down, so there
is no point in trying to update the schema context anymore.

Change-Id: I1a55169fce1705c19a139063cf632674fc256701
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 6a79e55d2b6462cd609ab8cd5766fd4222c18c4f)
opendaylight/md-sal/sal-schema-service/src/main/java/org/opendaylight/controller/sal/schema/service/impl/GlobalBundleScanningSchemaServiceImpl.java