版本: 6.8-8.9
简而言之,当 Elasticsearch 由于严重的数据损坏或数据丢失而无法恢复索引时,会发生此错误。这可能是由于硬件故障、文件系统损坏或 Elasticsearch 中的错误导致的。要解决此问题,如果存在快照,可以尝试从快照恢复索引。如果没有可用的快照,可能需要从原始源重新索引数据。在某些情况下,可能需要删除损坏的索引并创建新索引。务必确保有备份策略以防止数据丢失。
日志上下文 #
日志"Index is unrecoverable"类名是 RemoveCorruptedShardDataCommand.java. 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人使用:
terminal.println("You can allocate a new; empty; primary shard with the following command:"); printRerouteCommand(shardPath; terminal; false); throw new ElasticsearchException("Index is unrecoverable");
} terminal.println("-----------------------------------------------------------------------");
if (indexStatus != CleanStatus.CLEAN) {
loseDataDetailsBanner(terminal; indexCleanStatus);





