# WiredTiger 错误：检测到检查点停滞：无法在 60 秒内创建检查点

- **ID:** `mongodb/wiredtiger-checkpoint-stall`
- **领域:** mongodb
- **类别:** system_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

高写入负载或磁盘 I/O 争用阻止 WiredTiger 在配置的超时时间内完成检查点。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| MongoDB 6.0 | active | — | — |
| MongoDB 7.0 | active | — | — |
| MongoDB 8.0 | active | — | — |

## 解决方案

1. ```
   Monitor disk I/O with iostat or MongoDB's serverStatus().wiredTiger.concurrentTransactions and upgrade to faster storage (e.g., NVMe SSDs) if needed.
   ```
2. ```
   Reduce write load by throttling application writes or using write concerns with lower durability (e.g., w:1 instead of w:majority).
   ```
3. ```
   Increase checkpoint timeout via storage.wiredTiger.engineConfig.checkpointWaitTimeoutSecs in the configuration file.
   ```

## 无效尝试

- **** — Smaller cache increases I/O pressure, potentially stalling checkpoints more. (70% 失败率)
- **** — Checkpoints are still needed for durability; disabling journaling doesn't eliminate checkpoint requirement. (80% 失败率)
- **** — Longer intervals may accumulate more dirty data, making checkpoints even slower. (60% 失败率)
