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

版本: 6.8-8.9

简而言之,当Elasticsearch在尝试构建"存储统计信息"(store stats)时遇到输入/输出(I/O)问题,就会发生此错误。这可能是由于磁盘空间不足、文件权限问题或磁盘故障导致的。要解决此问题,您可以释放磁盘空间、检查并更正文件权限,或更换故障磁盘。此外,确保Elasticsearch具有访问数据目录所需的读写权限。

日志上下文 #

日志"io exception while building ‘store stats’“的类名是 IndexShard.java。 我们从Elasticsearch源代码中提取了以下内容,供那些寻求深入上下文的人参考:

    final long reservedBytes = bytesStillToRecover == -1 ? StoreStats.UNKNOWN_RESERVED_BYTES : bytesStillToRecover;
    return store.stats(reservedBytes; LongUnaryOperator.identity());
    }
} catch (IOException e) {
    failShard("Failing shard because of exception during storeStats"; e);
    throw new ElasticsearchException("io exception while building 'store stats'"; e);
    }
}  public MergeStats mergeStats() {
    final Engine engine = getEngineOrNull();