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

Fix TemplateProcessorComponent to register the invalidator after the cluster service has started

    XMLWordPrintable

    Details

    • Release Notes Summary:
      Changes on Templates are distributed to all cluster nodes.
    • Backlog priority:
      850
    • Sprint:
      nxplatform #80
    • Story Points:
      3

      Description

      ComponentManagerImpl#start works in 2 phasis : https://github.com/nuxeo/nuxeo-lts/blob/2021/modules/runtime/nuxeo-runtime/src/main/java/org/nuxeo/runtime/model/impl/ComponentManagerImpl.java#L828-L844

      1. activation of components
      2. start of components

      The activation of components calls TemplateProcessorComponent#activate which tries to register an invalidator (if the cluster service indicates that the cluster is enabled).
      The start of components (which is done after the activation) calls ClusterServiceImpl#start which will configure the cluster options based on the cluster configuration

      Observed behavior: Because of this order, TemplateProcessorComponent#activate never knows if a cluster is enabled

      Expected behavior: Make TemplateProcessorComponent#registerInvalidator be called once the cluster service has registered the cluster configuration

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: