How to remove write-lock for elasticsearch segment after reindexing?
Looking at the stack trace there is a missing Lucene file which is not good. Did this index/shard have any docs in it before shutdown? Can you list the current files in the data1/data/nodes/0/indices/XqfshaweRp-5GAXbK7C_qA/23/index directory?
Caused by: java.io.FileNotFoundException: no segments* file found in store(mmapfs(E:\nice_systems\RTServer\Elasticsearch\data\nodes\0\indices\AgGE3T0CQqmNUbTa7mgxog\0\index)): files: [recovery.AXzg-JDdOOIh9tEF6n7G._f7t.dii, recovery.AXzg-JDdOOIh9tEF6n7G._f7t.fdx, recovery.AXzg-JDdOOIh9tEF6n7G._f7t_2.liv, recovery.AXzg-JDdOOIh9tEF6n7G._f8p.si, recovery.AXzg-JDdOOIh9tEF6n7G._f8q.cfe, write.lock]
How to remove write-lock for Elasticsearch segment after reindexing?
Error we are getting is -
Caused by: java.io.FileNotFoundException: no segments* file found in store(mmapfs(E:\nice_systems\RTServer\Elasticsearch\data\nodes\0\indices\AgGE3T0CQqmNUbTa7mgxog\0\index)): files: [recovery.AXzg-JDdOOIh9tEF6n7G._f7t.dii, recovery.AXzg-JDdOOIh9tEF6n7G._f7t.fdx, recovery.AXzg-JDdOOIh9tEF6n7G._f7t_2.liv, recovery.AXzg-JDdOOIh9tEF6n7G._f8p.si, recovery.AXzg-JDdOOIh9tEF6n7G._f8q.cfe, write.lock]
There is no need to manually remove anything from the data path. The error you shared is not a big problem and (as long as nothing else is wrong) Elasticsearch will resolve it itself.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.