Yair Zaslavsky has posted comments on this change. Change subject: aaa: Added usage of AuthRecord.VALID_TO ......................................................................
Patch Set 8: (3 comments) http://gerrit.ovirt.org/#/c/26975/8/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/Backend.java File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/Backend.java: Line 217 Line 218 Line 219 Line 220 Line 221 > why do you need this ^ already asked in previous not sure if anyone uses this. http://gerrit.ovirt.org/#/c/26975/8/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/session/SessionDataContainer.java File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/session/SessionDataContainer.java: Line 158: */ Line 159: @OnTimerMethodAnnotation("cleanExpiredUsersSessions") Line 160: public final void cleanExpiredUsersSessions() { Line 161: Long key = new Date().getTime() / 60000; Line 162: List<String> sessionsList = validToSessionsMap.get(key); > this is not that great, as if your clock is out of sync / jumps / process s Done Line 163: if (sessionsList != null) { Line 164: for (String session : sessionsList) { Line 165: removeSession(session); Line 166: } Line 167: validToSessionsMap.remove(key); Line 168: } Line 169: if (intervalsCounter.incrementAndGet() == Config.<Integer> getValue(ConfigValues.UserSessionTimeOutInterval)) { Line 170: deleteOldGeneration(); Line 171: intervalsCounter.set(0); > I do not understand why you need two methods of cleanup sessions, while the Done Line 172: } Line 173: Line 174: } Line 175: -- To view, visit http://gerrit.ovirt.org/26975 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I53e4a371c1bae8d2480ddd2af921a560c6fe9a85 Gerrit-PatchSet: 8 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Yair Zaslavsky <[email protected]> Gerrit-Reviewer: Alon Bar-Lev <[email protected]> Gerrit-Reviewer: Yair Zaslavsky <[email protected]> Gerrit-Reviewer: [email protected] Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
