elasticsearch
resource_error
ai_generated
true
快照进行中异常:快照 [my_repo:snapshot_2025] 正在进行中,在当前快照完成或取消之前无法启动新快照
SnapshotInProgressException: snapshot [my_repo:snapshot_2025] is already in progress, cannot start new snapshot until current one completes or is cancelled
ID: elasticsearch/snapshot-in-progress-timeout
90%修复率
90%置信度
1证据数
2024-06-10首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 7.10.0 | active | — | — | — |
| 7.17.0 | active | — | — | — |
| 8.0.0 | active | — | — | — |
根因分析
在同一个仓库中另一个快照仍在运行时尝试并发创建快照,这是不允许的。
English
A concurrent snapshot creation was attempted while another snapshot is still running in the same repository, which is not allowed.
官方文档
https://www.elastic.co/guide/en/elasticsearch/reference/7.17/snapshot-restore.html解决方案
-
Cancel the ongoing snapshot: `POST _snapshot/my_repo/snapshot_2025/_cancel` then wait for completion before starting a new one.
-
If cancellation fails, delete the snapshot: `DELETE _snapshot/my_repo/snapshot_2025` (only if it is stuck and no data is needed).
无效尝试
常见但无效的做法:
-
95% 失败
The error is not a timeout issue but a concurrency conflict; timeout settings do not prevent concurrent snapshots.
-
80% 失败
Restarting may cause data loss or corruption; the snapshot lock is stored in the cluster state and may persist after restart.