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

fix drop table where restore #115

Merged
merged 3 commits into from
Jun 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions pkg/ccr/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,13 @@ func (j *Job) fullSync() error {
return err
}

// If srcTableName is empty, it may be deleted.
// No need to map it to dest table
if srcTableName == "" {
log.Warnf("the name of source table id: %d is empty, no need to map it to dest table", srcTableId)
continue
}

destTableId, err := j.destMeta.GetTableId(srcTableName)
if err != nil {
return err
Expand Down
Loading