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

Timothy Potter commented on SOLR-7866:
--------------------------------------

At first, I thought this was due to 5.x code reading a 4.x index, but i was 
able to get the max version for an index created with 4.2 on branch_5x. So I 
don't know what's going on here exactly ...

However, since this code is an optimization, I don't think we should fail to 
initialize the core, so I'm going to catch Exception instead of just 
IOException so that at least the index is usable, albeit with degraded indexing 
performance.

> getMaxVersionFromIndex is throwing an NPE if some segments are not current
> --------------------------------------------------------------------------
>
>                 Key: SOLR-7866
>                 URL: https://issues.apache.org/jira/browse/SOLR-7866
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Timothy Potter
>            Assignee: Timothy Potter
>            Priority: Blocker
>             Fix For: 5.3
>
>
> Reported by user on #solr irc (via Shalin)
> {code}
> java.lang.NullPointerException
>       at 
> org.apache.lucene.util.NumericUtils.prefixCodedToLong(NumericUtils.java:226)
>       at org.apache.lucene.util.NumericUtils.getMaxLong(NumericUtils.java:582)
>       at 
> org.apache.solr.update.VersionInfo.getMaxVersionFromIndex(VersionInfo.java:234)
>       at 
> org.apache.solr.update.UpdateLog.seedBucketsWithHighestVersion(UpdateLog.java:1580)
>       at 
> org.apache.solr.update.UpdateLog.seedBucketsWithHighestVersion(UpdateLog.java:1610)
>       at org.apache.solr.core.SolrCore.seedVersionBuckets(SolrCore.java:861)
>       at org.apache.solr.core.SolrCore.<init>(SolrCore.java:843)
>       at org.apache.solr.core.SolrCore.<init>(SolrCore.java:658)
>       at org.apache.solr.core.CoreContainer.create(CoreContainer.java:637)
>       at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:381)
>       at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:375)
>       at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>       at 
> org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor$1.run(ExecutorUtil.java:148)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>       at java.lang.Thread.run(Thread.java:745)
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to