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 TestExchangePartitionStates #46815

Closed
Tracked by #41316
jiyfhust opened this issue Sep 10, 2023 · 1 comment · Fixed by #46816
Closed
Tracked by #41316

unstable test TestExchangePartitionStates #46815

jiyfhust opened this issue Sep 10, 2023 · 1 comment · Fixed by #46816
Labels
component/test severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@jiyfhust
Copy link
Contributor

jiyfhust commented Sep 10, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

Run unit test.

go test --tags=intest --run="TestExchangePartitionStates"

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

no error.

3. What did you see instead (Required)

                Test:       	TestExchangePartitionStates
        	Messages:   	sql:insert into t values (1000006,"1000006"), [], error stack [table:1748]Found a row not matching the given partition set
        	            	github.com/pingcap/tidb/table/tables.(*partitionedTable).CheckForExchangePartition
        	            		table/tables/partition.go:1278
        	            	github.com/pingcap/tidb/executor.checkRowForExchangePartition
        	            		executor/write.go:329
        	            	github.com/pingcap/tidb/executor.(*InsertValues).fillRow
        	            		executor/insert_common.go:696
        	            	github.com/pingcap/tidb/executor.(*InsertValues).fastEvalRow
        	            		executor/insert_common.go:411
        	            	github.com/pingcap/tidb/executor.insertRows
        	            		executor/insert_common.go:219
        	            	github.com/pingcap/tidb/executor.(*InsertExec).Next
        	            		executor/insert.go:307
        	            	github.com/pingcap/tidb/executor/internal/exec.Next
        	            		executor/internal/exec/executor.go:283
        	            	github.com/pingcap/tidb/executor.(*ExecStmt).next
        	            		executor/adapter.go:1223
        	            	github.com/pingcap/tidb/executor.(*ExecStmt).handleNoDelayExecutor
        	            		executor/adapter.go:968
        	            	github.com/pingcap/tidb/executor.(*ExecStmt).handlePessimisticDML
        	            		executor/adapter.go:1029
        	            	github.com/pingcap/tidb/executor.(*ExecStmt).handleNoDelay
        	            		executor/adapter.go:791
        	            	github.com/pingcap/tidb/executor.(*ExecStmt).Exec
        	            		executor/adapter.go:575
        	            	github.com/pingcap/tidb/session.runStmt
        	            		session/session.go:2420
        	            	github.com/pingcap/tidb/session.(*session).ExecuteStmt
        	            		session/session.go:2270
        	            	github.com/pingcap/tidb/testkit.(*TestKit).ExecWithContext
        	            		testkit/testkit.go:342
        	            	github.com/pingcap/tidb/testkit.(*TestKit).MustExecWithContext
        	            		testkit/testkit.go:134
        	            	github.com/pingcap/tidb/testkit.(*TestKit).MustExec
        	            		testkit/testkit.go:129
        	            	table/tables/test/partition/partition_test.TestExchangePartitionStates
        	            		table/tables/test/partition/partition_test.go:770
        	            	testing.tRunner
        	            		GOROOT/src/testing/testing.go:1595
        	            	runtime.goexit
        	            		src/runtime/asm_amd64.s:1650

```

### 4. What is your TiDB version? (Required)

<!-- Paste the output of SELECT tidb_version() -->

master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/test severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants