Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-7866

getMaxVersionFromIndex is throwing an NPE if some segments are not current

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.3, 6.0
    • None
    • None

    Description

      Reported by user on #solr irc (via Shalin)

      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)
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            thelabdude Timothy Potter
            thelabdude Timothy Potter
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment