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: TestParallelDDL #39222

Closed
purelind opened this issue Nov 18, 2022 · 2 comments · Fixed by #53636 · May be fixed by #39306
Closed

unstable test: TestParallelDDL #39222

purelind opened this issue Nov 18, 2022 · 2 comments · Fixed by #53636 · May be fixed by #39306
Assignees
Labels
component/ddl This issue is related to DDL of TiDB. component/test severity/major type/bug The issue is confirmed as a bug.

Comments

@purelind
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

Error:      	Received unexpected error:
        	            	[schema:1049]Unknown database '(Schema ID 78)'
        	            	github.com/pingcap/errors.AddStack
        	            		external/com_github_pingcap_errors/errors.go:174
        	            	github.com/pingcap/errors.Trace
        	            		external/com_github_pingcap_errors/juju_adaptor.go:15
        	            	github.com/pingcap/tidb/ddl.(*ddl).DoDDLJob
        	            		ddl/ddl.go:1111
        	            	github.com/pingcap/tidb/ddl.(*ddl).AlterTableAutoIDCache
        	            		ddl/ddl_api.go:5159
        	            	github.com/pingcap/tidb/ddl.(*ddl).AlterTable
        	            		ddl/ddl_api.go:3341
        	            	github.com/pingcap/tidb/executor.(*DDLExec).executeAlterTable
        	            		executor/ddl.go:377
        	            	github.com/pingcap/tidb/executor.(*DDLExec).Next
        	            		executor/ddl.go:147
        	            	github.com/pingcap/tidb/executor.Next
        	            		executor/executor.go:329
        	            	github.com/pingcap/tidb/executor.(*ExecStmt).next
        	            		executor/adapter.go:1118
        	            	github.com/pingcap/tidb/executor.(*ExecStmt).handleNoDelayExecutor
        	            		executor/adapter.go:891
        	            	github.com/pingcap/tidb/executor.(*ExecStmt).handleNoDelay
        	            		executor/adapter.go:739
        	            	github.com/pingcap/tidb/executor.(*ExecStmt).Exec
        	            		executor/adapter.go:544
        	            	github.com/pingcap/tidb/session.runStmt
        	            		session/session.go:2322
        	            	github.com/pingcap/tidb/session.(*session).ExecuteStmt
        	            		session/session.go:2186
        	            	github.com/pingcap/tidb/testkit.(*TestKit).ExecWithContext
        	            		testkit/testkit.go:295
        	            	github.com/pingcap/tidb/testkit.(*TestKit).MustExecWithContext
        	            		testkit/testkit.go:127
        	            	github.com/pingcap/tidb/testkit.(*TestKit).MustExec
        	            		testkit/testkit.go:122
        	            	github.com/pingcap/tidb/ddl_test.TestParallelDDL.func10
        	            		ddl/ddl_worker_test.go:226
        	            	github.com/pingcap/tidb/util.(*WaitGroupWrapper).Run.func1
        	            		util/wait_group_wrapper.go:33
        	            	runtime.goexit
        	            		GOROOT/src/runtime/asm_amd64.s:1594
        	Test:       	TestParallelDDL
        	Messages:   	sql:alter table test_parallel_ddl_2.t3 auto_id_cache 1024, [], error stack [schema:1049]Unknown database '(Schema ID 78)'
        	            	github.com/pingcap/errors.AddStack
        	            		external/com_github_pingcap_errors/errors.go:174
        	            	github.com/pingcap/errors.Trace
        	            		external/com_github_pingcap_errors/juju_adaptor.go:15
        	            	github.com/pingcap/tidb/ddl.(*ddl).DoDDLJob
        	            		ddl/ddl.go:1111
        	            	github.com/pingcap/tidb/ddl.(*ddl).AlterTableAutoIDCache
        	            		ddl/ddl_api.go:5159
        	            	github.com/pingcap/tidb/ddl.(*ddl).AlterTable
        	            		ddl/ddl_api.go:3341
        	            	github.com/pingcap/tidb/executor.(*DDLExec).executeAlterTable
        	            		executor/ddl.go:377
        	            	github.com/pingcap/tidb/executor.(*DDLExec).Next
        	            		executor/ddl.go:147
        	            	github.com/pingcap/tidb/executor.Next
        	            		executor/executor.go:329
        	            	github.com/pingcap/tidb/executor.(*ExecStmt).next
        	            		executor/adapter.go:1118
        	            	github.com/pingcap/tidb/executor.(*ExecStmt).handleNoDelayExecutor
        	            		executor/adapter.go:891
        	            	github.com/pingcap/tidb/executor.(*ExecStmt).handleNoDelay
        	            		executor/adapter.go:739
        	            	github.com/pingcap/tidb/executor.(*ExecStmt).Exec
        	            		executor/adapter.go:544
        	            	github.com/pingcap/tidb/session.runStmt
        	            		session/session.go:2322
        	            	github.com/pingcap/tidb/session.(*session).ExecuteStmt
        	            		session/session.go:2186
        	            	github.com/pingcap/tidb/testkit.(*TestKit).ExecWithContext
        	            		testkit/testkit.go:295
        	            	github.com/pingcap/tidb/testkit.(*TestKit).MustExecWithContext
        	            		testkit/testkit.go:127
        	            	github.com/pingcap/tidb/testkit.(*TestKit).MustExec
        	            		testkit/testkit.go:122
        	            	github.com/pingcap/tidb/ddl_test.TestParallelDDL.func10
        	            		ddl/ddl_worker_test.go:226
        	            	github.com/pingcap/tidb/util.(*WaitGroupWrapper).Run.func1
        	            		util/wait_group_wrapper.go:33
        	            	runtime.goexit
        	            		GOROOT/src/runtime/asm_amd64.s:1594

link https://ci.pingcap.net/blue/organizations/jenkins/tidb-unit-test-hourly/detail/tidb-unit-test-hourly/11812/tests

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

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

@purelind purelind added the type/bug The issue is confirmed as a bug. label Nov 18, 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 may-affects-6.4 labels Nov 21, 2022
@tiancaiamao tiancaiamao self-assigned this Nov 21, 2022
@hawkingrei hawkingrei 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 may-affects-6.4 labels Nov 22, 2022
@VelocityLight VelocityLight added the affects-6.5 This bug affects the 6.5.x(LTS) versions. label Dec 2, 2022
@VelocityLight VelocityLight added the affects-7.1 This bug affects the 7.1.x(LTS) versions. label Apr 20, 2023
@jebter jebter added the component/ddl This issue is related to DDL of TiDB. label Sep 11, 2023
@ti-chi-bot ti-chi-bot added the affects-7.5 This bug affects the 7.5.x(LTS) versions. label Oct 23, 2023
@D3Hunter
Copy link
Contributor

seems a flaky case only, remove pick labels

@D3Hunter D3Hunter reopened this Feb 21, 2024
@D3Hunter D3Hunter removed affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-6.6 affects-7.0 affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. labels Feb 21, 2024
@ti-chi-bot ti-chi-bot added the affects-8.1 This bug affects the 8.1.x(LTS) versions. label Apr 9, 2024
@D3Hunter
Copy link
Contributor

met again but with different stack

    ddl_worker_test.go:251: 
        	Error Trace:	pkg/ddl/ddl_worker_test.go:251
        	Error:      	"61" is not less than "57"
        	Test:       	TestParallelDDL

@D3Hunter D3Hunter removed the affects-8.1 This bug affects the 8.1.x(LTS) versions. label May 28, 2024
ti-chi-bot bot pushed a commit that referenced this issue May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/ddl This issue is related to DDL of TiDB. component/test severity/major type/bug The issue is confirmed as a bug.
Projects
None yet
7 participants