lucene - Could not lock IndexWriter isLocked [false] -


i try create index in couple of seconds , got this:

[2014-06-02 14:10:14,414][warn ][index.engine.internal    ] [shardicaprio] [myindex][0] not lock indexwriter islocked [false] 

and here full stack trace:

org.apache.lucene.store.lockobtainfailedexception: lock obtain timed out: nativefslock@/var/lib/elasticsearch/data/shardicaprio/nodes/0/indices/myindex/0/index/write.lock         @ org.apache.lucene.store.lock.obtain(lock.java:84)         @ org.apache.lucene.index.indexwriter.<init>(indexwriter.java:702)         @ org.elasticsearch.index.engine.internal.internalengine.createwriter(internalengine.java:1388)         @ org.elasticsearch.index.engine.internal.internalengine.start(internalengine.java:256)         @ org.elasticsearch.index.shard.service.internalindexshard.postrecovery(internalindexshard.java:684)         @ org.elasticsearch.index.gateway.local.localindexshardgateway.recover(localindexshardgateway.java:158)         @ org.elasticsearch.index.gateway.indexshardgatewayservice$1.run(indexshardgatewayservice.java:189)         @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145)         @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615)         @ java.lang.thread.run(thread.java:745) [2014-06-02 14:10:14,533][warn ][indices.cluster          ] [shardicaprio] [myindex][0] failed start shard org.elasticsearch.index.gateway.indexshardgatewayrecoveryexception: [myindex][0] failed recovery         @ org.elasticsearch.index.gateway.indexshardgatewayservice$1.run(indexshardgatewayservice.java:248)         @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145)         @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615)         @ java.lang.thread.run(thread.java:745) caused by: org.elasticsearch.index.engine.enginecreationfailureexception: [myindex][0] failed create engine         @ org.elasticsearch.index.engine.internal.internalengine.start(internalengine.java:258)         @ org.elasticsearch.index.shard.service.internalindexshard.postrecovery(internalindexshard.java:684)         @ org.elasticsearch.index.gateway.local.localindexshardgateway.recover(localindexshardgateway.java:158)         @ org.elasticsearch.index.gateway.indexshardgatewayservice$1.run(indexshardgatewayservice.java:189)         ... 3 more caused by: org.apache.lucene.store.lockobtainfailedexception: lock obtain timed out: nativefslock@/var/lib/elasticsearch/data/shardicaprio/nodes/0/indices/myindex/0/index/write.lock         @ org.apache.lucene.store.lock.obtain(lock.java:84)         @ org.apache.lucene.index.indexwriter.<init>(indexwriter.java:702)         @ org.elasticsearch.index.engine.internal.internalengine.createwriter(internalengine.java:1388)         @ org.elasticsearch.index.engine.internal.internalengine.start(internalengine.java:256)         ... 6 more [2014-06-02 14:10:14,536][warn ][cluster.action.shard     ] [shardicaprio] [myindex][0] sending failed shard [myindex][0], node[khoedr2wqpa3dszj81ep_a], [p], s[initializing], indexuuid [29uf2hh4s2-fjf1lnnrm0a], reason [failed start shard, message [indexshardgatewayrecoveryexception[[myindex][0] failed recovery]; nested: enginecreationfailureexception[[myindex][0] failed create engine]; nested: lockobtainfailedexception[lock obtain timed out: nativefslock@/var/lib/elasticsearch/data/shardicaprio/nodes/0/indices/myindex/0/index/write.lock]; ]] [2014-06-02 14:10:14,536][warn ][cluster.action.shard     ] [shardicaprio] [myindex][0] received shard failed [myindex][0], node[khoedr2wqpa3dszj81ep_a], [p], s[initializing], indexuuid [29uf2hh4s2-fjf1lnnrm0a], reason [failed start shard, message [indexshardgatewayrecoveryexception[[myindex][0] failed recovery]; nested: enginecreationfailureexception[[myindex][0] failed create engine]; nested: lockobtainfailedexception[lock obtain timed out: nativefslock@/var/lib/elasticsearch/data/shardicaprio/nodes/0/indices/myindex/0/index/write.lock]; ]] 

i have no memory overloading, heapsize fine, cpu. cpu gets overload more 100% of usage. tried recover index, delete index, recreate index tells same thing every time. not figure out causes this.

any idea?

i did not face problem again since have added line elasticsearch.

index.store.fs.lock: none 

i think caused file system locking elasticsearch. if elasticsearch instance not lock store file system not occur.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -