Failed Repository Index due to ArrayIndexOutOfBoundsException

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

Out of disk space

The following appears in the atlassian-fisheye-<date>.log:

1 2 3 4 5 6 7 8 9 2013-04-02 13:16:13,490 ERROR [InitialPinger1 testrepo] fisheye BaseRepositoryScanner-handleSlurpException - Problem processing revisions from repo testrepo due to class java.lang.ArrayIndexOutOfBoundsException - -1 java.lang.ArrayIndexOutOfBoundsException: -1 at org.apache.lucene.index.TermInfosReader.seekEnum(TermInfosReader.java:172) at org.apache.lucene.index.TermInfosReader.get(TermInfosReader.java:231) at org.apache.lucene.index.TermInfosReader.get(TermInfosReader.java:179) at org.apache.lucene.index.SegmentTermDocs.seek(SegmentTermDocs.java:57) at org.apache.lucene.index.DocumentsWriter.applyDeletes(DocumentsWriter.java:1046) at org.apache.lucene.index.DocumentsWriter.applyDeletes(DocumentsWriter.java:1004) at org.apache.lucene.index.IndexWriter.applyDeletes(IndexWriter.java:4566)

Cause

Due to out of disk space, Fisheye/Crucible couldn't reindex the repository.

Resolution

  1. Make sure that there is enough disk space

  2. Stop the repository

  3. Delete the corrupted index at FISHEYE_INST/var/cache/reponame

  4. Start the repository and perform full reindex

  5. If the repository still fail to reindex, delete FISHEYE_INST/cache/globalfe

  6. Reindex all the repositories in the server

Updated on April 7, 2025

Still need help?

The Atlassian Community is here for you.