[
https://issues.apache.org/jira/browse/OAK-5558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chetan Mehrotra updated OAK-5558:
---------------------------------
Attachment: lucene-jmx-3.png
lucene-jmx-2.png
lucene-check-1.png
Integrated the consistency check with {{LuceneIndexMBean}} with following 3
operations
!lucene-check-1.png!
* checkConsistency(indexPath, fullCheck) - Performs consistency check on given
index
!lucene-jmx-2.png!
* checkAndReportConsistencyOfAllIndexes(fullCheck) - Performs consistency
check for all Lucene indexes and reports in simple format
!lucene-jmx-3.png!
* checkConsistencyOfAllIndexes(fullCheck) - Performs consistency check for all
Lucene indexes and reports true if all indexes are found to be valid. False if
any one of them was not found to be valid
> Consistency checker for Lucene indexes
> --------------------------------------
>
> Key: OAK-5558
> URL: https://issues.apache.org/jira/browse/OAK-5558
> Project: Jackrabbit Oak
> Issue Type: New Feature
> Components: lucene
> Reporter: Chetan Mehrotra
> Assignee: Chetan Mehrotra
> Fix For: 1.8
>
> Attachments: lucene-check-1.png, lucene-jmx-2.png, lucene-jmx-3.png
>
>
> We should add support for some form of consistency checker for Lucene indexes
> present in the system. These should be exposed as part of {{LuceneIndexMBean}}
> {noformat}
> boolean checkAllIndexes()
> String checkIndexForConsistency(String indexPath)
> {noformat}
> As part of this check we can provide 2 modes
> # Normal - Under this consistency check logic would
> ## lookup index file names as stored under {{dirListing}}
> ## see if all those files are valid i.e. nodestate corresponding to those
> filenames are present
> ## see if blobIds referred by those file nodes are present and there length
> match the expected size
> # Deep - Under this we use
> [CheckIndex|https://lucene.apache.org/core/4_7_0/core/org/apache/lucene/index/CheckIndex.html]
> tool from Lucene
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)