Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-24819

Don't do orphan versions cleanup by default

    XMLWordPrintable

    Details

    • Release Notes Summary:
      Orphan version cleanup is disabled to avoid performance issues.
    • Tags:
    • Backlog priority:
      900
    • Impact type:
      Configuration Change
    • Upgrade notes:
      Hide

      Orphan versions cleanup is now disabled by default, and can be re-enabled (if its performance is acceptable) by doing:

        <require>org.nuxeo.ecm.core.orphanVersionsCleanup</require>
        <extension point="listener" target="org.nuxeo.ecm.core.event.EventServiceComponent">
          <listener name="orphanVersionsCleanup" enabled="true" />
        </extension> 
      
      Show
      Orphan versions cleanup is now disabled by default, and can be re-enabled (if its performance is acceptable) by doing: <require> org.nuxeo.ecm.core.orphanVersionsCleanup </require> <extension point= "listener" target= "org.nuxeo.ecm.core.event.EventServiceComponent" > <listener name= "orphanVersionsCleanup" enabled= "true" /> </extension>
    • Sprint:
      nxFG 10.2.4, nxFG 10.2.5, nxFG 10.2.6, nxFG 10.2.7, nxFG 10.3.1, nxFG 10.3.2, nxFG 10.3.3, nxFG 10.3.4, nxFG 10.3.5, nxFG 10.10.3, nxFG 11.1.1, nxFG 11.1.2, nxFG 11.1.3, nxFG 11.1.5
    • Story Points:
      3

      Description

      The listener orphanVersionsCleanup introduced by NXP-14187 takes too much resources when there are lots of data.

      1. orphanVersionsCleanup script can be called manually up to 8.10
      2. from 8.10 HF01 +, it is possible to enable it through a contribution:
        https://doc.nuxeo.com/810/nxdoc/hotfixes-installation-notes-for-nuxeo-platform-lts-2016/#orphan-versions-cleanup
      3. in 9.10 it is scheduled by default

      This leads to performance impact on big deployments with hundreds of millions of documents.

      The doCleanupOrphanVersions method fetches all the document versions and working copies UUIDs:
      https://github.com/nuxeo/nuxeo/blob/release-10.1/nuxeo-core/nuxeo-core/src/main/java/org/nuxeo/ecm/core/CoreService.java#L173

      This should be for instance dealt through a batch process thus limiting the resources usage and notably RAM.

      —> deactivate this listener by default.

      The ticket NXP-27139 covers work to improve the cleanup algorithm to scale.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h