-
Notifications
You must be signed in to change notification settings - Fork 287
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
Using special comment syntax with /*!90000 */ caused TiCDC to report an error. #3755
Comments
I'll transfer this issue to repo TiCDC. |
Is your downstream TiDB or MySQL? |
In my case ,downstream is TiDB. |
@sdojjy The pr related to this issue can rewrite the following DDL to compatible with MySQL? [2021/12/17 11:24:16.467 +08:00] [WARN] [mysql.go:218] ["execute DDL with error, retry later"] [query="/* init */ create table t (id int primary key, v int) shard_row_id_bits 4;"] [error="[CDC:ErrMySQLTxnError]Error 8200: Unsupported shard_row_id_bits for table with primary key as row id"] [errorVerbose="[CDC:ErrMySQLTxnError]Error 8200: Unsupported shard_row_id_bits for table with primary key as row Move "shard_row_id_bits 4;" to SQL comment ? |
@maxshuang #3845 will rewrite |
TiCDC introduced this bug in v4.0.0, and it is fixed since v5.2.0. |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
I found that creating a table by using special comment syntax with
/*!90000 */
caused TiCDC to report an error.The following step:
2. What did you expect to see? (Required)
TiCDC can sync DDL to downstream successfully.
3. What did you see instead (Required)
TiCDC cause the error
4. What is your TiDB version? (Required)
TiDB & TiCDC: v5.0.3
The text was updated successfully, but these errors were encountered: