Skip to content
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

unstable test TestConcurrentDDLSwitch #37891

Closed
hawkingrei opened this issue Sep 16, 2022 · 0 comments
Closed

unstable test TestConcurrentDDLSwitch #37891

hawkingrei opened this issue Sep 16, 2022 · 0 comments

Comments

@hawkingrei
Copy link
Member

hawkingrei commented Sep 16, 2022

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

[2022-09-16T06:48:32.138Z] panic: expect delete range count 6, actual count 7 [recovered]

[2022-09-16T06:48:32.138Z] 	panic: expect delete range count 6, actual count 7

[2022-09-16T06:48:32.138Z] 

[2022-09-16T06:48:32.138Z] goroutine 26168 [running]:

[2022-09-16T06:48:32.138Z] github.com/pingcap/tidb/executor.(*ExecStmt).Exec.func1()

[2022-09-16T06:48:32.138Z] 	executor/adapter.go:433 +0x417

[2022-09-16T06:48:32.138Z] panic({0x44751c0, 0xc004fdf660})

[2022-09-16T06:48:32.138Z] 	GOROOT/src/runtime/panic.go:884 +0x212

[2022-09-16T06:48:32.138Z] github.com/pingcap/tidb/ddl.(*ddl).checkDeleteRangeCnt(0xc0043fc6c0?, 0xc0043fc6c0)

[2022-09-16T06:48:32.138Z] 	ddl/sanity_check.go:50 +0x1e5

[2022-09-16T06:48:32.138Z] github.com/pingcap/tidb/ddl.(*ddl).checkHistoryJobInTest(0xc004e2d920?, {0x52b7370, 0xc001ea3900}, 0xc0043fc6c0)

[2022-09-16T06:48:32.138Z] 	ddl/sanity_check.go:191 +0xe5

[2022-09-16T06:48:32.138Z] github.com/pingcap/tidb/ddl.(*ddl).DoDDLJob(0xc002704b00, {0x52b7370?, 0xc001ea3900}, 0xc004beed80)

[2022-09-16T06:48:32.138Z] 	ddl/ddl.go:1031 +0x17b4

[2022-09-16T06:48:32.138Z] github.com/pingcap/tidb/ddl.(*ddl).createIndex(0x791b1c0?, {0x52b7370, 0xc001ea3900}, {{{0x4b0651e, 0x4}, {0x4b0651e, 0x4}}, {{0xc004d6c42c, 0x2}, {0xc004d6c42c, ...}}}, ...)

[2022-09-16T06:48:32.138Z] 	ddl/ddl_api.go:6090 +0x10c6

[2022-09-16T06:48:32.138Z] github.com/pingcap/tidb/ddl.(*ddl).AlterTable(0xc002704b00, {0x52491b0, 0xc005a318f0}, {0x52b7370, 0xc001ea3900?}, 0xc004d6c42c?)

[2022-09-16T06:48:32.138Z] 	ddl/ddl_api.go:3214 +0x945

[2022-09-16T06:48:32.138Z] github.com/pingcap/tidb/executor.(*DDLExec).executeAlterTable(0xc00284fd60, {0x52491b0, 0xc005a318f0}, 0xc005580a80)

[2022-09-16T06:48:32.138Z] 	executor/ddl.go:370 +0x10f

[2022-09-16T06:48:32.138Z] github.com/pingcap/tidb/executor.(*DDLExec).Next(0xc00284fd60, {0x52491b0?, 0xc005a318c0?}, 0x0?)

[2022-09-16T06:48:32.138Z] 	executor/ddl.go:148 +0x3ab

[2022-09-16T06:48:32.138Z] github.com/pingcap/tidb/executor.Next({0x52491b0, 0xc005a318c0}, {0x524ce20, 0xc00284fd60}, 0xc001241900)

[2022-09-16T06:48:32.138Z] 	executor/executor.go:324 +0x55e

[2022-09-16T06:48:32.138Z] github.com/pingcap/tidb/executor.(*ExecStmt).next(0xc0055db4a0, {0x52491b0, 0xc005a318c0}, {0x524ce20, 0xc00284fd60}, 0x0?)

[2022-09-16T06:48:32.138Z] 	executor/adapter.go:963 +0x7e

[2022-09-16T06:48:32.138Z] github.com/pingcap/tidb/executor.(*ExecStmt).handleNoDelayExecutor(0xc0055db4a0, {0x52491b0, 0xc005a318c0}, {0x524ce20?, 0xc00284fd60})

[2022-09-16T06:48:32.138Z] 	executor/adapter.go:737 +0x611

[2022-09-16T06:48:32.138Z] github.com/pingcap/tidb/executor.(*ExecStmt).handleNoDelay(0xc0055db4a0, {0x52491b0, 0xc005a318c0}, {0x524ce20?, 0xc00284fd60?}, 0x0)

[2022-09-16T06:48:32.138Z] 	executor/adapter.go:585 +0x258

[2022-09-16T06:48:32.138Z] github.com/pingcap/tidb/executor.(*ExecStmt).Exec(0xc0055db4a0, {0x52491b0, 0xc005a318c0})

[2022-09-16T06:48:32.138Z] 	executor/adapter.go:534 +0xec9

[2022-09-16T06:48:32.138Z] github.com/pingcap/tidb/session.runStmt({0x5249140, 0xc00022c000}, 0xc001ea3900, {0x525b530, 0xc0055db4a0?})

[2022-09-16T06:48:32.138Z] 	session/session.go:2190 +0x6c9

[2022-09-16T06:48:32.138Z] github.com/pingcap/tidb/session.(*session).ExecuteStmt(0xc001ea3900, {0x5249140, 0xc00022c000}, {0x52619d0?, 0xc005580a80?})

[2022-09-16T06:48:32.138Z] 	session/session.go:2054 +0xcd6

[2022-09-16T06:48:32.138Z] github.com/pingcap/tidb/testkit.(*TestKit).ExecWithContext(0xc004f8f140, {0x5249140, 0xc00022c000}, {0xc004d6c420, 0x24}, {0x0?, 0xc000c59f40?, 0x3c46ea4?})

[2022-09-16T06:48:32.138Z] 	testkit/testkit.go:278 +0x408

[2022-09-16T06:48:32.138Z] github.com/pingcap/tidb/testkit.(*TestKit).MustExecWithContext(0xc004f8f140, {0x5249140?, 0xc00022c000?}, {0xc004d6c420, 0x24}, {0x0, 0x0, 0x0})

[2022-09-16T06:48:32.138Z] 	testkit/testkit.go:118 +0x6b

[2022-09-16T06:48:32.138Z] github.com/pingcap/tidb/testkit.(*TestKit).MustExec(...)

[2022-09-16T06:48:32.138Z] 	testkit/testkit.go:113

[2022-09-16T06:48:32.138Z] github.com/pingcap/tidb/ddl_test.TestConcurrentDDLSwitch.func1.1(0x63)

[2022-09-16T06:48:32.138Z] 	ddl/job_table_test.go:242 +0xc9

[2022-09-16T06:48:32.138Z] created by github.com/pingcap/tidb/ddl_test.TestConcurrentDDLSwitch.func1

[2022-09-16T06:48:32.138Z] 	ddl/job_table_test.go:239 +0x85

[2022-09-16T06:48:32.138Z] --

https://ci.pingcap.net/blue/organizations/jenkins/tidb_ghpr_unit_test/detail/tidb_ghpr_unit_test/69669/pipeline

2. What did you expect to see? (Required)

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

@hawkingrei hawkingrei added the type/bug The issue is confirmed as a bug. label Sep 16, 2022
@hawkingrei hawkingrei changed the title unstable test unstable test TestConcurrentDDLSwitch Sep 16, 2022
@ti-chi-bot ti-chi-bot added may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.0 may-affects-6.1 may-affects-6.2 may-affects-6.3 labels Sep 16, 2022
@jebter jebter removed may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-6.0 may-affects-6.1 may-affects-6.2 may-affects-6.3 labels Sep 16, 2022
@xiongjiwei xiongjiwei assigned xiongjiwei and unassigned wjhuang2016 Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants