-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
TiDB doesn't write binlog when replicating tables with sequence #31611
Comments
Possible reason: if binlog.DdlJobId > 0 {
log.Info("start query job", zap.Int64("id", binlog.DdlJobId), zap.Stringer("binlog", binlog))
msgPrefix := fmt.Sprintf("get ddl job by id %d error", binlog.DdlJobId)
var job *model.Job
for {
err := util.RetryOnError(getDDLJobRetryTime, getDDLJobRetryWait, msgPrefix, func() error {
var err1 error
job, err1 = fDDLJobGetter(c.tiStore, binlog.DdlJobId)
return err1
})
if err != nil {
log.Error("get DDL job failed", zap.Int64("id", binlog.DdlJobId), zap.Error(err))
return errors.Trace(err)
}
if job != nil {
break
}
time.Sleep(time.Second)
} |
Possible cause from july2993 PR #31148 will transfer lowercase to uppercase. So binlog's filter fails. |
Please check whether the issue should be labeled with 'affects-x.y' or 'fixes-x.y.z', and then remove 'needs-more-info' label. |
Possible risk: if v5.5.0 is released and #31148 is included, it can't be compatible with a lower version drainer. |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
tiup playground v5.5.0-nightly-20220112 --monitor=false --tiflash 0 --pump 1 --drainer 1 --drainer.config="drainer.toml"
drainer.toml:
2. What did you expect to see? (Required)
Follower TiDB can receive correct data.
3. What did you see instead (Required)
test.table_name
.4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: