Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-5558

Consistency checker for Lucene indexes

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.7.0, 1.8.0
    • lucene
    • None

    Description

      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

      boolean checkAllIndexes()
      String checkIndexForConsistency(String indexPath)
      

      As part of this check we can provide 2 modes

      1. Normal - Under this consistency check logic would
        1. lookup index file names as stored under dirListing
        2. see if all those files are valid i.e. nodestate corresponding to those filenames are present
        3. see if blobIds referred by those file nodes are present and there length match the expected size
      2. Deep - Under this we use CheckIndex tool from Lucene

      Attachments

        1. lucene-check-1.png
          66 kB
          Chetan Mehrotra
        2. lucene-jmx-2.png
          35 kB
          Chetan Mehrotra
        3. lucene-jmx-3.png
          38 kB
          Chetan Mehrotra

        Issue Links

          Activity

            People

              chetanm Chetan Mehrotra
              chetanm Chetan Mehrotra
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: