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

版本: 6.8-8.9

简而言之,当 Elasticsearch 无法删除特定数据时会出现此错误,可能是由于权限不足、索引名称不正确或数据当前正在被使用。要解决此问题,请确保您拥有删除数据的正确权限。检查索引名称是否正确,以及数据是否未被任何正在运行的进程使用。如果数据被锁定,请尝试在删除之前解锁或关闭索引。此外,确保 Elasticsearch 集群处于健康状态。

日志上下文 #

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

if (isReadOnly() == false) {
 try {
 final String testPrefix = testBlobPrefix(seed);
 blobStore().blobContainer(basePath().add(testPrefix)).delete();
 } catch (Exception exp) {
 throw new RepositoryVerificationException(metadata.name(); "cannot delete test data at " + basePath(); exp);
 }
 }
 }  // Tracks the latest known repository generation in a best-effort way to detect inconsistent listing of root level index-N blobs