-
Notifications
You must be signed in to change notification settings - Fork 6.2k
dxf/ddl: always enable DXF and fast reorg in nextgen #64179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ti-chi-bot
merged 2 commits into
pingcap:master
from
D3Hunter:force-dxf-fast-reorg-always-enabled
Oct 30, 2025
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -638,6 +638,9 @@ func TestMultiSchemaChangeAlterIndex(t *testing.T) { | |
| } | ||
|
|
||
| func TestMultiSchemaChangeMixCancelled(t *testing.T) { | ||
| if kerneltype.IsNextGen() { | ||
| t.Skip("add-index always runs on DXF with ingest mode in nextgen") | ||
| } | ||
| store := testkit.CreateMockStore(t) | ||
| tk := testkit.NewTestKit(t, store) | ||
| tk.MustExec("use test;") | ||
|
|
@@ -668,7 +671,6 @@ func TestMultiSchemaChangeAdminShowDDLJobs(t *testing.T) { | |
|
|
||
| tk := testkit.NewTestKit(t, store) | ||
| tk.MustExec("use test") | ||
| tk.MustExec("set global tidb_ddl_enable_fast_reorg = 1;") | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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("create table t (a int, b int, c int)") | ||
| tk.MustExec("insert into t values (1, 2, 3)") | ||
|
|
||
|
|
@@ -886,6 +888,9 @@ func TestMultiSchemaChangeBlockedByRowLevelChecksum(t *testing.T) { | |
| } | ||
|
|
||
| func TestMultiSchemaChangePollJobCount(t *testing.T) { | ||
| if kerneltype.IsNextGen() { | ||
| t.Skip("add-index always runs on DXF with ingest mode in nextgen") | ||
| } | ||
| store := testkit.CreateMockStore(t) | ||
| tk := testkit.NewTestKit(t, store) | ||
| tk.MustExec("use test") | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,6 +19,7 @@ import ( | |
| "testing" | ||
|
|
||
| "github.com/pingcap/tidb/pkg/config" | ||
| "github.com/pingcap/tidb/pkg/config/kerneltype" | ||
| "github.com/pingcap/tidb/pkg/disttask/framework/testutil" | ||
| "github.com/pingcap/tidb/pkg/meta/model" | ||
| "github.com/pingcap/tidb/pkg/testkit" | ||
|
|
@@ -104,7 +105,9 @@ func TestAddForeignKeyWithAutoCreateIndex(t *testing.T) { | |
| tk.MustExec("drop database if exists fk_index;") | ||
| tk.MustExec("create database fk_index;") | ||
| 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;`) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
| } | ||
| tk.MustExec("create table employee (id bigint auto_increment key, pid bigint)") | ||
| tk.MustExec("insert into employee (id) values (1),(2),(3),(4),(5),(6),(7),(8)") | ||
| for range 14 { | ||
|
|
@@ -153,7 +156,9 @@ func TestAddUKWithSmallIntHandles(t *testing.T) { | |
| tk.MustExec("drop database if exists small;") | ||
| tk.MustExec("create database small;") | ||
| tk.MustExec("use small;") | ||
| tk.MustExec(`set global tidb_ddl_enable_fast_reorg=1;`) | ||
| if kerneltype.IsClassic() { | ||
| tk.MustExec(`set global tidb_ddl_enable_fast_reorg=1;`) | ||
| } | ||
| tk.MustExec("create table t (a bigint, b int, primary key (a) clustered)") | ||
| tk.MustExec("insert into t values (-9223372036854775808, 1),(-9223372036854775807, 1)") | ||
| tk.MustContainErrMsg("alter table t add unique index uk(b)", "Duplicate entry '1' for key 't.uk'") | ||
|
|
@@ -164,7 +169,9 @@ func TestAddUniqueDuplicateIndexes(t *testing.T) { | |
|
|
||
| tk := testkit.NewTestKit(t, store) | ||
| tk.MustExec("use test") | ||
| tk.MustExec(`set global tidb_ddl_enable_fast_reorg=1;`) | ||
| if kerneltype.IsClassic() { | ||
| tk.MustExec(`set global tidb_ddl_enable_fast_reorg=1;`) | ||
| } | ||
| tk.MustExec("create table t(a int DEFAULT '-13202', b varchar(221) NOT NULL DEFAULT 'duplicatevalue', " + | ||
| "c int NOT NULL DEFAULT '0');") | ||
|
|
||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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