-
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
query analyze_status table got panic #48835
Labels
affects-7.5
This bug affects the 7.5.x(LTS) versions.
affects-7.6
severity/major
sig/planner
SIG: Planner
type/bug
The issue is confirmed as a bug.
Comments
Can you provide your test table schema and DML? |
The stack: [2024/01/12 16:10:33.598 +08:00] [WARN] [memtable_reader.go:143] ["CCCCCCCC: stacktrace from panic: \ngoroutine 3703 [running]:\nruntime/debug.Stack()\n\t/root/.go/src/runtime/debug/stack.go:24 +0x5e\ngit.luolix.top/pingcap/tidb/pkg/executor.(*MemTableReaderExec).Next.func1()\n\t/root/code/rustin/tidb/pkg/executor/memtable_reader.go:143 +0x85\npanic({0x56f1ee0?, 0xc00864d248?})\n\t/root/.go/src/runtime/panic.go:914 +0x21f\ngit.luolix.top/pingcap/tidb/pkg/util/chunk.setMutRowBytes(...)\n\t/root/code/rustin/tidb/pkg/util/chunk/mutrow.go:335\ngit.luolix.top/pingcap/tidb/pkg/util/chunk.MutRow.SetDatum({0xc00cb6e780?, 0x2569cc6?}, 0xb, {0x5, 0x0, 0x0, 0x0, {0x59ef2e0, 0xb}, {0xc00d1c2900, ...}, ...})\n\t/root/code/rustin/tidb/pkg/util/chunk/mutrow.go:305 +0x928\ngit.luolix.top/pingcap/tidb/pkg/util/chunk.MutRow.SetDatums(...)\n\t/root/code/rustin/tidb/pkg/util/chunk/mutrow.go:288\ngit.luolix.top/pingcap/tidb/pkg/executor.(*MemTableReaderExec).Next(0xc00afd4960, {0x63e9c88, 0xc00b9806f0}, 0xc007452c30)\n\t/root/code/rustin/tidb/pkg/executor/memtable_reader.go:147 +0xe05\ngit.luolix.top/pingcap/tidb/pkg/executor/internal/exec.Next({0x63e9c88, 0xc00b9806f0}, {0x6411220, 0xc00afd4960}, 0xc007452c30)\n\t/root/code/rustin/tidb/pkg/executor/internal/exec/executor.go:314 +0x2c3\ngit.luolix.top/pingcap/tidb/pkg/executor.(*ExecStmt).next(0xc0001c65a0, {0x63e9c88, 0xc00b9806f0}, {0x6411220, 0xc00afd4960}, 0x2d3f7d3?)\n\t/root/code/rustin/tidb/pkg/executor/adapter.go:1252 +0x6e\ngit.luolix.top/pingcap/tidb/pkg/executor.(*recordSet).Next(0xc00ced2a20, {0x63e9c88?, 0xc00b9806f0?}, 0xc007452c30)\n\t/root/code/rustin/tidb/pkg/executor/adapter.go:157 +0xb2\ngit.luolix.top/pingcap/tidb/pkg/server/internal/resultset.(*tidbResultSet).Next(0x5a1eeb1?, {0x63e9c88?, 0xc00b9806f0?}, 0x1bfcf68?)\n\t/root/code/rustin/tidb/pkg/server/internal/resultset/resultset.go:64 +0x25\ngit.luolix.top/pingcap/tidb/pkg/server.(*clientConn).writeChunks(0xc0072c2340, {0x63e9c88, 0xc00b9806f0}, {0x6401a38, 0xc00cde2a40}, 0x0, 0x1bf?)\n\t/root/code/rustin/tidb/pkg/server/conn.go:2315 +0x18a\ngit.luolix.top/pingcap/tidb/pkg/server.(*clientConn).writeResultSet(0xc0072c2340, {0x63e9c88, 0xc00b9806f0}, {0x6401a38, 0xc00cde2a40}, 0xa0?, 0x2, 0xc0035dcc60?)\n\t/root/code/rustin/tidb/pkg/server/conn.go:2258 +0x2f0\ngit.luolix.top/pingcap/tidb/pkg/server.(*clientConn).handleStmt(0xc0072c2340, {0x63e9cc0, 0xc00bec85a0}, {0x63fecc8?, 0xc00b258240}, {0x0, 0x0, 0x0}, 0x1)\n\t/root/code/rustin/tidb/pkg/server/conn.go:2051 +0x52a\ngit.luolix.top/pingcap/tidb/pkg/server.(*clientConn).handleQuery(0xc0072c2340, {0x63e9cc0, 0xc00bec85a0}, {0xc001263861, 0x2f})\n\t/root/code/rustin/tidb/pkg/server/conn.go:1771 +0xb4c\ngit.luolix.top/pingcap/tidb/pkg/server.(*clientConn).dispatch(0xc0072c2340, {0x63e9c88?, 0xc0072cd2f0?}, {0xc001263860, 0x30, 0x30})\n\t/root/code/rustin/tidb/pkg/server/conn.go:1345 +0xf8b\ngit.luolix.top/pingcap/tidb/pkg/server.(*clientConn).Run(0xc0072c2340, {0x63e9c88, 0xc0072cd2f0})\n\t/root/code/rustin/tidb/pkg/server/conn.go:1121 +0x53e\ngit.luolix.top/pingcap/tidb/pkg/server.(*Server).onConn(0xc00311ca20?, 0xc0072c2340)\n\t/root/code/rustin/tidb/pkg/server/server.go:713 +0x89d\ncreated by github.com/pingcap/tidb/pkg/server.(*Server).startNetworkListener in goroutine 556\n\t/root/code/rustin/tidb/pkg/server/server.go:519 +0x78d\n"]
[2024/01/12 16:10:33.691 +08:00] [INFO] [coprocessor.go:1337] ["[TIME_COP_PROCESS] resp_time:2.542687984s txnStartTS:18446744073709551615 region_id:288 store_addr:tikv-1-peer:20160 kv_process_ms:2512 kv_wait_ms:0 kv_read_ms:0 processed_versions:62023 total_versions:62024 rocksdb_delete_skipped_count:0 rocksdb_key_skipped_count:124045 rocksdb_cache_hit_count:7 rocksdb_read_count:140 rocksdb_read_byte:910393"]
[2024/01/12 16:10:36.282 +08:00] [INFO] [coprocessor.go:1337] ["[TIME_COP_PROCESS] resp_time:2.591155037s txnStartTS:18446744073709551615 region_id:290 store_addr:tikv-1-peer:20160 kv_process_ms:2572 kv_wait_ms:0 kv_read_ms:0 processed_versions:64710 total_versions:64711 rocksdb_delete_skipped_count:0 rocksdb_key_skipped_count:129419 rocksdb_cache_hit_count:5 rocksdb_read_count:149 rocksdb_read_byte:1073528"]
[2024/01/12 16:10:38.547 +08:00] [INFO] [coprocessor.go:1337] ["[TIME_COP_PROCESS] resp_time:2.264629626s txnStartTS:18446744073709551615 region_id:148 store_addr:tikv-1-peer:20160 kv_process_ms:2246 kv_wait_ms:0 kv_read_ms:0 processed_versions:57366 total_versions:57367 rocksdb_delete_skipped_count:0 rocksdb_key_skipped_count:114731 rocksdb_cache_hit_count:5 rocksdb_read_count:131 rocksdb_read_byte:959174"] |
13 tasks
13 tasks
13 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
affects-7.5
This bug affects the 7.5.x(LTS) versions.
affects-7.6
severity/major
sig/planner
SIG: Planner
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
query analyze status success
3. What did you see instead (Required)
query
information_schema.analyze_status
got panic, wait some time query again and query success4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: