You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by atp <an...@hcl.com> on 2014/06/23 16:29:12 UTC

Solrcloud- index lock

Hi ,

we have configured three node solrcloud., with zookeeper , and tomcat . but
when we start solr, throwing error in one of the node, we configured
dataimporthandler as well, 

SolrCore 'collection1' is not available due to init failure: Index locked
for write for core collection1

not yet started the indexing , its a fresh configuration, 

tried the below resolution but no luck, 

removed lock files from from all the nodes  ../collection1/data directory,
then restarted , also tried with removing data folder aswell , but continued
throwing this lock error in one of the node, 

last couple of days we struggling this , please help to resolve this. 


ERROR - 2014-06-23 19:35:34.328; org.apache.solr.common.SolrException; Error
while trying to recover.
core=collection1:java.util.concurrent.ExecutionException:
org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:
SolrCore 'collection1' is not available due to init failure: Index locked
for write for core collection1
	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.util.concurrent.FutureTask.get(FutureTask.java:188)
	at
org.apache.solr.cloud.RecoveryStrategy.sendPrepRecoveryCmd(RecoveryStrategy.java:611)
	at
org.apache.solr.cloud.RecoveryStrategy.doRecovery(RecoveryStrategy.java:370)
	at org.apache.solr.cloud.RecoveryStrategy.run(RecoveryStrategy.java:235)
Caused by:
org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:
SolrCore 'collection1' is not available due to init failure: Index locked
for write for core collection1
	at
org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:554)
	at
org.apache.solr.client.solrj.impl.HttpSolrServer$1.call(HttpSolrServer.java:245)
	at
org.apache.solr.client.solrj.impl.HttpSolrServer$1.call(HttpSolrServer.java:241)
	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:745)

ERROR - 2014-06-23 19:35:34.328; org.apache.solr.cloud.RecoveryStrategy;
Recovery failed - trying again... (0) core=collection1
INFO  - 2014-06-23 19:35:34.328; org.apache.solr.cloud.RecoveryStrategy;
Wait 2.0 seconds before trying to recover again (1)
INFO  - 2014-06-23 19:35:36.329; org.apache.solr.cloud.ZkController;
publishing core=collection1 state=recovering collection=collection1
INFO  - 2014-06-23 19:35:36.329; org.apache.solr.cloud.ZkController;
numShards not found on descriptor - reading it from system property

Thanks





--
View this message in context: http://lucene.472066.n3.nabble.com/Solrcloud-index-lock-tp4143446.html
Sent from the Solr - User mailing list archive at Nabble.com.