Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDC OOM when sysbench prepare 1000 table (100000 rows) when redo is on #10255

Open
fubinzh opened this issue Dec 6, 2023 · 5 comments
Open
Assignees
Labels
area/ticdc Issues or PRs related to TiCDC. type/enhancement The issue or PR belongs to an enhancement.

Comments

@fubinzh
Copy link

fubinzh commented Dec 6, 2023

What did you do?

  1. TiDB cluster with 3 CDC (2C 16G)
  2. Create mysql sink changefeed with redo on
bash-5.1# /cdc cli changefeed --server http://127.0.0.1:8301 query -c redo-basic-s3-partition
{
  "upstream_id": 7309132325626639995,
  "namespace": "default",
  "id": "redo-basic-s3-partition",
  "sink_uri": "mysql://root:[email protected]:3306",
  "config": {
    "memory_quota": 1073741824,
    "case_sensitive": false,
    "enable_old_value": true,
    "force_replicate": false,
    "ignore_ineligible_table": false,
    "check_gc_safe_point": true,
    "enable_sync_point": false,
    "bdr_mode": false,
    "sync_point_interval": 600000000000,
    "sync_point_retention": 86400000000000,
    "filter": {
      "rules": [
        "*.*"
      ],
      "event_filters": null
    },
    "mounter": {
      "worker_num": 16
    },
    "sink": {
      "protocol": "",
      "schema_registry": "",
      "csv": {
        "delimiter": ",",
        "quote": "\"",
        "null": "\\N",
        "include_commit_ts": false,
        "binary_encoding_method": "base64"
      },
      "column_selectors": null,
      "transaction_atomicity": "",
      "encoder_concurrency": 16,
      "terminator": "\r\n",
      "date_separator": "day",
      "enable_partition_separator": true,
      "file_index_width": 0,
      "kafka_config": null,
      "advance_timeout": 150
    },
    "consistent": {
      "level": "eventual",
      "max_log_size": 64,
      "flush_interval": 2000,
      "meta_flush_interval": 200,
      "encoding_worker_num": 16,
      "flush_worker_num": 8,
      "storage": "s3://tmp/test-infra-redolog/redo-basic-s3-partition-6950af25-1300-41dd-97f3-01e06c879c66?access-key=xxz\u0026secret-access-key=xxx\u0026endpoint=http://xxx:9000\u0026force-path-style=true",
      "use_file_backend": false
    },
    "changefeed_error_stuck_duration": 1800000000000,
    "sql_mode": "ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
  },
  "create_time": "2023-12-05 15:28:33.096",
  "start_ts": 446114067381223436,
  "resolved_ts": 446115244722356227,
  "target_ts": 0,
  "checkpoint_tso": 446115243358946105,
  "checkpoint_time": "2023-12-05 16:43:18.995",
  "sort_engine": "unified",
  "state": "failed",
  "error": null,
  "error_history": null,
  "creator_version": "v6.5.6-pr10254"
}

  1. run workload
sysbench --db-driver=mysql --mysql-host=xxx  --mysql-port=4000 --mysql-user=root --mysql-db=workload --tables=1000 --table-size=100000 --create_secondary=off --debug=true --threads=10 --mysql-ignore-errors=2013,1213,1105,1205,8022,8027,8028,9004,9007,1062 oltp_write_only prepare

What did you expect to see?

CDC should not OOM

What did you see instead?

CDC OOM.

image

Versions of the cluster

CDC version:
[release-version=v6.5.6] [git-hash=067bb8031fd2d15763b464052a1e550a81af2196]

@fubinzh fubinzh added area/ticdc Issues or PRs related to TiCDC. type/bug The issue is confirmed as a bug. labels Dec 6, 2023
@fubinzh
Copy link
Author

fubinzh commented Dec 6, 2023

/label affects-6.5

@ti-chi-bot ti-chi-bot bot added the affects-6.5 This bug affects the 6.5.x(LTS) versions. label Dec 6, 2023
@fubinzh
Copy link
Author

fubinzh commented Dec 6, 2023

/severity major

@zhangjinpeng87
Copy link
Contributor

@fubinzh These 3 TiCDC nodes deployed in one node or separate nodes?

@nongfushanquan
Copy link
Contributor

/assign @sdojjy

@ti-chi-bot ti-chi-bot added the affects-8.1 This bug affects the 8.1.x(LTS) versions. label Apr 9, 2024
@flowbehappy flowbehappy added type/enhancement The issue or PR belongs to an enhancement. and removed type/bug The issue is confirmed as a bug. labels Apr 26, 2024
@flowbehappy
Copy link
Collaborator

It should be an enhancement, instead of bug.

@asddongmen asddongmen added affects-6.1 This bug affects the 6.1.x(LTS) versions. affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. and removed severity/major may-affects-5.4 may-affects-6.1 may-affects-7.1 may-affects-7.5 labels Apr 26, 2024
@flowbehappy flowbehappy removed affects-6.1 This bug affects the 6.1.x(LTS) versions. affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. labels May 7, 2024
@flowbehappy flowbehappy removed the affects-8.1 This bug affects the 8.1.x(LTS) versions. label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ticdc Issues or PRs related to TiCDC. type/enhancement The issue or PR belongs to an enhancement.
Projects
Status: Need Triage
Development

No branches or pull requests

7 participants