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

ASF GitHub Bot updated GEODE-4764:
----------------------------------
    Labels: pull-request-available  (was: )

> NPEs encountered during lucene create index (on existing region)
> ----------------------------------------------------------------
>
>                 Key: GEODE-4764
>                 URL: https://issues.apache.org/jira/browse/GEODE-4764
>             Project: Geode
>          Issue Type: Sub-task
>          Components: lucene
>    Affects Versions: 1.5.0
>            Reporter: Shelley Lynn Hughes-Godfrey
>            Assignee: Shelley Lynn Hughes-Godfrey
>            Priority: Major
>              Labels: pull-request-available
>
> There are currently two potential NPEs in LuceneServiceImpl during index 
> creation on an existing region.
> The first occurs when a bucket is moved during indexing:
> {noformat}
>         at 
> org.apache.geode.cache.lucene.internal.LuceneServiceImpl.createLuceneIndexOnDataRegion(LuceneServiceImpl.java:294)
>         at 
> org.apache.geode.cache.lucene.internal.LuceneServiceImpl.createIndexOnExistingRegion(LuceneServiceImpl.java:277)
>         at 
> org.apache.geode.cache.lucene.internal.LuceneServiceImpl.createIndex(LuceneServiceImpl.java:257)
>         at 
> org.apache.geode.cache.lucene.internal.LuceneServiceImpl.createIndex(LuceneServiceImpl.java:226)
>         at 
> org.apache.geode.cache.lucene.internal.LuceneIndexFactoryImpl.create(LuceneIndexFactoryImpl.java:70)
> {noformat}
> The second occurs when the LuceneEventListener attempts to process events 
> before the Lucene Index has been fully initialized (and userRegion set).
> {noformat}
>         at 
> org.apache.geode.internal.cache.wan.GatewaySenderEventCallbackDispatcher.dispatchBatch(GatewaySenderEventCallbackDispatcher.java:164)
>         at 
> org.apache.geode.internal.cache.wan.GatewaySenderEventCallbackDispatcher.dispatchBatch(GatewaySenderEventCallbackDispatcher.java:80)
>         at 
> org.apache.geode.internal.cache.wan.AbstractGatewaySenderEventProcessor.processQueue(AbstractGatewaySenderEventProcessor.java:610)
>         at 
> org.apache.geode.internal.cache.wan.AbstractGatewaySenderEventProcessor.run(AbstractGatewaySenderEventProcessor.java:1051)
> Caused by: java.lang.NullPointerException
>         at 
> org.apache.geode.cache.lucene.internal.AbstractPartitionedRepositoryManager.getRepository(AbstractPartitionedRepositoryManager.java:70)
>         at 
> org.apache.geode.cache.lucene.internal.LuceneEventListener.process(LuceneEventListener.java:86)
>         at 
> org.apache.geode.cache.lucene.internal.LuceneEventListener.processEvents(LuceneEventListener.java:63)
>         at 
> org.apache.geode.internal.cache.wan.GatewaySenderEventCallbackDispatcher.dispatchBatch(GatewaySenderEventCallbackDispatcher.java:154)
>         ... 3 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to