mongodb
system_error
ai_generated
partial
WiredTiger 错误:检测到检查点停滞:无法在 60 秒内创建检查点
WiredTiger error: checkpoint stall detected: unable to create checkpoint within 60 seconds
ID: mongodb/wiredtiger-checkpoint-stall
80%修复率
85%置信度
1证据数
2023-08-20首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| MongoDB 6.0 | active | — | — | — |
| MongoDB 7.0 | active | — | — | — |
| MongoDB 8.0 | active | — | — | — |
根因分析
高写入负载或磁盘 I/O 争用阻止 WiredTiger 在配置的超时时间内完成检查点。
English
High write load or disk I/O contention prevents WiredTiger from completing a checkpoint within the configured timeout.
解决方案
-
Monitor disk I/O with iostat or MongoDB's serverStatus().wiredTiger.concurrentTransactions and upgrade to faster storage (e.g., NVMe SSDs) if needed.
-
Reduce write load by throttling application writes or using write concerns with lower durability (e.g., w:1 instead of w:majority).
-
Increase checkpoint timeout via storage.wiredTiger.engineConfig.checkpointWaitTimeoutSecs in the configuration file.
无效尝试
常见但无效的做法:
-
70% 失败
Smaller cache increases I/O pressure, potentially stalling checkpoints more.
-
80% 失败
Checkpoints are still needed for durability; disabling journaling doesn't eliminate checkpoint requirement.
-
60% 失败
Longer intervals may accumulate more dirty data, making checkpoints even slower.