How to re-index Crucible review data
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
Summary
Crucible's cache has become corrupt and the information displayed in the application is not consistent with the data in the database. The following procedure will recreate the Lucene index for Crucible reviews and comments. The Lucene index is used to populate review dashboards and is utilized to provide search functionality.
Solution
Re-index Crucible´s cache by doing the following:
Go to
Administration >> Global Settings > Crucible
Click on "Re-Index".
There is no visual queue in the application that identifies the index progress but you can identify when it has commenced and completed by looking for the following lines in your application log:
Start
1
Starting review re-indexing
Finish
1
Completed review re-indexing
E.g.:
1
2
3
4
5
2012-11-15 13:19:58,682 INFO [pool-7-thread-1 ] fisheye.app DefaultReviewItemIndexer$3-run - Starting review re-indexing
2012-11-15 13:19:58,894 INFO [pool-7-thread-1 ] fisheye.app DefaultReviewItemIndexer$3-run - Completed review re-indexing of 2 documents, took 0 seconds
If the re-indexing doesn´t work manually remove Crucible´s cache to force a Crucible content re-index:
Shut down the application.
Remove the contents of the
<FISHEYE_INST>/cache/cruidx
folder.Restart the application.
Although this process doesn't prevent access to the application, reviews will only be visible in the application after they have been indexed. This process may take a some time depending on review size and number so consider performing this operation after hours.
Was this helpful?