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 testTxnStateSerialSuite.TestCommitting #26185

Closed
Tracked by #25899
zhouqiang-cl opened this issue Jul 13, 2021 · 2 comments · Fixed by #26467
Closed
Tracked by #25899

Unstable test testTxnStateSerialSuite.TestCommitting #26185

zhouqiang-cl opened this issue Jul 13, 2021 · 2 comments · Fixed by #26467
Assignees
Labels
severity/major sig/transaction SIG:Transaction type/bug The issue is confirmed as a bug.

Comments

@zhouqiang-cl
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

[2021-07-13T05:30:10.225Z] FAIL: session_test.go:4388: testTxnStateSerialSuite.TestCommitting

[2021-07-13T05:30:10.225Z] 

[2021-07-13T05:30:10.225Z] session_test.go:4408:

[2021-07-13T05:30:10.225Z]     c.Assert(tk2.Se.TxnInfo().State, Equals, txninfo.TxnCommitting)

[2021-07-13T05:30:10.225Z] ... obtained int32 = 1

[2021-07-13T05:30:10.225Z] ... expected int32 = 2

[2021-07-13T05:30:10.225Z] 

[2021-07-13T05:30:10.225Z] /home/jenkins/agent/workspace/tidb_ghpr_check_2/go/src/github.com/pingcap/tidb/util/testkit/testkit.go:217:

[2021-07-13T05:30:10.225Z]     tk.c.Assert(err, check.IsNil, check.Commentf("sql:%s, %v, error stack %v", sql, args, errors.ErrorStack(err)))

[2021-07-13T05:30:10.225Z] ... value *errors.withMessage = previous statement: select * from t where a = 2 for update;: [domain:8028]Information schema is changed during the execution of the statement(for example, table definition may be updated by other DDL ran in parallel). If you see this error often, try increasing `tidb_max_delta_schema_count`. [try again later]

[2021-07-13T05:30:10.225Z] ... sql:commit;, [], error stack [domain:8028]Information schema is changed during the execution of the statement(for example, table definition may be updated by other DDL ran in parallel). If you see this error often, try increasing `tidb_max_delta_schema_count`. [try again later]

[2021-07-13T05:30:10.225Z] github.com/pingcap/errors.AddStack

[2021-07-13T05:30:10.225Z] 	/nfs/cache/mod/github.com/pingcap/errors@v0.11.5-0.20210425183316-da1aaba5fb63/errors.go:174

[2021-07-13T05:30:10.225Z] github.com/pingcap/errors.Trace

[2021-07-13T05:30:10.225Z] 	/nfs/cache/mod/github.com/pingcap/errors@v0.11.5-0.20210425183316-da1aaba5fb63/juju_adaptor.go:15

[2021-07-13T05:30:10.225Z] github.com/tikv/client-go/v2/tikv.(*twoPhaseCommitter).checkSchemaValid

[2021-07-13T05:30:10.225Z] 	/nfs/cache/mod/github.com/tikv/client-go/v2@v2.0.0-alpha.0.20210709052506-aadf3cf62721/tikv/2pc.go:1531

[2021-07-13T05:30:10.225Z] github.com/tikv/client-go/v2/tikv.(*twoPhaseCommitter).calculateMaxCommitTS

[2021-07-13T05:30:10.225Z] 	/nfs/cache/mod/github.com/tikv/client-go/v2@v2.0.0-alpha.0.20210709052506-aadf3cf62721/tikv/2pc.go:1539

[2021-07-13T05:30:10.225Z] github.com/tikv/client-go/v2/tikv.(*twoPhaseCommitter).execute

[2021-07-13T05:30:10.226Z] 	/nfs/cache/mod/github.com/tikv/client-go/v2@v2.0.0-alpha.0.20210709052506-aadf3cf62721/tikv/2pc.go:1110

[2021-07-13T05:30:10.226Z] github.com/tikv/client-go/v2/tikv.(*KVTxn).Commit

[2021-07-13T05:30:10.226Z] 	/nfs/cache/mod/github.com/tikv/client-go/v2@v2.0.0-alpha.0.20210709052506-aadf3cf62721/tikv/txn.go:398

[2021-07-13T05:30:10.226Z] github.com/pingcap/tidb/store/driver/txn.(*tikvTxn).Commit

[2021-07-13T05:30:10.226Z] 	/home/jenkins/agent/workspace/tidb_ghpr_check_2/go/src/github.com/pingcap/tidb/store/driver/txn/txn_driver.go:66

[2021-07-13T05:30:10.226Z] github.com/pingcap/tidb/session.(*LazyTxn).Commit

