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

Solr 7.0 cannot read indexes from 6.x versions

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 7.0
    • Fix Version/s: 7.0.1, 7.1, master (8.0)
    • Component/s: None
    • Labels:
      None
    • Environment:

      Description

      Reproduced a user problem from the mailing list.

      Steps:

      • Start Solr 6.6.0 from an extracted download with "bin/solr start"
      • Create a core: "bin/solr create -c foo"
      • Add documents with the admin UI
      • Stop Solr
      • Copy solr-6.6.0/server/solr/foo to solr-7.0.0/server/solr in extracted Solr 7.0 download
      • Start Solr 7.0 with "bin/solr start"

      (I was on Windows, so I used backslashes everywhere these steps have forward slashes)

      Solr will be unable to start the core. Error and stacktrace:

      2017-09-27 15:13:30.050 ERROR (coreContainerWorkExecutor-2-thread-1) [   ] o.a.s.c.CoreContainer Error waiting for SolrCore to be created
      java.util.concurrent.ExecutionException: org.apache.solr.common.SolrException: Unable to create core [foo]
          at java.util.concurrent.FutureTask.report(FutureTask.java:122)
          at java.util.concurrent.FutureTask.get(FutureTask.java:192)
          at org.apache.solr.core.CoreContainer.lambda$load$118(CoreContainer.java:647)
          at com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:176)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$128(ExecutorUtil.java:188)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)
      Caused by: org.apache.solr.common.SolrException: Unable to create core [foo]
          at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:996)
          at org.apache.solr.core.CoreContainer.lambda$load$117(CoreContainer.java:619)
          at com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:197)
          ... 5 more
      Caused by: org.apache.solr.common.SolrException: Error opening new searcher
          at org.apache.solr.core.SolrCore.<init>(SolrCore.java:988)
          at org.apache.solr.core.SolrCore.<init>(SolrCore.java:843)
          at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:980)
          ... 7 more
      Caused by: org.apache.solr.common.SolrException: Error opening new searcher
          at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:2066)
          at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:2186)
          at org.apache.solr.core.SolrCore.initSearcher(SolrCore.java:1071)
          at org.apache.solr.core.SolrCore.<init>(SolrCore.java:960)
          ... 9 more
      Caused by: java.lang.NullPointerException
          at java.util.Objects.requireNonNull(Objects.java:203)
          at java.util.Optional.<init>(Optional.java:96)
          at java.util.Optional.of(Optional.java:108)
          at java.util.stream.ReduceOps$2ReducingSink.get(ReduceOps.java:129)
          at java.util.stream.ReduceOps$2ReducingSink.get(ReduceOps.java:107)
          at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
          at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
          at java.util.stream.ReferencePipeline.reduce(ReferencePipeline.java:479)
          at org.apache.solr.index.SlowCompositeReaderWrapper.<init>(SlowCompositeReaderWrapper.java:76)
          at org.apache.solr.index.SlowCompositeReaderWrapper.wrap(SlowCompositeReaderWrapper.java:57)
          at org.apache.solr.search.SolrIndexSearcher.<init>(SolrIndexSearcher.java:252)
          at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:2034)
          ... 12 more
      

        Attachments

        1. SOLR-11406.patch
          14 kB
          Steve Rowe
        2. SOLR-11406.patch
          1 kB
          Steve Rowe

          Issue Links

            Activity

              People

              • Assignee:
                steve_rowe Steve Rowe
                Reporter:
                elyograg Shawn Heisey
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: