[infinispan-issues] [JBoss JIRA] (ISPN-2831) NPE in DistributedSegmentReadLocker

Marko Lukša (JIRA) jira-events at lists.jboss.org
Mon Apr 22 11:04:54 EDT 2013


     [ https://issues.jboss.org/browse/ISPN-2831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marko Lukša updated ISPN-2831:
------------------------------

              Status: Pull Request Sent  (was: Open)
    Git Pull Request: https://github.com/infinispan/infinispan/pull/1776


I've also hit this today. I've moved the offending line inside the if statement. Pull request is at https://github.com/infinispan/infinispan/pull/1776 
                
> NPE in DistributedSegmentReadLocker
> -----------------------------------
>
>                 Key: ISPN-2831
>                 URL: https://issues.jboss.org/browse/ISPN-2831
>             Project: Infinispan
>          Issue Type: Bug
>    Affects Versions: 5.2.1.Final, 5.3.0.Alpha1
>            Reporter: Michal Zaborec
>            Assignee: Sanne Grinovero
>             Fix For: 5.3.0.Final
>
>         Attachments: unable-init-indexmanager-on-restart.txt
>
>
> possible NPE in DistributedSegmentReadLocker
> {code}
> java.lang.NullPointerException
> 	at org.infinispan.lucene.readlocks.DistributedSegmentReadLocker.realFileDelete(DistributedSegmentReadLocker.java:184)
> 	at org.infinispan.lucene.readlocks.DistributedSegmentReadLocker.deleteOrReleaseReadLock(DistributedSegmentReadLocker.java:109)
> 	at org.infinispan.lucene.InfinispanDirectory.deleteFile(InfinispanDirectory.java:213)
> 	at org.apache.lucene.index.IndexFileDeleter.deleteFile(IndexFileDeleter.java:578)
> {code}
> this is caused by this code:
> {code}
> final int bufferSize = file.getBufferSize();
> if (file != null) //during optimization of index a same file could be deleted twice, so you could see a null here
> ......
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the infinispan-issues mailing list