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

IndexerPostProcessor not registered after restart

    Details

      Description

      Summary
      Our our DEV article has the following statement:

      indexer.class.name: the fully qualified class name of the indexed entity or an Indexer class itself.

      In theory, this means that in an IndexerPostProcessor for MBMessage you can set indexer.class.name attribute to either

      • com.liferay.message.boards.model.MBMessage (entity class name) or
      • com.liferay.message.boards.internal.search.MBMessageIndexer (indexer class name).

      In practice, however, IndexerRegistryImpl doesn't handle this interchangeability well. When using the indexer class name, the post processor won't work after restart.

      Steps to reproduce

      1. Start Liferay
      2. Deploy the attached PostProcessor module
      3. Post a MB message and verify the below line appears on standard output (FYI: logging configuration didn't work):
        ››› postProcessDocument
        
      4. Restart Liferay
      5. Post a new MB message and check the standard output again for below line:
        ››› postProcessDocument
        

      Expected results: The line appears, the module works.
      Actual results: The line doesn't appear, the module doesn't work.

      For 7.0.x testing please use the com.liferay.blade.indexer.post.processor-70x-1.0.0.jar and instead of standard output look for the log entries:

      2018-08-28 19:28:13.739 INFO  [http-nio-8080-exec-8][com_liferay_blade_indexer_post_processor:100] postProcessDocument
      

        Attachments

          Activity

            People

            • Assignee:
              abel.yu Abel Yu (Inactive)
              Reporter:
              istvan.sajtos Istvan Sajtos
              Participants of an Issue:
              Recent user:
              André Ricardo Barreto de Oliveira
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 7 weeks, 4 days ago

                Packages

                Version Package
                7.0.0 DXP FP60
                7.0.0 DXP SP9
                7.0.X
                7.1.10 DXP FP3
                7.1.1 CE GA2
                7.1.10.1 SP1
                7.1.X
                Master