Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0026847Openbravo ERPA. Platformpublic2014-06-11 18:292014-06-19 22:31
shuehner 
alostale 
normalminorhave not tried
closedfixed 
5
 
3.0PR14Q3 
shankarb
Core
No
0026847: Remove inactive sessions earlier
Currently inactive sessions (those who do not do active logout) are technically detected by not receiving anymore 'check for alerts' requests.

However they are only removed (deactivated in ad_session) only when max number of concurrent users is reached.

We should check and probably do this earlier:
Options:
1.) on tomcat restart (Expire all session which last ping before threshold)
2.) maybe on every login (will make login a bit slower, maybe ok on normal login, but could be probably on login check inside webservices)
-
No tags attached.
related to defect 00268463.0PR14Q3 closed alostale Code running on tomcat start to search in remote tomcats is not needed anymore and can't work with Load Balanced Tomcats 
Issue History
2014-06-11 18:29shuehnerNew Issue
2014-06-11 18:29shuehnerAssigned To => AugustoMauch
2014-06-11 18:29shuehnerModules => Core
2014-06-11 18:29shuehnerTriggers an Emergency Pack => No
2014-06-11 18:29shuehnerRelationship addedrelated to 0026846
2014-06-18 14:29alostaleReview Assigned To => shankarb
2014-06-18 14:29alostaleAssigned ToAugustoMauch => alostale
2014-06-18 14:43alostaleNote Added: 0068124
2014-06-18 14:44hgbotCheckin
2014-06-18 14:44hgbotNote Added: 0068127
2014-06-18 14:44hgbotStatusnew => resolved
2014-06-18 14:44hgbotResolutionopen => fixed
2014-06-18 14:44hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/1909dd43a825cc38fa6ffbca4307c069a13a2539 [^]
2014-06-19 09:21shankarbNote Added: 0068149
2014-06-19 09:21shankarbStatusresolved => closed
2014-06-19 09:21shankarbFixed in Version => PR14Q3
2014-06-19 22:31hudsonbotCheckin
2014-06-19 22:31hudsonbotNote Added: 0068189

Notes
(0068124)
alostale   
2014-06-18 14:43   
Selected option 1, which is the most similar to the behavior previous to fix of 0026846 and doesn't affect login performance.

Tested in oracle and postgresql. Query used to detect active sessions correctly scales as it uses index, tested in an instance with ~600K existent sessions it takes ~10ms to execute.
(0068127)
hgbot   
2014-06-18 14:44   
Repository: erp/devel/pi
Changeset: 1909dd43a825cc38fa6ffbca4307c069a13a2539
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Jun 18 14:32:02 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/1909dd43a825cc38fa6ffbca4307c069a13a2539 [^]

fixed issue 26847: remove inactive sessions earlier

  inactive sessions are removed on tomcat start

---
M src/org/openbravo/erpCommon/security/SessionListener.java
M src/org/openbravo/erpCommon/security/SessionLogin_data.xsql
---
(0068149)
shankarb   
2014-06-19 09:21   
Code reviewed and verified in pi changeset 31caeb8872f0.
(0068189)
hudsonbot   
2014-06-19 22:31   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/1e0221328796 [^]
Maturity status: Test