-
Notifications
You must be signed in to change notification settings - Fork 288
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
puller(ticdc): refactor ddl puller remove verbose code and reduce logs #10297
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
5140f07
update ddl puller code.
3AceShowHand d9a80e2
refactor ddl puller handle jobs.
3AceShowHand 694fca2
refactor ddl puller handle jobs.
3AceShowHand e37eb66
adjust log.
3AceShowHand b7f031e
Update cdc/puller/ddl_puller.go
3AceShowHand 4dbd2e7
Update cdc/entry/mounter.go
3AceShowHand 98c7b14
add more logs.
3AceShowHand 4495e45
Merge branch 'master' into ddl-puller-reading
3AceShowHand 3b1a0b2
adjust log
3AceShowHand c4ec71a
remove check log in the ddl puller
3AceShowHand 4b5c51d
fix ddl puller panic.
3AceShowHand c44d236
Merge branch 'master' into ddl-puller-reading
3AceShowHand 51b0a0a
fix schema storage unit test.
3AceShowHand 20f4327
Merge branch 'master' into ddl-puller-reading
3AceShowHand b90d07c
tiny remove.
3AceShowHand ad70924
print job in the log at least once.
3AceShowHand bbe0a32
Merge branch 'master' into ddl-puller-reading
3AceShowHand File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -711,21 +711,16 @@ func (p *processor) initDDLHandler(ctx context.Context) error { | |
} | ||
|
||
meta := kv.GetSnapshotMeta(p.upstream.KVStorage, ddlStartTs) | ||
f, err := filter.NewFilter(p.latestInfo.Config, "") | ||
if err != nil { | ||
return errors.Trace(err) | ||
} | ||
schemaStorage, err := entry.NewSchemaStorage(meta, ddlStartTs, | ||
forceReplicate, p.changefeedID, util.RoleProcessor, f) | ||
forceReplicate, p.changefeedID, util.RoleProcessor, p.filter) | ||
if err != nil { | ||
return errors.Trace(err) | ||
} | ||
|
||
serverCfg := config.GetGlobalServerConfig() | ||
|
||
changefeedID := model.DefaultChangeFeedID(p.changefeedID.ID + "_processor_ddl_puller") | ||
ddlPuller := puller.NewDDLJobPuller( | ||
ctx, p.upstream, ddlStartTs, serverCfg, changefeedID, schemaStorage, f, | ||
ctx, p.upstream, ddlStartTs, serverCfg, changefeedID, schemaStorage, p.filter, | ||
) | ||
p.ddlHandler.r = &ddlHandler{puller: ddlPuller, schemaStorage: schemaStorage} | ||
return nil | ||
|
@@ -1007,10 +1002,6 @@ func (d *ddlHandler) Run(ctx context.Context, _ ...chan<- error) error { | |
if jobEntry.OpType == model.OpTypeResolved { | ||
d.schemaStorage.AdvanceResolvedTs(jobEntry.CRTs) | ||
} | ||
err := jobEntry.Err | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why remove this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this error won't be checked, because it's already checked when the error happens. |
||
if err != nil { | ||
return errors.Trace(err) | ||
} | ||
} | ||
}) | ||
return g.Wait() | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
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.
This cannot be removed, otherwise the
snap
become not used, report by the linter.