You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Alex Parvulescu (JIRA)" <ji...@apache.org> on 2015/07/01 18:01:05 UTC

[jira] [Comment Edited] (OAK-2845) Memory leak in ObserverTracker#removedService

    [ https://issues.apache.org/jira/browse/OAK-2845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14610524#comment-14610524 ] 

Alex Parvulescu edited comment on OAK-2845 at 7/1/15 4:00 PM:
--------------------------------------------------------------

merged to 
 * 1.2 with r1688674
 * 1.0 with r1688676


was (Author: alex.parvulescu):
merged to 1.2 with r1688674

> Memory leak in ObserverTracker#removedService
> ---------------------------------------------
>
>                 Key: OAK-2845
>                 URL: https://issues.apache.org/jira/browse/OAK-2845
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>            Reporter: Michael Dürig
>            Assignee: Michael Dürig
>             Fix For: 1.3.0, 1.2.3, 1.0.17
>
>
> {{ObserverTracker#removedService}} does not remove the unregistered service from the {{subscriptions}} it keeps internally. 
> This is troublesome as the {{ChangeProcessor}} instances are tracked by {{ObserverTracker}}. When unregistering an observation listener the associated {{ChangeProcessor}} is disabled but not removed and thus not made available for gc. This in turn makes {{ChangeProcessor}} keep a reference to an old node state ({{previousRoot}}), which will render revision garbage collection ineffective. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)