Lucene index corrupted on Primary author

Lucene index corrupted on Primary author


AEM 6.2 SP1 CFP18


Lucene index is sometimes corrupted on Primary author instance, slowing down the performance of the instance.
In the log file, the following trace can be seen:

*WARN* [aysnc-index-update-async] org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditorContext could not update suggester Invalid byte range request for [/oak:index/damAssetLucene][_4vn.fnm], position: 0, file length: 0, len: 1 
at org.apache.jackrabbit.oak.plugins.index.lucene.OakDirectory$OakIndexFile.readBytes( 
at org.apache.jackrabbit.oak.plugins.index.lucene.OakDirectory$OakIndexInput.readBytes( 
at org.apache.jackrabbit.oak.plugins.index.lucene.OakDirectory$OakIndexInput.readByte( 
at org.apache.lucene.codecs.CodecUtil.checkHeader( 


Corruption of the lucene index and degradation of the performance of the author


The above error message points out to directory lookup not being closed. 
This issue is related to which has been solved in Oak 1.4.24 through internal reference NPR-26565

In order to solve this issue, the steps are:

  • Upgrade to Oak 1.4.24+
  • Refresh the index cache in crx-quickstart/repository/index
  • Monitor the instance to ensure that the issue doesn't appear again


Få hjälp snabbare och enklare

Ny användare?