-
Type:
Bug
-
Status: Closed
-
Resolution: Duplicate
-
Affects Version/s: 6.0.12 EE
-
Fix Version/s: 6.0.12 EE
-
Component/s: Search Infrastructure, Search Infrastructure > Framework
-
Labels:None
-
Environment:Tomcat 6.0.32
Java 6.0
Occasionally, we need to rebuild all indexes using the Control Panel.
If there is a problem/bug in a single Indexer (e.g. MediaWikiIndexer as per LPS-19591) then the indexing stops and other content types won't be indexed. In our case, the MediaWikiIndexer bug stops the DocumentLibrary indexer from having a turn.
My proposal is to change to LuceneIndexer#reindex(Indexer) method to catch and log exceptions and then allow the next Indexer to continue, as follows:
try { indexer.reindex(new String[] {String.valueOf(_companyId)}); if (_log.isInfoEnabled()) { _log.info( "Reindexing with " + indexer.getClass() + " completed in " + (stopWatch.getTime() / Time.SECOND) + " seconds"); } } catch (Exception e) { _log.error("Reindexing with " + indexer.getClass() + " failed", e); }
- duplicates
-
LPS-13468 LuceneIndexer should not stop calling indexers for the different portlets, if one of them throws an exception
- Closed