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 Ashwin Tandel <as...@gmail.com> on 2013/10/07 21:50:15 UTC

Gracefully stopping jetty server - LockObtainFailedException

Hi,

I have solr cloud(4.1) setup  with embedded jetty server.

I use the below command to start and stop the server.

start server : nohup java -DSTOP.PORT=8085 -DSTOP.KEY=<key> -DnumShards=2
 -Dbootstrap_confdir=./solr/nlp/conf -Dcollection.configName=myconf
-DzkHost=10.88.139.206:2181,10.88.139.206:2182,10.88.139.206:2183 -jar
start.jar > output.log 2>&1 &

Stop Server :  java -DSTOP.PORT=8085 -DSTOP.KEY=<key>  -jar start.jar --stop

What I have observed is once I stop the server and start again, while
indexing it gives me 'org.apache.lucene.store.LockObtainFailedException:
Lock obtain timed out:' with the 'NativeFSLock@solr
/nlp/data/index.20130924205253479/write.lock'

after I delete lock file manually and start the server, indexing works fine.

Please let me know how we can resolve this. If this issue is answered
earlier, I would appreciate pointing me to the url, tried finding it but
could not.



Thanks in Advance,
Ashwin