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

sink to mariadb 10.6.5 fails with unknown system variable transaction_isolation #4504

Closed
hicqu opened this issue Feb 7, 2022 · 1 comment · Fixed by #4569
Closed

sink to mariadb 10.6.5 fails with unknown system variable transaction_isolation #4504

hicqu opened this issue Feb 7, 2022 · 1 comment · Fixed by #4569
Assignees
Labels
area/ticdc Issues or PRs related to TiCDC. severity/moderate type/bug The issue is confirmed as a bug.

Comments

@hicqu
Copy link
Contributor

hicqu commented Feb 7, 2022

What did you do?

Create a sink to downstream mariadb 10.6.5.

What did you expect to see?

The downstream can be created without any errors.

What did you see instead?

$ ./cdc cli changefeed list
[
  {
    "id": "test",
    "summary": {
      "state": "error",
      "tso": 431019101257728000,
      "checkpoint": "2022-02-07 12:16:27.000",
      "error": {
        "addr": "192.168.101.2:8300",
        "code": "CDC:ErrOwnerUnknown",
        "message": "[CDC:ErrMySQLConnectionError]fail to open MySQL connection: Error 1193: Unknown system variable 'transaction_isolation'"
      }
    }
  }
]

$ mysql -h 127.0.0.1 -P 3306 -u root -p -e "show variables like '%isolation%'";
Enter password:
+---------------+-----------------+
| Variable_name | Value           |
+---------------+-----------------+
| tx_isolation  | REPEATABLE-READ |
+---------------+-----------------+

Seems in mariadb 10.6.5 the variable name has been changed from "transaction_isolation" to "tx_isolation", and it causes the failure.

Versions of the cluster

Upstream TiDB cluster version (execute SELECT tidb_version(); in a MySQL client):

(paste TiDB cluster version here)

TiCDC version (execute cdc version):

(paste TiCDC version here)
@hicqu hicqu added type/bug The issue is confirmed as a bug. area/ticdc Issues or PRs related to TiCDC. labels Feb 7, 2022
@amyangfei
Copy link
Contributor

PTAL @maxshuang

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. severity/moderate type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants