Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-63760

Only the system company's Lucene index loaded during the startup of a new node

    Details

      Description

      1- Setup a 2-node cluster with bare minimum set of properties (I used the ones below):

      	cluster.link.enabled=true
      	cluster.executor.debug.enabled=true
      	ehcache.cluster.link.replication.enabled=true
      	lucene.replicate.write=true
      	org.quartz.jobStore.isClustered=true
      

      2- Start node1
      3- Deploy the ehcache-web plugin
      4- Wait until the node is up completely
      5- Start node2
      6- Deploy the ehcache-web plugin & wait until the node is up completely
      7- Create some content (e.g. Web Content articles)
      8- Stop node2
      9- Delete node2/data/lucene folder
      10- Start node2

      Expected Result

      • Lucene index is loaded from the master node (node1) during the startup of node
      • lucene folder is created
      • company indicies are present for company ids "0" & "20xxx"

      Actual Result
      Only the the system company index ("0") is created.


      master/7.0 is not affected since we no longer have Lucene in core. We use Elasticsearch as Search Server.


      Solution Notes
      The following portal property has been added:

          #
          # Set this to true to load Lucene indexes from the cluster on startup, or
          # else indexes are only loaded whenever they are used for the first time.
          # This property is not used unless the property "index.on.startup" is set
          # to false.
          #
          lucene.cluster.index.loading.on.startup=false
      

      Set this to true when testing.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 17 weeks, 1 day ago

                  Packages

                  Version Package
                  6.2.X EE