{
  "id": "aws/rds-storage-full",
  "signature": "MySQL server has gone away: error 1114 (HY000) The table '/rdsdbdata/tmp/#sql_xxx' is full",
  "signature_zh": "MySQL 服务器已断开：错误 1114 (HY000) 表 '/rdsdbdata/tmp/#sql_xxx' 已满",
  "regex": "MySQL server has gone away: error 1114 \\(HY000\\) The table '.*' is full",
  "domain": "aws",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "RDS instance storage is exhausted, causing temporary tables or data files to fail writes; often due to insufficient allocated storage or unoptimized queries generating large temp tables.",
  "root_cause_type": "generic",
  "root_cause_zh": "RDS 实例存储已耗尽，导致临时表或数据文件写入失败；通常是由于分配的存储不足或未优化的查询生成了大量临时表。",
  "versions": [
    {
      "version": "rds-mysql-8.0.35",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "rds-mariadb-10.6.16",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Restart the RDS instance to clear temporary tables",
      "why_fails": "Restarting may free temp space temporarily, but if storage is full, the root cause (disk space) persists and queries will fail again.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "Increase innodb_buffer_pool_size to reduce disk I/O",
      "why_fails": "Buffer pool size affects memory, not disk storage; it won't free up space on the volume.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Modify RDS instance to increase allocated storage: `aws rds modify-db-instance --db-instance-identifier mydb --allocated-storage 200 --apply-immediately`",
      "success_rate": 0.9,
      "how": "Modify RDS instance to increase allocated storage: `aws rds modify-db-instance --db-instance-identifier mydb --allocated-storage 200 --apply-immediately`",
      "condition": "",
      "sources": []
    },
    {
      "action": "Clean up old data or logs: delete unused tables, truncate binary logs with `CALL mysql.rds_rotate_binlog;` or reduce binlog retention.",
      "success_rate": 0.75,
      "how": "Clean up old data or logs: delete unused tables, truncate binary logs with `CALL mysql.rds_rotate_binlog;` or reduce binlog retention.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Optimize queries to use indexes and avoid large temp tables; set tmp_table_size and max_heap_table_size to allow in-memory temp tables.",
      "success_rate": 0.65,
      "how": "Optimize queries to use indexes and avoid large temp tables; set tmp_table_size and max_heap_table_size to allow in-memory temp tables.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "修改 RDS 实例以增加分配的存储：`aws rds modify-db-instance --db-instance-identifier mydb --allocated-storage 200 --apply-immediately`",
    "清理旧数据或日志：删除未使用的表，使用 `CALL mysql.rds_rotate_binlog;` 轮换二进制日志或减少 binlog 保留时间。",
    "优化查询以使用索引并避免大型临时表；设置 tmp_table_size 和 max_heap_table_size 以允许内存临时表。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Troubleshooting.html#CHAP_Troubleshooting.StorageFull",
  "official_doc_section": null,
  "error_code": "1114",
  "verification_tier": "ai_generated",
  "confidence": 0.82,
  "fix_success_rate": 0.85,
  "resolvable": "true",
  "first_seen": "2023-08-20",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}