Chetan Mehrotra created OAK-5258:
------------------------------------

             Summary: LuceneIndexEditor skips indexing for unknown nodetype due 
to stale NodeType registry state
                 Key: OAK-5258
                 URL: https://issues.apache.org/jira/browse/OAK-5258
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: lucene
            Reporter: Chetan Mehrotra
            Assignee: Chetan Mehrotra
            Priority: Minor
             Fix For: 1.6


With OAK-5218 hybrid index can be used since very starting of system. Currently 
LuceneIndexEditorProvider uses a cached IndexDefinition instance for sync/nrt 
mode. 

In some cases it can happen that indexed content uses a new nodetype and 
IndexDefinition which is cached in IndexTracker has yet not updated the cached 
index definition. This is not a problem with async indexing mode as by the time 
async indexer kicks in it constructs the IndexDefinition from the current root. 
However with sync/nrt indexing it posses a problem as nodetype state stored in 
cached index definition may be old and does not have entry for newly registered 
nodetypes

As a fix we should check if NodeType registry state has changed for current 
root wrt root referred to in IndexDefinition. If changed then cached 
IndexDefinition should not be used



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

Reply via email to