[2021-07-13T05:30:10.226Z] 	/home/jenkins/agent/workspace/tidb_ghpr_check_2/go/src/github.com/pingcap/tidb/session/txn.go:363

[2021-07-13T05:30:10.226Z] github.com/pingcap/tidb/session.(*session).commitTxnWithTemporaryData

[2021-07-13T05:30:10.226Z] 	/home/jenkins/agent/workspace/tidb_ghpr_check_2/go/src/github.com/pingcap/tidb/session/session.go:557

[2021-07-13T05:30:10.226Z] github.com/pingcap/tidb/session.(*session).doCommit

[2021-07-13T05:30:10.226Z] 	/home/jenkins/agent/workspace/tidb_ghpr_check_2/go/src/github.com/pingcap/tidb/session/session.go:551

[2021-07-13T05:30:10.226Z] github.com/pingcap/tidb/session.(*session).doCommitWithRetry

[2021-07-13T05:30:10.226Z] 	/home/jenkins/agent/workspace/tidb_ghpr_check_2/go/src/github.com/pingcap/tidb/session/session.go:669

[2021-07-13T05:30:10.226Z] github.com/pingcap/tidb/session.(*session).CommitTxn

[2021-07-13T05:30:10.226Z] 	/home/jenkins/agent/workspace/tidb_ghpr_check_2/go/src/github.com/pingcap/tidb/session/session.go:731

[2021-07-13T05:30:10.226Z] github.com/pingcap/tidb/session.autoCommitAfterStmt

[2021-07-13T05:30:10.226Z] 	/home/jenkins/agent/workspace/tidb_ghpr_check_2/go/src/github.com/pingcap/tidb/session/tidb.go:254

[2021-07-13T05:30:10.226Z] github.com/pingcap/tidb/session.finishStmt

[2021-07-13T05:30:10.226Z] 	/home/jenkins/agent/workspace/tidb_ghpr_check_2/go/src/github.com/pingcap/tidb/session/tidb.go:220

[2021-07-13T05:30:10.226Z] github.com/pingcap/tidb/session.runStmt

[2021-07-13T05:30:10.226Z] 	/home/jenkins/agent/workspace/tidb_ghpr_check_2/go/src/github.com/pingcap/tidb/session/session.go:1730

[2021-07-13T05:30:10.226Z] github.com/pingcap/tidb/session.(*session).ExecuteStmt

[2021-07-13T05:30:10.226Z] 	/home/jenkins/agent/workspace/tidb_ghpr_check_2/go/src/github.com/pingcap/tidb/session/session.go:1614

[2021-07-13T05:30:10.226Z] github.com/pingcap/tidb/util/testkit.(*TestKit).Exec

[2021-07-13T05:30:10.226Z] 	/home/jenkins/agent/workspace/tidb_ghpr_check_2/go/src/github.com/pingcap/tidb/util/testkit/testkit.go:170

[2021-07-13T05:30:10.226Z] github.com/pingcap/tidb/util/testkit.(*TestKit).MustExec

[2021-07-13T05:30:10.226Z] 	/home/jenkins/agent/workspace/tidb_ghpr_check_2/go/src/github.com/pingcap/tidb/util/testkit/testkit.go:216

[2021-07-13T05:30:10.226Z] github.com/pingcap/tidb/session_test.(*testTxnStateSerialSuite).TestCommitting.func1

[2021-07-13T05:30:10.226Z] 	/home/jenkins/agent/workspace/tidb_ghpr_check_2/go/src/github.com/pingcap/tidb/session/session_test.go:4404

[2021-07-13T05:30:10.226Z] runtime.goexit

[2021-07-13T05:30:10.226Z] 	/usr/local/go/src/runtime/asm_amd64.s:1371

[2021-07-13T05:30:10.226Z] previous statement: select * from t where a = 2 for update;

[2021-07-13T05:30:10.226Z] 

1. Minimal reproduce step (Required)

in ci https://ci.pingcap.net/blue/organizations/jenkins/tidb_ghpr_check_2/detail/tidb_ghpr_check_2/16888/pipeline

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

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

@longfangsong
Copy link
Contributor

/assign

@ti-srebot
Copy link
Contributor

Please edit this comment or add a new comment to complete the following information

Not a bug

  1. Remove the 'type/bug' label
  2. Add notes to indicate why it is not a bug

Duplicate bug

  1. Add the 'type/duplicate' label
  2. Add the link to the original bug

Bug

Note: Make Sure that 'component', and 'severity' labels are added
Example for how to fill out the template: #20100

1. Root Cause Analysis (RCA) (optional)

2. Symptom (optional)

3. All Trigger Conditions (optional)

4. Workaround (optional)

5. Affected versions

6. Fixed versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/major sig/transaction SIG:Transaction type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants