-
Notifications
You must be signed in to change notification settings - Fork 32
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
[feat](binlog) Add Support recover binlog #284
Conversation
415b68a
to
2a6113a
Compare
3817091
to
844d57f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
844d57f
to
9891339
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rest LGTM
pkg/ccr/record/recover_info.go
Outdated
/* need check for db level not supported. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the above check, and also check if the table name and partition name exist.
pkg/ccr/job.go
Outdated
return nil | ||
} | ||
|
||
if recoverInfo.PartitionName == "" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding a helper function IsRecoverPartition() bool { return record.PartitionId == -1 }
, and change below line to:
if recoverInfo.PartitionName == "" { | |
if recoverInfo.IsRecoverPartition() { |
9891339
to
131983c
Compare
support recover table, recover partition
related PR: apache/doris#44818
Currently the recover flow, we will be do partial sync,
to can not gurantee the data present in the recycle bin of target.
Testcases run and passed.
DbSync
--- recover table
--- recover table as new table.
-- recover partition
-- recover partition as new partition name.
TableSync
-- recover partition
-- recover partition as new partition name.