-
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
ddl: change interface of lightning package wrappers #53233
Conversation
Signed-off-by: lance6716 <[email protected]>
Hi @lance6716. 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. |
Signed-off-by: lance6716 <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #53233 +/- ##
================================================
+ Coverage 72.4109% 75.0356% +2.6246%
================================================
Files 1493 1498 +5
Lines 429341 437940 +8599
================================================
+ Hits 310890 328611 +17721
+ Misses 99162 89246 -9916
- Partials 19289 20083 +794
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
/ok-to-test |
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
pkg/ddl/ingest/engine_mgr.go
Outdated
return false | ||
} | ||
for _, ei := range bc.engines { | ||
return ei.closedEngine != nil |
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.
What if some of the engines are closed, others are not?
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.
rest 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.
rest lgtm
pkg/ddl/ingest/backend.go
Outdated
for _, fn := range unlockFn { | ||
fn() | ||
} |
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.
unlock in defer to make sure released on panic?
why not lock/unlock it inside ei.Flush()
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 not lock/unlock it inside ei.Flush()
The old behaviour is that lock is hold when unsafeImportAndReset
, I need more time to understand if only hold the lock for ei.Flush()
is enough
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
/test all |
/retest |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: D3Hunter, tangenta 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 |
What problem does this PR solve?
Issue Number: close #53165
Problem Summary:
What changed and how does it work?
litBackendCtx
should manage one DDL job, no need to use DDL job related fields as interface arguments. They are only needed when construct thelitBackendCtx
.BackendCtx.Register
, please see the comment. And separateFinishedWritingNeedImport
engineInfo
memRoot
Check List
Tests
Existing tests failed and revealed some wrong change during development. Now they are all passed
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.