pingcap / pingcap/tidb

Consider adding the current info schema version when a panic occurs in connection

Open
#45,459 0 comments 0 reactions 0 assignees View on GitHub
sig/sql-infra type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement
https://github.com/pingcap/tidb/blob/2bdc3e5d7273ab0faf9c9d5de9752e3fc503238a/server/conn.go#L956-L961

For example, this issue(https://github.com/pingcap/tidb/issues/45397) may be a panic caused by DDL, but there is no schema version information, so it is not clear which schema version the issue occurs in. If we print the schema version, we can narrow down the problem.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.