-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
TiDB loses connection when executing transaction #30289
Comments
The log of the server:
|
The panic happens because of that |
Another problem is that, why the error is returned in the transaction. errors@v0.11.5-0.20211009033009-93128226aaa3/errors.go:174
github.com/pingcap/errors.(*Error).GenWithStackByArgs
/Users/xuhuaiyu/Development/GOPATH/pkg/mod/github.com/pingcap/errors@v0.11.5-0.20211009033009-93128226aaa3/normalize.go:159
github.com/pingcap/tidb/types.getValidFloatPrefix
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/types/convert.go:720
github.com/pingcap/tidb/types.StrToFloat
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/types/convert.go:528
github.com/pingcap/tidb/expression.(*builtinCastStringAsRealSig).evalReal
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/expression/builtin_cast.go:1229
github.com/pingcap/tidb/expression.(*ScalarFunction).EvalReal
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/expression/scalar_function.go:402
github.com/pingcap/tidb/expression.(*builtinRealIsTrueSig).evalInt
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/expression/builtin_op.go:535
github.com/pingcap/tidb/expression.(*ScalarFunction).EvalInt
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/expression/scalar_function.go:397
github.com/pingcap/tidb/expression.(*builtinLogicOrSig).evalInt
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/expression/builtin_op.go:155
github.com/pingcap/tidb/expression.(*ScalarFunction).EvalInt
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/expression/scalar_function.go:397
github.com/pingcap/tidb/expression.(*builtinCastIntAsStringSig).evalString
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/expression/builtin_cast.go:550
github.com/pingcap/tidb/expression.(*ScalarFunction).EvalString
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/expression/scalar_function.go:412
github.com/pingcap/tidb/expression.(*builtinLikeSig).evalInt
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/expression/builtin_like.go:79
github.com/pingcap/tidb/expression.(*ScalarFunction).EvalInt
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/expression/scalar_function.go:397
github.com/pingcap/tidb/expression.(*builtinUnaryNotIntSig).evalInt
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/expression/builtin_op.go:801
github.com/pingcap/tidb/expression.(*ScalarFunction).EvalInt
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/expression/scalar_function.go:397
github.com/pingcap/tidb/expression.(*ScalarFunction).Eval
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/expression/scalar_function.go:350
github.com/pingcap/tidb/expression.EvalBool
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/expression/expression.go:243
github.com/pingcap/tidb/executor.(*memTableReader).getMemRows.func1
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/executor/mem_reader.go:215
github.com/pingcap/tidb/executor.iterTxnMemBuffer
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/executor/mem_reader.go:352
github.com/pingcap/tidb/executor.(*memTableReader).getMemRows
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/executor/mem_reader.go:208
github.com/pingcap/tidb/executor.(*UnionScanExec).open
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/executor/union_scan.go:99
github.com/pingcap/tidb/executor.(*UnionScanExec).Open
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/executor/union_scan.go:69
github.com/pingcap/tidb/executor.(*baseExecutor).Open
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/executor/executor.go:169
github.com/pingcap/tidb/executor.(*HashJoinExec).Open
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/executor/join.go:182
github.com/pingcap/tidb/executor.(*baseExecutor).Open
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/executor/executor.go:169
github.com/pingcap/tidb/executor.(*ProjectionExec).Open
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/executor/projection.go:87
github.com/pingcap/tidb/executor.(*SortExec).Open
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/executor/sort.go:97
github.com/pingcap/tidb/executor.(*baseExecutor).Open
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/executor/executor.go:169
github.com/pingcap/tidb/executor.(*ProjectionExec).Open
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/executor/projection.go:87
github.com/pingcap/tidb/executor.(*baseExecutor).Open
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/executor/executor.go:169
github.com/pingcap/tidb/executor.(*ProjectionExec).Open
/Users/xuhuaiyu/Development/GOPATH/src/github.com/pingcap/tidb/executor/projection.go:87 |
Test in MySQL, the sql without transaction should also return an error. |
Please check whether the issue should be labeled with 'affects-x.y' or 'fixes-x.y.z', and then remove 'needs-more-info' label. |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Setup the environment:
mysql_bk.sql:
mysql_bk.sql.txt
Testcase 1
Testcase 2
2. What did you expect to see? (Required)
Two testcases are both executed normally.
3. What did you see instead (Required)
Testcase 1 was executed normally
But testcase 2 made the connection lost
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: