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

Index consistency checker should check all indexes even after failure

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.7.6, 1.8.0
    • run
    • None

    Description

      If some exception occurs while checking any index while performing consistency check the checker fails immediately. Instead it should catch the exception and perform check for all indexes

      12:27:47 - Error occurred while performing index tasks
      
      java.lang.IndexOutOfBoundsException: index 
      
      (8)
       must be less than size (8)
      
      
              at com.google.common.base.Preconditions.checkElementIndex(Preconditions.java:306) ~[oak-run-1.8-SNAPSHOT.jar:1.8-SNAPSHOT]
      
              at com.google.common.base.Preconditions.checkElementIndex(Preconditions.java:285) ~[oak-run-1.8-SNAPSHOT.jar:1.8-SNAPSHOT]
      
              at org.apache.jackrabbit.oak.plugins.index.lucene.OakDirectory$OakIndexFile.loadBlob(OakDirectory.java:443) ~[oak-run-1.8-SNAPSHOT.jar:1.8-SNAPSHOT]
      
              at org.apache.jackrabbit.oak.plugins.index.lucene.OakDirectory$OakIndexFile.readBytes(OakDirectory.java:505) ~[oak-run-1.8-SNAPSHOT.jar:1.8-SNAPSHOT]
      
              at org.apache.jackrabbit.oak.plugins.index.lucene.OakDirectory$OakIndexInput.readBytes(OakDirectory.java:625) ~[oak-run-1.8-SNAPSHOT.jar:1.8-SNAPSHOT]
      
              at org.apache.lucene.store.DataOutput.copyBytes(DataOutput.java:254) ~[oak-run-1.8-SNAPSHOT.jar:1.8-SNAPSHOT]
      
              at org.apache.lucene.store.Directory.copy(Directory.java:186) ~[oak-run-1.8-SNAPSHOT.jar:1.8-SNAPSHOT]
      
              at org.apache.jackrabbit.oak.plugins.index.lucene.directory.IndexConsistencyChecker.checkIndexDirectory(IndexConsistencyChecker.java:313) ~[oak-run-1.8-SNAPSHOT.jar:1.8-SNAPSHOT]
      
              at org.apache.jackrabbit.oak.plugins.index.lucene.directory.IndexConsistencyChecker.checkIndex(IndexConsistencyChecker.java:287) ~[oak-run-1.8-SNAPSHOT.jar:1.8-SNAPSHOT]
      
              at org.apache.jackrabbit.oak.plugins.index.lucene.directory.IndexConsistencyChecker.check(IndexConsistencyChecker.java:255) ~[oak-run-1.8-SNAPSHOT.jar:1.8-SNAPSHOT]
      
              at org.apache.jackrabbit.oak.plugins.index.lucene.directory.IndexConsistencyChecker.check(IndexConsistencyChecker.java:240) ~[oak-run-1.8-SNAPSHOT.jar:1.8-SNAPSHOT]
      
              at org.apache.jackrabbit.oak.plugins.index.lucene.directory.IndexConsistencyChecker.check(IndexConsistencyChecker.java:235) ~[oak-run-1.8-SNAPSHOT.jar:1.8-SNAPSHOT]
      
              at org.apache.jackrabbit.oak.index.IndexConsistencyCheckPrinter.print(IndexConsistencyCheckPrinter.java:69) ~[oak-run-1.8-SNAPSHOT.jar:1.8-SNAPSHOT]
      
              at org.apache.jackrabbit.oak.index.PrinterDumper.dump(PrinterDumper.java:55) ~[oak-run-1.8-SNAPSHOT.jar:1.8-SNAPSHOT]
      
      
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: