binlog.schemaVersion is 0 for flaskback cluster
, and unlock tables
when last table doesn't exist
#58049
Labels
component/ddl
This issue is related to DDL of TiDB.
severity/moderate
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
right now
binlog.schemaVersion
is used by CDC to decide when or whether to run the DDL, andbinlog.schemaVersion
might be 0 when the DDL is skipped due toif not exist
,if exist
andalter table cache/no cache
but table is already in the expect statebut for below cases,
binlog.schemaVersion
is also 0. as CDC don't sync below types of DDL right now, will mark this issue as moderatebinlog info are not set for
flaskback cluster
,so binlog.schemaVersion is always 0tidb/pkg/ddl/cluster.go
Lines 834 to 836 in bb9096c
for
unlock table
when last table doesn't exist, the final binlog.schemaVersion is also 0tidb/pkg/ddl/table_lock.go
Lines 179 to 184 in bb9096c
tidb/pkg/ddl/table_lock.go
Lines 234 to 237 in bb9096c
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
master
The text was updated successfully, but these errors were encountered: