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

版本: 6.8-8.9

简要来说,当Elasticsearch无法列出或访问仓库中的Blob(二进制大对象)时,会出现此错误,通常是由于权限配置不正确或连接问题导致的。要解决此问题,您可以检查仓库的配置,确保Elasticsearch拥有访问该仓库所需的必要权限。此外,请验证Elasticsearch与仓库之间的网络连接。如果仓库是基于云的,请确保云服务正常运行且可访问。最后,检查Blob存储是否已满,因为这也可能导致该错误。

日志上下文 #

日志 “failed to list blobs” 的类名是 BlobStoreRepository.java。 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人参考:

if (generation == null) {
 snapshotStatus.ensureNotAborted();
 try {
 blobs = shardContainer.listBlobsByPrefix(INDEX_FILE_PREFIX).keySet();
 } catch (IOException e) {
 throw new IndexShardSnapshotFailedException(shardId; "failed to list blobs"; e);
 }
 } else {
 blobs = Collections.singleton(INDEX_FILE_PREFIX + generation);
 }