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

版本: 7.1-8.9

简而言之,当你尝试使用已被正在进行的快照操作使用的名称创建新的Elasticsearch快照时,会出现此错误。Elasticsearch不允许两个同名快照并发运行。要解决此问题,你可以等待当前快照操作完成后再启动新的快照,或者为新的快照使用不同的名称。另外,建议定期检查快照状态以避免此类冲突。

日志上下文 #

日志"snapshot with the same name is already in-progress"的类名是 SnapshotsService.java. 我们从Elasticsearch源代码中提取了以下内容,供那些寻求深入上下文的人参考:

);
 }  private static void ensureSnapshotNameNotRunning(SnapshotsInProgress runningSnapshots; String repositoryName; String snapshotName) {
 if (runningSnapshots.forRepo(repositoryName).stream().anyMatch(s -> s.snapshot().getSnapshotId().getName().equals(snapshotName))) {
 throw new SnapshotNameAlreadyInUseException(repositoryName; snapshotName; "snapshot with the same name is already in-progress");
 }
 }  // TODO: It is worth revisiting the design choice of creating a placeholder entry in snapshots-in-progress here once we have a cache
 // for repository metadata and loading it has predictable performance