[
https://issues.apache.org/jira/browse/SOLR-11406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16183100#comment-16183100
]
Shawn Heisey commented on SOLR-11406:
-------------------------------------
Sounds like it would be a good idea for Solr to include at least one
back-compat test.
Based on all available info, I think it would fail this way with an index from
any 6.x version.
With an index from 4.x, loading fails. That's expected. The message correctly
refers to the index format.
With an index from 6.3.0, the failure is the same as with 6.6.x.
> Solr 7.0 cannot read indexes from 6.6.0 or 6.6.1
> ------------------------------------------------
>
> Key: SOLR-11406
> URL: https://issues.apache.org/jira/browse/SOLR-11406
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Affects Versions: 7.0
> Environment: C:\Users\sheisey\Downloads\solr-7.0.0>ver
> Microsoft Windows [Version 6.1.7601]
> C:\Users\sheisey\Downloads\solr-7.0.0>java -version
> java version "1.8.0_144"
> Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
> Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
> Reporter: Shawn Heisey
>
> 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:
> {code}
> 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
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]