ddl: load cloud storage before picking add-index backfill (#69733)#69740
ddl: load cloud storage before picking add-index backfill (#69733)#69740ti-chi-bot wants to merge 2 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthrough
ChangesCloud Storage Load Ordering Fix
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.12.2)level=error msg="Running error: context loading failed: failed to load packages: failed to load packages: failed to load with go/packages: context deadline exceeded" Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
/retest |
11 similar comments
|
/retest |
|
/retest |
|
/retest |
|
/retest |
|
/retest |
|
/retest |
|
/retest |
|
/retest |
|
/retest |
|
/retest |
|
/retest |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-nextgen-202603 #69740 +/- ##
===========================================================
Coverage ? 76.1428%
===========================================================
Files ? 1936
Lines ? 540765
Branches ? 0
===========================================================
Hits ? 411754
Misses ? 129011
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: D3Hunter, joechenrh 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 |
This is an automated cherry-pick of #69733
What problem does this PR solve?
Issue Number: close #69731
Problem Summary:
For distributed fast-reorg ADD INDEX with
tidb_cloud_storage_uriconfigured,initForReorgIndexespicked the backfill type beforeloadCloudStorageURIpopulatedjob.ReorgMeta.UseCloudStorage. As a result, the ingest path could run the local disk precheck even though global-sort cloud storage should bypass local disk usage checks.What changed and how does it work?
Load the cloud-storage URI before selecting the add-index backfill type during reorg initialization. This keeps
job.ReorgMeta.UseCloudStorageas the existing source of truth forpickBackfillType, so cloud-storage/global-sort jobs select ingest backfill without touching local disk precheck.A regression case was added to
TestPickBackfillTypewith a disk root that fails if local precheck is reached. The test verifies a distributed fast-reorg job with cloud storage configured setsUseCloudStorageand selectsReorgTypeIngest.Check List
Tests
Test commands:
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.
Summary by CodeRabbit