Failed Query OPM only counts the error count for ComQuery #16384
Labels
component/metrics
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
severity/minor
sig/execution
SIG execution
type/bug
The issue is confirmed as a bug.
Bug Report
Now, we count the error count in
handleQuery
which is only valid for ComQuery.Actually, we should count the error for all commands. Or, some errors may be lost if the command is not ComQuery.
https://github.com/pingcap/tidb/blob/master/server/conn.go#L1270-L1287
The text was updated successfully, but these errors were encountered: