版本: 7.1-7.13
简而言之,当 Elasticsearch 无法复制现有索引时,就会出现此错误,可能是由于权限不足、磁盘空间不足或索引处于打开状态所致。要解决此问题,您可以确保用户具有必要的权限,释放或添加更多磁盘空间,或者在克隆之前关闭索引。此外,还要检查可能导致此问题的任何底层系统或网络问题。
日志上下文 #
日志 “Can’t clone index [” 的类名是 SnapshotsService.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人参考:
final GroupedActionListener> shardCountListener =
new GroupedActionListener<>(allShardCountsListener; indices.size());
snapshotInfoListener.whenComplete(snapshotInfo -> {
for (IndexId indexId : indices) {
if (RestoreService.failed(snapshotInfo; indexId.getName())) {
throw new SnapshotException(targetSnapshot; "Can't clone index [" + indexId +
"] because its snapshot was not successful.");
}
}
// 2. step; load the number of shards we have in each index to be cloned from the index metadata.
repository.getRepositoryData(ActionListener.wrap(repositoryData -> {





