[ 
https://issues.apache.org/jira/browse/OAK-6525?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chetan Mehrotra resolved OAK-6525.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.7.6

> Index consistency checker should check all indexes even after failure
> ---------------------------------------------------------------------
>
>                 Key: OAK-6525
>                 URL: https://issues.apache.org/jira/browse/OAK-6525
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: run
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>            Priority: Minor
>             Fix For: 1.8, 1.7.6
>
>
> 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
> {noformat}
> 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]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to