-
Notifications
You must be signed in to change notification settings - Fork 188
Conversation
Why didn't relay unit start sync from metadata's position, thus we need not |
I think relay should be source level but not task level. So it may start from now, or start from pos/gtid which we specify |
This reverts commit 7379169.
@@ -1307,6 +1307,11 @@ func (l *Loader) getMydumpMetadata() error { | |||
metafile := filepath.Join(l.cfg.LoaderConfig.Dir, "metadata") | |||
loc, _, err := dumpling.ParseMetaData(metafile, l.cfg.Flavor) | |||
if err != nil { | |||
if terror.ErrMetadataNoBinlogLoc.Equal(err) { | |||
l.logger.Warn("dumped metadata doesn't have binlog location, it's OK if DM doesn't enter incremental mode") |
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.
How about check task_mode here?
It is annoying to report errors after a long time import is completed
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.
We're checking REPLICATION CLIENT in pre-check wrongly, (should make sure it's grants on *.*
). So for all mode and incremental mode, pre-check could make sure there's enough privilege generating correct metadata. For full mode, it's no harm
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.
Are there any other cases that may cause this error? 🤔
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
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
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-2.0 in PR #1326 |
Signed-off-by: ti-srebot <[email protected]> Co-authored-by: lance6716 <[email protected]>
What problem does this PR solve?
part of #1320
What is changed and how it works?
since full mode doesn't not need REPLICATION related privilege and doesn't check it, mydumper/dumpling won't generate a valid
metdata
file containing "SHOW MASTER STATUS:" at then. And when loader parse it, load task will stop.Now load should ignore that error
Check List
Tests
Code changes
Side effects
Related changes