-
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
load data: physical mode part2 #42883
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
} | ||
} | ||
|
||
func (e *LoadDataWorker) loadRemote(ctx context.Context) (int64, 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.
moved to above to make code for same struct together
} | ||
return err2 | ||
}) | ||
// UpdateJobProgress goroutine. | ||
group.Go(func() 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.
moved as a job
method
@@ -861,115 +968,6 @@ func (w *commitWorker) addRecordLD(ctx context.Context, row []types.Datum) error | |||
return nil | |||
} | |||
|
|||
// mergeAndSetMessage merges stats from all used session context and sets info | |||
// message(ERR_LOAD_INFO) generated by LOAD statement to UserSctx. | |||
func (e *LoadDataWorker) mergeAndSetMessage() string { |
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.
moved to above
@@ -82,10 +82,6 @@ func (e *LoadDataExec) Next(ctx context.Context, req *chunk.Chunk) (err error) { | |||
e.detachHandled = true | |||
} | |||
case ast.FileLocClient: | |||
if e.loadDataWorker.controller.Detached { |
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.
moved to controller.initLoadParams
/retest |
3 similar comments
/retest |
/retest |
/retest |
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.
12 / 18 files viewed
|
||
// UpdateJobProgress goroutine. | ||
group.Go(func() error { | ||
return job.ProgressUpdateRoutineFn(ctx, done, groupCtx.Done(), e.progress) |
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.
why we need two context here?
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.
one ctx, the third is a channel
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.
The groupCtx is derieved from ctx, we don't need ctx.
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
executor/load_data.go
Outdated
e.UserSctx.GetSessionVars().User.String(), | ||
) | ||
if err != nil { | ||
return 0, err |
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.
in these exit branch with true e.controller.Detached
we will leak the session
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.
/merge |
This pull request has been accepted and is ready to merge. Commit hash: d704f39
|
/retest |
@D3Hunter: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
What problem does this PR solve?
Issue Number: ref #40499
Problem Summary:
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.