{
  "id": "elasticsearch/snapshot-in-progress-delete-failed",
  "signature": "SnapshotDeleteException: [my_repo:snapshot_2025] cannot delete snapshot - a snapshot is currently in progress",
  "signature_zh": "快照删除异常：[my_repo:snapshot_2025] 无法删除快照 - 当前有快照正在进行中",
  "regex": "SnapshotDeleteException: \\[\\w+:\\w+\\] cannot delete snapshot - a snapshot is currently in progress",
  "domain": "elasticsearch",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "A delete operation on a snapshot fails because another snapshot in the same repository is currently being created or restored.",
  "root_cause_type": "generic",
  "root_cause_zh": "删除快照操作失败，因为同一仓库中的另一个快照当前正在创建或恢复中。",
  "versions": [
    {
      "version": "elasticsearch 7.17",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "elasticsearch 8.11",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "elasticsearch 8.12",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Direct file deletion can corrupt the repository metadata, making all snapshots in the repository unusable.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Restarting may leave the snapshot in an inconsistent state, requiring manual cleanup and potentially losing data.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Creating a new snapshot while another is in progress can also fail with a ConcurrentSnapshotExecutionException.",
      "fail_rate": 0.65,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Wait for the in-progress snapshot to complete by monitoring snapshot status: GET _snapshot/my_repo/_all and check for 'IN_PROGRESS' state, then retry the delete.",
      "success_rate": 0.95,
      "how": "Wait for the in-progress snapshot to complete by monitoring snapshot status: GET _snapshot/my_repo/_all and check for 'IN_PROGRESS' state, then retry the delete.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Abort the in-progress snapshot if it is stuck: DELETE _snapshot/my_repo/snapshot_in_progress_name (if the snapshot name is known).",
      "success_rate": 0.85,
      "how": "Abort the in-progress snapshot if it is stuck: DELETE _snapshot/my_repo/snapshot_in_progress_name (if the snapshot name is known).",
      "condition": "",
      "sources": []
    },
    {
      "action": "Increase snapshot timeout settings to avoid long-running snapshots: PUT _cluster/settings { \"transient\": { \"snapshot.max_concurrent_operations\": 1 } } to serialize operations.",
      "success_rate": 0.8,
      "how": "Increase snapshot timeout settings to avoid long-running snapshots: PUT _cluster/settings { \"transient\": { \"snapshot.max_concurrent_operations\": 1 } } to serialize operations.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "等待正在进行的快照完成，通过监控快照状态：GET _snapshot/my_repo/_all 并检查 'IN_PROGRESS' 状态，然后重试删除。",
    "如果正在进行的快照卡住，则中止它：DELETE _snapshot/my_repo/snapshot_in_progress_name（如果快照名称已知）。",
    "增加快照超时设置以避免长时间运行的快照：PUT _cluster/settings { \"transient\": { \"snapshot.max_concurrent_operations\": 1 } } 以序列化操作。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-snapshot-api.html",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.86,
  "fix_success_rate": 0.9,
  "resolvable": "true",
  "first_seen": "2025-01-12",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}