Re-index in Jira fails due to IndexFormatTooOldException
Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.
After performing an upgrade to JIRA 8 or newer, the re-index fails and the following appears in the
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)
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.
Delete the current indexes and rebuilt everything using a lock JIRA and reindex operation by following the procedure below:
- Shutdown JIRA
- Delete all the contents from the following folder:
- Restart JIRA
- Perform a full re-index