Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-2845

Memory leak in ObserverTracker#removedService

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.17, 1.2.3, 1.3.0, 1.4
    • Component/s: core
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              mduerig Michael Dürig
              Reporter:
              mduerig Michael Dürig
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: