Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      If an indexer fails for an object all indexing fails during the reindex process.

      Each reindex method should be responsible for logging a warning for each failure within its scope.

      The main indexer job itself should not fail if any one indexer fails. It should log it and move on.

      Here is stack trace of one failure.

      07:10:20,872 ERROR [com.liferay.portal.lucene.LuceneIndexer] com.liferay.portal.kernel.search.SearchException: java.lang.NullPointerException
      com.liferay.portal.kernel.search.SearchException: java.lang.NullPointerException
      at com.liferay.portlet.documentlibrary.util.Indexer.reIndex(Indexer.java:85)
      at com.liferay.portal.lucene.LuceneIndexer.reIndex(LuceneIndexer.java:134)
      at com.liferay.portal.lucene.LuceneIndexer.run(LuceneIndexer.java:64)
      at java.lang.Thread.run(Thread.java:613)
      Caused by: java.lang.NullPointerException
      at com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil.reIndex(DLFolderLocalServiceUtil.java:242)
      at com.liferay.portlet.documentlibrary.util.Indexer.reIndex(Indexer.java:82)
      ... 3 more

      I'm adding the fault tolerance code to the main indexer. Let me know if this is not desirable.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package