Bug 953955

Summary: Memory leak in operation jobs code
Product: [Other] RHQ Project Reporter: Thomas Segismont <tsegismo>
Component: OperationsAssignee: John Mazzitelli <mazz>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: high    
Version: 4.6CC: hrupp, mazz
Target Milestone: ---   
Target Release: RHQ 4.7   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 954011 (view as bug list) Environment:
Last Closed: 2013-09-03 14:43:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 954011    

Description Thomas Segismont 2013-04-19 16:08:21 UTC
Description of problem:
We have a bug in the operations jobs code where we authenticate the user who scheduled the operation and never log him out.

Consequently, the SessionManager cache keeps accumulating entries.

Version-Release number of selected component (if applicable):
4.7

How reproducible:
Always

Steps to Reproduce:
1. 
2.
3.
  
Actual results:


Expected results:


Additional info:

See call hierarchies of org.rhq.enterprise.server.operation.OperationJob#getUserWithSession

The fix should make operation jobs log out the users and if possible the Session manager automatically evict timed out sessionq (with something like a task in a ScheduledExecutor).

Comment 1 John Mazzitelli 2013-04-24 03:46:52 UTC
git commit to master: cbfe893ad59715428bc8f72763c5b67f6b236779

Comment 2 Heiko W. Rupp 2013-09-03 14:43:47 UTC
Bulk closing of issues in old RHQ releases that are in production for a while now.

Please open a new issue when running into an issue.