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

IndexerRegistryUtil.getIndexers() returns duplicates

    Details

      Description

      IndexerRegistryUtil.getIndexers() returns duplicates.

      Steps

      1. Go to server administration > scripts.
      2. Run the following script:
        import com.liferay.portal.kernel.search.Indexer;
        
        import java.util.List;
        
        List<Indexer> indexers = com.liferay.portal.kernel.search.IndexerRegistryUtil.getIndexers()
        
        out.println("Total number of indexers: " + indexers.size());
        
        for (Indexer indexer : indexers) {
            out.println(indexer.getClassNames()[0]);
        }
        

      Expected
      No duplicates would be listed.
      Actual
      Duplicates are listed.

      Note
      This is resolved in master by LPS-59018.

        Attachments

        1. fixed.png
          fixed.png
          31 kB
        2. reproduced.png
          reproduced.png
          35 kB

          Issue Links

            Activity

              People

              Assignee:
              hong.zhao Hong Zhao
              Reporter:
              preston.crary Preston Crary
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 48 weeks, 5 days ago

                  Packages

                  Version Package
                  6.2.X EE