Solrcore ' Collection1 ' isn't available due to init failure:index locked for write for core collect

Source: Internet
Author: User
Tags solr

Org.apache.solr.common.SolrException:SolrCore ' Collection1 ' isn't available due to init failure:index locked for write For Core Collection1
At Org.apache.solr.core.CoreContainer.getCore (corecontainer.java:753)
At Org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request (embeddedsolrserver.java:110)
At Org.apache.solr.client.solrj.request.QueryRequest.process (queryrequest.java:91)
At Org.apache.solr.client.solrj.SolrServer.query (solrserver.java:301)
At Cn.com.test.TestEmbedded.test (testembedded.java:30)
At Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
At Sun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:57)
At Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:43)
At Java.lang.reflect.Method.invoke (method.java:606)
At Org.junit.internal.runners.TestMethodRunner.executeMethodBody (testmethodrunner.java:99)
At org.junit.internal.runners.TestMethodRunner.runUnprotected (testmethodrunner.java:81)
At org.junit.internal.runners.BeforeAndAfterRunner.runProtected (beforeandafterrunner.java:34)
At Org.junit.internal.runners.TestMethodRunner.runMethod (testmethodrunner.java:75)
At Org.junit.internal.runners.TestMethodRunner.run (testmethodrunner.java:45)
At Org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod (testclassmethodsrunner.java:66)
At Org.junit.internal.runners.TestClassMethodsRunner.run (testclassmethodsrunner.java:35)
At org.junit.internal.runners.testclassrunner$1.rununprotected (testclassrunner.java:42)
At org.junit.internal.runners.BeforeAndAfterRunner.runProtected (beforeandafterrunner.java:34)
At Org.junit.internal.runners.TestClassRunner.run (testclassrunner.java:52)
At Org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run (junit4testreference.java:50)
At Org.eclipse.jdt.internal.junit.runner.TestExecution.run (testexecution.java:38)
At Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (remotetestrunner.java:467)
At Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (remotetestrunner.java:683)
At Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run (remotetestrunner.java:390)
At Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main (remotetestrunner.java:197)
caused By:org.apache.solr.common.SolrException:Index locked for write for core Collection1
At Org.apache.solr.core.solrcore.<init> (solrcore.java:868)
At Org.apache.solr.core.solrcore.<init> (solrcore.java:643)
At Org.apache.solr.core.CoreContainer.create (corecontainer.java:556)
At Org.apache.solr.core.corecontainer$1.call (corecontainer.java:261)
At Org.apache.solr.core.corecontainer$1.call (corecontainer.java:253)
At Java.util.concurrent.FutureTask.run (futuretask.java:262)
At Java.util.concurrent.executors$runnableadapter.call (executors.java:471)
At Java.util.concurrent.FutureTask.run (futuretask.java:262)
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:724)
caused By:org.apache.lucene.store.LockObtainFailedException:Index locked for write for core Collection1
At Org.apache.solr.core.SolrCore.initIndex (solrcore.java:505)
At Org.apache.solr.core.solrcore.<init> (solrcore.java:774)

... Ten more

To report this mistake, just configure <unlockOnStartup>true</unlockOnStartup> this on the solrconfig.xml.

Unlockonstartup tells SOLR to ignore the locking mechanism used to protect the index in a multithreaded environment. In some cases, an index may remain locked due to an incorrect shutdown or other error, which prevents additions and updates. Set it to true to disable startup locking, allowing for additions and updates.


Solrcore ' Collection1 ' isn't available due to init failure:index locked for write for core collect

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.