📣 极限科技诚招搜索运维工程师(Elasticsearch/Easysearch)- 全职/北京 👉 : 立即申请加入

版本: 7-7.2

简要地说,当 Elasticsearch 无法找到损坏标记文件时会发生此错误,该文件通常在检测到索引损坏时创建。这可能是由于恢复过程失败或磁盘问题导致的。要解决此问题,您可以尝试手动恢复索引、检查磁盘是否存在错误,或从备份恢复索引。如果这些方法都不起作用,您可能需要删除并重新创建索引。

日志上下文 #

日志"没有损坏文件标记"的类名是 RemoveCorruptedLuceneSegmentsAction.java. 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入背景的人参考:

}
 }  protected void checkCorruptMarkerFileIsPresent(Directory directory) throws IOException {
 if (RemoveCorruptedShardDataCommand.isCorruptMarkerFileIsPresent(directory) == false) {
 throw new ElasticsearchException("There is no corruption file marker");
 }
 } }