-
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
importinto: refactor chunk processor #47489
Conversation
/ok-to-test |
Hi @D3Hunter. 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/test-infra repository. |
/test all |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #47489 +/- ##
================================================
+ Coverage 72.1550% 72.8030% +0.6480%
================================================
Files 1352 1375 +23
Lines 401092 407671 +6579
================================================
+ Hits 289408 296797 +7389
+ Misses 92443 92037 -406
+ Partials 19241 18837 -404
Flags with carried forward coverage won't be shown. Click here to find out more.
|
}) | ||
group.Go(func() error { | ||
defer p.encodeDone(gCtx) | ||
return p.enc.encodeLoop(gCtx) |
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 slightly prefer we use a local variable kvsCh
, so it's more obvious how these two loops interact with each other and how closing channel represents one loop is done . However it will make encapsulation (like sendFn
) more difficult. LGTM
This reverts commit 4af8695.
/unhold |
@lance6716: Your lgtm message is repeated, so it is ignored. 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/test-infra repository. |
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: GMHDBJD, lance6716 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 |
/reteset |
/retest |
What problem does this PR solve?
Issue Number: ref #46704
Problem Summary:
What is changed and how it works?
split data encoder and delivery, so we can add a new delivery for global sort which only allow 1 writer for each index or data in current design, so we can avoid locking everywhere.
move some metric from deliver loop into encoder loop
Check List
Tests
a case of 158.8GB, takes 1406s(after) vs 1382s(before)
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.