-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
executor: enable parallel sort #53537
executor: enable parallel sort #53537
Conversation
Hi @xzhangxian1008. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. 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-sigs/prow repository. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #53537 +/- ##
=================================================
- Coverage 70.9866% 55.8316% -15.1550%
=================================================
Files 1507 1628 +121
Lines 413072 602735 +189663
=================================================
+ Hits 293226 336517 +43291
- Misses 100540 243084 +142544
- Partials 19306 23134 +3828
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/cc @yibin87 @windtalker |
/cc @windtalker @yibin87 |
/cc @windtalker @yibin87 |
/retest |
@xzhangxian1008: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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-sigs/prow repository. |
pkg/executor/sortexec/sort.go
Outdated
@@ -272,9 +258,13 @@ func (e *SortExec) InitInParallelModeForTest() { | |||
*/ | |||
func (e *SortExec) Next(ctx context.Context, req *chunk.Chunk) error { | |||
if e.fetched.CompareAndSwap(false, true) { | |||
e.initCompareFuncs() | |||
err := e.initCompareFuncs() |
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.
I think you should remember this error in SortExec
, so if initCompareFuncs
fails, every call of Next
will return error, otherwise, the second call of Next
will go to L266 directly?
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.
I think you should remember this error in
SortExec
, so ifinitCompareFuncs
fails, every call ofNext
will return error, otherwise, the second call ofNext
will go to L266 directly?
Next
is called by only one go routine, and once it returns error Next
will not be called anymore. I think it's needless to remember it in SortExec
.
/cc @windtalker @yibin87 |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: windtalker, yibin87 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
What problem does this PR solve?
Issue Number: close #53536
Problem Summary:
What changed and how does it work?
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.