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

版本: 6.8-8.9

简而言之,当 Elasticsearch 无法从已启动的分片加载数据时,会出现此错误。这可能是由于内存不足、磁盘空间不足或数据损坏等问题造成的。要解决此问题,您可以尝试增加 Elasticsearch 的内存分配,释放磁盘空间,或从备份恢复数据。如果问题仍然存在,您可能需要重建索引。

日志上下文 #

日志 “failed to load started shards” 的类名是 TransportNodesListGatewayStartedShards.java. 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入背景的人参考:

return new NodeGatewayStartedShards(clusterService.localNode(); allocationId; shardStateMetadata.primary);
 }
 logger.trace("{} no local shard info found"; shardId);
 return new NodeGatewayStartedShards(clusterService.localNode(); null; false);
 } catch (Exception e) {
 throw new ElasticsearchException("failed to load started shards"; e);
 }
 }  public static class Request extends BaseNodesRequest{