[
https://issues.apache.org/jira/browse/QPID-6184?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Keith Wall resolved QPID-6184.
------------------------------
Resolution: Fixed
Changes look reasonable to me.
> [Java Broker] Java Broker leaks connections and sessions via SessionPrincipal
> and ConnectionPrincipal in Thread inherited access control context
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: QPID-6184
> URL: https://issues.apache.org/jira/browse/QPID-6184
> Project: Qpid
> Issue Type: Bug
> Components: Java Broker
> Affects Versions: 0.30
> Reporter: Alex Rudyy
> Assignee: Keith Wall
> Fix For: 0.31
>
>
> On thread creation, current caller AccessControlContext is stored in Thread
> field inheritedAccessControlContext. If such AccessControlContext contains
> references to SessionPrincipal and ConnectionPrincipal instances (i.e. thread
> is created in Connection/Session), the corresponding Session and Connection
> objects are not GC'ed until Thread stops running. If Thread is created in
> implementation of java.util.concurrent. Executor it can be re-used and remain
> alive until Executor utilizes the thread. Potentially, such threads might
> stay alive until Broker JVM is shutdown.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]