failed to obtain in-memory shard lock

Posted 李昊轩的博客

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了failed to obtain in-memory shard lock相关的知识,希望对你有一定的参考价值。

问题原因:

  • 出现这个问题的原因是原有分片未正常关闭和清理,所以当分片要重新分配回出问题节点的时候没有办法获得分片锁。
  • 这不会造成分片数据丢失,只需要重新触发一下分配

恢复指令

curl -XPOST http://localhost:9200/_cluster/reroute?retry_failed

查看详情

curl -XGET http://localhost:9200/_cluster/allocation/explain

以上是关于failed to obtain in-memory shard lock的主要内容,如果未能解决你的问题,请参考以下文章

Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection

failed to obtain in-memory shard lock

failed to obtain in-memory shard lock

elastic search报错——“failed to obtain node locks”

error obtaining controller instance: failed to create NAT chain

TableView报错 failed to obtain a cell from its dataSource