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

Expose an extension point to move in memory state in UnsavedModification to persisted map

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0
    • mongomk
    • None

    Description

      Currently DocumentNodeStore stores some state in org.apache.jackrabbit.oak.plugins.document.UnsavedModifications class related to branch commit. If number of branch commit are large (say in migration) then this state grows proportionally to the number of nodes getting added/modified in that branch and thus can cause OOM.

      To support such cases we can use a persisted map impl like mapdb [1]. To enable such usage an extension point need to be added in UnsavedModifications to change the impl

      [1] http://www.mapdb.org/

      Attachments

        1. OAK-1772-oak-mapdb-1.patch
          3 kB
          Chetan Mehrotra

        Issue Links

          Activity

            People

              chetanm Chetan Mehrotra
              chetanm Chetan Mehrotra
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: