diff options
Diffstat (limited to 'configserver/src/main/java/com')
-rw-r--r-- | configserver/src/main/java/com/yahoo/vespa/config/server/session/SessionRepository.java | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/configserver/src/main/java/com/yahoo/vespa/config/server/session/SessionRepository.java b/configserver/src/main/java/com/yahoo/vespa/config/server/session/SessionRepository.java index b36e8d2d37c..d05640ef818 100644 --- a/configserver/src/main/java/com/yahoo/vespa/config/server/session/SessionRepository.java +++ b/configserver/src/main/java/com/yahoo/vespa/config/server/session/SessionRepository.java @@ -216,19 +216,6 @@ public class SessionRepository { return List.copyOf(localSessionCache.values()); } - public Set<LocalSession> getLocalSessionsFromFileSystem() { - File[] sessions = tenantFileSystemDirs.sessionsPath().listFiles(sessionApplicationsFilter); - if (sessions == null) return Set.of(); - - Set<LocalSession> sessionIds = new HashSet<>(); - for (File session : sessions) { - long sessionId = Long.parseLong(session.getName()); - LocalSession localSession = getSessionFromFile(sessionId); - sessionIds.add(localSession); - } - return sessionIds; - } - private LocalSession getSessionFromFile(long sessionId) { SessionZooKeeperClient sessionZKClient = createSessionZooKeeperClient(sessionId); File sessionDir = getAndValidateExistingSessionAppDir(sessionId); @@ -377,10 +364,7 @@ public class SessionRepository { } public int deleteExpiredRemoteSessions(Clock clock) { - Duration expiryTime = configserverConfig.hostedVespa() - ? sessionLifetime.multipliedBy(2) - : sessionLifetime.multipliedBy(12); // TODO: Remove when tested more (Oct. 2022 at the latest) - + Duration expiryTime = sessionLifetime.multipliedBy(2); List<Long> remoteSessionsFromZooKeeper = getRemoteSessionsFromZooKeeper(); log.log(Level.FINE, () -> "Remote sessions for tenant " + tenantName + ": " + remoteSessionsFromZooKeeper); |