importinto: update thread count after initialized data files#63200
Conversation
Signed-off-by: tangenta <tangenta@126.com>
|
Hi @tangenta. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. DetailsInstructions 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 Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #63200 +/- ##
================================================
+ Coverage 72.7884% 74.7851% +1.9966%
================================================
Files 1831 1877 +46
Lines 495404 503615 +8211
================================================
+ Hits 360597 376629 +16032
+ Misses 112870 103656 -9214
- Partials 21937 23330 +1393
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Signed-off-by: tangenta <tangenta@126.com>
Signed-off-by: tangenta <tangenta@126.com>
| e.dataFiles = dataFiles | ||
| e.TotalFileSize = totalSize | ||
|
|
||
| if kerneltype.IsNextGen() { |
There was a problem hiding this comment.
add a integration test for it, we can enlarge the totalSize to be several times larger than original
Signed-off-by: tangenta <tangenta@126.com>
Signed-off-by: tangenta <tangenta@126.com>
| testfailpoint.Enable(s.T(), "github.com/pingcap/tidb/pkg/executor/importer/mockImportDataSize", fmt.Sprintf(`return(%d)`, tc.size)) | ||
| testfailpoint.EnableCall(s.T(), "github.com/pingcap/tidb/pkg/executor/importer/mockImportDataSize", func(totalSize, targetNodeCPUCnt *int) { | ||
| *totalSize = tc.size | ||
| *targetNodeCPUCnt = 32 |
There was a problem hiding this comment.
better not change this one, else the machine might not have enough slots to run the task. or you can mock the cpu count by mockNumCpu
|
@tangenta: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. I understand the commands that are listed here. |
Signed-off-by: tangenta <tangenta@126.com>
|
/retest |
|
@D3Hunter: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn 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. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CbcWestwolf, D3Hunter The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
|
/retest |
1 similar comment
|
/retest |
|
@tangenta: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn 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. |
|
/retest |
|
@D3Hunter: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn 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. |
What problem does this PR solve?
Issue Number: ref #61702
Problem Summary:
Before this PR, the node count & thread auto calculation does not work because the data size is initialized after
Plan.initOptions.What changed and how does it work?
LoadDataController.InitDataFiles.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.