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

版本: 6.8-8.9

简而言之,当 Elasticsearch 无法从索引 blob 读取仓库数据时,会出现此错误。这可能是由于 blob 损坏、权限不足或与存储后端的连接问题导致的。要解决此问题,您可以尝试以下方法:1) 检查并更正 blob 存储的权限。2) 验证与存储后端的连接。3) 如果 blob 已损坏,请从备份中恢复。4) 如果问题仍然存在,请考虑重新索引数据。

日志上下文 #


日志 “could not read repository data from index blob” 的类名是 BlobStoreRepository.java。 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人使用:

// operations must start from the EMPTY_REPO_GEN again
 if (latestKnownRepoGen.compareAndSet(indexGen; RepositoryData.EMPTY_REPO_GEN)) {
 logger.warn("Resetting repository generation tracker because we failed to read generation [" + indexGen + "]"; ioe);
 }
 }
 throw new RepositoryException(metadata.name(); "could not read repository data from index blob"; ioe);
 }
 }  private static String testBlobPrefix(String seed) {
 return TESTS_FILE + seed;