lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-7866) getMaxVersionFromIndex is throwing an NPE if some segments are not current
Date Thu, 06 Aug 2015 01:13:04 GMT

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

ASF subversion and git services commented on SOLR-7866:
-------------------------------------------------------

Commit 1694388 from [~thelabdude] in branch 'dev/branches/branch_5x'
[ https://svn.apache.org/r1694388 ]

SOLR-7866: Harden code to prevent an unhandled NPE when trying to determine the max value
of the version field.

> 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
>             Fix For: 5.3
>
>         Attachments: SOLR-7866.patch
>
>
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message