You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Alex Parvulescu (JIRA)" <ji...@apache.org> on 2016/03/22 14:06:25 UTC

[jira] [Comment Edited] (OAK-4141) SegmentNotFoundException with Lucene

    [ https://issues.apache.org/jira/browse/OAK-4141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15206308#comment-15206308 ] 

Alex Parvulescu edited comment on OAK-4141 at 3/22/16 1:05 PM:
---------------------------------------------------------------

possibly related to OAK-4099, fyi [~chetanm]. 
the key might be that the mechanism in change of refreshing the index reference doesn't know that a compaction has taken place (the 2 states pre-compaction and post-compaction are equal). if we could convey this info, the stale refs would be gone.


was (Author: alex.parvulescu):
possibly related to OAK-4099. [~chetanm]. the key might be that the mechanism in change of refreshing the index reference doesn't know that a compaction has taken place (the 2 states pre-compaction and post-compaction are equal). if we could convey this info, the stale refs would be gone.

> SegmentNotFoundException with Lucene
> ------------------------------------
>
>                 Key: OAK-4141
>                 URL: https://issues.apache.org/jira/browse/OAK-4141
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: lucene
>            Reporter: Michael Dürig
>            Priority: Critical
>              Labels: gc, resilience
>
> {{org.apache.jackrabbit.oak.plugins.index.lucene.OakDirectory}} keeps reference to node state for a long time, which is prone to {{SegmentNotFoundException}} when running revision cleanup with the {{CLEAN_OLD}} strategy. 
> The following log file excerpt shows such a case where the reference in question was over 8 days old!
> {code}
> 04.03.2016 13:21:10.317 *ERROR* [qtp1507293688-116717] org.apache.jackrabbit.oak.plugins.segment.SegmentTracker Segment not found: a6f5ffe9-8d05-4e57-a953-492cb2105ca8. Creation date delta is 702992619 ms.
> org.apache.jackrabbit.oak.plugins.segment.SegmentNotFoundException: Segment a6f5ffe9-8d05-4e57-a953-492cb2105ca8 not found
> 	at org.apache.jackrabbit.oak.plugins.segment.file.FileStore.readSegment(FileStore.java:1016)
> 	at org.apache.jackrabbit.oak.plugins.segment.SegmentTracker.readSegment(SegmentTracker.java:209)
> 	at org.apache.jackrabbit.oak.plugins.segment.SegmentId.getSegment(SegmentId.java:149)
> 	at org.apache.jackrabbit.oak.plugins.segment.Record.getSegment(Record.java:82)
> 	at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.getChildNodeMap(SegmentNodeState.java:85)
> 	at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.getChildNode(SegmentNodeState.java:383)
> 	at org.apache.jackrabbit.oak.spi.state.ReadOnlyBuilder.getChildNode(ReadOnlyBuilder.java:196)
> 	at org.apache.jackrabbit.oak.plugins.index.lucene.OakDirectory.fileLength(OakDirectory.java:101)
> 	at org.apache.lucene.store.FilterDirectory.fileLength(FilterDirectory.java:63)
> 	at org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexMBeanImpl.dirSize(LuceneIndexMBeanImpl.java:202)
> 	at org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexMBeanImpl.access$100(LuceneIndexMBeanImpl.java:48)
> 	at org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexMBeanImpl$IndexStats.<init>(LuceneIndexMBeanImpl.java:165)
> 	at org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexMBeanImpl.getIndexStats(LuceneIndexMBeanImpl.java:70)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)