# 快照进行中异常：快照 [my_repo:snapshot_2025] 正在进行中，在当前快照完成或取消之前无法启动新快照

- **ID:** `elasticsearch/snapshot-in-progress-timeout`
- **领域:** elasticsearch
- **类别:** resource_error
- **验证级别:** ai_generated
- **修复率:** 90%

## 根因

在同一个仓库中另一个快照仍在运行时尝试并发创建快照，这是不允许的。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 7.10.0 | active | — | — |
| 7.17.0 | active | — | — |
| 8.0.0 | active | — | — |

## 解决方案

1. ```
   Cancel the ongoing snapshot: `POST _snapshot/my_repo/snapshot_2025/_cancel` then wait for completion before starting a new one.
   ```
2. ```
   If cancellation fails, delete the snapshot: `DELETE _snapshot/my_repo/snapshot_2025` (only if it is stuck and no data is needed).
   ```

## 无效尝试

- **** — The error is not a timeout issue but a concurrency conflict; timeout settings do not prevent concurrent snapshots. (95% 失败率)
- **** — Restarting may cause data loss or corruption; the snapshot lock is stored in the cluster state and may persist after restart. (80% 失败率)
