{
  "id": "mongodb/queryable-backup-mode-failed",
  "signature": "MongoServerError: Queryable backup mode failed to create consistent snapshot: operationTime too far behind",
  "signature_zh": "MongoServerError：可查询备份模式无法创建一致性快照：操作时间落后太多",
  "regex": "Queryable backup mode failed to create consistent snapshot: operationTime too far behind",
  "domain": "mongodb",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "The secondary node's oplog window is insufficient to provide a consistent snapshot for queryable backup mode due to high write volume or slow replication.",
  "root_cause_type": "generic",
  "root_cause_zh": "由于高写入量或复制缓慢，从节点的oplog窗口不足以提供可查询备份模式所需的一致性快照。",
  "versions": [
    {
      "version": "mongodb 6.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "mongodb 7.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Restarting clears the oplog cache but does not increase the oplog size or speed up catching up to the primary; lag may resume immediately.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Lowering write concern does not affect the total write load; it only changes acknowledgment behavior, potentially causing data loss in failover.",
      "fail_rate": 0.75,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "operationTime is a server-side logical clock; manual changes are rejected and can cause snapshot inconsistency.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Increase oplog size on all replica set members: `db.adminCommand({ replSetResizeOplog: 1, size: 20480 })` (20GB) to retain more history for queryable backup.",
      "success_rate": 0.85,
      "how": "Increase oplog size on all replica set members: `db.adminCommand({ replSetResizeOplog: 1, size: 20480 })` (20GB) to retain more history for queryable backup.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Reduce write load on the primary during backup windows by throttling application writes or scheduling backups during off-peak hours.",
      "success_rate": 0.7,
      "how": "Reduce write load on the primary during backup windows by throttling application writes or scheduling backups during off-peak hours.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use `db.adminCommand({ setParameter: 1, queryableBackupModeSeconds: 600 })` to increase the allowed backup window from default 300 seconds to 600 seconds.",
      "success_rate": 0.78,
      "how": "Use `db.adminCommand({ setParameter: 1, queryableBackupModeSeconds: 600 })` to increase the allowed backup window from default 300 seconds to 600 seconds.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Increase oplog size on all replica set members: `db.adminCommand({ replSetResizeOplog: 1, size: 20480 })` (20GB) to retain more history for queryable backup.",
    "Reduce write load on the primary during backup windows by throttling application writes or scheduling backups during off-peak hours.",
    "Use `db.adminCommand({ setParameter: 1, queryableBackupModeSeconds: 600 })` to increase the allowed backup window from default 300 seconds to 600 seconds."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://www.mongodb.com/docs/manual/tutorial/queryable-backup/",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.8,
  "resolvable": "partial",
  "first_seen": "2024-08-22",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}