Re-index in Jira fails due to IndexFormatTooOldException

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.

Problem

After performing an upgrade to JIRA 8 or newer, the re-index fails and the following appears in the atlassian-jira.log

JiraTaskExectionThread-2 ERROR admin 918x369x1 w6fhfe 127.0.0.1 /secure/admin/jira/IndexReIndex!reindex.jspa [c.a.j.util.index.CompositeIndexLifecycleManager] Reindex All FAILED. 
Indexer: SharedEntityIndexManager: 
paths: [] com.atlassian.jira.util.RuntimeIOException: org.apache.lucene.index.IndexFormatTooOldException: Format version is not supported 
(resource BufferedChecksumIndexInput(MMapIndexInput(path="/opt/data/atlassian/application-data/jira/caches/indexesV1/entities/searchrequest/segments_9t"))): -11 
(needs to be between 1071082519 and 1071082519). This version of Lucene only supports indexes created with release 6.0 and later.
at com.atlassian.jira.index.DefaultIndexEngine.clean(DefaultIndexEngine.java:132)
at com.atlassian.jira.index.DefaultManager.deleteIndexDirectory(DefaultManager.java:40)

Cause

In JIRA 8 and newer the indexing mechanism (Lucene) was upgraded (as detailed on our release notes), aiming improvements on application performance. This causes the indexes to need to be rebuilt from the scratch.

Resolution

Delete the current indexes and rebuilt everything using a lock JIRA and reindex operation by following the procedure below:

  1. Shutdown JIRA
  2. Delete all the contents from the following folder:
    $JIRA_HOME\caches\indexes
    
  3. Restart JIRA
  4. Perform a full re-index

Last modified on Jun 19, 2019

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.