ODLPARENT-139: re-use caches when restarting 66/67966/1
authorStephen Kitt <skitt@redhat.com>
Tue, 6 Feb 2018 15:46:51 +0000 (16:46 +0100)
committerStephen Kitt <skitt@redhat.com>
Tue, 6 Feb 2018 15:46:51 +0000 (16:46 +0100)
commitd5821abc28e14eab1f8d681dda2477c4fa96c9af
tree759df46e835318f5ce649eeec150b326b72487ac
parent632c6e48cb8bcb281784aa9a132b93a5ec6a4137
ODLPARENT-139: re-use caches when restarting

When the Shiro bundles restart, for whatever reason, they always
attempt to re-create their caches; that fails because the caches are
still present. This patch re-uses existing cache managers and caches
when possible.

This doesn’t entirely resolve the SSH issues reported in
ODLPARENT-139, but it helps the SSH connection survive longer (which
makes it easier to debug).

Change-Id: I27944a87cfbd78b385274dee0c7c17b9aac4dd58
Signed-off-by: Stephen Kitt <skitt@redhat.com>
aaa-cli/src/main/java/org/opendaylight/aaa/cli/SessionsManager.java
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/datastore/h2/H2TokenStore.java