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

During full reindex, DLFileEntry is reindexed before than DLFolder we should change order as it is slower

Details

    Description

      During full reindex, we have com.liferay.portal.util.comparator.PortletLuceneComparator in order to reindex document library portlet in last position, as it's usually the slowest.

      But inside document library DLFileEntry is reindexed before than DLFolder we should change order as DLFileEntry is slower than DLFolder.

      Steps to reproduce

      1. Activate DEBUG log for category: com.liferay.portal.search.lucene.LuceneIndexer
      2. Open Configuration => Server Administration => Resources
      3. Execute "Reindex all search indexes."

      Check log: document library will be reindexed the last portlet because of com.liferay.portal.util.comparator.PortletLuceneComparator but DLFileEntry will be indexed before DLFolder. That it is faster.

      • Current behaviour:
        14:18:03,407 INFO  [http-bio-7080-exec-4][LuceneIndexer:82] Reindexing Lucene started
        [...]
        14:18:16,177 INFO  [http-bio-7080-exec-4][LuceneIndexer:157] Reindexing with class com.liferay.portlet.wiki.util.WikiPageIndexer started
        14:18:16,184 INFO  [http-bio-7080-exec-4][LuceneIndexer:165] Reindexing with class com.liferay.portlet.wiki.util.WikiPageIndexer completed in 0 seconds
        14:18:16,185 INFO  [http-bio-7080-exec-4][LuceneIndexer:157] Reindexing with class com.liferay.portlet.documentlibrary.util.DLFileEntryIndexer started
        14:18:19,151 INFO  [http-bio-7080-exec-4][LuceneIndexer:165] Reindexing with class com.liferay.portlet.documentlibrary.util.DLFileEntryIndexer completed in 2 seconds
        14:18:19,152 INFO  [http-bio-7080-exec-4][LuceneIndexer:157] Reindexing with class com.liferay.portlet.documentlibrary.util.DLFolderIndexer started
        14:18:19,219 INFO  [http-bio-7080-exec-4][LuceneIndexer:165] Reindexing with class com.liferay.portlet.documentlibrary.util.DLFolderIndexer completed in 0 seconds
        14:18:19,219 INFO  [http-bio-7080-exec-4][LuceneIndexer:135] Reindexing Lucene completed in 15 seconds
        
      • Expected behaviour:
        14:18:03,407 INFO  [http-bio-7080-exec-4][LuceneIndexer:82] Reindexing Lucene started
        [...]
        14:18:16,177 INFO  [http-bio-7080-exec-4][LuceneIndexer:157] Reindexing with class com.liferay.portlet.wiki.util.WikiPageIndexer started
        14:18:16,184 INFO  [http-bio-7080-exec-4][LuceneIndexer:165] Reindexing with class com.liferay.portlet.wiki.util.WikiPageIndexer completed in 0 seconds
        14:18:16,185 INFO  [http-bio-7080-exec-4][LuceneIndexer:157] Reindexing with class com.liferay.portlet.documentlibrary.util.DLFolderIndexer started
        14:18:16,185 INFO  [http-bio-7080-exec-4][LuceneIndexer:165] Reindexing with class com.liferay.portlet.documentlibrary.util.DLFolderIndexer completed in 0 seconds
        14:18:16,185 INFO  [http-bio-7080-exec-4][LuceneIndexer:157] Reindexing with class com.liferay.portlet.documentlibrary.util.DLFileEntryIndexer started
        14:18:19,151 INFO  [http-bio-7080-exec-4][LuceneIndexer:165] Reindexing with class com.liferay.portlet.documentlibrary.util.DLFileEntryIndexer completed in 2 seconds
        14:18:19,151 INFO  [http-bio-7080-exec-4][LuceneIndexer:135] Reindexing Lucene completed in 15 seconds
        

      Attachments

        1. fix.png
          fix.png
          21 kB
        2. reproduce.png
          reproduce.png
          116 kB

        Issue Links

          Activity

            People

              melody.wu Melody Wu
              jorge.diaz Jorge Diaz
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                7 years, 4 weeks ago

                Packages

                  Version Package
                  6.2.X EE