My online cluster frequently suffered from A lot many so sucked LockObtainFailedException

(Yunfeng,Wu) #1

One of my online cluster start Elasticsearch(2.3.3) using the Linux supervise. May be some network reason, or may suffer from FullGC , a lot of LockObtainFailedException happened on some node, a lot of shard created failure, all logs looks like below:

ElasticsearchException[failed to create shard]; nested: LockObtainFailedException[Can't lock shard [wallet-bi-usertags-pass][40], timed out after 5000ms];
at org.elasticsearch.index.IndexService.createShard(
at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyInitializingShard(
at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyNewOrUpdatedShards(
at org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(
at org.elasticsearch.cluster.service.InternalClusterService.runTasksForExecutor(
at org.elasticsearch.cluster.service.InternalClusterService$
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$
  Caused by: Can't lock shard [wallet-bi-usertags-pass][40], timed out after 5000ms
at org.elasticsearch.env.NodeEnvironment$InternalShardLock.acquire(
at org.elasticsearch.env.NodeEnvironment.shardLock(
at org.elasticsearch.index.IndexService.createShard(
... 10 more

I suspect that when elasticsearch shutdown, and then dragged by supervise proccess, the Lucene write.lock does not realease by the elasticsearch JVM process.
Is there someone encountered the same so sucked situation like me? My current solution is killing the elasticsearch process, and then all things is ok...., but this will happen another day ....... so sucked...
Please help me....:sob:

(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.