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(ticdc): Add DDL event of debezium protocol #11599

Closed
wants to merge 21 commits into from
Closed
1 change: 1 addition & 0 deletions cdc/sink/ddlsink/mq/mq_ddl_sink_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,4 +290,5 @@ func TestGetDLLDispatchRuleByProtocol(t *testing.T) {
require.Equal(t, PartitionAll, getDDLDispatchRule(config.ProtocolMaxwell))
require.Equal(t, PartitionAll, getDDLDispatchRule(config.ProtocolCraft))
require.Equal(t, PartitionAll, getDDLDispatchRule(config.ProtocolSimple))
require.Equal(t, PartitionAll, getDDLDispatchRule(config.ProtocolDebezium))
}
5 changes: 5 additions & 0 deletions errors.toml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,11 @@ error = '''
cannot find mysql.tidb_ddl_job schema
'''

["CDC:ErrDDLUnsupportType"]
error = '''
unsupport ddl type %s
'''

["CDC:ErrDatumUnflatten"]
error = '''
unflatten datume data
Expand Down
4 changes: 4 additions & 0 deletions pkg/errors/cdc_errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ var (
"cannot find mysql.tidb_ddl_job schema",
errors.RFCCodeText("CDC:ErrDDLSchemaNotFound"),
)
ErrDDLUnsupportType = errors.Normalize(
"unsupport ddl type %s, query %s",
errors.RFCCodeText("CDC:ErrDDLUnsupportType"),
)
ErrGRPCDialFailed = errors.Normalize(
"grpc dial failed",
errors.RFCCodeText("CDC:ErrGRPCDialFailed"),
Expand Down
Loading
Loading