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:21:01 UTC

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

Michael Dürig created OAK-2845:
----------------------------------

             Summary: 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)