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 "Michael Dürig (JIRA)" <ji...@apache.org> on 2015/05/06 23:26:00 UTC
[jira] [Resolved] (OAK-2845) Memory leak in
ObserverTracker#removedService
[ https://issues.apache.org/jira/browse/OAK-2845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Dürig resolved OAK-2845.
--------------------------------
Resolution: Fixed
Fixed at http://svn.apache.org/r1678096
> 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
>
>
> {{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)