JIRA health-check doesn't report Lucene corruption

Description

Summary

JIRA Indexing health-check checks the state of the search index is consistent with the database. If JIRA Re-index failed for non-issue objects: comments, entities, etc and Lucene index is not consistent, it doesn't report the problem.

Steps to Reproduce

  1. Run re-index

  2. While re-indexing running, delete some part of Lucene data: rm -rf jira_6.4/caches/indexes/comments/*cfs

  3. Wait for Index completes (with errors)

  4. Run Indexing health-check,

Expected Results

It should report the problem.

Actual Results

It doesn't report the problem. JQL search is not consistent and might lead to Dashboard/filters errors.

Notes

See related https://jira.atlassian.com/browse/JRA-61577

Workaround

Go to Administration > System > Indexing and check if you see error like:

JIRA is unable to perform a background re-index at this time because the index files are either missing or corrupted.

Environment

None

Assignee

Unassigned

Reporter

Andriy Yakovlev

Components

None

Add-on Type

None

Team

None

CC

None

Risk factor

None

Affected Product/s

None

Priority

Major
Configure