lightning: job range keys and region split keys are 2 concepts (part 2) (#55759)#58180
Conversation
f75b1ee to
175c269
Compare
|
/retest |
There was a problem hiding this comment.
Copilot reviewed 5 out of 16 changed files in this pull request and generated 1 suggestion.
Files not reviewed (11)
- pkg/lightning/backend/external/BUILD.bazel: Language not supported
- pkg/lightning/backend/local/region_job_test.go: Evaluated as low risk
- pkg/lightning/backend/external/engine.go: Evaluated as low risk
- pkg/lightning/backend/external/split.go: Evaluated as low risk
- pkg/lightning/backend/local/engine_mgr.go: Evaluated as low risk
- lightning/tidb-lightning.toml: Evaluated as low risk
- pkg/lightning/backend/external/reader.go: Evaluated as low risk
- pkg/lightning/common/ingest_data.go: Evaluated as low risk
- pkg/disttask/importinto/planner.go: Evaluated as low risk
- pkg/ddl/backfilling_dist_scheduler.go: Evaluated as low risk
- pkg/lightning/backend/local/localhelper.go: Evaluated as low risk
Comments skipped due to low confidence (1)
pkg/lightning/backend/local/engine.go:1100
- [nitpick] The variable name 'jobRangeKeys' is ambiguous. It should be renamed to 'regionSplitKeys'.
jobRangeKeys := e.regionSplitKeysCache
| } | ||
| } | ||
|
|
||
| prev := jobRangeKeys[0] |
There was a problem hiding this comment.
There is no check to ensure that 'jobRangeKeys' is not empty before accessing its first element. Add a check to avoid potential runtime errors.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release-8.1 #58180 +/- ##
================================================
Coverage ? 71.2230%
================================================
Files ? 1467
Lines ? 423645
Branches ? 0
================================================
Hits ? 301733
Misses ? 101408
Partials ? 20504
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
/retest |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Benjamin2037, D3Hunter, lance6716, yudongusa 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 |
|
/retest |
This is an automated cherry-pick of #55759
What problem does this PR solve?
Issue Number: close #55374
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.