Skip to content

dxf/ddl: always enable DXF and fast reorg in nextgen#64179

Merged
ti-chi-bot[bot] merged 2 commits into
pingcap:masterfrom
D3Hunter:force-dxf-fast-reorg-always-enabled
Oct 30, 2025
Merged

dxf/ddl: always enable DXF and fast reorg in nextgen#64179
ti-chi-bot[bot] merged 2 commits into
pingcap:masterfrom
D3Hunter:force-dxf-fast-reorg-always-enabled

Conversation

@D3Hunter

@D3Hunter D3Hunter commented Oct 29, 2025

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Issue Number: ref #61702

Problem Summary:

What changed and how does it work?

since the default value of those 2 variable is true now, we achieve this by disallowing setting those variables

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No need to test
    • I checked and no code files have been changed.

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

@ti-chi-bot ti-chi-bot Bot added release-note-none Denotes a PR that doesn't merit a release note. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Oct 29, 2025
@tiprow

tiprow Bot commented Oct 29, 2025

Copy link
Copy Markdown

Hi @D3Hunter. Thanks for your PR.

PRs from untrusted users cannot be marked as trusted with /ok-to-test in this repo meaning untrusted PR authors can never trigger tests themselves. Collaborators can still trigger tests on the PR using /test all.

I understand the commands that are listed here.

Details

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.


func TestAddIndexUniqueFailOnDuplicate(t *testing.T) {
if kerneltype.IsNextGen() {
t.Skip("add-index always runs on DXF with ingest mode in nextgen")

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

those tests will disable DXF


tk := testkit.NewTestKit(t, store)
tk.MustExec("use test")
tk.MustExec("set global tidb_ddl_enable_fast_reorg = 1;")

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the default is 1, so no need to set it again

tk.MustExec("use fk_index;")
tk.MustExec(`set global tidb_ddl_enable_fast_reorg=1;`)
if kerneltype.IsClassic() {
tk.MustExec(`set global tidb_ddl_enable_fast_reorg=1;`)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in realtikv test, cluster is shared, some case might disable it, so we keep it

@codecov

codecov Bot commented Oct 29, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.4352%. Comparing base (85e6857) to head (5621dff).
⚠️ Report is 15 commits behind head on master.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #64179        +/-   ##
================================================
+ Coverage   72.6867%   75.4352%   +2.7484%     
================================================
  Files          1858       1882        +24     
  Lines        502672     518759     +16087     
================================================
+ Hits         365376     391327     +25951     
+ Misses       115060     103962     -11098     
- Partials      22236      23470      +1234     
Flag Coverage Δ
integration 48.7868% <0.0000%> (?)
unit 73.0739% <100.0000%> (+0.8259%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
dumpling 52.8700% <ø> (ø)
parser ∅ <ø> (∅)
br 63.3290% <ø> (+16.9665%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ti-chi-bot ti-chi-bot Bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Oct 30, 2025
@ti-chi-bot ti-chi-bot Bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Oct 30, 2025
@ti-chi-bot

ti-chi-bot Bot commented Oct 30, 2025

Copy link
Copy Markdown

[LGTM Timeline notifier]

Timeline:

  • 2025-10-30 04:37:56.62130845 +0000 UTC m=+1537782.698561010: ☑️ agreed by wjhuang2016.
  • 2025-10-30 13:23:04.457906231 +0000 UTC m=+1569290.535158791: ☑️ agreed by tangenta.

@D3Hunter

Copy link
Copy Markdown
Contributor Author

/approve

@ti-chi-bot

ti-chi-bot Bot commented Oct 30, 2025

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: D3Hunter, tangenta, wjhuang2016

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot Bot added the approved label Oct 30, 2025
@D3Hunter

Copy link
Copy Markdown
Contributor Author

/retest

@tiprow

tiprow Bot commented Oct 30, 2025

Copy link
Copy Markdown

@D3Hunter: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

Details

In response to this:

/retest

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.

@ti-chi-bot ti-chi-bot Bot merged commit bdd2b6f into pingcap:master Oct 30, 2025
32 checks passed
@D3Hunter D3Hunter deleted the force-dxf-fast-reorg-always-enabled branch October 31, 2025 03:33
@D3Hunter

Copy link
Copy Markdown
Contributor Author

/cherry-pick release-nextgen-20251011

ti-chi-bot pushed a commit to ti-chi-bot/tidb that referenced this pull request Oct 31, 2025
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
@ti-chi-bot

Copy link
Copy Markdown
Member

@D3Hunter: new pull request created to branch release-nextgen-20251011: #64208.
But this PR has conflicts, please resolve them!

Details

In response to this:

/cherry-pick release-nextgen-20251011

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 ti-community-infra/tichi repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants