1.35. Checking repository integrity and consistency

The following topics are covered:

1.35.1. Recommendations on how to fix corrupted JCR

Production and any other system may have faults some day. They may be caused by hardware problems, human faults, software errors during updates and many other circumstances. It is important to check integrity and consistency of the system if there is no backup or it is stale, or recovery process takes much. Exo JCR implementation offers an innovative JMX-based complex checking tool. Running inspection, tool check every major JCR component, such as persistent data layer and index. Persistent layer includes JDBC Data Container and Value-Storages if they are configured. Database verified using the set of complex specialized domain-specific queries. Value Storage tool checks existence and access to each file. Index verification contains two-way pass cycle, existence of each node in index checks on persistent layer along with opposite direction, when each node from Data Container validated in index. Access to check tool is exposed via JMX interface, with the following operation available:

checkAll()Inspect full repository data (db, value storage and search index)
checkDataBase()Inspect only DB
checkValueStorage()Inspect only ValueStorage
checkIndex()Inspect only SearchIndex

Also tools provides abilities to repair possible inconsistencies:

repairDataBase()repair DB
repairValueStorage()repair ValueStorage

All tool activities are stored in file, which can be found in app directory by name report-<repository name>-dd-MMM-yy-HH-mm.txt.

Copyright ©2012. All rights reserved. eXo Platform SAS