Fixed - Unable to find session error arise if Tomcat session was deleted or expired #4963

pull/4966/head
Nikita Koksharov 2 years ago
parent 81403b1a45
commit def51ad504

@ -315,10 +315,9 @@ public class RedissonSessionManager extends ManagerBase {
if (msg instanceof SessionDestroyedMessage) {
Session s = findSession(msg.getSessionId(), false);
if (s == null) {
throw new IllegalStateException("Unable to find session: " + msg.getSessionId());
if (s != null) {
s.expire();
}
s.expire();
RSet<String> set = getNotifiedNodes(msg.getSessionId());
set.add(nodeId);
}

@ -315,10 +315,9 @@ public class RedissonSessionManager extends ManagerBase {
if (msg instanceof SessionDestroyedMessage) {
Session s = findSession(msg.getSessionId(), false);
if (s == null) {
throw new IllegalStateException("Unable to find session: " + msg.getSessionId());
if (s != null) {
s.expire();
}
s.expire();
RSet<String> set = getNotifiedNodes(msg.getSessionId());
set.add(nodeId);
}

@ -315,10 +315,9 @@ public class RedissonSessionManager extends ManagerBase {
if (msg instanceof SessionDestroyedMessage) {
Session s = findSession(msg.getSessionId(), false);
if (s == null) {
throw new IllegalStateException("Unable to find session: " + msg.getSessionId());
if (s != null) {
s.expire();
}
s.expire();
RSet<String> set = getNotifiedNodes(msg.getSessionId());
set.add(nodeId);
}

@ -315,10 +315,9 @@ public class RedissonSessionManager extends ManagerBase {
if (msg instanceof SessionDestroyedMessage) {
Session s = findSession(msg.getSessionId(), false);
if (s == null) {
throw new IllegalStateException("Unable to find session: " + msg.getSessionId());
if (s != null) {
s.expire();
}
s.expire();
RSet<String> set = getNotifiedNodes(msg.getSessionId());
set.add(nodeId);
}

Loading…
Cancel
Save