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

tidb server crashes when doing gracful shutdown #48224

Closed
cfzjywxk opened this issue Nov 2, 2023 · 4 comments
Closed

tidb server crashes when doing gracful shutdown #48224

cfzjywxk opened this issue Nov 2, 2023 · 4 comments

Comments

@cfzjywxk
Copy link
Contributor

cfzjywxk commented Nov 2, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

Not clear by now

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

No exception happens.

3. What did you see instead (Required)

The tidb-server crashes because of fatal error

[2023/10/26 18:59:13.564 +00:00] [ERROR] [terror.go:308] ["function call errored"] [error="invalid PlanCacheStmt type"] [stack="github.com/pingcap/tidb/parser/terror.Call\n\t/tidb/parser/terror/terror.go:308\ngithub.com/pingcap/tidb/server.(*TiDBContext).Close\n\t/tidb/server/driver_tidb.go:312\ngithub.com/pingcap/tidb/server.closeConn\n\t/tidb/server/conn.go:361\ngithub.com/pingcap/tidb/server.(*clientConn).Close\n\t/tidb/server/conn.go:345\ngithub.com/pingcap/tidb/server.(*Server).kickIdleConnection\n\t/tidb/server/server.go:901\ngithub.com/pingcap/tidb/server.(*Server).GracefulDown\n\t/tidb/server/server.go:869\nmain.cleanup\n\t/tidb/tidb-server/main.go:842\nmain.main.func1\n\t/tidb/tidb-server/main.go:229\ngithub.com/pingcap/tidb/util/signal.SetupSignalHandler.func2\n\t/tidb/util/signal/signal_posix.go:55"]
[2023/10/26 18:59:13.565 +00:00] [ERROR] [terror.go:308] ["function call errored"] [error="invalid PlanCacheStmt type"] [stack="github.com/pingcap/tidb/parser/terror.Call\n\t/tidb/parser/terror/terror.go:308\ngithub.com/pingcap/tidb/server.(*TiDBContext).Close\n\t/tidb/server/driver_tidb.go:312\ngithub.com/pingcap/tidb/server.closeConn\n\t/tidb/server/conn.go:361\ngithub.com/pingcap/tidb/server.(*clientConn).Close\n\t/tidb/server/conn.go:345\ngithub.com/pingcap/tidb/server.(*Server).onConn.func3\n\t/tidb/server/server.go:624\ngithub.com/pingcap/tidb/server.(*Server).onConn\n\t/tidb/server/server.go:664"]
[2023/10/26 18:59:13.569 +00:00] [ERROR] [terror.go:308] ["function call errored"] [error="invalid PlanCacheStmt type"] [stack="github.com/pingcap/tidb/parser/terror.Call\n\t/tidb/parser/terror/terror.go:308\ngithub.com/pingcap/tidb/server.(*TiDBContext).Close\n\t/tidb/server/driver_tidb.go:312\ngithub.com/pingcap/tidb/server.closeConn\n\t/tidb/server/conn.go:361\ngithub.com/pingcap/tidb/server.(*clientConn).Close\n\t/tidb/server/conn.go:345\ngithub.com/pingcap/tidb/server.(*Server).kickIdleConnection\n\t/tidb/server/server.go:901\ngithub.com/pingcap/tidb/server.(*Server).GracefulDown\n\t/tidb/server/server.go:869\nmain.cleanup\n\t/tidb/tidb-server/main.go:842\nmain.main.func1\n\t/tidb/tidb-server/main.go:229\ngithub.com/pingcap/tidb/util/signal.SetupSignalHandler.func2\n\t/tidb/util/signal/signal_posix.go:55"]

fatal error: concurrent map writes



4. What is your TiDB version? (Required)

v6.5.4

@cfzjywxk cfzjywxk added type/bug The issue is confirmed as a bug. affects-6.5 labels Nov 2, 2023
@ti-chi-bot ti-chi-bot bot added 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.1 may-affects-7.1 may-affects-7.5 labels Nov 6, 2023
@bb7133
Copy link
Member

bb7133 commented Nov 6, 2023

Dup with #48224, close this one.

@bb7133 bb7133 closed this as completed Nov 6, 2023
@cfzjywxk
Copy link
Contributor Author

cfzjywxk commented Nov 6, 2023

Dup with #48224, close this one.

@bb7133 The link seems to be incorrect.

@bb7133
Copy link
Member

bb7133 commented Nov 6, 2023

Dup with #48224, close this one.

@bb7133 The link seems to be incorrect.

Sorry, should be #36793

@bb7133
Copy link
Member

bb7133 commented Nov 30, 2023

Set severity to 'major'(aligned with #36793)

@bb7133 bb7133 removed may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-7.5 labels Nov 30, 2023
ti-chi-bot bot pushed a commit that referenced this issue Dec 2, 2023
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

3 participants