variable: mark tidb_index_serial_scan_concurrency as deprecated#64023
Conversation
|
/retest |
There was a problem hiding this comment.
Pull Request Overview
Mark tidb_index_serial_scan_concurrency as deprecated and ensure it no longer affects execution while still being settable (with a warning).
- Make tidb_index_serial_scan_concurrency a no-op at session level and emit a deprecation warning on SET.
- Remove internal concurrency field/methods tied to index serial scan concurrency.
- Update tests and comments to reflect deprecation and new guidance.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| pkg/sessionctx/variable/sysvar.go | Deprecates tidb_index_serial_scan_concurrency by making SetSession a no-op and adding a validation warning. |
| pkg/sessionctx/variable/session.go | Removes indexSerialScanConcurrency field and its getters/setters from Concurrency. |
| pkg/sessionctx/variable/varsutil_test.go | Removes tests asserting behavior of the deprecated variable. |
| pkg/executor/set_test.go | Adjusts tests to expect the deprecation warning and drops assertions on internal concurrency effect. |
| pkg/sessionctx/vardef/tidb_vars.go | Adds deprecation and historical behavior documentation for the variable and related analyze scan variable. |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #64023 +/- ##
================================================
+ Coverage 72.7400% 73.8291% +1.0891%
================================================
Files 1851 1854 +3
Lines 500444 505032 +4588
================================================
+ Hits 364023 372861 +8838
+ Misses 114279 110265 -4014
+ Partials 22142 21906 -236
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
0xPoe
left a comment
There was a problem hiding this comment.
🔢 Self-check (PR reviewed by myself and ready for feedback)
-
Code compiles successfully
-
Unit tests added
-
All tests pass
-
Bazel files updated
-
Comments added where necessary
-
PR title and description updated
-
Documentation PR created (or confirmed not needed)
-
PR size is reasonable
|
/retest |
|
/hold I'd like to update more comments for more variables. |
|
/unhold |
[LGTM Timeline notifier]Timeline:
|
|
/retest |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: elsa0520, time-and-fate, 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 |
|
/test all |
|
/retest |
|
/test all |
|
@0xPoe: 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. |
What problem does this PR solve?
Issue Number: close #63931
Problem Summary:
What changed and how does it work?
Mark tidb_index_serial_scan_concurrency as deprecated.
We decided in #16999 to deprecate tidb_index_serial_scan_concurrency for controlling the concurrency of sequential scans, but retain its function of controlling the concurrency of index statistics scans.
#50639 We decided to stop using tidb_index_serial_scan_concurrency and instead use the tidb_analyze_distsql_scan_concurrency parameter newly added in the previous PR to control the scan concurrency for index statistical information collection.
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.