[
https://issues.apache.org/jira/browse/OAK-3547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14993557#comment-14993557
]
Ian Boston commented on OAK-3547:
---------------------------------
With the latest commit to the branch, segments.gen is now stored in
segments.gen_<epoch> and is immutable making it possible to correctly open
previous generations.
I think the patch is complete, unless a more sophisticated recovery mechanism
is required. (ie flagging the index as requiring a rebuild, without actually
doing it).
Obviously needs extensive testing to see what happens when real repo corruption
happens in a live cluster. At present only tested with a single instance on
MongoMK.
> Improve ability of the OakDirectory to recover from unexpected file errors
> --------------------------------------------------------------------------
>
> Key: OAK-3547
> URL: https://issues.apache.org/jira/browse/OAK-3547
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: lucene
> Affects Versions: 1.4
> Reporter: Ian Boston
>
> Currently if the OakDirectory finds that a file is missing or in some way
> damaged, and exception is thrown which impacts all queries using that index,
> at times making the index unavailable. This improvement aims to make the
> OakDirectory recover to a previously ok state by storing which files were
> involved in previous states, and giving the code some way of checking if they
> are valid.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)